Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reverse position with only one order

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

    Reverse position with only one order

    I have programmed a strategy with the wizard that goes long (EnterLong) when the price crosses over a simple average, and reverse to short (EnterShort) when the price crosses below.

    If the strategy is long and the price crosses below the average, then Ninja sends two orders, one to close long and another to open a short position.

    Is there any way to make Ninja send only one order to reserve? I mean sending one order selling two contracts in stead of two orders selling one.

    Thank you very much.

    #2
    You likely closed the position by an explicit exit order which you should not do. Just issue the entry order for the opposite side and NT will close the current position. See also SampleMACrossOver strategy which does exactly what you are looking for.

    Comment


      #3
      No, the strategy works correctly. The only problem I have is the way to do the reversal.

      I have the same problem with the SampleMACrossOver strategy. For example, if the strategy is one contract long and the fast SMA crosses below the slow, then the strategy reverses to short, so Ninja sends two orders: sell one contract to close long position, and sell one contract to open short position.

      I would prefer that Ninja sent only one order: sell two contracts to reverse.

      ¿Is there any way to do it?

      Comment


        #4
        >> ¿Is there any way to do it?
        Unfortunately not.

        Comment

        Latest Posts

        Collapse

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