PP: Ema(CLOSE,3),COLORCYAN;
VAR1:=vol*(O+C)/2;
CG:MA(C,17),LINETHICK1,COLORRED;
IF(PP>=CG,PP,DRAWNULL),COLORWHITE,LINETHICK2;
IF(PP>=CG,CG,DRAWNULL),COLORFF00FF;
STICKLINE(PP>CG,PP,CG,0,1),COLORWHITE,LINETHICK2;
STICKLINE(PP<CG,PP,CG,0,1),COLORCYAN,LINETHICK2;
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
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,'⊙金'),COLORBLUE;