条件:1.股价经过不低于20天的调整(MACD死叉后不低于20天).
2.股价回升MACD再度金叉。
3.MACD再度金叉15天后,DIF(白线)与DEA(黄线)值的差不大于正负0.05.
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
T1:=BARSLAST(CROSS(DEA,DIFF))>=20;
T2:=BARSLAST(CROSS(DIFF,DEA))>=15;
T3:=ABS(DIFF-DEA)<=0.05;
T1 AND T2 AND T3;
1229322377.jpg
|