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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X