VAR1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR2:=REVERSE(VAR1);
VAR3:=SMA(VAR1,3,1);
K: SMA(VAR3,3,1);
D: SMA(K,3,1);
HH: 80,COLORLIGRAY;
BB: 15,COLORLIGRAY;
DRAWICON(crOSS(K,BB),K,1);
DRAWICON(CROSS(K,D) AND K<40,K,9);
DRAWICON(CROSS(D,K) AND D>75,K*0.9,2);