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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      72 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X