Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator wrong during market replay
Collapse
X
-
Indicator wrong during market replay
I hope this is just a 6.5 bug... The inside BarCheck comparison works fine in RT, but obviously not during a market replay...Tags: None
-
Comment
-
What to know something else screwy... If I edit the indicators (do not even change anything, just re-apply one) the BarCheck patterns are suddenly corrected for past bars only, and past Volume bars are suddenly screwed up... Very repeatable, and during Market replay only.
Here's a before & after shot.
Current & Future bars are as before, barcheck messed up, VolumePRV fine. Just the prior day's bars are altered: barcheck ok, VolumePRV messed up.
Comment
-
After playing with your indicator it doesn't only display the behavior you are seeing on Market Replay. It happens during Simulated Data Feed too. I do not know why you do not experience the same thing live because Market Replay and Simulated Data Feed behave in the exact same way as a live feed does.
If you set CalculateOnBarClose to true your indicator performs as expected. I believe what you are experiencing is that the logic of your indicator is firing off to paint at some point in time while the bar is still being built. This then means it starts drawing the region immediately because you have CalculateOnBarClose set to false. At the end of the bar when the condition ultimately becomes false it can't do anything about the previously drawn region so that is why you end up with every region drawn in.Josh P.NinjaTrader Customer Service
Comment
-
Thanks, Josh. I'd wondered but it worked RT... BarCheck is at least easy to fix. I added a remove region command once the IB condition was no longer met.
My expectation is that RemoveDrawObject("tag1") will simply return cleanly if called for a tag that does not exit since I could not find a way to check for a drawn object existence.Attached Files
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ntbone, Today, 02:30 PM
|
0 responses
4 views
0 likes
|
Last Post
![]()
by ntbone
Today, 02:30 PM
|
||
Started by tuliomgui, Yesterday, 10:07 PM
|
3 responses
13 views
0 likes
|
Last Post
|
||
Started by Learner Trader, Today, 08:36 AM
|
1 response
24 views
0 likes
|
Last Post
|
||
Started by GeorgeW, Today, 03:15 AM
|
1 response
16 views
0 likes
|
Last Post
|
||
Tick Replay
by timko
Started by timko, Today, 11:55 AM
|
4 responses
11 views
0 likes
|
Last Post
|
Comment