股配资平台 20240428 通达信【殷富MACD】1副图3选股指标源码
发布日期:2024-07-29 10:37    点击次数:70
gskz 股市客栈 2024-04-28 23:09 江苏

➞通达信手机版导入指标公式步骤  ➞通达信手机版选股指标使用步骤股配资平台

➞通达信电脑版预警设置步骤

➞通达信电脑指标导入新建选股使用步骤

通达信【殷富MACD】副图选股指标源码

原因大家都知道,量在价先看启动,量价起升抓主升,价跌量缩可能洗,价跌量增加速跌,价横量升底部吸,等等。

然而,量柱每天高低不一,即便是把它做成量均线,也难以和价格均线融合在一个副图中,很难简单描绘出价格和量的趋势关系,为此,想到了MACD公式。

系统公式MACD在通达信中的代码:

DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA:EMA(DIF,MID);

MACD:(DIF-DEA)*2,COLORSTICK;

源码的意思简单,其实还是两条不同周期的线之间的距离 与 金叉死叉的关系,实际上还是均线系列公式,

如果经过一定处理,对应把量融合进来,做一条反的MACD线出来,量价关系趋势是不是就表达出来了。

于是乎,采取一定处理,改进了融合量的MACD指标。

图片

图片

图片

图片

图片

副图指标源码

GSKZ1:=IF(CLOSE/REF(CLOSE,1)>1.094 AND CLOSE=OPEN AND CLOSE=HIGH,HHV(VOL,20),VOL);

GSKZ2:=(-(CLOSE/10))*(EMA(GSKZ1,5)-EMA(GSKZ1,10));

GSKZ3:=EMA(GSKZ2,5);

GSKZ4:=(GSKZ2-GSKZ3)*2;

JDIF:GSKZ1*EMA(CLOSE,5)-GSKZ1*EMA(CLOSE,10),COLORRED;

JDEA:EMA(JDIF,5),COLORGREEN,LINETHICK2;

JMACD:(GSKZ2-GSKZ3)*2,COLORSTICK;

STICKLINE(JMACD>0,0,JMACD,0,0),COLORMAGENTA;

STICKLINE(JMACD>0,0,JMACD,3,0),COLOR990099;

STICKLINE(JMACD>0,0,JMACD,2,0),COLORBB00BB;

STICKLINE(JMACD>0,0,JMACD,1,0),COLORDD00DD;

STICKLINE(JMACD>0,0,JMACD,0.3,0),COLORMAGENTA;

STICKLINE(JMACD<0,0,JMACD,0,1),COLORFF8800;

STICKLINE(JMACD<0,0,JMACD,3.2,0),COLORFF2200;

STICKLINE(JMACD<0,0,JMACD,2.6,0),COLORFF4400;

STICKLINE(JMACD<0,0,JMACD,1.9,0),COLORFF6600;

STICKLINE(JMACD<0,0,JMACD,1.1,0),COLORFF8800;

STICKLINE(JMACD<0,0,JMACD,0.3,0),COLORFFAA00;

STICKLINE(GSKZ4<0,0,GSKZ4,0,0),COLORRED;

STICKLINE(GSKZ4<0,0,GSKZ4,3,0),COLOR000099;

STICKLINE(GSKZ4<0,0,GSKZ4,2,0),COLOR0000BB;

STICKLINE(GSKZ4<0,0,GSKZ4,1,0),COLOR0000DD;

STICKLINE(GSKZ4<0,0,GSKZ4,0.3,0),COLORRED;

STICKLINE(GSKZ4>0,0,GSKZ4,0,0),COLORGREEN;

STICKLINE(GSKZ4>0,0,GSKZ4,3,0),COLOR009900;

STICKLINE(GSKZ4>0,0,GSKZ4,2,0),COLOR00BB00;

STICKLINE(GSKZ4>0,0,GSKZ4,1,0),COLOR00DD00;

STICKLINE(GSKZ4>0,0,GSKZ4,0.3,0),COLORGREEN;

DRAWBAND(JDIF,RGB(111,11,0),JDEA,RGB(0,11,111));

DRAWBAND(GSKZ2,RGB(0,200,200),GSKZ3,RGB(200,200,0));

GSKZ2,COLORWHITE;

GSKZ3,COLORYELLOW,LINETHICK2;

JDIF,COLORRED;

JDEA,COLORGREEN;

GSKZ5:=CROSS(JDIF,JDEA) AND GSKZ2<GSKZ3 AND GSKZ3<0 AND JDEA>0;{股票指标公式网www.gpzbgs.com}

