您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

提前1-2天预测MACD今明两日的金(死)叉公式 指标 选股 源码[大智慧公式]

提前1-2天预测MACD今明两日的金(死)叉公式 指标 选股 源码

 

 

{参数}

N1:=12;N2:=26;M:=9;DIFF: EMA(C,N1)-EMA(C,N2),COLORBB00BB,LINETHICK2,LAYER0;
DEA:EMA(DIFF,M),COLOR00BB00,LINETHICK2,LAYER0;
MACD: (DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,8,0 ),COLOR003333;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,7,0 ),COLOR004444;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,6,0 ),COLOR005555;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,5,0 ),COLOR007777;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR009999;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR00BBBB;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00DDDD;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00FFFF;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,8 ,0 ),COLOR000033;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,7 ,0 ),COLOR000044;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6 ,0 ),COLOR000055;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,5 ,0 ),COLOR000077;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR000099;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3 ,0 ),COLOR0000BB;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2 ,0 ),COLOR0000DD;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1 ,0 ),COLOR0000FF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOR333333;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,7,0 ),COLOR444444;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLOR555555;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,5,0 ),COLOR777777;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLOR999999;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLORBBBBBB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORDDDDDD;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFFFFF;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOR333300;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,7,0 ),COLOR444400;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLOR555500;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,5,0 ),COLOR777700;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLOR999900;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLORBBBB00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORDDDD00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFFF00;
今日交叉价:((REF(EMA(CLOSE,N2),1)*(N2-1)*(N1+1))+(REF(DEA,1)*(N1+1)*(N2+1))-(REF(EMA(CLOSE,N1),1)*(N1-1)*(N2+1)))/(2*(N2-N1)),PRECIS2,LINETHICK0;
DRAWFLAGTEXT(DEA<DIFF AND MACD<REF(MACD,1),DIFF,'今日死叉价位预测: '+NUMTOSTRN(今日交叉价,2)),ALIGN2,ColorBLUE;
DRAWFLAGTEXT(DEA>DIFF AND MACD>REF(MACD,1),DIFF,'今日金叉价位预测: '+NUMTOSTRN(今日交叉价,2)),ALIGN2,ColorRED;
{www.cxh99.com}
明日交叉价:((EMA(CLOSE,N2)*(N2-1)*(N1+1))+(DEA*(N1+1)*(N2+1))-(EMA(CLOSE,N1)*(N1-1)*(N2+1)))/(2*(N2-N1)),PRECIS2,LINETHICK0;
DRAWFLAGTEXT(DEA<DIFF AND MACD<REF(MACD,1),DIFF,'明日死叉价位预测: '+NUMTOSTRN(明日交叉价,2)),ALIGN2,ColorBLUE;
DRAWFLAGTEXT(DEA>DIFF AND MACD>REF(MACD,1),DIFF,'明日金叉价位预测: '+NUMTOSTRN(明日交叉价,2)),ALIGN2,ColorRED;
{程序化交易 www.cxh99.com }
 

预测MACD今明两日的金(死)叉——帮你提前做好准备本公式可以预测MACD今明两日的金(死)叉,甚至可以提前1-2天告之金(死)叉的发生,帮你提前做好准备,请笑纳。
使用方法:移动十字光标至MACD银(金)柱时,显示预测价位;参数根据个人的喜好可以调整。
提前1-2天预测MACD今明两日的金(死)叉公式 指标 选股 源码

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容