Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Syncing instruments

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

    Syncing instruments

    Hi!

    attached you could see a chart with two instruments and an indicator plotting the difference between both instruments prices, also you can see there is a gap on second instrument that was casued (I supose) by not been a traded instrument at that time.

    I've set the session template to second instrument the most restrictive one, but this was not enough as you can see at the attached chart.

    Is there any function or method or idea that could give me the opportunity to detect that an instrument is not "active" even in it's regular trading time?

    Thank you in advance!
    Attached Files

    #2
    joanNT, would you see the same after a reload of historical data?

    In general there would be no real method here available unfortunately, NT is event driven so if there's no activity in a given market you would not get a 'forced' barclose by time.

    You could check though the timespan for example between bars and not plot your study if such a gap is detected then.

    Comment


      #3
      Hi Bertrand,

      Thanks for your answer.

      1) Yes, after reloading historical data there are the same gaps.
      2) The timespan between bars is a "post"-solution, I mean, after I get a newer bar I can calculate the timespan between bars and this makes my study wrong on real time data.

      Perhaps a solution could be comparing timestamps of the last bar of each instrument? If last time bar of instrument 1 is newer than last time bar of instrument 2 then don't plot. What do you thing? Is this possible or I'm missing some unexpected behaviour?

      The best solution (in my opinion) was having a null setting value for bid/ask series of an instrument, I mean when there is no real time data these two series bid/ask must be set with a value that indicates this, like "9999999999,99" this could mean there's no data available for this instrument and not being set with the last value. Please, tell me your opinion.

      Thanks

      Comment


        #4
        Yes, for realtime use you could compare the last Time[0] / Times[0] on the developing bars.

        Since NT is event based, the series would not really be null but show the last seen updated value.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X