Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating optimization executable

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

    Creating optimization executable

    Hi,

    I'm trying to create my own optimization criteria and I have a doubt. I need to optimize minimizing the number of bars per trade. To do this I replace in a copied file on the "Type" folder this line of code:

    public override double GetPerformanceValue(SystemPerformance systemPerformance)
    {
    return systemPerformance.AllTrades.TradesPerformance.AvgB arsInTrade;
    }

    but I need to specify that this value has to be minimized. Where do I specify it? I don't see on the remaining code any line to minimize or maximize

    #2
    Hello,

    Unfortunately there is not a supported method for setting the minimum number of trades.

    However I have forwarded this item to development to add in a potential future version for a default type to help keep the bars in trade as low as possible. This is tracked using ID #1164
    MatthewNinjaTrader Product Management

    Comment


      #3
      guillemb,

      Do you still need this kind of functionality?
      Check: http://pvoodoo.blogspot.com/2012/09/...hdrawdown.html
      Free example but let's see what can be done for this AvgBarsInTrade.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sidlercom80, 10-28-2023, 08:49 AM
      171 responses
      2,275 views
      0 likes
      Last Post QuantKey_Bruce  
      Started by Irukandji, Yesterday, 02:53 AM
      2 responses
      17 views
      0 likes
      Last Post Irukandji  
      Started by adeelshahzad, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post adeelshahzad  
      Started by CortexZenUSA, Today, 12:53 AM
      0 responses
      3 views
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Working...
      X