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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    167 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    88 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    128 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    208 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X