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)
Hi guys, thanks a lot for offering me your help...
@RJay, I'm not sure what you mean by "Chart type" and "Value size" ? Could you please specify ?
@bukkan, I added "ChartControl.Refresh()" at the end of OnMarketData() and the refresh rate seem to match bid/ask updates now, however it freezes my chart quite a lot (I have only from 1 to 3 simple plots depending on the OnMarketData events) with those updates. Is it the "lightest" solution available as far as computer ressources go ? Right now, it's almost impossible to scroll my chart anymore.
obvious it would freeze. its not without reasons, NT has set the minimum refresh rate to .1 second. but if you filter out the redundancies then things can improve.
the attached code refreshes the last bar only on any trade. not perfect or complete but you can get some ideas.
You are basically asking windows to repaint the chart window on every change in market data. This will consume a large amount of CPU and lock up NinjaTrader. We do not officially advise this.