回复 2楼 的帖子
我 試了一個EA 如下:
//---- indicator parameters
extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;
................
..................
..............
// MacdCurrent=iMACD(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_CLOSE,MODE_MAIN,0);
// MacdPrevious=iMACD(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_CLOSE,MODE_MAIN,1);
// SignalCurrent=iMACD(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_CLOSE,MODE_SIGNAL,0);
// SignalPrevious=iMACD(NULL,0,FastEMA,SlowEMA,SignalSMA,PRICE_CLOSE,MODE_SIGNAL,1);
MacdCurrent=iCustom(NULL,0,"Leo_MACD",FastEMA,SlowEMA,SignalSMA,0,0);
MacdPrevious=iCustom(NULL,0,"Leo_MACD",FastEMA,SlowEMA,SignalSMA,0,1);
SignalCurrent=iCustom(NULL,0,"Leo_MACD",FastEMA,SlowEMA,SignalSMA,1,0);
SignalPrevious=iCustom(NULL,0,"Leo_MACD",FastEMA,SlowEMA,SignalSMA,1,1);
...................................
用Leo_MACD 取代 iMACD , 優化參數設為FastEMA 和SlowEMA , 優化執行完畢後無任何結果
log 檔案記錄:
09:34:39 MACD SampleL: optimization started
09:35:04 MACD SampleL: optimization stopped
09:35:04 There were 54 passes done during optimization, 54 results have been discarded as insignificant
請教高手 我那兒弄錯了 ? 感激