dea的各阶导数背离(源码,附图,说明)介绍
dea的各阶导数背离(源码,附图,说明)
DIF12:=(EMA(C,6)-EMA(C,13))/((EMA(C,6)+EMA(C,13))/2)*1000;
DEA12:=EMA(DIF12,5);
KDIF12:=3*(DIF12-DEA12);
KDEA12:EMA(KDIF12,5);{2阶导数}
N:=14;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
RIFF:=EMA(RSI,6) - EMA(RSI,13);
REA:(EMA(RIFF,5))*10;{1阶导数}
DIF:=EMA(C,6)-EMA(C,13);
DEA:(EMA(DIF,5))*100;{dea本身乘系数}
一般来说趋势发生转向的顺序是 股价先转向 然后是2阶导数 然后1阶导数 然后 dea本身。
gd16339