I am backtesting a strategy (with NT7 beta14) on a daily timeframe. Trying to improve results I have decided to include a entry condition based on the weekly chart EMA of the same instrument.
For that, I am trying to use multi frame strategy. But now all the stoploss and profit targets have stop working correctly.
Before changing any entry condition, I have just added these 2 lines of code to see if I was able to replicate the same results as before, but I am not:
In the Initialize() method:
Add(PeriodType.Week, 1);
And in the OnBarUpdate():
if (BarsInProgress != 0)
return;
These lines do not change any entry / exit condition, but since I have included them in the code I am getting very weird results.
Thanks for your help!
Comment