NexusFi: Find Your Edge


Home Menu

 





NT7 lagging data


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one samiotis with 10 posts (0 thanks)
    2. looks_two Beljevina with 4 posts (3 thanks)
    3. looks_3 Fat Tails with 3 posts (1 thanks)
    4. looks_4 bukkan with 1 posts (1 thanks)
      Best Posters
    1. looks_one bukkan with 1 thanks per post
    2. looks_two Zondor with 1 thanks per post
    3. looks_3 Beljevina with 0.8 thanks per post
    4. looks_4 Fat Tails with 0.3 thanks per post
    1. trending_up 11,313 views
    2. thumb_up 6 thanks given
    3. group 7 followers
    1. forum 21 posts
    2. attach_file 1 attachments




 
Search this Thread
  #11 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59

Here you go Big Mike....thanks


Follow me on X Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Would a node-based workflow for automated trading be useful?
Traders Hideout
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #12 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59

Hi, dose the video show any thing?


Follow me on X Started this thread Reply With Quote
  #13 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


sometimes back i have a situation where i used ChartControl.BarsMarginRight in the Plot override in one of my indicator. it resulted in delayed quotes/ ninja freezing (incl dom etc).

remove the indicators and see if the situation still persists. if not then put on the indicators one by one and try to isolate the rouge indicator.


Reply With Quote
Thanked by:
  #14 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117

Problems like this can be caused


-> by a corrupted workspace (please close all workspaces and recreate your trading workspace)

-> by custom indicators, which are not coded properly (please remove all non-system indicators from your workspace)

-> by running indicators in mode CalculateOnBarClose = false (please set most of your indicators to CalculateOnBarClose = true)

-> by having selected a display update interval < 0.5 sec for the chart (please set your display update to 0.5 sec)


Reply With Quote
Thanked by:
  #15 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59


bukkan View Post
sometimes back i have a situation where i used ChartControl.BarsMarginRight in the Plot override in one of my indicator. it resulted in delayed quotes/ ninja freezing (incl dom etc).

remove the indicators and see if the situation still persists. if not then put on the indicators one by one and try to isolate the rouge indicator.

Yes that was it plain charts and all is well. thanks


Follow me on X Started this thread Reply With Quote
  #16 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59


Fat Tails View Post
Problems like this can be caused


-> by a corrupted workspace (please close all workspaces and recreate your trading workspace)

-> by custom indicators, which are not coded properly (please remove all non-system indicators from your workspace)

-> by running indicators in mode CalculateOnBarClose = false (please set most of your indicators to CalculateOnBarClose = true)

-> by having selected a display update interval < 0.5 sec for the chart (please set your display update to 0.5 sec)

Thank you, the...... CalculateOnBarClose = true) was the main problem....


Follow me on X Started this thread Reply With Quote
  #17 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


samiotis View Post
Thank you, the...... CalculateOnBarClose = true) was the main problem....

Hahaha, we got you.


Setting indicators to "CalculateOnBarClose = false" means that every single incoming tick triggers a complete recalculation.

If you have an indicator such as the VWAP from the NinjaTrader forum or any other indicator which performs complex calculations, that would kill any piece of software.


Reply With Quote
  #18 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59


Fat Tails View Post
Hahaha, we got you.


Setting indicators to "CalculateOnBarClose = false" means that every single incoming tick triggers a complete recalculation.

If you have an indicator such as the VWAP from the NinjaTrader forum or any other indicator which performs complex calculations, that would kill any piece of software.

Yes I repopulated the charts with some of the barowd indicators to bar close=true and walla.............thanks to all of you again......


Follow me on X Started this thread Reply With Quote
  #19 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
Market Wizard
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,734

I have LOTS of indicators calculating on every tick, they load fast, and my charts do not lag.

Generally indicators that perform poorly when COBC is false are poorly coded with horrible programming practices such as:
  • Failing to provide error handling.
  • Doing things that only need to be done once per bar on every tick, especially calling loops like MIN and MAX.
  • Failing to use predefined instances of external indicators, instead creating, destroying, and recreating ad-hoc local instances on every tick.

These bugs apply to many of the out of the box indicators that come with Ninjatrader.

There was a thread on this subject, but oh, how soon we forget. Start at Post #28. Note the input from "Richard" of movethemarkets.com, an expert programmer whose ideas got the whole discussion started.



Even now, it is very unusual to find indicators that don't have one or more of the problems mentioned.



In general, having to set COBC to false is a pathetic bandaid attempt to make up for really lousy, mindless programming.


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #20 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117



Zondor View Post
I have LOTS of indicators calculating on every tick, they load fast, and my charts do not lag.

Generally indicators that perform poorly when COBC is false are poorly coded with horrible programming practices such as:
  • Failing to provide error handling.
  • Doing things that only need to be done once per bar on every tick, especially calling loops like MIN and MAX.
  • Failing to use predefined instances of external indicators, instead creating, destroying, and recreating ad-hoc local instances on every tick.
In general, having to set COBC to false is a pathetic bandaid attempt to make up for really lousy, mindless programming.

Yes, I am guilty to have published some indicators, which are not doing well with CalculateOnBarClose = false, as this setting is not really required for them.

I agree that there are lots of things that still can be improved.


Reply With Quote




Last Updated on August 26, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts