通达信九转MACD副图指标 九转系列叠加在MACD 墨轩MACD 源码分享 附图

DIF:EMA(CLOSE,12)-EMA(CLOSE,26) COLORRED;
DEA:EMA(DIF,9) COLORGREEN;
MACD:(DIF-DEA)*2,COLORSTICK;
买线1:=LLV(MA(((C+L+O+H)/4),10),5);
卖线:=HHV(MA(((C+L+O+H)/4),5),5);
倍:=(卖线+买线1)/2;
涨停价:=ZTPRICE(REF(C,1),0.1) NODRAW;
跌停价:=DTPRICE(REF(C,1),0.1) NODRAW;
注:=CROSS(C,倍) NODRAW;
试:=H>=倍 AND C< 倍 AND (C>=O OR C>=REF(CLOSE,1)) NODRAW;
价:(卖线+买线1)/2 NODRAW;
涨停:=CLOSE/REF(CLOSE,1)>=1.095;
DIF4:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA4:=EMA(DIF4,9);
ZTB:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
启动版:=DIF4>-0.2 AND DIF4< 0.35 AND ZTB AND REF(ZTB,1)< 1 AND COUNT(DIF>=-0.01,5)=5;
DRAWTEXT(启动版,0,'妖'),COLORRED;
启动版1:=DIF4>-0.25 AND DIF4< 0.25 AND ZTB AND REF(ZTB,1)< 1 AND COUNT(DIF>=-0.01 OR DIF<=0.01,5)=5;
DRAWICON(启动版1,0,1);
VA1:=HHVBARS(MACD,BARSLAST(MACD< 0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高1:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLOR2F4F2F ;
VA31:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA41:=CROSS(BACKSET(CROSS(MACD,0),REF(VA31,1)+2),0.5);
BD:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));
A111:=C>REF(C,4);
NT:=BARSLASTCOUNT(A111);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,MACD*1.02,VAR2STR(AY,0)),COLORA67D3D;
DRAWTEXT(NT=9,MACD*1.02,'9'),COLORGREEN;
B1:=C< REF(C,4);
NT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,MACD*0.98,VAR2STR(AY1,0)),COLORA67D3D ;
DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED;
MACD120:REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORA67D3D ,LINETHICK1;
MACD250:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLOR545454 ,NODRAW;
XG:=NOT(REF(MACD120,1)=MACD120);
STICKLINE(XG,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD>=MACD250,MACD250,MACD,0,0),COLORMAGENTA;
大行情:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
DRAWICON(大行情,0,11);
轴:00,COLORWHITE,DOTLINE;
DRAWTEXT(REF(MACD,1)>0 AND MACD< 0,MACD-0.01,'1')COLORCDCDB4 ;
DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)< 0 AND MACD< 0,MACD-0.01,'2')COLORCDCDB4 ;
DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)< 0 AND REF(MACD,1)< 0 AND MACD< 0,MACD-0.01,'3')COLORCDCDB4 ;
DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)< 0 AND REF(MACD,2)< 0 AND REF(MACD,1)< 0 AND MACD< 0,MACD-0.01,'4')COLORCDCDB4 ;
DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)< 0 AND REF(MACD,3)< 0 AND REF(MACD,2)< 0 AND REF(MACD,1)< 0 AND MACD< 0,MACD-0.01,'5')COLORCDCDB4 ;
DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)< 0 AND REF(MACD,4)< 0 AND REF(MACD,3)< 0 AND REF(MACD,2)< 0 AND REF(MACD,1)< 0 AND MACD< 0,MACD-0.01,'6')COLORCDCDB4 ;
DRAWTEXT(REF(MACD,1)< 0 AND MACD>0,MACD-0.01,'1')COLORRED;
DRAWTEXT(REF(MACD,2)< 0 AND REF(MACD,1)>0 AND MACD>0,MACD-0.01,'2')COLORRED;
DRAWTEXT(REF(MACD,3)< 0 AND REF(MACD,2)>0 AND REF(MACD,1)>0 AND MACD>0,MACD-0.01,'3')COLORRED;
DRAWTEXT(REF(MACD,4)< 0 AND REF(MACD,3)>0 AND REF(MACD,2)>0 AND REF(MACD,1)>0 AND MACD>0,MACD-0.01,'4')COLORRED;
DRAWTEXT(REF(MACD,5)< 0 AND REF(MACD,4)>0 AND REF(MACD,3)>0 AND REF(MACD,2)>0 AND REF(MACD,1)>0 AND MACD>0,MACD-0.01,'5')COLORRED;
DRAWTEXT(REF(MACD,6)< 0 AND REF(MACD,5)>0 AND REF(MACD,4)>0 AND REF(MACD,3)>0 AND REF(MACD,2)>0 AND REF(MACD,1)>0 AND MACD>0,MACD-0.01,'6')COLORRED;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图