Input:N1(5,1,100),N2(5,1,100),P(3,1,100);
CkdP:EMA(100*(C-COST(1))/(COST(99)-COST(1)),3),colorgreen;
asr10:100*REF(EMA((WINNER(C*1.1)-WINNER(C*0.9)),N1),P),colorwhite;
ASR30:100*EMA(WINNER(C)-WINNER(C*0.7),N2);
STICKLINE({(vol/FINANCE(7))<3 AND} ASR30>ASR10,ASR30,ASR10,2.8,1),COLORRED;
STICKLINE( ASR30>ASR10 and CKDP>=85,CKDP,ASR30,3.8,1),COLORYELLOW;
STICKLINE(ASR30
STICKLINE(crOSS(CKDP,MAX(ASR10,ASR30)) AND MAX(ASR10,ASR30)<=10,60,CKDP,2.8,1),COLORRED;
DRAWICON(CROSS(CKDP,MAX(ASR10,ASR30)) AND MAX(ASR10,ASR30)<=10,CKDP+20,1);