I entered a few trades where gave the 2nd data series as the parameter in the EnterLong/EnterShort methods. However all of the trade logic is done at end-on-bar for the primary data series (the range bars).
Looking back over my results, I saw that the executions were not being done at the end of the bar, but in the middle of the bar. Thus, I added the following 2 print statements:
Print("TradeLogicEndOfBar called at " + Time[0] + " with Close[0] = " + Close[0]);
Print("Closes[1][0] is: " + Closes[1][0]);
TradeLogicEndOfBar called at 1/4/2013 8:30:06 AM with Close[0] = 867.2
Closes[1][0] is: 868.4
That's a huge difference in prices. Based on the help guide regrading multi-time frames, since the 2 are being called right together, they should be the same price as this is being called at OnBarUpdate when BarsInProgress == 0.
Data is from DTN.
I've attached a couple of screenshots showing details.
Thanks so much for your time.
Shane

Comment