{MACD底背共振選股-通達信 SDCCN}
{選股思路:小周期MACD底背,,大周期MACD放大}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
N:=4;
DIF1:=EMA(CLOSE,12*N)-EMA(CLOSE,26*N);
DEA1:=EMA(DIF1,9*N);
MACD1:=2*(DIF1-DEA1);
{小周期MACD底背}
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
MACD底背:=L<REF(L,A1+1) AND
DEA>REF(DEA,A1+1) AND CROSS(DIF,DEA) AND
A1>=5 AND DEA<0;
{大周期MACD放大}
MACD放大:=MACD1>REF(MACD1,1);
XUANGU:MACD底背 && MACD放大;
|