工作线:MA("kdj.J#WEEK"(9,3,3),5);
建仓:crOSS(工作线,5),NODRAW,COLORMAGENTA;
加仓:CROSS(工作线,50),NODRAW,COLORYELLOW;
VAR1:=工作线,COLORRED;
持股:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
持币:IF(VAR1{卖}
VAR14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
VAR25:=C/MA(C,60)-1;
清仓:CROSS(VAR14,-95) AND VAR25>=0.35,NODRAW,COLORWHITE;
{比上一日线数值涨幅大于3}
N:=20;
线涨XG1:=工作线>N AND 工作线/REF(工作线,1)>1.03,NODRAW,COLORRED;
线涨XG2:工作线
STICKLINE(线涨XG1,48,52,1,1),COLORRED;
50,DOTLINE;5,DOTLINE;
DRAWTEXT(CROSS(工作线,5),9,'建仓'),COLORMAGENTA;
DRAWTEXT(CROSS(工作线,50),45,'加仓'),COLORYELLOW;
DRAWTEXT(清仓,工作线,'清仓'),COLORWHITE;
{--------------};
白:=IF(VAR1>REF(VAR1,1) AND REF(VAR1,1)STICKLINE(白,VAR1-3,VAR1+2,2,0),COLORWHITE;
白XG:白 AND VAR1<5,NODRAW;