Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom stop loss using strategy builder?

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

    Custom stop loss using strategy builder?

    Is it possible to have a custom stop loss using strategy builder?

    What I am trying to do is to update the stop loss as long as the profit increases (some sort of profit protection) but I wasn't able to figure out how to do it in strategy builder, not sure if it's even possible.

    Also, is it possible somehow to attach ATM to a strategy in order to manage that custom stop loss?

    #2
    Hello Harry Croi,

    Thanks for your post.

    You can create a custom trailing stop or a breakeven stop if you wish. Please see the examples posted by my colleague NinjaTrader_Chelsea here: https://ninjatrader.com/support/foru...rategy-builder

    It is possible to use ATM templates however not in the strategy builder.

    You can construct a Ninjascript strategy that will use a specified ATM template and the template can be configured as you wish. In your NinjaTrader is an example of this type of strategy called SampleAtmStrategy. Please review this strategy in the Ninjascript editor as the code is the best example we have of this type of hybrid strategy. The code of the strategy is well commented to help understand the requirements of use as well as how the various property and methods work. The comments advise to create an ATM template (for the demonstration) called "AtmStrategyTemplate" and it can be created as you wish to configure it.

    The sampleATMstrategy uses special methods and properties that do not access the normal strategy methods and properties, here is a link to the help guide section on these special ATM methods and properties: https://ninjatrader.com/support/help...gy_methods.htm

    Please note:
    1. The Strategy Builder does not support ATMs
    2. Strategies that use ATM methods cannot be "backtested" in the strategy analyzer.
    3. Strategies that use ATM methods can be tested with Playback using Market replay data.
    4. Strategies that use ATM methods need to skip historical data processing (as shown in the example strategy).

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X