• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 to NT8 Optimizer Metrics / Fitnesses

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

    NT7 to NT8 Optimizer Metrics / Fitnesses

    I would like to convert the custom optimizer types that another user was kind enough to share in this thread. (The original NT7 script is attached here).

    https://ninjatrader.com/support/foru...d.php?p=183042

    Looking through the scripts I can see several changes from NT7 to NT8 but I'm stuck at the error on on 'GetPerformanceValue'.

    Any help would be greatly appreciated!
    Attached Files

    #2
    Hello tmorgan4,

    Thank you for your post.

    Refer to the information at the following link: http://ninjatrader.com/support/helpG...on_fitness.htm

    I would recommend comparing the NinjaTrader 8 Optimizer Fitnesses to the Optimization Types in NinjaTrader 7.

    For example, Max Net Profit would use the following in NinjaTrader 7:
    Code:
    		public override double GetPerformanceValue(SystemPerformance systemPerformance)
    		{
    			return systemPerformance.AllTrades.TradesPerformance.GrossProfit + systemPerformance.AllTrades.TradesPerformance.GrossLoss;
    		}
    But in NinjaTrader 8 it would use the following:
    Code:
    		protected override void OnCalculatePerformanceValue(StrategyBase strategy)
    		{
    			Value = strategy.SystemPerformance.AllTrades.TradesPerformance.GrossProfit + strategy.SystemPerformance.AllTrades.TradesPerformance.GrossLoss;
    		}
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the help. This should get me on the right track.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by manueldecastro, Today, 12:57 AM
      0 responses
      5 views
      0 likes
      Last Post manueldecastro  
      Started by JulieG, Today, 12:40 AM
      0 responses
      3 views
      0 likes
      Last Post JulieG
      by JulieG
       
      Started by jimjoe123, Yesterday, 09:28 PM
      2 responses
      9 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by 12VMan, 08-20-2019, 09:29 AM
      2 responses
      21 views
      0 likes
      Last Post Lancer
      by Lancer
       
      Started by tgn55, Yesterday, 09:50 PM
      0 responses
      5 views
      0 likes
      Last Post tgn55
      by tgn55
       
      Working...
      X