×

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

Performing Optimization

14 bytes added, 16:58, 2 February 2012
<br>'''Code Example'''
The code below creates the net profit Net Profit / max drawdown Max Drawdown ratio.: <code>&nbsp; &nbsp; &nbsp;&nbsp;<br>if (StrategyPerformance.MaxStrategyDrawDown != 0)
&nbsp; &nbsp; &nbsp;&nbsp;<br>{
&nbsp; &nbsp; &nbsp;&nbsp;<br>return StrategyPerformance.NetProfit / (-&nbsp; &nbsp; &nbsp;&nbsp;<br>StrategyPerformance.MaxStrategyDrawDown);
&nbsp; &nbsp; &nbsp;&nbsp;<br>}
</code> <br>Besides NetProfit and MaxStrategyDrawdown, there are many other properties that can be referenced. The table below shows the available properties.
<br>For example, to reference the number of trades, simply use StrategyPerformance.TotalTrades.
To reference winning percentage, simply use StrategyPerformance.PercentProfitable.
 
{| class="wikitable" width="65%"