{金柱選股}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,25);
DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
MACD120:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,120)));
MACD250:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250)));
XG:NOT(REF(MACD120,1)=MACD120);
{大牛啟動}
大行情:NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
{金柱選股}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,25);
DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
MACD120:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,120)));
MACD250:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250)));
XG:NOT(REF(MACD120,1)=MACD120);
{大牛啟動}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,25);
DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
MACD120:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,120)));
MACD250:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250)));
大行情:NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;