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

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mikey_, 03-23-2024, 05:59 PM
        3 responses
        49 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Started by f.saeidi, Today, 12:14 PM
        7 responses
        16 views
        0 likes
        Last Post f.saeidi  
        Started by Russ Moreland, Today, 12:54 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by philmg, Today, 12:55 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by TradeForge, 04-19-2024, 02:09 AM
        2 responses
        32 views
        0 likes
        Last Post TradeForge  
        Working...
        X