Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Attach to Indicator command for NT8

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

    Attach to Indicator command for NT8

    Hi,
    Anyone know a way to use the "Attach to Indicator" command in Strategy Builder? I would like to attach my Stop Order to an EMA, either when the trade is first entered or possibly even later in the trade, when other conditions have been met.

    Thanks,
    Best Regards

    #2
    Hello Genesis2021,

    Thanks for your post.

    In the Strategy Builder, the SetStopLoss and the other Set methods are created as fixed values meaning once created they cannot be changed. Indicator values are not known at the time that the Set method is created and in the Strategy Builder, this is a limitation.

    To accomplish your goal of using a Set method that ties to an indicator, you would have to unlock the Strategy Builder created strategy and work directly in a Ninjascript Editor. In Ninjascript, in the section where you place the order, you would assign the SetStopLoss() to the value of the indicator before the line that places the order to ensure the stop loss value is set first.

    For alternative approaches and more information please see this forum thread: https://ninjatrader.com/support/foru...rategy-builder

    Let us know if we may assist further.
    <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
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X