PDA

View Full Version : Market replay with indicator


SuzyG
02-18-2007, 04:08 AM
I have an indicator that draws arrows on the screen. When I run it in Market Replay, the arrows drawn are not all consistent with the arrows that show if I refresh the indicator -- without code changes.

I get arrows that definitely should not show, am missing others and many are correct.Refresh fixes it to match the expected results based on the code and verified by comparing values in the databox.

I have another instrument on my chart and CalculateOnBarClose = false. The action on this additional instrument is for each tick. The arrows only draw on the close of the bar so I useCurrentBar to verify the bar closed.

I have tried this at 1x speed because I thought there could be inconsistencies with higher replay speeds, butI do not notice this to be a factor.

If you can shed some light on this, I would be very appreciative.

Thank you,

SuzyG

p.s. I am getting some wrong calls realtime too.

NinjaTrader_Ray
02-19-2007, 08:22 AM
We will put out another beta likely later this week. You could be experiencing an issue by where OnBarUpdate() can be called multiple times for the same tick. The next release addresses this. If the problem persists after that, please let me know.

Ray