• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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).
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SAITON, Today, 09:03 PM
    0 responses
    1 view
    0 likes
    Last Post SAITON
    by SAITON
     
    Started by suprsnipes, Today, 08:26 PM
    0 responses
    5 views
    0 likes
    Last Post suprsnipes  
    Started by RobertoPaez, Today, 06:47 PM
    0 responses
    7 views
    0 likes
    Last Post RobertoPaez  
    Started by catinabag, Today, 06:45 PM
    0 responses
    4 views
    0 likes
    Last Post catinabag  
    Started by darkgreen, Today, 03:35 PM
    0 responses
    9 views
    0 likes
    Last Post darkgreen  
    Working...
    X