i do not want to use the "commenly and incorrectly recommended "
FirstTickOfBar" as part of barupdate because
1. barupdate is called only when there is a change in price.
2. if the price closes @ high of the bar, the next time i will get a barupdate is when the price moves even higher.
so my strategy of buy stop @ high of last bar will trigger error from IB becaues the stop price will be lower than the market price.
I also dont wnat to use onmarketupdate for such a small issue. So my plan is to run a timer that will raise a event at the end of the bar. so i will get a event exactly @ 2009-05-11 12:50:00
Now if i want to set a buystop High[1], the new bar obect needs to have been created.
So would the bar object be created automatically at the end of the bar time or would it wait for market data?
Comment