I was running a simple strategy test to become familiar with the various components and have a strategy that goes long on three consecutive Up mars where the Hog is greater then the open, and exits on the first down bar, close less then the open. attached is the strategy builder code. In addition the first screen shot is the trades painted on the screen using historical data. The second ws the fills during a tick replay. As you can see for entry the historical fill occurs on the open of the bar following the third Up bar. In market replay the fill occurs three or 4 bars later.
In particular I'm talking about the correct Sell @ 38120 to establish the short position after the third up bar the Sell price on the market replay
is @ 38080 which the back test show as a $200 profit
Same is true of the exits, the look correct in the historical trade but lagging for some reason in market replay.
Thank you.
glen
Comment