网友求助:

主力买卖指标,请老师帮忙做个MMS线在MMM线下上拐但没有金叉的选股公式.

谢谢!

LC :=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
MMS:MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100,3);
MMM:EMA(MMS,3);
MML:MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100,3);
 

 

 

解答如下:

LC:=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
MMS:=MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100,3);
MMM:=EMA(MMS,3);
XG:MMS>REF(MMS,1) AND REF(MMS,1)<REF(MMS,2) AND MMS<MMM;