Forum

Inconsistent iBarShift() return values within Startegy Tester

Hello to All, I am seeing inconsistent results using iBarShift() within the Strategy Tester that I cannot explain. This problem arose whilst using a library that works very well for more current dates but is reporting incorrect results for earlier historical dates. Unfortunately my specific use case

PositionModify() changing position's open price in Strategy Tester

Hi The test code below opens a buy trade at market price with a stop loss and take profit price 10 points from the market rate. If the market rate returned from the broker differs from the original market rate requested (ie. slips) the test code below uses PositionModify() method to modify the stop