Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing stop with entries on a secondary data series

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

    Trailing stop with entries on a secondary data series

    I have a script with multiple time frames, thus in order to get more accurate fills during testing, I have added a single-tick series and I'm submitting orders to that per the official docs here: https://ninjatrader.com/support/help...ipt_strate.htm

    I'd like to add a trailing stop, but in the documentation for SetTrailStop() and SetStop(), it states:

    •Should you have multiple Bars objects of the same instrument while using SetStopLoss() in your strategy, you should only submit orders for this instrument to the first Bars context of that instrument. This is to ensure your order logic is processed correctly and any necessary order amendments are done properly.
    Am I reading this correctly that it's saying that since I'm submitting my orders to my 3rd data series (the single-tick series), that this may mess up the stops (which I presume are submitted to the first series)? Is there any workaround?

    #2
    Hello pshift,

    Welcome to the NinjaTrader forums!

    Yes, this is correct. Set methods update with the primary series only. Instead of using SetTrailStop/SetStopLoss, you would want to use Exit orders instead (or use the unmanaged approach with SubmitOrderUnmanaged).

    Below is a link to examples.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post

      Perfect, this looks like it will do what I'm looking for. Thanks for the fast reply.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X