Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy ID = -1

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

    Strategy ID = -1

    I am working on moving my Local Order Manager to NT8.

    My question is around the "Strategy Id". For some reason, when a strategy start, it seems to start pushing data into the OnMarketData() and OnBarUpdate() function with a strategy ID = -1. It seems like it changes later to a positive value, but this is confusing not sure the need or purpose. Seems to waste time.

    The ID I am speaking of is set within a strategy:
    this.Id == -1

    #2
    Hello NJA_MC,

    Thank you for your post.

    I am not seeing a negative value. What states are you checking the Id in?

    Comment


      #3
      Hi Patrick,

      I get this in Config/Historical/Terminate (it was on the weekend so there was no RealTime data) at a minimum on BETA2, let me try BETA3 and I will get back to you. I assume the -1 is during configuration of the strategy and should go away once we reach Historical state.

      I have modified my scripts to ignore "-1" so I will remove that filter so I can test over the next few days.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X