Ninja Trader / Zenfire / Mirus Display Update Interval 0.1 - Reviews of Brokers and Data Feeds | futures io social day trading
futures io futures trading


Ninja Trader / Zenfire / Mirus Display Update Interval 0.1
Updated: Views / Replies:4,952 / 14
Created: by resist Attachments:3

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 90,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 dont 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.

-- Big Mike, Site Administrator

Reply
 3  
 
Thread Tools Search this Thread
 

Ninja Trader / Zenfire / Mirus Display Update Interval 0.1

  #11 (permalink)
Elite Member
Berlin Germany /Alicante Spain
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: DDT/Rithmic, Global/CQG, IB, Mirus(Ninja)/MarketDelta
Favorite Futures: Futures
 
Posts: 148 since Jan 2010
Thanks: 362 given, 66 received

Thanks!!!!


aslan View Post
The trick is to force NT to replot when you get a tick.
...

Fantastic, at least another step!!! Thank you very much for your code advice.

I like to use pricelineWH (http://www.ninjatrader.com/support/forum/local_links.php?action=ratelink&linkid=364&catid=4&lpage=1) indicator which only plots a line for last price, I think it would be great to put your suggestion in this indicator to test, Ill try it as Ive no knowledge to code a complete indicator.


Last edited by resist; September 18th, 2010 at 03:53 PM.
Reply With Quote
 
  #12 (permalink)
Elite Member
Madison, WI
 
Futures Experience: Advanced
Platform: Sierra Charts, ALT
Favorite Futures: ES
 
aslan's Avatar
 
Posts: 614 since Jan 2010
Thanks: 342 given, 1,077 received


RJay View Post
Being a volume nut, I have looked for a way to force updates with changes in volume.

Will this patch work in the OnMarketData section as well??

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.

Reply With Quote
The following user says Thank You to aslan for this post:
 
  #13 (permalink)
Elite Member
Berlin Germany /Alicante Spain
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: DDT/Rithmic, Global/CQG, IB, Mirus(Ninja)/MarketDelta
Favorite Futures: Futures
 
Posts: 148 since Jan 2010
Thanks: 362 given, 66 received

is this really enough code?



aslan View Post
The trick is to force NT to replot when you get a tick. This is a dangerous item if you don't know what you are doing, as you could start using way more CPU to do this. This trick only needs to be in ONE indcator. At the end of the OnBarUpdate() method, add the following:

 
Code
if (ChartControl != null)
    if (ChartControl.ChartPanel != null)
        ChartControl.ChartPanel.Invalidate();
This code will force the chart to refresh on each tick, so user beware. Your initial comment, that CPU will be fine if you manage the number of charts/indicators is spot on. To be sure you only do this in one indicator, you could have an indicator, that just refreshes the screen, but I have not tried that.

Note: This will do nothing for the DOM update interval.

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 Im wondering if Im right).

Attached Files
Register to download File Type: zip NullLatency.zip (1.6 KB, 17 views)
Reply With Quote
The following user says Thank You to resist for this post:
 
  #14 (permalink)
Elite Member
Madison, WI
 
Futures Experience: Advanced
Platform: Sierra Charts, ALT
Favorite Futures: ES
 
aslan's Avatar
 
Posts: 614 since Jan 2010
Thanks: 342 given, 1,077 received

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.

Reply With Quote
The following user says Thank You to aslan for this post:
 
  #15 (permalink)
Elite Member
Berlin Germany /Alicante Spain
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: DDT/Rithmic, Global/CQG, IB, Mirus(Ninja)/MarketDelta
Favorite Futures: Futures
 
Posts: 148 since Jan 2010
Thanks: 362 given, 66 received

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 dont want to spam the board but for me its 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 Im no programmer I can only believe when Im told that I receive complete tape an no fragments. Well 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.

Reply With Quote
The following 3 users say Thank You to resist for this post:

Reply



futures io > > > > Ninja Trader / Zenfire / Mirus Display Update Interval 0.1

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

Dec 7

Linda Bradford Raschke: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
R Trader / Mirus / RCG rassi Reviews of Brokers and Data Feeds 29 July 6th, 2012 06:49 AM
From METASTOCK to Ninja Trader dimitri NinjaTrader Programming 20 November 15th, 2010 11:32 AM
Cannot connect to Mirus/Zenfire using Ninja 7.0_Beta20 on 9/11/10 TheWizard Reviews of Brokers and Data Feeds 7 September 12th, 2010 02:43 PM
Ninja Trader 7 - Warning webart NinjaTrader 5 July 19th, 2010 10:20 AM
how to use ninja trader 6.5 abdul NinjaTrader 1 May 24th, 2010 04:18 PM


All times are GMT -4. The time now is 01:28 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-11-20 in 0.09 seconds with 20 queries on phoenix via your IP 54.224.18.114