PP: EMA(CLOSE,3),COLORGREEN;
VAR1:=vol*(O+C)/2;
CG:MA(C,17),LINETHICK1,COLORWHITE;
IF(PP>=CG,PP,DRAWNULL),COLORRED,LINETHICK2;
IF(PP>=CG,CG,DRAWNULL),COLORFF00FF;
STICKLINE(PP>CG,PP,CG,0,1),COLORRED,LINETHICK2;
STICKLINE(PP
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
XG:=BArslAST(crOSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),PP*0.98,'⊙金'),COLORYELLOW;