VAR3:=100-(100-3*SMA((CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))
*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))
*100,20,1),20,1));
VAR4:=100-(100-3*SMA((OPEN-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))
*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))
*100,20,1),20,1));
STICKLINE(VAR3 =REF(VAR4,1),VAR3,VAR4,4,0),COLORGREEN;
STICKLINE(VAR3 REF(VAR4,1),VAR3,VAR4,4,0),COLORRED;