Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market-if-Touched Order Configuration in Strategy Builder

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

    Market-if-Touched Order Configuration in Strategy Builder

    My Objective:

    1. A strategy that executes all entry orders on the close of candles.
    2. On signal, execute a market-if-touched order "x" ticks from the close of candle.
    3. So for Longs, that would be "x" ticks below the close of the previous candle, and conversely for Shorts.

    This question was asked by johnMoss a few years ago and was answered by Ninjatrader_PaulH who provided several links explaining the solution.

    I was able to find his answer but was not able to access any of the links provided.

    Any help would be appreciated.

    #2
    Hello cortlane,

    Thanks for your post.

    To submit a Market-If-Touched Entry order in the Strategy Builder, you could click 'Add' in the Actions menu, open the 'Order management' folder and select the 'Enter long position by a market-if-touched order' or the 'Enter short position by a market-if-touched order' option.

    To submit a Market-If-Touched Exit order in the Strategy Builder, you could click 'Add' in the Actions menu, open the 'Order management' folder and select the 'Exit long position by a market-if-touched order' or the 'Exit short position by a market-if-touched order' option.

    You would then set the order's 'Stop price' field to the Close price (Price folder > Close) with a Tick offset.

    How to enter a market position: https://ninjatrader.com/support/help...MarketPosition
    How to exit a market position: https://ninjatrader.com/support/help...MarketPosition
    Offsetting a value: https://ninjatrader.com/support/help..._builder.htm#H owToOffsetAnItemValue

    Below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X