MACD线和KDJ线(源码 副图 通达信)无未来
修改后的MACD和KDJ同时金叉(尤其是0轴上金叉)结合其他指标必抓大牛,最起码买进不会让你赔钱,除非遇到极端行情,若两指标没同时金叉,80%都是诱多买入谨慎,该指标非我原创,那位老师原创的多年了实在想不起来了
macd源码:
{参数设置}
SHORT: 2 200 6
LONG:2 200 13
MID: 2 200 5
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
A:=BARSLAST(FILTERX(MACD=HHV(MACD,BARSLAST(MACD<0)),BARSLAST(MACD<0)));
B:=REF(MACD,A);
TT:=A+1;
ZTT:=REF(TT,TT)+TT;
KK:=REF(MACD,ZTT-1);
IF(CURRBARSCOUNT<CONST(ZTT+1),REFDATE(KK,DATE),DRAWNULL),COLORGREEN;
------------------------------
kdj源码
{参数设置}
N: 2 90 39
M1: 2 30 3
M2: 2 30 3
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
------------------------------
选股预警公式
DIF:=EMA(CLOSE,6)-EMA(CLOSE,13);
DEA:=EMA(DIF,5);
AA:=CROSS(DIF,DEA);
RSV:=(CLOSE-LLV(LOW,39))/(HHV(HIGH,39)-LLV(LOW,39))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BB:=CROSS(J,K);
XG:AA AND BB;