N:=5;BOLL:=MA(CLOSE,N);UB:=BOLL+2*STD(CLOSE,N);LB:=BOLL-2*STD(CLOSE,N);BOLL>=REF(BOLL,1) AND C>=BOLL AND L<=BOLL;