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 charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            60 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            147 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            161 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            97 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            284 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X