• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR Stops

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

    ATR Stops

    Can we use an ATR Value and convert it to ticks for a stop in Strategy Builder?
    Thanks.

    #2
    Hello Trader17,

    Thanks for your inquiry.

    This would be possible to hard code into an unlocked NinjaScript strategy, but this would not be possible in the Strategy Builder as the Strategy Builder has limited support for mathematical operations and there is not a way you could multiply the ATR by the TickSize and convert it for use for an ExitLimit or ExitStop order in the Strategy Builder.

    Additionally, if you wanted to use SetProfitTarget() or SetStopLoss() to set an exit based on indicator values, you would have to unlock the code so the strategy can update the profit target and stop losses dynamically.

    You may see the SetProfitTarget() and SetStopLoss() documentation for more information on hard coding dynamic profit targets and stop losses based on changing data.

    SetProfitTarget() - https://ninjatrader.com/support/help...ofittarget.htm

    SetStopLoss() - https://ninjatrader.com/support/help...etstoploss.htm

    Please let us know if you have any questions.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mberg, Today, 05:13 PM
    0 responses
    0 views
    0 likes
    Last Post Mberg
    by Mberg
     
    Started by Barry Milan, Today, 01:33 PM
    2 responses
    7 views
    0 likes
    Last Post marcus2300  
    Started by NW Trader, Today, 03:42 PM
    2 responses
    7 views
    0 likes
    Last Post NW Trader  
    Started by ralett, Today, 01:42 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by dkbyond, Yesterday, 04:11 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X