Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Identification within NinjaTrader

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

    Strategy Identification within NinjaTrader

    I've recently had a couple of experiences where NinjaTrader has lost communications with my broker just as an order was being placed which has resulted in order rejection and strategy termination due to duplicate orders. When this occurs, NinjaTrader is good enough to provide me with a notification similar to the following:

    Strategy 'StratpSAR/b9cbae14a4234a15af3b8c17b070f264' submitted an order that generated the following error 'OrderRejected'. Strategy has sent cancel requests, attempted to close the position and
    terminated itself.

    I have two questions:

    1) How can I derive the "b9cbae..." part of that strategy definition?

    2) Is that uniquely linked to a specific invocation of the stategy?

    I typically have several invocations of a strategy running (either against different timeframes or different instruments) and I'd like to be able to know for my logs which one is implicated.

    Thanks!
    Last edited by cmt_Robert; 05-17-2014, 01:43 PM. Reason: removed erroneous text

    #2
    Cmt_Robert,

    Thank you for your post.

    The Strategy ID is created with each new instance of the strategy, from either the Charts or Strategies Tab , in the local Database file.


    Additionally, you can access the ID with -
    Code:
    this.ID;
    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Cal. I'll have to look more closely at my logs. My earlier review seemed to suggest that, where a strategy was invoked more than once (based on the same compiled code) it had the same "suffix".

      Comment


        #4
        When you say invoked are you referring to Enable and Disable?
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Cal View Post
          When you say invoked are you referring to Enable and Disable?
          I'm referring to the process of selecting "New Strategy..." and then defining a set of parameters for that new strategy, repeating that process for several variations of a particular compiled strategy (with different time frames or instruments or other parameters) and then enabling them so that they are running concurrently.

          Comment


            #6
            Thanks Robert, yes we would expect that id to be unique per instance you created. If you disable the script and then re-enable (with adding it new), so the actual instance would be reused, the id will stay the same though.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            631 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            566 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X