• 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 lupearadu, Today, 01:58 PM
    2 responses
    4 views
    0 likes
    Last Post lupearadu  
    Started by nctpar, Today, 02:13 PM
    0 responses
    1 view
    0 likes
    Last Post nctpar
    by nctpar
     
    Started by rexmie888, Today, 01:47 PM
    0 responses
    4 views
    0 likes
    Last Post rexmie888  
    Started by aslane, Today, 12:41 PM
    0 responses
    4 views
    0 likes
    Last Post aslane
    by aslane
     
    Started by NinjaCustomer, 06-06-2018, 08:47 AM
    15 responses
    1,083 views
    0 likes
    Last Post cls71
    by cls71
     
    Working...
    X