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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        90 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        92 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        70 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        64 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X