源码如下:
kdjmacd==与众不同,请试试!
{kdjmacd}
RSV21:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*200-100)/2;
K21:SMA(SMA(RSV21,3,1),3,1),COLORffffff,LINETHICK3;
D21:MA(EMA(K21,3),3),COLOR00ffff,LINETHICK3;
J21:3*K21-2*D21,COLORfffaaa,LINETHICK3;
STICKLINE(J21>0,J21,0,2,0),COLORff00ff;
STICKLINE(J21<0,J21,0,2,0),COLORff9900;
空头j:(-(3*K21-2*D21)),COLORGREEN,LINETHICK2;
空头k:(-(K21)),COLOR00aa00,LINETHICK2;
空头d:(-(D21)),COLOR009900,LINETHICK2;
DIFF:=EMA(CLOSE,10)-EMA(CLOSE,26)*100;
DEA:=EMA(DIFF,3);
多头MACD:(-3*(DIFF-DEA)),LINETHICK2,COLORRED;
空头MACD:(3*(DIFF-DEA)),LINETHICK2,COLORff99ff;
STICKLINE(多头MACD>0,多头MACD,0,1,0),COLORRED,LINETHICK1;
STICKLINE(多头MACD<0,多头MACD,0,1,0),COLOR00FF00,LINETHICK1;
STICKLINE(空头MACD>0,空头MACD,0,1,0),COLORff9900,LINETHICK1;
STICKLINE(空头MACD<0,空头MACD,0,1,0),COLORff99ff,LINETHICK1;
短买:IF((CROSS(K21,D21) AND K21<0 ),10,0),COLORRED,LINETHICK0;
DRAWICON((CROSS(K21,D21) AND K21<0 ),K21,1);
主升浪:IF(CROSS(多头MACD,空头j),25,0),COLOR00FFFF,LINETHICK2;
0;50;20;-50;-20;
{顶尖财经网www.58188.com整理}
|
|
|
|
|