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 carnitron, Today, 08:42 PM
        0 responses
        2 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        4 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,969 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        5 views
        0 likes
        Last Post rbeckmann05  
        Started by rhyminkevin, Today, 04:58 PM
        4 responses
        58 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Working...
        X