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.
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by AttiM, 02-14-2024, 05:20 PM
        11 responses
        184 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by fernandobr, Today, 09:11 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by timmbbo, Today, 08:59 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by KennyK, 05-29-2017, 02:02 AM
        2 responses
        1,281 views
        0 likes
        Last Post marcus2300  
        Started by itrader46, Today, 09:04 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X