Ninja Trader / Zenfire / Mirus Display Update Interval 0.1
Welcome to futures io.
(If you already have an account, login at the top of the page)
futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.
At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.
With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.
We are fundamentally different than most other trading sites:
We are here to help. Just let us know what you need.
We work extremely hard to keep things positive in our community.
We do not tolerate rude behavior, trolling, or vendors advertising in posts.
We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
We expect our members to participate and become a part of the community. Help yourself by helping others.
You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple.
Yes and no. Yes, calling the given code will cause a refresh. No, because bars are not updated yet (OnMarketData is called before OnBarUpdate). So if you intention is to update based on the bars, you are out of luck, but if you had a custom plot method that was plotting a text item or placing a line based on some other internal var that was updated in OnMarketData, that would work. Hopefully, I am conveying the concept.
Not sure what you mean by volume. The volume updates with each call to OnBarUpdate, so not sure why you need OnMarketData for that. Perhaps you mean the bid/ask sizes.
The following user says Thank You to aslan for this post:
This is my first indicator and I simply added your 3 lines into standard ninja script indicator file, will this work? (did it just now and markets are calm and I cannot see any higher cpu usage so I´m wondering if I´m right).
The code needs to go in the OnBarUpdate() method, not Initialize(). Also, make sure CalcOnClose is set to false, or it will only be called at the end of the bar.
Also, if there is nothing going on, you are not going to notice any difference. This code will make little or no difference for 99% of indicators. The NT update interval of .1 s is essentially 10 frames per sec, which is not real fast, but when you think about what you need to see on a chart and how fast you can interpret the info, it is generally fast enough. There are a few indicators (i.e. level2) which do benefit from this code, but you will incur the extra CPU cycles of doing extra screen updates.
The reason people get in trouble, is they think they need all of their charts/indicators to update every tick. This just is not the case.
The following user says Thank You to aslan for this post:
NT / Zenfire: Maximum frequency of updates to OnMarketData
There is another issue see here: Maximum frequency of updates to OnMarketData/Depth No3 - NinjaTrader Support Forum
(Also posted here https://futures.io/platforms-indicators/980-truth-ninjatrader-53.html#post69806, I don´t want to spam the board but for me it´s very important that there comes pressure to Zenfire to deliver what they promise: unfiltered ... therefore I make several posts).
As mentioned before in other threads as I´m no programmer I can only believe when I´m told that I receive complete tape an no fragments. We´ll se what they answer, I asked already Mirus to check about, they told me they ask Zenfire techs - would be great if other could give information, too.
The following 3 users say Thank You to resist for this post: