Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy Synchronize

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

    Strategy Synchronize

    Hi,

    When the strategy is reconnected (it doesn’t matter for what reason. Loss of connection or special disconnection), Position and Acct. position are the same, but the value in the Sync column is False. After synchronization (Synchronize all Strategies), the real position is closed, but according to the strategy, this position should have remained unchanged.
    Why is the real position closed?
    How to make that the position is not closed, and at the same time there is True in the Syn column for further correct operation?​

    #2
    Hello zhiga,

    Thank you for your inquiry.

    From the Help Guide on Synchronize all strategies:

    "Selecting this feature will scan through the strategy position of all enabled strategies which are not "Wait until flat" on each account and instrument combination (including all instruments under a multi-series strategy) and will then compare the aggregated strategy position to the account position.

    Under the condition that the account position does NOT match the aggregated strategy position, a market order will be submitted to the account to match the aggregated strategy position."

    https://ninjatrader.com/support/helpGuides/nt8/index.html?syncing_account_positions.htm#Synchroni zeAllStrategies

    When re-enabling a strategy, you can use 'Immediately Submit' if you want the previous live orders to resume.

    Immediately Submit automatically submits working orders from when the strategy processed historical data, and assumes the strategy position and account position are where you want it when you enable the strategy. This is typically used to have a strategy resume a position after disabling/enabling.

    If the strategy already had live orders running, the orders will resume with the new enablement of the strategy if they match the historically calculated orders. If the orders calculated from historical data do not match the live working orders, the live working orders will be canceled and replaced by those calculated from historical data.

    You can also change the connection loss handling (this will only work for connection losses, not manual disconnections).

    https://ninjatrader.com/support/helpGuides/nt8/connectionlosshandling.htm​
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Gaby View Post
      Hello zhiga,

      Thank you for your inquiry.

      From the Help Guide on Synchronize all strategies:

      "Selecting this feature will scan through the strategy position of all enabled strategies which are not "Wait until flat" on each account and instrument combination (including all instruments under a multi-series strategy) and will then compare the aggregated strategy position to the account position.

      Under the condition that the account position does NOT match the aggregated strategy position, a market order will be submitted to the account to match the aggregated strategy position."

      https://ninjatrader.com/support/helpGuides/nt8/index.html?syncing_account_positions.htm#Synchroni zeAllStrategies

      When re-enabling a strategy, you can use 'Immediately Submit' if you want the previous live orders to resume.

      Immediately Submit automatically submits working orders from when the strategy processed historical data, and assumes the strategy position and account position are where you want it when you enable the strategy. This is typically used to have a strategy resume a position after disabling/enabling.

      If the strategy already had live orders running, the orders will resume with the new enablement of the strategy if they match the historically calculated orders. If the orders calculated from historical data do not match the live working orders, the live working orders will be canceled and replaced by those calculated from historical data.

      You can also change the connection loss handling (this will only work for connection losses, not manual disconnections).

      https://ninjatrader.com/support/helpGuides/nt8/connectionlosshandling.htm​
      Thank you Gaby,

      I tried 'Immediately Submit'. But after re-enabling a strategy the Sync Value remains False. I didn't find much difference in attitude "Wait until flat".

      Comment


        #4
        You should be able to re sync them and it'll assume the position if it's set to immediately submit. Unfortunately it's not automatically going to own the position. I suggest investigating your intermittent connection.
        Last edited by Conceptzx; 02-22-2024, 05:49 AM.

        Comment


          #5
          Hello zhiga,

          Conceptzx is correct. When you are experiencing connection losses there is no way to guarantee you can prevent the strategy from becoming out of sync with the account position.

          As mentioned, the orders will resume with the new enablement of the strategy if they match the historically calculated orders. If the orders calculated from historical data do not match the live working orders, the live working orders will be canceled and replaced by those calculated from historical data.

          From the Help Guide on Immediately Submit:

          "Immediately Submit should only be used when you are sure your Account Position is the way you want it to be in relation to the Strategy Position prior to strategy start."

          If you want to sync the account to the strategy position after a connection loss while potentially resuming the live orders, you could also use Immediately Submit, Synchronize Account.

          Please see the Help Guide page below:

          Gaby V.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          17 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          5 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Started by poplagelu, Today, 05:00 AM
          0 responses
          3 views
          0 likes
          Last Post poplagelu  
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,408 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Working...
          X