Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Questions about sync account position

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

    Questions about sync account position

    Hi fellow traders,

    I understand the strategy position vs account position. My question is, if I set sync account position = true when enabling a strategy. During the session the data feed disconnected and reconnected. Upon the data re-connection, would the strategy re-sync the account position?

    If not, would it be possible to code the re-sync account position upon data feed re-connection into the strategy?

    Thank you in advance for your input.

    #2
    leizhenhua, that will depend on which ConnectionLoss handling setting you run with here.



    Please note though that recalculate would not reload any historical data potentially missed.

    Comment


      #3
      Hi Bertrand,

      Do you mean if I set the connection loss handling to recalculate, the strategy will re sync account position upon re connection?

      And if I code the handling settings into the strategy, but differently from either the option ninjascript or the strategy option tag, which settings would the strategy pick up?

      Comment


        #4
        Correct, the idea is to allow recalculation of the strategy position on a new instance and using the sync options if set. If you have hard-coded in the handling settings, that's what should be used since it will start with a fresh instance.

        Comment

        Latest Posts

        Collapse

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