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 kulwinder73, Today, 10:31 AM
      0 responses
      0 views
      0 likes
      Last Post kulwinder73  
      Started by terofs, Yesterday, 04:18 PM
      1 response
      22 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by CommonWhale, Today, 09:55 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Gerik, Today, 09:40 AM
      2 responses
      7 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Started by RookieTrader, Today, 09:37 AM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X