m=MA(CLOSE,2);
A=MA(CLOSE,5);
B=MA(CLOSE,10);
d=MA(CLOSE,20);
e=MA(CLOSE,30);
F=MA(CLOSE,60);
AA=MAX(ABS(A-m),ABS(B-m));
BB=MAX(ABS(d-m),ABS(e-m));
aaa=IF(AA>BB,AA,BB);
bbb=IF(aaa>ABS(F-m),aaa,ABS(F-m));
t=bbb;
STICKLINE(((REF(t,1)>=REF(HHV(t,35),1) AND A<MA(CLOSE,1) AND F>A AND t<REF(t,1)) OR (REF(t,1)>=REF(HHV(t,35),1) AND C-A>REF(C,1)- REF(A,1) AND F>A AND t<REF(t,1))),1,t,4),coloryellow;
STICKLINE(COUNT(((REF(t,1)>=REF(HHV(t,35),1) AND A<MA(CLOSE,1) AND F>A AND t<REF(t,1)) OR
(REF(t,1)>=REF(HHV(t,35),1) AND C-A>REF(C,1)- REF(A,1) AND F>A AND t<REF(t,1))),7)>=1 AND t>MA(T,7) AND 2*MA(T,7)-REF(MA(T,7),1)+REF(t,1)-t>=T,MA(T,7),t,10),coloryellow;
N:MA(T,7),colorred;
P:bbb,colorgreen;
q:MA(t,3),colorwhite;