Do the draw methods not work inside events like OnExecutionUpdate?
For instance, I put in a quick hack for some visuals with a line like this
Draw.Line(this,"TradeLine"+lastEntryBar,false,Curr entBar0-lastEntryBar,Price,0,e.Execution.Price,Brushes.Gra y,DashStyleHelper.Dash,2);
The bars back is CurrentBar0=7606 lastEntryBar=7596, so 10. The prices are correct. The line does not show on the chart. I check in the drawing objects - It is there with correct prices, but start and end times are off the beginning of the chart. I know there are some sync issues using bar[0] etc in these events, but I thought somehow this one would work? Note - I'm not using currentbar. Currentbar0 is set to currentbar within OnBarUpdate. Time of trade was 13th, @ 05:58.
Thanks.
Comment