macd多头排列改成大智慧用
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

A1:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1);
A2:=MACD.DIF>REF(MACD.DIF,1) AND MACD.DEA>REF(MACD.DEA,1) AND MACD.DIF>MACD.DEA;
A3:=KDJ.J>REF(KDJ.J,1) AND KDJ.K>REF(KDJ.K,1) AND KDJ.D>REF(KDJ.D,1) AND KDJ.J>KDJ.K AND KDJ.K>KDJ.D;
A4:=MA(V,5)>MA(V,10) AND MA(V,10)>MA(V,30) AND MA(V,5)>REF(MA(V,5),1) AND MA(V,10)>REF(MA(V,10),1) AND MA(V,30)>REF(MA(V,30),1);
多头排列:A1 AND A2 AND A3 AND A4;
 
 
解答如下:
DIF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
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;
A1:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1);
A2:=DIF>REF(DIF,1) AND DEA>REF(DEA,1) AND DIF>DEA;
A3:=J>REF(J,1) AND K>REF(K,1) AND D>REF(D,1) AND J>K AND K>D;
A4:=MA(V,5)>MA(V,10) AND MA(V,10)>MA(V,30) AND MA(V,5)>REF(MA(V,5),1) AND MA(V,10)>REF(MA(V,10),1) AND MA(V,30)>REF(MA(V,30),1);
多头排列:A1 AND A2 AND A3 AND A4;

 


选股票看什么指标最好 >股票指标网