• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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?
    Patrick H.NinjaTrader Customer Service

    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 dkbyond, Today, 06:43 PM
      0 responses
      3 views
      0 likes
      Last Post dkbyond
      by dkbyond
       
      Started by i2w8am9ii2, Today, 06:05 PM
      0 responses
      1 view
      0 likes
      Last Post i2w8am9ii2  
      Started by YevhenShynkarenko, Today, 05:46 PM
      0 responses
      4 views
      0 likes
      Last Post YevhenShynkarenko  
      Started by Bionian, Today, 04:14 PM
      0 responses
      3 views
      0 likes
      Last Post Bionian
      by Bionian
       
      Started by dkbyond, Today, 04:03 PM
      0 responses
      5 views
      0 likes
      Last Post dkbyond
      by dkbyond
       
      Working...
      X