Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Internal Order Handling

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

    Internal Order Handling

    Hello.

    I'd like to know what happens in the following sequence of events :

    1. A programmed strategy is running
    2. The strategy executes a EnterShortLimit() order
    3. The short order is filled.
    4. After a few bars..
    5. The strategy executes a EnterLongLimit() order
    6. The Long Limit order is NOT filled.

    Question:

    What happens to the existing short position? Is it closed or does it remain open?

    #2
    Hello,

    The short position will remain open as long as it hasn't been specified to close the position.

    Please let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Does execution of stop loss automatically cancel all open orders?

      Comment


        #4
        Thank you for your post.

        This will depend on your method of stop order placement. Could you please clarify what you are trying to achieve?

        The most basic stop loss: SetStopLoss() can be used to close out your open position. It will be linked to SetProfitTarget(). If you're using advanced order handling you will need to set and track your stops within your code.





        Please let me know if I can be of further assistance.
        LanceNinjaTrader Customer Service

        Comment


          #5
          Another quick question along the same topic...

          Can you use SetStopLoss() and SetProfitTarget() within an unmanaged strategy?

          Thanks!

          Comment


            #6
            Thank you for your post,

            Unfortunately you will not be able to use SetStopLoss() or SetProfitTarget() within the unmanaged approach.

            Please let me know if I can be of further assistance.
            LanceNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            646 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            367 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
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X