Var1:=IF(CLOSE<=LLV(CLOSE,120)*1.2 AND BARSCOUNT(CLOSE)>=120,4*VOL,0); Var2:=IF(CLOSE>=LLV(CLOSE,120)*1.5 AND BARSCOUNT(CLOSE)>=120,VOL,0); IF(Var1=0,Var2,Var1);