input:T(30,1,300);VAR2:=REF(LOW,1);VAR3:=SMA(A(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(VAR3*10,3);VAR5:=LLV(LOW,13);VAR6:=HHV(VAR4,13);VAR7:=IF(barpos>34,1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);:=VAR9;STICKLINE(VAR9>-120,0,VAR9,8,1),COLOR00FFFF;a:"LTFunc6@FORLT2"(T);S1:="LTFunc6@LT_S1"(T);p1:="LTFunc6@LT_P1"(T);stickline((VAR9
[ref(VAR9,2)) AND ((p1=1 andref(p1,1)=0) OR (s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1)),0,VAR9,8,0)
]