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 Taddypole, Today, 02:25 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by Graci117, Yesterday, 11:40 PM
      3 responses
      18 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by cmtjoancolmenero, Today, 02:31 PM
      2 responses
      6 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by tradebot, Today, 01:25 PM
      2 responses
      8 views
      0 likes
      Last Post tradebot  
      Started by merc410, Today, 03:41 AM
      4 responses
      28 views
      0 likes
      Last Post merc410
      by merc410
       
      Working...
      X