Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with ExitStop order

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

    Problem with ExitStop order

    Hello to NT support,
    I work in NT6.5. I work allot with Exit orders, but now I encountered a problem.
    My strategy runs on 15 Min chart with 1 Min granularity. When I enter a position (lets say Long) I issue a stop loss order:
    stopOrder = ExitLongStop(1, true, EnteredQuantity, SLPrice, "Stop", EntryName);

    After some time if target or stop were not hit I change the stop to trailing stop. I have 3 variants. Two work but the one I need doesn't.
    1. stopOrder = ExitLongStop(1, true, EnteredQuantity, PTPrice, "Stop", EntryName);
    This works.
    2. stopOrder = ExitLongStop(1, true, EnteredQuantity, PTPrice, "TStop", EntryName);
    This doesn't work. In debugger I see that this order is in working state, but then the strategy executes the initial stop order and cancels this order. I noticed that the new ("TStop") order got new token.
    3. stopOrder = ExitLongStop(PTPrice, "TStop", EntryName); Works!

    Whats the problem?

    Regards,
    Baruch

    p.s.
    I have TraceOrder = true. I don't see anything in trace file. The log is also clean.

    #2
    Baruch, if you are trying to switch from a regular stop to a trailing stop, please try canceling the regular stop order and then submitting a new IOrder object for the trailing stop.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    630 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    566 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X