Custom Criteria Optimization

From MultiCharts
Revision as of 15:19, 16 May 2012 by Dave Masalov (talk | contribs)
Jump to navigation Jump to search

If the standard set of optimization parameters does not suit you, you can create your own custom criteria for optimization.

There are two ways to create custom criteria for optimization:

  1. Write custom criteria in java on the Optimization Criteria tab of the Exhaustive Search Properties window or on the Algorithm-Specific Properties tab of the Genetic Algorith Properties window (see Performing Optimization); or:
  2. Create a custom signal using SetCustomFitnessValue keyword in PowerLanguage Editor specifying your custom criateria.

Example: You want to optimize your signal by Sharpe Ratio. This parameter is not among standard criteria.

One possible solution would be to create a function which calculates SharpeRatio in Power Language (see default SharpeRatio function) and use it as a SetCustomFitnessValue keyword parameter. See the !optimize by sharp ratio! default signal as an example. Such signal should be applied to your chart with the signals that you want to optimize applied before performing optimization.

Make sure that you select the Custom Fitness Value from the list under the Standard Criteria section on the Optimization Criteria tab of the Exhaustive Search Properties window or on the Algorithm-Specific Properties tab of the Genetic Algorith Properties window (see Performing Optimization).