Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
So the problem is I wind up with seemingly stray rectangles drawn in the wrong place on timeline.
After adding console dump with timestamp + the DrawText to list the CurrentBar # above the squares, it seems like the bar # and times are correct though. Very confusing and unexpected output.
if the instrument is very liquid, I think the 30 min will show 50% in between the 1 hour
if there are no ticks, it might be off and explain what you are seeing...
ES in this case.... that was in the middle of the night, but still it was moving within 30 minute TF
I was thinking it could be a "no ticks" situation. No ticks would mean onbarupdate wouldn't fire then, is that what you mean?
I don't think that's the case here though (but not 100% sure yet).
Is there something better or different available within Ninjatrader to accomplish basically marking the panel consistently with the bars from other timeframes? Instead of onbarupdate, maybe something that fires every X seconds or every minute?
How does this look at 15:30-16:00 EST? This is where I am currently seeing a dupe/stray...
This is Pacific Standard Time so 12:30 - 13:00. No strays. Note, however, there is no data between 13:15 and 13:30 so the next square looks closer but its actually correct.
This is Pacific Standard Time so 12:30 - 13:00. No strays. Note, however, there is no data between 13:15 and 13:30 so the next square looks closer but its actually correct.
Ah I see. I am actually running a drawing rectangles with start 0 end 30 in(to draw a 30 minute long rectangle). But in the case mentioned above, it winds up overlapping in some of those spots where the is no data.. Using your code and start 0 end 1 bars, it seems to draw them correctly now. I just need to figure out how to draw until the next bar instead of fixed 30 mins.