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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      102 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X