Hello
Recently I decided to backtest a trading system that I have with me for over a year now and most of the trade that the system indicates on screen have been good.
So, modified AFL and added code to set predefined variables such as Buy, Sell, BuyPrice, SellPrice etc etc into the AFL.
Next, when backtesting was run, it took Buys on the date as indicated with Buy variable (coincides with arrows on screen) but it often rejects BuyPrice and shows bought at some other price.
In case of Sell, it gets worse. My UI is showing exit at 27 Jul 2012 whereas BT exited on 23 July 2012. I've verified that my Sell variable was not set on 23rd but was set on 27th.
Prices had dipped on 23rd but my SL (as defined into SellPrice) was not hit. I cannot even figure out where it got Sell Price from. It is not what I've set in Sell Price Array. Actual Price on back test report is at least 10 points below the Low and 7 points above where I had SL on that day.
Settings of back testing allow me to pick prices from dropdown but my prices are not any of those 5 listed.
Recently I decided to backtest a trading system that I have with me for over a year now and most of the trade that the system indicates on screen have been good.
So, modified AFL and added code to set predefined variables such as Buy, Sell, BuyPrice, SellPrice etc etc into the AFL.
Next, when backtesting was run, it took Buys on the date as indicated with Buy variable (coincides with arrows on screen) but it often rejects BuyPrice and shows bought at some other price.
In case of Sell, it gets worse. My UI is showing exit at 27 Jul 2012 whereas BT exited on 23 July 2012. I've verified that my Sell variable was not set on 23rd but was set on 27th.
Prices had dipped on 23rd but my SL (as defined into SellPrice) was not hit. I cannot even figure out where it got Sell Price from. It is not what I've set in Sell Price Array. Actual Price on back test report is at least 10 points below the Low and 7 points above where I had SL on that day.
Settings of back testing allow me to pick prices from dropdown but my prices are not any of those 5 listed.