Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price Connection Loss

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

    Price Connection Loss

    H, How do I track a connection loss that affects a strategy?

    #2
    I used these if statements to send me an email when this happens to restart the strategy, but neither one of them is reporting on the attached error...
    if(connectionStatusUpdate.PriceStatus == ConnectionStatus.ConnectionLost)

    if(connectionStatusUpdate.Status == ConnectionStatus.ConnectionLost)
    Attached Files

    Comment


      #3
      Hello aaadetos,

      Thank you for your post.

      Are you using this inside OnConnectionStatusUpdate? Where within your code are you checking for the status update?

      Do any errors appear in the log when this fails to function?

      Thanks in advance; I look forward to assisting you further.

      Comment


        #4
        Yes, I'm using them inside OnConnectionStatusUpdate. The if statements specified capture other connection losses for which I'm notified but not the one specified in my previous post
        For instance, at the end of the week on Friday evening or on Saturdays, the feed gets disconnected maybe to restart servers, etc and I get notified.
        The error specified in my previous post ends up disabling the strategy. I don't mind, so long as I get the notification as I can't be watching the market 24/7.
        Thanks for any help you can render!

        Comment


          #5
          Hello aaadetos,

          Thank you for your reply.

          Are you connected to more than one connection simultaneously, like one that provides data and one that connects to the account you route your orders to?

          If you test by disconnecting your feed(s) while the strategy is running, do you get an email when it is disconnected?

          What I would recommend is to add prints to print out the details for ConnectionStatusEventArgs and check the connection name and what is coming up twice so you can make an informed choice to filter that event for the exact criteria you want to send the message.



          Thanks in advance; I look forward to assisting you further.

          Comment

          Latest Posts

          Collapse

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