Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Idea: Display update interval (sec)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Idea: Display update interval (sec)

    In a closed thread there is a huge discussion over the trade-off of Chart Refresh vs CPU Overhead.

    My analysis shows that at least 80% of all ticks are at the same price as the previous tick. (in some markets this is as high as 95%).

    Most indicators do not change the way they look until they get a tick at a different price. (the Exceptions are those that calculate volume or use the tick count in some way)

    So, perhaps you could consider providing a new Indicator Property called "IgnoreMeIfTickPriceHasn'tChanged" (or similar). That lets the developer tell Ninja that it doesn't need to call this indicator on every tick even when CalculateOnBarClose = False. Ninja can compare the Tick with the prior tick & skip the processing some or all of the indicators. (unless it is also new bar)


    This might even permit you to Refresh the Chart on every tick, with much less overhead. Of course I'd still leave the option to set a minimum refresh interval. Even if your computer can refresh the chart 30 times each second. Human eyes are incapable of distinguishing that rate of change so I'd expect that anyone who thought logically about it would not want their charts refreshing more than a few times each second. Rather it is better to have it remain static & refresh immediately the data behind the chart changes. (or at a maximum of say 4 times / sec)

    Hope this helps.

    PS: Clearly an Automated Strategy is a very different discussion. As human eyes & reflexes aren't involved they would demand a much faster "refresh rate". But still, having the option to "eat ticks" if they are the same & your strategy doesn't care, would again reduce unnecessary overhead & possibly improve execution times.

    #2
    David, thanks for taking the time to voice your suggestion.

    Just to be clear - the DisplayUpdateInterval setting is a visual setting only, it would not drop ticks or interfere with NinjaScript auto strategies running on this chart (thus strategy would still 'see' each tick if coded to react at this level).

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    621 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    566 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X