Maybe does daily trade happen between 0:00 - 23:59?
Anyway Here is the interesting test result.
It says that Test period 03.01.2013-03.01.2013
Annual return 3193% with only 1 trade.
Number of trades 1 (1461/year)
Will this strategy trade 1461 trade in 2013?
Is it a bug? or just because of imcomplete dates?
I don't understand.
Please test it with EUR/USD, 15 min TF only from 2013.
Thanks in advance.
function run(){
StartDate = 2013;
int FastPeriod = 8;
int SlowPeriod = 21;
int SignalPeriod = 9;
vars Close = series(priceClose());
MACD(Close,FastPeriod,SlowPeriod,SignalPeriod);
vars MainLine = series(rMACD);
vars SignalLine = series(rMACDSignal);
vars Hist = series(rMACDHist);
if(crossOver(MainLine,SignalLine)){
exitShort();
enterLong();
}
if(crossUnder(MainLine,SignalLine)){
exitLong();
enterShort();
}
}