MACD飘红指标 (源码)
2012-08-13 09:03:00来源:本站整理浏览:120
大智慧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;
金叉后:k>d;
kd空排:k<=d;
多头排列:ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
MACD飘红:DIFF>DEA;
创新高:HHV(HIGH,2)>= HHV(HIGH,20);{2天创20天新高};
大于30:C>MA(C,30);
- 上一篇公式:DMI金死叉指标 (源码)
- 下一篇公式:低吸低涨主图指标 (源码)