通达信大道至简二条线副图指标 源码介绍
通达信大道至简二条线副图指标 源码
指标包含了自创的BS买卖点提示,包含涨跌停K线颜色显示,为最新优化版本。
流通市值:SHGZG*C,nodraw;
MA10:=MA(CLOSE,10),colorcyan;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2)+17*REF(HHJsjda,3)+16*REF(HHJsjda,4)+15*REF(HHJsjda,5)+14*REF(HHJsjda,6)
+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9)+10*REF(HHJsjda,10)+9*REF(HHJsjda,11)+8*REF(HHJsjda,12)
+7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15)+4*REF(HHJsjda,16)+3*REF(HHJsjda,17)+2*REF(HHJsjda,18)+
REF(HHJsjda,20))/210,colorred;
HHJSJDC:MA(HHJSJDB,5),colorcyan;
MA30:=MA(CLOSE,30);
MA20:=MA(CLOSE,20),colorred;
C2:=REF(C,1);
STICKLINE(C>0 AND C<HHJSJDC,OPEN,CLOSE,9,0),color222222;
STICKLINE(C<O AND C>MA20,OPEN,C,9,0),colorff5500; //显示//
STICKLINE(C>O AND C>MA20,OPEN,C,9,0),color0000FF; //显示//
STICKLINE(C<O AND O/C>1.04 AND C>MA20,OPEN*0.98,C*1.02,9,0),colorgreen; //显示//
STICKLINE(C>O AND C=H AND C>REF(C,1)*1.098,CLOSE,O ,9,0),coloryellow;//涨停//
STICKLINE(C>O AND C<H AND H>REF(C,1)*1.098,(CLOSE+OPEN)/2,OPEN,9,0),coloryellow;//打开涨停//
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(C<O AND C>MA20 AND C<MA10,OPEN,C,9,0),color00ff00; //显示//
STICKLINE(跌停,OPEN,CLOSE,9,0),colorcyan;
流通股:=SHGZG,nodraw;
DRAWTEXT (流通股>REF(流通股,1) ,C>0,'股本增加');
gd46351