均线XMA:=(XMA(C,3)+XMA(C,5)+XMA(C,8)+XMA(C,13)+XMA(C,21))/5, colorliblue;
DEA:均线,LINETHICK1,colorred;
TJ:=(DIFF>=DEA);
STICKLINE(TJ,H,L,1.5,0),colorred;
STICKLINE(TJ1 AND TJ,H,L,1.5,0),colorred;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
VAR1:=REF(CLOSE,1)-REF(ATR,1);
STICKLINE(DIFF<=多空分界,H,L,1.5,0),COLORFFDE00;
DRAWTEXT(CROSS(DIFF,多空分界) ,DEA,'多'),colorred;
PARTLINE(DEA,DEA>=REF(DEA,1),colormagenta,
买线:=EMA(C,2);
BU:=CROSS(买线,卖线);
STICKLINE(BU,OPEN,CLOSE,5,0),coloryellow;