Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buy stop on the market

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

    Buy stop on the market

    Hello all,
    I ask myself how to have a Buy stop on the low of the last bar AND a Sell stop on the high of the last bar.

    What is the code for it?

    Thanks a lot.

    Regards,
    Frederic

    #2
    Frederic, I suggest you first of all check into this link and read up on NT's internal order handling rules (last section of it) - http://www.ninjatrader-support.com/H...verview36.html

    With those present you would run into issues with the setup you had in mind, a workaround is to monitor the trigger price and then only issue one order as needed, thus not attempting to park the reversal order at the same time.

    In NinjaTrader 7 we added an unmanaged order submission approach that gives you more flexibility (and responsability) then - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

    New Unmanaged Order Submission
    In 6.5 some users were burdened with our "Internal Order Handling" rules. We have introduced unmanaged order submission which bypasses the convenience of our order handling layer. This lower level of programming allows you to do what you want relative to order submission/management without any limitations other than any imposed by your broker. There are only three methods, SubmitOrder(), ChangeOrder() and CancelOrder(). You then get the flexibility of managing your orders how you see fit and optionally handling rejections.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    55 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X