×

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
Open main menu

Changes

SetCustomFitnessValue

3 bytes added, 11:38, 3 October 2018
no edit summary
Sets a value of the custom criterion that is to be used for [[:Category:Optimization|optimization]].
== Usage ==
* This function can be used only in signals
* To use the custom fitness value:
*# Open genetic algorithm properties window;*# Set the number of simulations by changing the inputs range;*# Select the '''Algorithm-Specified PropertiesOptimization Settings''' tabwindow;*# Select the '''Custom Fitness Value''' from the dropdown list under the in '''Standard CriteriaOptimize by:''' section. * The SetCustomFitnessValue can be used both in Genetic Optimizations and Exhaustive Optimizations.
== Example ==
Set the gross profit to be a custom criterion for genetic optimization
<syntaxhighlight>SetCustomFitnessValue (grossprofitGrossProfit);</syntaxhighlight>
Set the formula to be a custom criterion for genetic optimization