Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Running related strategies at the same time

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

    Running related strategies at the same time

    I'm working with the following two strategies:

    First strategy: calculates at bar close and generates the signals.

    Second strategy: calculates tick by tick and places a trailing stop when "current market position = long/short" (from first strategy) . I have to create a second strategy since the trailing stop for the first one would calculate at bar close and I need it tick by tick.

    The problem is that the second strategy is not generating the trailing stop when there is a market position. How can I fix this?

    Thanks in advance

    #2
    abarb26, communication between strategies is unfortunately not supported. A strategy only knows about positions opened by itself, so it doesn't read in other market positions. There is a reference sample that goes over how to run some calculations every tick while running the main logic every bar, which is exactly what you're looking for.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thanks Austin. I'll look into it.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 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