VAR1:=REF(CLOSE,1);VAR2:=(((MAX((CLOSE - VAR1),0),7,1) / SMA(A((CLOSE - VAR1)),7,1)) * 100);VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) * 100);VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48));:IF(VAR2 < 15> 20 AND VAR4 > 40 AND BARSCOUNT(CLOSE) > 47,100,0);