DRAWTEXT(GSKZ5,JDIF,7334),COLORYELLOW;

GSKZ6:=JDIF>JDEA AND JDEA>0 AND GSKZ2<GSKZ3 AND GSKZ3<0;

DRAWTEXT(GSKZ6 AND COUNT(GSKZ6,10)=1,JDIF,7437),COLORYELLOW;

DRAWICON(CROSS(JDIF,GSKZ3) AND GSKZ3<REF(GSKZ3,1),GSKZ2,34);

公:DRAWNULL,COLORCCCCCC;众:DRAWNULL,COLORCCCCCC;号:DRAWNULL,COLORCCCCCC;股市客栈:DRAWNULL, COLORFF00FF;

【殷富MACD选1选股指标】

GSKZ1:=IF(CLOSE/REF(CLOSE,1)>1.094 AND CLOSE=OPEN AND CLOSE=HIGH,HHV(VOL,20),VOL);

GSKZ2:=(-(CLOSE/10))*(EMA(GSKZ1,5)-EMA(GSKZ1,10));

GSKZ3:=EMA(GSKZ2,5);

GSKZ4:=(GSKZ2-GSKZ3)*2;

GSKZ5:=GSKZ1*EMA(CLOSE,5)-GSKZ1*EMA(CLOSE,10);

GSKZ6:=EMA(GSKZ5,5);

GSKZ7:=(GSKZ2-GSKZ3)*2;

GSKZ8:=CROSS(GSKZ5,GSKZ6) AND GSKZ2<GSKZ3 AND GSKZ3<0 AND GSKZ6>0;{股票指标公式网www.gpzbgs.com}

GSKZ9:=GSKZ5>GSKZ6 AND GSKZ6>0 AND GSKZ2<GSKZ3 AND GSKZ3<0;

GSKZ10:=GSKZ9 AND COUNT(GSKZ9,10)=1;

GSKZ11:=CROSS(GSKZ5,GSKZ3) AND GSKZ3<REF(GSKZ3,1);

GSKZ8;

【殷富MACD选2选股指标】

GSKZ1:=IF(CLOSE/REF(CLOSE,1)>1.094 AND CLOSE=OPEN AND CLOSE=HIGH,HHV(VOL,20),VOL);

GSKZ2:=(-(CLOSE/10))*(EMA(GSKZ1,5)-EMA(GSKZ1,10));

GSKZ3:=EMA(GSKZ2,5);

GSKZ4:=(GSKZ2-GSKZ3)*2;

GSKZ5:=GSKZ1*EMA(CLOSE,5)-GSKZ1*EMA(CLOSE,10);

GSKZ6:=EMA(GSKZ5,5);

GSKZ7:=(GSKZ2-GSKZ3)*2;

GSKZ8:=CROSS(GSKZ5,GSKZ6) AND GSKZ2<GSKZ3 AND GSKZ3<0 AND GSKZ6>0;

GSKZ9:=GSKZ5>GSKZ6 AND GSKZ6>0 AND GSKZ2<GSKZ3 AND GSKZ3<0;

GSKZ10:=GSKZ9 AND COUNT(GSKZ9,10)=1;

GSKZ11:=CROSS(GSKZ5,GSKZ3) AND GSKZ3<REF(GSKZ3,1);

GSKZ10;

【殷富MACD选3选股指标】

GSKZ1:=IF(CLOSE/REF(CLOSE,1)>1.094 AND CLOSE=OPEN AND CLOSE=HIGH,HHV(VOL,20),VOL);

GSKZ2:=(-(CLOSE/10))*(EMA(GSKZ1,5)-EMA(GSKZ1,10));

GSKZ3:=EMA(GSKZ2,5);

GSKZ4:=(GSKZ2-GSKZ3)*2;

GSKZ5:=GSKZ1*EMA(CLOSE,5)-GSKZ1*EMA(CLOSE,10);

GSKZ6:=EMA(GSKZ5,5);

GSKZ7:=(GSKZ2-GSKZ3)*2;

GSKZ8:=CROSS(GSKZ5,GSKZ6) AND GSKZ2<GSKZ3 AND GSKZ3<0 AND GSKZ6>0;{股票指标公式网www.gpzbgs.com}

GSKZ9:=GSKZ5>GSKZ6 AND GSKZ6>0 AND GSKZ2<GSKZ3 AND GSKZ3<0;

GSKZ10:=GSKZ9 AND COUNT(GSKZ9,10)=1;

GSKZ11:=CROSS(GSKZ5,GSKZ3) AND GSKZ3<REF(GSKZ3,1);

GSKZ11;股配资平台

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报。