Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do you code the Auto Trailing Stop

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

    How do you code the Auto Trailing Stop

    I can't fine an example of setting up or calling the Auto Trailing Stop function from code. Could you please point me in the right direction? Thanks.

    #2
    If you want to use a trailing stop you will want to use SetTrailStop(). If you are referencing the ATM strategy's trailing stop functionality you can only call ATM strategies from NinjaScript. You would need to just call an ATM strategy that has the trailing stop predefined the way you like it.

    For SetTrailStop(): http://www.ninjatrader.com/support/h...ttrailstop.htm
    For calling ATM strategies, there is a preinstalled strategy with your NT called SampleAtmStrategy.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Reply

      Thanks a ton, that helps a bunch. I couldn't find it in my help files.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X