however, the solution proposed doesn't solve the problem!
------------------------------------------------------------------------------------------------------------
I am running EnterLongLimit() which sometimes enters a position where the price isn't right ! the ticker simply doesn't reach the limit-price, but the position is filled nonetheless.
At first i thought this was a problem with my data provider, so I've resorted to using the sample data from BackTestData.com. Sample data can be downloaded from
This yielded the same result. The position is filled at a price much higher than the actual price shown in chart-data. This is also shown in the attached screenshot where the order is executed much higher than the graph itself.
I've also attached the code which is very straight forward.
First import the data in the zip file, then run the Backtest on the ticker at 5 minutes bars, on 12/23/2012.
Note that running the Liberal Fill-Type as suggested in the above thread, enters the position at a price on the graph, but it is well BELOW the requested limit.
Comment