Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sync with existing positions

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

    Sync with existing positions

    Hi everybody!

    First of all, sorry about my english! ;-)

    I´m trying to develope a strategy that only close existing positions... I mean... I´m trading with de DOM, or the Basic Entry, and the strategy closes the position when it reaches a condition (that involves various instruments, so the ATM could not do it), so the strategy doesn´t open any positions, it only works closing existing positions.

    Is there any way to sync the strategy, to recognize previous opened positions?

    Thanks a lot!

    #2
    Hello Santi,

    Using the managed order system, all exits must be paired with an entry. If you submit an exit and the strategy can't identify an entry opened by the strategy, then the exit statement is ignored.

    You can use the unmanaged approach, and with this you just use SubmitOrder() to place the orders you want, without any internal management of the order. There's no way for the strategy to read positions that were opened outside of the strategy.

    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      @Santi,

      I have already done what you want to do using managed approach . Basically I attach my strategies LongFollowUp or ShortFollowUp to exiting positions which I entered manually.

      Best would be to buy this technolgy from me, but if you are short of funds you can try yourself:

      Here some tip :

      1. It can be done!
      2. Read all my older posts on the topic sync
      3. Takes you at least a week if you are proficicient with C# and Ninja.

      Good luck
      andreas
      www.zweisteintrading.eu

      Comment


        #4
        Thanks

        It seems to open a new field to explore... the unmanaged mode. Thanks a lot for your explanations, I hope I will "manage" this issue.

        I´m also reading your post about sync, very clarify... it happens to me this week, it was a pity not to read it 5 days ago.

        Thanks! ;-)

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        639 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        572 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X