Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How is strategy id assigned?

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

    How is strategy id assigned?

    How is strategy id calculated and assigned? In which case does the strategy id change? whenever the source code is compiled, the strategy is applied to the chart, reloaded, the strategy parameters are modified, underlying instrument is changed, etc.?

    #2
    Hello Clearpicks,

    Thank you for your post.

    The Strategy ID is created when the strategy is added to a chart or via Strategies tab. This is generated and stored for the database local to the PC for NinjaTrader. This allows the account performance to track orders placed via the strategy ID and see the information available for them.

    This ID does not change. It is assigned once and that is it. Once the strategy is removed or deleted, that ID is not used again but will remain in the database unless it is reset or renamed.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hello,
      I would like to use Strategy ID as a variable in my NinjaScript. How can it be obtained? Thank you in advance.

      Comment


        #4
        Hello InteRadek,

        You would use this.Id.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X