N1:=3;
N2:=5;
200 pointdot,linethick2 colorbbbbbb;
-200 pointdot,linethick2 colorcyan;
TYP := (HIGH + LOW + CLOSE)/3;
JG1:=(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
JG2:=(TYP-MA(TYP,N2))/(0.015*AVEDEV(TYP,N2));
JGA:=EMA(JG1,13 );
JGB:=EMA(JG2,13);
aa:=cross(jg2,-200) and jg1>-100;
s1:stickline(jga> jgb,jga,jgb,6,1) colorred;
s2:stickline(jga< jgb,jgb,jga,6,1) colorgreen;
drawtext(cross(jgb,jga)and jgb>0,150,'$逃顶')linethick2 ,color9999ff;
drawtext(filter(aa,5)=1,0,'$抄底')linethick2, coloryellow;
stickline(cross(jgb,jga)and jgb>0,80,200,10,0),colorgreen ;
stickline(filter(aa,5)=1,0,-200,10,0),colorred