Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lost price connection

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

    Lost price connection


    Hi,

    I have a short specific question:

    1) I am running a NT-script on 60min bars.

    2) The Price connection was then lost (but not the Primary Connection since the break was only 2-3sec).

    3) After that the Price connection was once again established

    In this state between the 60min bars: Is the function onBarUpdate then called?

    Thanks in advance!

    Jakob

    #2
    Hello,

    Thank you for the question.

    This depends on a few variables.

    Was the connection that was lost providing data for the instrument on the 60 minute chart?

    If so, if the tick that would have pushed the 60 minute charts OnBarUpdate was missed while disconnected, it would not be called.

    After re connecting the data will be requested and when ticks come in the chart would be updated at that time.

    If the connection that was supplying this chart was the connection that remained connected, I would expect the chart to work as normal.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi,

      Thank you for a fast response!

      I am running an automated live strategy with a CQG data feed and after around 30min in the middle of a 60min bar the Price connection was lost.

      When the Price connection was restored again after a couple of seconds it seems like “OnBarUpdate” was called even if there actually was only 30min since last time. Is that expected?

      Thanks,

      Jakob

      Comment


        #4
        Hello,

        Yes upon reconnecting the NinjaScript items should be recalculated just like when you initially connect and all of the charts are refreshed.

        This would be expected if the connection is restored as well.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you for a very fast and helpful assistance.

          Have a nice day!

          Jakob

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X