MACD:=( MACD.DIF - MACD.DEA )*2*60;
JCCOUNT:=COUNT(CROSS( MACD.DIF , MACD.DEA ),BARSLAST( MACD.DEA =0));
二次金叉:=CROSS( MACD.DIF , MACD.DEA ) AND MACD.DEA 0 AND COUNT(JCCOUNT=2,21)=1;
A101:=BARSLAST(REF(CROSS( MACD.DIF , MACD.DEA ),1));
底背离:=REF(CLOSE,A101+1) CLOSE AND MACD.DIF REF( MACD.DIF ,A101+1) AND CROSS( MACD.DIF , MACD.DEA
XG:二次金叉 AND 底背离;