您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

同花顺侃MA副图指标源码公式[同花顺公式]

相关标签:

 

同花顺侃MA副图指标源码

 

 

原理解析:


 

 来源:程序化99( WWW.CXH99.COM )

源码:

 

DRAWGBK(V>1,STRIP(RGB(70,100,255),RGB(110,130,255),1));
DIFF:=(EMA(CLOSE,6) - EMA(CLOSE,14))*100;
DEA:EMA(DIFF,5);
MACD:2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,8,0 ),COLOR00aaff;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,6.6,0 ),COLOR00bbff;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4.4,0 ),COLOR00ccff;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00ddff;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00eeff;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00ffff;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,8 ,0 ),COLOR0000aa;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6.6 ,0 ),COLOR0011bb;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4.4,0 ),COLOr0022cc;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0033dd;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2 ,0 ),COLOR0044ee;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0055ff;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOraa00bb;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,6.6 ,0 ),COLORbb11bb;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4.4,0 ),COLOrcc22bb;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3,0 ),COLORdd33bb;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2 ,0 ),COLORee44bb;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORff55bb;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOrffaa00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,6.6 ,0 ),COLORffbb11;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4.4,0 ),COLOrffcc22;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORffdd33;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2 ,0 ),COLORffee44;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORffff55;
PARTLINE(dea,C>MA(C,6) AND diff>=dea ,RGB(255,0,255)),linethick3;
PARTLINE(diff,C>MA(C,6) AND diff>=dea ,RGB(255,0,0)),linethick3;
PARTLINE(dea,C<MA(C,6),RGB(0,255,0)),linethick1;
PARTLINE(diff,C<MA(C,6),RGB(0,255,0)),linethick1;
TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');


 

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

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 1145508240  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!

 


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

相关文章

    没有相关内容