通达信波段操作指标源码[通达信公式]
ZT:=C/REF(CLOSE,1)>1.097;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);
CZ:=REF(HIGH,BH)-REF(LOW,BH);
买线:=EMA(CLOSE,1);
卖线:=EMA(SLOPE(CLOSE,10)*10+C,20);
STICKLINE(C> REF(C,1) ,H,L,0,0),COLOR8080FF;
STICKLINE(C> REF(C,1) ,O,C,3.1,0),COLOR000033;
STICKLINE(C> REF(C,1) ,O,C,2.1,0),COLOR000099;
STICKLINE(C> REF(C,1) ,O,C,1.5,0),COLOR0000CC;
STICKLINE(C> REF(C,1) ,O,C,0.3,0),COLORCC66FF;
STICKLINE(C< REF(C,1) ,H,L,0,0 ),COLORFFFF00;
STICKLINE(C< REF(C,1) ,O,C,3.1,0 ),COLOR000000;
STICKLINE(C< REF(C,1) ,O,C,2.1,0 ),COLOR6A6A00;
STICKLINE(C< REF(C,1) ,O,C,1.5,0 ),COLORDDDD00;
STICKLINE(C< REF(C,1) ,O,C,0.3,0),COLORFFFF00;
MA1:EXPMA(CLOSE,5),DOTLINE,COLORYELLOW,LINETHICK1;
KK:=MA1< REF(MA1,1);
IF(KK,MA1,DRAWNULL),DOTLINE,COLOR00FF00,LINETHICK1;
DD1:=MA1>REF(MA1,1);
IF(DD1,MA1,DRAWNULL),COLOR00FFFF,LINETHICK2;
操作线20日:EMA(CLOSE,20),POINTDOT,COLOR0000FF,LINETHICK1;
红升:IF(操作线20日>REF(操作线20日,1),操作线20日,DRAWNULL),COLOR0000FF,LINETHICK3;
绿降:IF(操作线20日< REF(操作线20日,1),操作线20日,DRAWNULL)DOTLINE,COLOR0000FF,LINETHICK1;
均价:=(3*C+HIGH+LOW+O)/6;
cxh1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
cxh2:=(LLV(cxh1,2)+LLV(cxh1,4)+LLV(cxh1,6))/3;
SZ1:=REF(cxh1,1)=REF(cxh2,1) AND cxh1>cxh2 AND C>cxh1;
SZ2:=cxh1>cxh2 AND cxh1>REF(cxh1,1) AND cxh2>REF(cxh2,1)AND H/cxh1< 1.1 AND L>cxh2 AND C>cxh1;
SZ3:=cxh1>cxh2 AND cxh1>REF(cxh1,1) AND cxh2>=REF(cxh2,1) AND H/cxh1>1.1;
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编写公式QQ:511411198 微信公众号:A26206'),COLORWHITE;
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编写公式QQ:511411198 微信公众号:A26206'),COLORWHITE;
SZ4:=cxh1>cxh2 AND cxh1>REF(cxh1,1) AND cxh2>REF(cxh2,1)AND C>cxh2 AND C< cxh1;
SZ5:=(cxh1>cxh2 AND cxh2>REF(cxh2,1) AND cxh1< >REF(cxh1,1)AND C< cxh2) OR (cxh1>cxh2 AND cxh1< REF(cxh1,1)AND cxh2< REF(cxh2,1) AND C< cxh2);
SZ6:=REF(cxh1,1)>REF(cxh2,1) AND cxh1=cxh2 AND C< cxh2;
XD1:=cxh1=cxh2 AND C< cxh2 OR (cxh1< REF(cxh1,1) AND cxh2< REF(cxh2,1)AND REF(cxh1,1)=REF(cxh2,1) AND C< cxh2);
XD2:=cxh1=cxh2 AND C>cxh1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(CLOSE,20));
量能饱和度:=IF(SAT>1,1,SAT)*100;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ1,0.8,0.05,0,'调整结束短线介入'),COLORFFFFFF;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.8,0.05,0,'上升通道走势良好'),COLORFFFFFF;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.8,0.05,0,'股价偏离注意调整'),COLORFFFFFF;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.8,0.05,0,'上升通道调整洗盘'),COLORFFFFFF;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.8,0.05,0,'转向特征注意离场'),COLOR00FFFF;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.8,0.05,0,'通道改变坚决离场'),COLORFFFF00;
DRAWTEXT_FIX(BARSTATUS=2 AND XD1,0.8,0.05,0,'下跌通道只宜观望'),COLORFFFF00;
DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.8,0.05,0,'短期底部准备进入'),COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.95,0,EXTERNSTR(0,1)),COLORFFFFFF;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容