I have problem while backtesting multiple moving averages using muitple intervals.
The problem is backtesting execution of the lower interval moving average executes only for last few bars.
For example i have a 60 min moving average and want to enter trade only 5 min moving average is in sync with 60 min. The code executes fine . But the result is limited. The trades are taken only for the last 25-65 bars of 60 minute. All the trades before that aren't showing up.
This is the piece of code i am using to call multiple interval moving avg::
Then i use getseries(xMA)
The result is limited only for a few bars loaded.
ALso the same code works with limited results on eSignal 11 but not on eSignal 10.6(it retrives bars but doesn't display backtest results).
Please help.
The problem is backtesting execution of the lower interval moving average executes only for last few bars.
For example i have a 60 min moving average and want to enter trade only 5 min moving average is in sync with 60 min. The code executes fine . But the result is limited. The trades are taken only for the last 25-65 bars of 60 minute. All the trades before that aren't showing up.
This is the piece of code i am using to call multiple interval moving avg::
Code:
Var vSymbol = Symbol+","+15;
Code:
xMA = eval(ema)(5, eval("close")(sym(vSymbol)));
Code:
xMA1= eval(ema)(15, eval("high")(sym(vSymbol)));
Code:
cl5=getSeries(xMA);
Code:
hi5=getSeries(xMA1);
ALso the same code works with limited results on eSignal 11 but not on eSignal 10.6(it retrives bars but doesn't display backtest results).
Please help.
Comment