Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy synchronization

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

    Strategy synchronization

    I have two strategies running on TF. One on a TF 15min and one on a TF 60min. I set both to "Sync account position" true. I was flat, and these are both using the "Sim101" account. When I enabled them, the one that was currently flat showed an order entry "Synchronize 1@792". The one that was currently long showed nothing. Why are they confused? Is there some way to trace why it decided to put the wrong one as long?

    There is an ID and an Order ID in the "Executions" but I don't know how to relate these back to the respective strategies.

    #2
    I tried shutting down and restarting from scratch. I then found that enabling the 60 min strategy that had a long position correctly bought one contract. When I enabled the 15min strategy that was supposed to be flat it sold the 1 long position purchased by the other strategy!

    Comment


      #3
      So what I'm seeing is that the last strategy to be enabled, clears all positions and syncs the account with the newly enabled strategy. This means it is clearing other strategies positions!

      Comment


        #4
        Hello,

        Thanks for your patience.

        This is exactly the case.

        This is the reason why each strategy has its own internal position. If you sync this to the account position this will then cause the strategy position to == the Account Position.

        You never want to use Sync account position when your running multple strategies on the same account and same instrument. You would always want to check account sync manually in this case.

        Comment


          #5
          Can I setup another Sim account like Sim102? Then I can use different accounts and have it sync automatically?

          Comment


            #6
            Hello,

            Yes you can do this.

            Control Center->Tools->Options->Simulator->Accounts to create a new account.

            You need a live license to use this feature. This will not work on the free version of NInjaTrader. (Since it requires changing accounts which isnt allowed in the free version).

            I look forward to assisting you further.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by funk10101, Today, 09:43 PM
            0 responses
            4 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            36 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            44 views
            0 likes
            Last Post bill2023  
            Started by yertle, Today, 08:38 AM
            6 responses
            26 views
            0 likes
            Last Post ryjoga
            by ryjoga
             
            Started by algospoke, Yesterday, 06:40 PM
            2 responses
            24 views
            0 likes
            Last Post algospoke  
            Working...
            X