均线:=(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);{www.9m8.cn 九毛八公式指标网}
VAR1:=REF(CLOSE,1)-REF(ATR,1);
企稳:HHV(VAR1,20),LINETHICK1,COLORYELLOW;
DRAWTEXT(CROSS(DIFF,企稳),DEA,'多'),COLORMAGENTA;
DRAWTEXT(CROSS(企稳,DIFF),DIFF,'空'),COLORBLUE;