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 algospoke, Yesterday, 06:40 PM
        2 responses
        20 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        21 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X