N1:=5;N2:=5;P:=3;
{n1 1-100 -5 n2 1-100-5 p 1-100-3}
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<ASR10,ASR10,ASR30,2.8,1),COLORAAAAAA;
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);