Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Variable stop

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

    Variable stop

    I'm trying to use Strategy Builder to build a strategy that after ever entry will enter a stop and limt based on the EMA in relation to the entry. I've got it coded to do the difference between the entry and EMA for a stop and limit, but I'd really like to do 1.5 times the stop amount. 1 times is leaving money on the table and 2 times is staying in trades too long. I don't have any opportunity for arithmetic when dealing with my inputs or variables, so I was curious if anyone with more knowledge than me might have some advice of how to use the builder to do a 1.5 or 1.25 mulitiplier on a variable. I appreciate it. Thanks.

    Rob

    #2
    Hello Rob,

    Thanks for your post.

    A limitation of the Strategy Builder is that you are only able to offset (+, -, x, /) a custom Series, not regular variables or inputs.

    You may consider creating a custom series in the Additional Data screen of the Strategy Builder to use for your stop loss. A value could be assigned to the custom series that you would like to use for your stop loss. That custom series could then be used for your stop loss and offset (multiplied) by a set value.

    Note that custom series could be found in the Misc folder when using it for a condition or action.

    Here is a link to our publicly available training video, 'Automate your trading with NinjaTrader's Strategy Builder', which you might find helpful.

    'Automate your trading with NinjaTrader's Strategy Builder': https://youtu.be/VxU4FR6GWNA​​

    See the help guide documentation for more information.

    Additional Data screen: https://ninjatrader.com/support/help...standingTheAdd itrionalDataScreen
    Offsetting an item value: https://ninjatrader.com/support/help..._builder.htm#H owToOffsetAnItemValue
    Conditions: https://ninjatrader.com/support/help...on_builder.htm
    Actions: https://ninjatrader.com/support/help...t8/actions.htm

    Please let me know if you have further questions.
    <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 NullPointStrategies, Today, 05:17 AM
    0 responses
    20 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    119 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X