Hello
I'd like to optimize using some personalized criteria that cannot be expressed with the reserved words available on the optimization box.
I would be happy if I could optimize using the Sortino ratio criteria, but it's not included in MC either.
Is there any way to use a user function as optimization criteria?
(or being able to use detailed (per bar) strategy results from the optimization).
I've seen that MC 8 includes a "CustomFitnessValue" reserved word.
Can it be used for my purposes or it's just for genetic optimization?
regards
optimization criteria using a user function [SOLVED]
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: optimization criteria using a user function
There's a thread about Custom Criteria here, including examples and a list of available keywords.
I don't know how the Sortino ratio is exactly calculated, but if it needs information on a per trade basis (like for example calculating the standard deviation), then a Custom Criteria cannot be made for this. This is because the Custom Criteria only contain information on a per strategy basis (like net profit and number of trades). As a result, the Sharpe ratio and other performance measures that need information on a per trade basis sadly cannot be used.
Vote for this feature request if you also would like to access information on a per trade basis, which would greatly improve the functionality of the Custom Criteria.
I don't know how the Sortino ratio is exactly calculated, but if it needs information on a per trade basis (like for example calculating the standard deviation), then a Custom Criteria cannot be made for this. This is because the Custom Criteria only contain information on a per strategy basis (like net profit and number of trades). As a result, the Sharpe ratio and other performance measures that need information on a per trade basis sadly cannot be used.
Vote for this feature request if you also would like to access information on a per trade basis, which would greatly improve the functionality of the Custom Criteria.
Re: optimization criteria using a user function
I thought with MC 8 we could use a per bar trading information on the optimization.
Re: optimization criteria using a user function
Is it already possible, in year 2017, to use "per bar trading information" on the optimization in MultiCharts?
Or is it already possible to use the Sortino ratio directly?
These were some of the limitations that made my previous company move away from Multicharts.
Or is it already possible to use the Sortino ratio directly?
These were some of the limitations that made my previous company move away from Multicharts.
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: optimization criteria using a user function
Yes, you can use the SetCustomFitnessValue() keyword to create a custom optimisation criteria that includes any information you can access in PowerLanguage. That includes per bar/per trade metrics.Is it already possible, in year 2017, to use "per bar trading information" on the optimization in MultiCharts?
Re: optimization criteria using a user function [SOLVED]
Great news.
It says it can be used only in signals.
When is not possible to use it?
It says it can be used only in signals.
When is not possible to use it?