均线:=(MA(C,3)+MA(C,5)+MA(C,8)+MA(C,13)+MA(C,21))/5, colorliblue;
均线XMA:=(XMA(C,3)+XMA(C,5)+XMA(C,8)+XMA(C,13)+XMA(C,21))/5, colorliblue;
DIFF:均线XMA*2-均线, colorred;
DEA:MA(H,10),LINETHICK1,colorgreen;
STICKLINE(DIFF>DEA,DIFF,DEA,4,0),colorred;
STICKLINE(DIFF<DEA,DIFF,DEA,4,0),colorgreen;
差距:DIFF-DEA,nodraw,colorred;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,13);
VAR1:=REF(CLOSE,1)-REF(ATR,1);
企稳:HHV(VAR1,20),LINETHICK1,coloryellow;
DRAWTEXT(CROSS(DIFF,企稳),DEA,'多'),colormagenta;
DRAWTEXT(CROSS(企稳,DIFF),DIFF,'空'),colorblue;