Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Realtime and Connection Status

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

    Realtime and Connection Status

    I haven't verified this yet...but it seems that State=Realtime is executed when there is no connection yet (i.e. when startup has do defined auto connect)

    Is this true?

    And then, besides OnConnectionStatusUpdate(), is there another way to know (i.e. ninja global bool) if there is an active connection?\

    thx

    #2
    Hello llanqui,

    Thank you for your post.

    The strategy will move to go to State.Realtime after State.Historical, however, if there is no live data connection there will be no live data to process.

    I am not aware of another way or global bool that would indicate if there is a live data connection, OnConnectionStatusUpdate() is the documented way to get updates for connection status changes.

    Please let us know if you have any further questions.

    Comment


      #3
      Ok, that is what it seems....when RealTime is entered I cannot expect a connection to be valid

      Comment


        #4
        well, it seems there is a very simple way to do this

        if (Connection.Connections.Count() > 0)

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        72 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        38 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        99 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        60 views
        0 likes
        Last Post PaulMohn  
        Working...
        X