(a) I am interested in a custom optimization criteria that uses
(max net profit in points) * (% of positive days)
I looked at a number of sample codes available at Documents\NinjaTrader 7\bin\Custom\Type
and I can get the
max net profit (in dollars, not in points) as
systemPerformance.AllTraders.TradersPerformance.Gr ossProfit + systemPerformance.AllTraders.TradersPerformance.Gr ossLoss
(i) how can I code in "% of positive days" ?
(ii) also, how can I get the performance in "points" rather than dollars?
(b) also, is there any place, where I can get a list of all fields available for systemPerformance.* ?
Thanks
Comment