体育资讯网

您现在的位置是:首页 > 分类10 > 正文

分类10

彩色macd副图指标公式源码(神奇macd副图指标公式)

hacker2022-06-10 01:45:16分类1065
本文目录一览:1、通达信kdj,macd,rsi的底背离副图指标源码黄色显示低吸,柱条变红显示最佳买入,

本文目录一览:

通达信kdj,macd,rsi的底背离副图指标源码黄色显示低吸,柱条变红显示最佳买入,

可以编写kdj,macd,rsi 底背离公式,也可以在低吸德时候显示黄色,买入显示红色,但具体底背离判断方法要说明清楚,只要是底背离就涉及到高低点的位置确认问题,这个高低点确认属于典型的主观分析,还有对比判断的细节,例如macd背离可以是dif背离,可以是dea背离,还可以是macd柱高低背离面积背离。还可以是金叉位置背离,判断的位置条件,判断的内容条件,这些所有条件都说明清楚才能编写公式,而不是说个名字就可以编写公式了。

例如下图有kdj背离,macd背离,rsi背离的主图指标,幅图指标,选股位置提示指标截图。

编写一个通达信选股公式,MACD周线金叉

选股公式如下,选股周期选择周线,

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

XG:BARSLAST(CROSS(DIF,DEA))0 AND DIFDEA;

通达信MACD多彩做波段怎么这么准自用系列 副图源码

{MACD多彩做波段}{画线部分用到未来函数---供参考}

N:=9;M1:=3;M2:=3;

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K:=SMA(RSV,M1,1),LINETHICK2,COLORWHITE;

D:=SMA(K,M2,1),COLORYELLOW;

量能:=3*K-2*D,LINETHICK2;

RSIE:=EMA(量能,3);

DIFF : EMA(RSIE,12) - EMA(RSIE,26);

BBDIFF:=DIFF-REF(DIFF,1);

DEA : EMA(DIFF,9);

DRAWBAND(DIFF,RGB(255,105,180),DEA,RGB(34,139,34));

BBDEA:=DEA-REF(DEA,1);

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

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2,0),COLORFFFF00;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2,0),COLOR00FF00;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2,0),COLOR0099FF;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2,0),COLORRED;

0,COLORFF8855,LINETHICK2;

IF(DIFFDEA,DIFF,DRAWNULL),COLORRED,LINETHICK2;

IF(DEAREF(DEA,1),DEA,DRAWNULL),COLORMAGENTA;

DRAWICON(CROSS(DIFF,DEA),DEA,1);

DRAWICON(CROSS(DEA,DIFF),DEA,2);

低位金叉:=CROSS(DIFF,DEA) AND DIFF-0.1;

STICKLINE(低位金叉,0,-1.5,2,0),COLORFFFF00;

DRAWTEXT(低位金叉,-1.5,' 低位金叉'),COLORFFFF00;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,21)=1;

STICKLINE(二次金叉,0,-1,5,0),COLORFF00FF;

DRAWICON(二次金叉,DEA*1.2,11) ;

DRAWTEXT(二次金叉,-1,' 二次金叉'),COLORFF00FF;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

底背离:=REF(CLOSE,A1+1)CLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA);

STICKLINE(底背离,0,1.5,3,0),COLOR00FF00;

DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;

DRAWTEXT(底背离,2,' 底背离'),COLOR00FF00;

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

顶背离:=REF(CLOSE,A2+1)CLOSE AND REF(DIFF,A2+1)DIFF AND CROSS(DEA,DIFF);

STICKLINE(顶背离,0,2,3,0),COLORFF8855;

DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFF8855,LINETHICK2;

DRAWTEXT(顶背离,2,' 顶背离'),COLORFF8855;

发表评论

评论列表

  • 野欢秋酿(2022-06-10 11:50:37)回复取消回复

    IE:=EMA(量能,3);DIFF : EMA(RSIE,12) - EMA(RSIE,26);BBDIFF:=DIFF-REF(DIFF,1);DEA : EMA(DIFF,9);DRAWBAND(DIFF,RGB(255,105,180),D