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

builder set stop as percent of daily atr

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

    builder set stop as percent of daily atr

    Hi,
    Is it possible, using the strategy builder, to set stop loss as percent of daily atr? I've tried a few things but could use advice.
    thanks,
    David

    #2
    Hello David,

    Thanks for your post.

    The Strategy Builder can have Conditions and Actions built to control an exit order for the stop loss, and this can utilize Indicator values for the stop price.

    For example, you can create an entry when flat, and then you are long, you can submit an exit stop market order for the stop loss at the price given. That stop price could be the Average Entry Price, minus a Daily ATR of period 1, times a User Input for the percentage of that ATR.

    I have attached an example showing how the exit can be set up.

    Please note that you will have to wait 1 bar after you enter in order for the stop to be placed at that level. Unlocking the code will allow you to submit the stop loss at indicator adjusted prices and also have the stop loss order submitted upon execution of the entry order.

    Let us know if you have any questions.
    Attached Files
    JimNinjaTrader Customer Service

    Comment


      #3
      thanks, Jim!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Christopher_R, Today, 12:29 AM
      0 responses
      7 views
      0 likes
      Last Post Christopher_R  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      166 responses
      2,235 views
      0 likes
      Last Post sidlercom80  
      Started by thread, Yesterday, 11:58 PM
      0 responses
      3 views
      0 likes
      Last Post thread
      by thread
       
      Started by jclose, Yesterday, 09:37 PM
      0 responses
      7 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,415 views
      0 likes
      Last Post Traderontheroad  
      Working...
      X