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 alifarahani, Today, 09:40 AM
      6 responses
      40 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X