一个盘中预警公式 周期金叉
条件:
1.RIS周期4.21.21,有4金叉21
2.DPO周期4.8.4,DPO金叉MADPO
3.EMV周期8.4,EMV金叉MAEMV
满足两个条件或全部满足预警,或者选股也可以
N1:=4;N2:=21;N:=4;M:=8;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
A:=CROSS(RSI1,RSI2);
DPO:=CLOSE-REF(MA(CLOSE,N),N/2+1);
MADPO:=MA(DPO,M);
B:=CROSS(DPO,MADPO);
VOLUME:=MA(VOL,N)/VOL;
MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);
EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,8),8);
MAEMV:=MA(EMV,4);
D:=CROSS(EMV,MAEMV);
A+B+D>=2;
636266125.jpg
|