Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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).
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X