Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing a pending order entry price

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

    Changing a pending order entry price

    How is it possible to change a pending order entry price.

    One of my strategies sets on a certain signal a pending (stopp buy or stopp sell) order into the market. If the order doesn't get filled immediately, the strategy tries to move the order to the High/Low of the next Candle.

    Therefor the system has to change the entryprice. Currently the active order gets canceled and a new order (with the new entryprice) will be create.

    But in this case the broker charges fees for the cancel transaction - now I looking for a possibility (method) to adjust the order instead of cancelling the existing order and create a new one - but I didn't find anything in the help system

    does anybody know an answer ?

    Thanks for help

    #2
    Hello,


    If you call order method again when the order is already submitted and include a changed price parameter it should change the order.

    if(...condition to change order...)
    {
    EnterLongStop(...parameters with changed price...);
    }


    Please note you will need to resubmit the order every single OnBarUpdate() otherwise it will be cancelled.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    559 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    546 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X