I am using a code to test my semi mechanical trading system.
This code marks buy/sell/short/cover arrows when I press appropriate
tab in properties window during bar replay.
And at the end of bar replay,when I run backtest in AA window of AB,it
displays PnL and other statistics.
While checking these results,I found that last trade of 20th Dec. was
marked as loss making trade while it was actually a profitable trade.
When I took close look at chart and back testing results,I found a
mismatch on this bar.However all other trades have been correctly
displayed in BT.
My last trade was just before market close (square off of long
trade).This trade was correctly marked on chart on last bar of the
day.but BT results shows that trade was squared up at 4538 (on 3.15
P.M. bar). I am not able to find reason for mis-match.Pl. guide.
http://img15.imageshack.us/img15/884...tradingmis.png
http://imageshack.us/photo/my-images...radingmis.png/
Uploaded with ImageShack.us
This code marks buy/sell/short/cover arrows when I press appropriate
tab in properties window during bar replay.
And at the end of bar replay,when I run backtest in AA window of AB,it
displays PnL and other statistics.
While checking these results,I found that last trade of 20th Dec. was
marked as loss making trade while it was actually a profitable trade.
When I took close look at chart and back testing results,I found a
mismatch on this bar.However all other trades have been correctly
displayed in BT.
My last trade was just before market close (square off of long
trade).This trade was correctly marked on chart on last bar of the
day.but BT results shows that trade was squared up at 4538 (on 3.15
P.M. bar). I am not able to find reason for mis-match.Pl. guide.
http://img15.imageshack.us/img15/884...tradingmis.png
http://imageshack.us/photo/my-images...radingmis.png/
Uploaded with ImageShack.us