▓用KDJ的【J】表示MACD确定波段买卖比单独用【KDJ】【MACD】要好的多.加通达信
-
相关简介:▓用KDJ的【J】表示MACD确定波段买卖比单独用【KDJ】【MACD】要好的多.▓ ------------其中参数是可变的.你可以按你认为好就可以----------------如果你用通达信软件因为都是标准公式你略微变变就可以-那位高手愿意改为通达信的.也可以在这表示表示.我想一定会得到大家喜欢的.因为我根本不用通达信软件.就别在这显摆了.谢谢你进来看看.别忘了回复表示表示你的看法.就是不要不声不响,对吗. 【希望你顺势买卖.炒股盈利】. 源码如下;--------------------
-
文章来源:股海网作者:股海网发布时间:2016-03-12浏览次数:
▓用KDJ的【J】表示MACD确定波段买卖比单独用【KDJ】【MACD】要好的多.▓ ------------其中参数是可变的.你可以按你认为好就可以----------------如果你用通达信软件因为都是标准公式你略微变变就可以-那位高手愿意改为通达信的.也可以在这表示表示.我想一定会得到大家喜欢的.因为我根本不用通达信软件.就别在这显摆了.谢谢你进来看看.别忘了回复表示表示你的看法.就是不要不声不响,对吗. 【希望你顺势买卖.炒股盈利】.
源码如下;-------------------------------------------------------------------------------------
{KDJ的MACD}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFF:EMA(J,8) - EMA(J,16),COLOR00FF00,LAYER0;;
DEA:EMA(DIFF,5),COLORFF9900,LAYER0;;
MACD:2*(DIFF-DEA), COLORSTICK;;
0,COLORff9900,DOTLINE;
FILLRGN(DIFF,DEA,DIFF>DEA,RGB(80,0,80),DIFF<DEA,RGB(0,120,60)),LAYER7;
TYP:FORCAST(((2*C+H+L)/4*0.618+C*0.382),3),color00FFFF,linethick0;{FORCAST}
AAX:=(TYP-ma(TYP,9))/ma(TYP,9)*100;
VARM:=MIN(COUNT(TYP,0),9);
AAX1:=EMA(AAX,VARM) *VARM;
AAX2:=MA(AAX1,3);
AAX3:=MA(AAX1,5);
卖:AAX3>10 AND AAX1<REF(AAX1,1) AND CROSS(AAX2,AAX1),linethick0;
减仓:filter(卖,5) ,PRECIS0,linethick0;
VERTLINE(减仓>0,2),LAYER0,COLOR00ffFF;
drawtext(减仓,10*1.6,'◆'),ALIGN2,colorcyan;
drawtext(减仓,10*1.5,'◇'),ALIGN1,color00FF00;
drawtext(减仓,10*1.59,'◆'),ALIGN0,colorcyan;
DRAWTEXTABS(5,5,'■现在KDJ的参数是:N=9,M1=3,M2=3;'),COLOR00FFFF,LINETHICK3,LAYER0;
DRAWTEXTABS(5,25,'■【KDJ】的【MACD】的参数是:LONG=8,LONG=16,M=5;'),COLOR0099FF,LINETHICK3,LAYER0;
下面是用于通达信的源码;-------------我试着编辑通达信的大家看看能不能用.请高人帮助改改好吗.我就这么点能耐-------【谢谢.仅供参考】
{KDJ的MACD}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFF:EMA(J,8) - EMA(J,16),COLOR0044FF;
DEA:EMA(DIFF,5),COLOR00FF00;
DRAWBAND(DIFF,RGB(255,80,0),DEA,RGB(0,255,100));
MACD:2*(DIFF-DEA), COLORSTICK;
0,COLORFF9900,DOTLINE;
{卖}
KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);
AAX:=(KC-MA(KC,9))/MA(KC,9)*100;
VAR0:=MIN(EXIST(KC,55),9);
AAX1:=EMA(AAX,VAR0)*VAR0;
AAX2:=MA(AAX1,3);
AAX3:=MA(AAX1,5);
DRAWTEXT(AAX3>10 AND AAX1<REF(AAX1,1) AND CROSS(AAX2,AAX1) ,12,'卖'),COLOR00FFFF,LINETHICK3;
DRAWTEXT(AAX3>10 AND AAX1<REF(AAX1,1) AND CROSS(AAX2,AAX1) ,15,'◆'),COLOR0000FF,LINETHICK3;
DRAWTEXT_FIX(1,0.02,0,0,'■现在KDJ的参数是:N=9,M1=3,M2=3;'),COLOR0000FF;
DRAWTEXT_FIX(1,0.02,0.1,0,'■【KDJ】的【MACD】的参数是:LONG=8,LONG=16,M=5;'),COLOR00FF00;