Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries data discrepancy

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

    DataSeries data discrepancy

    Hi, I've a strategy which use multi-instruments and i will but a dataseries like this, say

    CloseDiff.Set( Closes[0][0]*2-Closes[1][0]*1); (time frames are the same)

    the problem is, strategy is triggered by instrument #0 by end of bar but seems like end of bar of instrument #1 has not been triggered, ie, the calculation was completely off in real-time

    when I load the strategy again (using Print statement so i can know what is going on step by step), there wont be any problem as all the bars were built properly

    how to prevent the data/bar discrepancy in real time? Thanks

    #2
    lawrence124, that could be the case in realtime - as NT is an event driven framework, the missing update from instrument 2 for example could mean the calculation is running with the last known tick only.

    I would recommend looking into KDoren's spread indicator works from the sharing, it's offering a concept to sync datapoints as in your case needed as well -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    320 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    203 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    189 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    283 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    238 views
    0 likes
    Last Post CarlTrading  
    Working...
    X