Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access stats in optimization from different parameter set

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

    Access stats in optimization from different parameter set

    Hello traders,

    If I'd want to get the value for Profit Factor in method OnCalculatePerformanceValue() in an optimization fitness, I'd do it by typing:
    Value = strategy.SystemPerformance.AllTrades.TradesPerform ance.ProfitFactor;

    This value is for current optimization parameters, those assigned by optimizer in current iteration. Say OnCalculatePerformanceValue() is called for parameters Fast = 10, Slow = 50 and I would like to check Profit Factor for a different parameter set, for example Fast = 20, Slow = 50. Is there a way of doing it?

    In other words, can I check in method OnCalculatePerformanceValue() statistics for Fast/Slow = {20, 50} from {10, 50} (or any other combination)?

    This example is maybe an oversimplification and might appear to be useless, but it is not.

    Thank you.

    Pedro.
    Last edited by pintope; 05-09-2017, 10:15 AM.

    #2
    Hello pintope,

    Within the Strategy Analyzer, under the Parameters column, have you looked for the desired combination, ex {20, 50}, and seen the performance value beside it?

    I look forward to you reply.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello Alan,

      sure, I know Strategy Analyzer very well but I would like to do it programmatically. I would like my fitness function to be able to check not only stats for current point (parameter set) but also others. I don't know whether it's possible, I have a good understanding of NinjaScript but maybe I miss something.

      Thank you.

      Comment


        #4
        Hello pintope,

        This would not be possible to do programmatically however I will submit a feature request on your behalf.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Alan for your help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          56 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X