多周期MACD(通达信),DDV_YFQJ_JLJ副图局部更正版(通达信)
admin888
|多周期MACD(通达信),DDV_YFQJ_JLJ副图局部更正版(通达信)
多周期MACD(通达信)
{SHORT 1 200 12 LONG 5 600 26 MID 1 200 9}VV:=C;
Zdif:(ema(VV,30)-Ema(VV,90))/CONst(EMA(VV,90))*350,COLOR333399,LINETHICK1;
ZDEA:EMA(ZDIF,20),COLORMAGENTA,LINETHICK1;
DRAWBAND(ZDIF,RGB(99,00,00),ZDEA,RGB(0,0,99));
DIF:(EMA(VV,SHORT)-EMA(VV,LONG))/CONST(EMA(VV,LONG))*1000,COLOR333399,LINETHICK1;
DEA:EMA(DIF,MID),COLORMAGENTA,LINETHICK1;
STICKLINE(1,0,0,4,-1),COLOR993399;
macd:(DIF-DEA)*2,COLORSTICK;
D02:=BacKSET(DIF<=REF(DIF,1),2);
RDIF:IF(D02,DIF,DRAWNULL),COLORGRAY,LINETHICK1;
D01:=BACKSET(DEA<=REF(DEA,1),2);
RDEA:IF(D01,DEA,DRAWNULL),COLORGRAY,LINETHICK1;
DDV_YFQJ_JLJ副图局部更正版(通达信)
{副图名:ddv_YFQJ_JLJ ; TDX版,基本通用版};
{参数设置:vol_AMO(1,2,1); 1为VOL,2为AMOUNT;注意下
划线用全角下划线};
{坐标线位置:自动 ;额外Y轴分界 值1=0 };
{TDX版,中高分辨率屏幕};
{解析与改进部分};
VOL_AMO:=1;{1~2,1};
EPSL:=0.0001;
TJ1:=H=L AND C>REF(C,1);
量_价:IF(VOL_AMO=1,VOL,AMOUNT),
stICK,COLOREEFFEE;
STICKLINE(C>OPEN,0,量_价,1.5,-1),COLOR1133FA;
STICKLINE(C<=OPEN,0,量_价,2.0,-1),COLORDFDF13; {**2};
EP:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
ZL:=3*((H-L)+IF(H=L,EPSL,0)); {**3};
ddx_YFQJ_JLJ:=((2*C-(H+L))+EP)/ZL;
买卖差:DDX_YFQJ_JLJ*量_价,COLOR13AADD,NODRAW;
DDX%:DDX_YFQJ_JLJ*100,NODRAW;
主动买:(量_价+买卖)/2,COLOR1133AA,NODRAW;
主动卖:(量_价-买卖差)/2,COLORDFDF13,NODRAW;
STICKLINE(1,0,主动买,2.2,1),COLOR1133DE;
{买卖差(DDV)实心柱};
JDZ:=Abs(买卖差);
STICKLINE(主动买>主动卖,0,JDZ,2,0),COLOR13BCE8;
STICKLINE(主动买>主动卖,0,JDZ,1,0),COLOR13CDE8;
STICKLINE(主动买>主动卖,0,JDZ,0.5,0),COLOR13DEE8;
STICKLINE(主动买<主动卖,0,JDZ,2,0),COLOR339933;
STICKLINE(主动买<主动卖,0,JDZ,1,0),COLOR33BB33;
STICKLINE(主动买<主动卖,0,JDZ,0.5,0),COLOR33DD33;
{买卖差累积曲线};
MMC:=IF(BARSCOUNT(C)>0,买卖差,0);{上市第一颗不要};
短:SMA(SUM(MMC,5),6,1)/1.3,COLORABCCBA,LINETHICK2;
中:Sma(SUM(MMC,34),9,2)/4,COLOR13EFEF,LINETHICK1;
长:SMA(SUM(MMC,55),9,2)/6.5,COLORFFAA55,LINETHICK1;
强:IF(短>REF(短,1),短,MA(短,256000)),COLOR1133EF,LINETHICK2;
{更正说明}{**1;去掉了 TJ3:=H=L AND C=REF(C,1); };
{**2;更正:加“=”号,改小柱宽,显出买方和卖方界线,改虚线不刺眼};
{**3;更正、简化了分母部分的(
涨停、跌停、平盘一字)处理};
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。