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 argusthome, Yesterday, 10:06 AM
      0 responses
      14 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      11 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      9 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      4 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      31 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X