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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    63 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    54 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Working...
    X