×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Custom Criteria Optimization

32 bytes removed, 14:45, 22 May 2014
no edit summary
#Create a custom signal using the [[SetCustomFitnessValue]] keyword in the PowerLanguage Editor specifying your custom criteria.
<p>
<div style="background-color: #E5F6FF;">Example: You want to optimize your signal by SharpeRatioSharpe Ratio. This parameter is not among the standard criteria.
One possible solution would be to create a function which calculates SharpeRatio Sharpe Ratio 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 a signal should be applied to your chart with the signals that you want to optimize ''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]]).
</div>
<div style="background-color: #E3FBE5;">Note: '''!optimize by sharpe ratio!''' default signal can be used as an example showing how to utilize this functionality and how to find the best parameters using custom criteria.</div>
[[Category:FAQ]]

Navigation menu