Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How does Ninja Close a Position.

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

    How does Ninja Close a Position.

    I am curious as to the method in which NInja Closes a strategy position.
    If I am in a position as follows: Long Entry. Profit target 20 ticks, StopLoss 10 Ticks. If my strategy detects a change in market direction, and I trigger exit using the ExitLong command.

    Would NinjaTrader first cancel the ProfitTarget and StopLoss entry orders, and then execute a Sell Order,

    or it Executes the Sell Order, then cancells the ProfitTarget and StopLoss orders.

    #2
    It should execute sell and then cancel stop/profit. You can use TraceOrders to watch the exact behavior of your orders.

    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh. I was thinking so, when I saw an error stating exceeded Margin. I guess Ninja has a good reason for performing it that way. My problem is, it affects my contract that can be traded, without incurring a margin error, when trying to exit.

      Is there a way I can cancel the order generated by
      SetProfitTarget(
      ), so that It doesn't appear to my broker as if I want to trade an extra contract, when I really want to exit?

      Comment


        #4
        This will be more doable in NT6.5, but for now perhaps you could try just modifying the profit target order to bring it down to the price you want to exit at?

        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        102 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X