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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X