VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
VAR5:=MA(VAR4,2);
VAR6:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
VAR18:=(MA((VAR6-REF(VAR6,1))/REF(VAR6,1)*100,2));
VAR19:=(MA((VAR6-REF(VAR6,1))/REF(VAR6,1)*100,1));
STICKLINE(VAR4>VAR5,VAR4,VAR5,3,1),COLORRED;
STICKLINE(VAR4>VAR5 AND REF(VAR4,1)<30,VAR4,VAR5,3,1),COLORRED;
STICKLINE(VAR4<=VAR5,VAR4,VAR5,3,1),COLORFFCC66;
STICKLINE(VAR19>VAR18 AND VAR19<0,10,0,1,0),COLORRED;
STICKLINE(VAR19>VAR18 AND VAR19<0,10,0,1,0)=1,COLORRED;