• 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

Creating optimization executable

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

  • raffu
    replied
    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.

    Leave a comment:


  • NinjaTrader_Matthew
    replied
    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

    Leave a comment:


  • guillembm
    started a topic Creating optimization executable

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by habibalex, Today, 09:45 AM
1 response
3 views
0 likes
Last Post NinjaTrader_Tabor  
Started by peterslane1, Today, 09:47 AM
1 response
7 views
0 likes
Last Post NinjaTrader_Tyler  
Started by mtamaku, Today, 09:34 AM
0 responses
6 views
0 likes
Last Post mtamaku
by mtamaku
 
Started by datahogg, Today, 08:48 AM
1 response
7 views
0 likes
Last Post NinjaTrader_Kate  
Started by Newtrader101, 11-02-2019, 06:36 PM
4 responses
405 views
1 like
Last Post datahogg  
Working...
X