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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        108 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        55 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        37 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        39 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        76 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X