Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Performance metrics translation from NT7

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

    Performance metrics translation from NT7

    Hello,

    how would you write in NT8 these lines from a NT7 code?

    Help guide in NT8 seems incomplete.

    In NT7 code is:

    int n;
    for (n = 0; n < strategy.SystemPerformance.ParameterValues.Count; n++)
    {
    if ("MyTrades".CompareTo(strategy.SystemPerformance.P arameters[n].Name) == 0)
    {
    minTrades = (int)strategy.SystemPerformance.ParameterValues;
    break;
    }
    }


    #2
    Hello guillembm,

    Thank you for your post.

    Below I am including a link to a list of the code-breaking changes from NinjaTrader7 to Ninjatrader8. The help guide will be the best way to see how things have changed between the platforms.
    http://ninjatrader.com/support/helpG...ng_changes.htm

    You may use the Code Breaking Table filter to search for the code changes you are looking for.

    Please let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      thanks,

      I just realised that I pasted the wrong code.

      The (correct) code in NT7 format is:

      int n;
      for (n = 0; n < Strategy.Parameters.Count; n++)
      {
      if ("MyTrades".CompareTo(Strategy.Parameters[n].Name) == 0)
      {
      minTrades = (int)Strategy.Parameters[n].Value;
      break;
      }
      }


      I have already read these breaking code changes but I insist that help guide is incomplete.

      Following the example above I find no items that can explain how to write in NT8 format code like: "Strategy.Parameters.Count" or "Strategy.Parameters[n].Value"

      I am not asking to write my code. Just I want to have more info to translate it from NT7 to NT8 or at least tell me how to translate the code I wrote in the line above.

      Comment


        #4
        Hello guillembm,

        Thank you for that information.

        Was this code something that was documented for NinjaTrader 7? If not, then it won't be listed in the code-breaking changes guide.

        Are you trying to make a performance metric for the Strategy Analyzer or are you trying to work with the strategy's system performance?

        The code shown is not something that would have been documented/supported in NinjaTrader 7 so it is not likely able to be directly converted to NinjaTrader 8. If you could provide more details on what you are specifically trying to do, we might be able to match that with something that is now supported in NinjaTrader 8.

        Thanks in advance, I look forward to your reply.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        95 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        49 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        31 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        35 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        72 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X