{ 通达信波段强弱指标公式源码副图 }
AA := REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),34,1)/SMA(Abs(CLOSE-AA),34,1)*1000;
HHH:=BBB-LLV(BBB,36);
短期:(MA(HHH,2)*3+HHH*13)/16;
中期:MA(HHH,10);
差值:短期-中期,NODRAW;
CCC:=LLV(BBB,36)-BBB;
短期二:(MA(CCC,2)*3+CCC*13)/16;
中期二:MA(CCC,10);
stICKLINE(中期>100,10,-10,2,0),COLORLIGRAY;
STICKLINE(短期>100 AND 中期>100,10,-10,2,0),COLORRED;
STICKLINE(短期>200,10,-10,2,0),COLORYELLOW;
STICKLINE(短期>200 AND 中期>200,10,-10,2,0),COLORMAGENTA;
100,COLORGRAY,DOTLINE;
200,COLORLIGRAY,DOTLINE;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'转强~灰色'),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.12,0,0,'强势~红色'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.24,0,0,'超强~黄色'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.36,0,0,'顶级强~洋红色'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,'注意颜色的顺序,如果相反就是转弱'),COLORCYAN;
标签:10,ISLASTBAR,FIX,DRAWTEXT,BBB,通达信,源码,100,强弱 From: https://www.cnblogs.com/zhibiao/p/18062737