×

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

Self-Adaptive Trading

5,415 bytes added, 16:25, 18 December 2019
Created page with "Self-Adaptive Trading is an enhancement for automated trading, in which there is a periodic re-optimization of the strategy on new data. After the optimization is completed, t..."
Self-Adaptive Trading is an enhancement for automated trading, in which there is a periodic re-optimization of the strategy on new data. After the optimization is completed, the newly optimized input values of the strategy are used to continue automated trading.
== Understanding Self-Adaptive Trading ==
There is the option to use any of two available regular optimization methods [https://www.multicharts.com/trading-software/index.php/Understanding_Optimization (Exhaustive or Genetic)]. The optimization runs as a separate process to avoid any influence on auto trading.<br>

During the optimization, the strategy will continue to trade with the current parameters, regardless of how long the optimization process takes.<br>

The optimization ends with the determination of the best criterion value and the corresponding set of inputs.<br>

If the determined set of inputs matches the existing set of inputs, then auto trading will go on without changes.<br>

If the new inputs meet the requirements and are to be applied, the strategy goes into standby, from this point forward its calculation and order generation are stopped. Any active orders generated by this strategy are cancelled. The current market position value of the strategy is saved. The new input values are applied. The strategy starts calculating on the historical data from the beginning of the data series. When the calculation reaches the current moment, the saved market position value is applied, and the strategy begins calculating on real-time data as normal. The [https://www.multicharts.com/trading-software/index.php/Auto_Trading#Assign_the_Initial_Market_Position_at_the_Broker_Settings Assign the Initial Market Position at the Broker settings] are ignored.<br>

Finally, the trades in the '''Strategy Performance Report''' shall be updated in accordance with the new set of inputs and most likely the results will differ from the previous ones.<br>

<div style="background-color: #ccf0ea;">'''Note''': In [https://www.multicharts.com/trading-software/index.php/Understanding_Automated_Trade_Execution '''SA'''] mode the list of trades shall be cleared, as the orders are not generated during calculation on historical data in this mode.</div>

== Restrictions ==
Self-Adaptive Trading is not supported for:
* Portfolio Trader
* 32bit version of MultiCharts

== Using Self-Adaptive Trading ==
To use Self-Adaptive Trading:
# Open the '''Format Objects''' window.<br><span>{{FormatObjectIS}}</span>
# Select the '''Signals''' tab and select the signal in the box.
# Click the '''Properties''' button. The '''Strategy Properties''' window will appear.
# Select the '''Self-Adaptive Trading''' tab.
# Check '''Enable Self-Adaptive Trading'''.
# Set the required time and frequency of optimization in the '''Optimization schedule''' section. One can select any of the following modes:
#: '''Manual'''
#: '''Once'''
#: '''Recurring'''
# Check or uncheck the following boxes if required:
#: '''Apply inputs only if optimization results are better by''' N '''%''' — the percent value is customizable.
#: '''Require manual confirmation to apply optimized inputs''' — if unchecked, the optimized inputs are applied automatically.
#:<div style="background-color: #ccf0ea;">'''Note''': If both boxes are not checked, optimized inputs shall be applied if they differ from the existing strategy inputs.</div>
# If it is required to store the self-adaptive optimization report, then check the '''Save optimization reports''' box and specify the location where it shall be saved.
# Select the number of cores to use during the optimization by means of the corresponding toggle.
#:<div style="background-color: #ccf0ea;">'''Note''': It is not recommended to use all cores.</div>
# Set '''Max allowed duration''' of optimization in hours using the up and down buttons. The limit is 12 hours.
# Specify if it is required to apply inputs even if the optimization was not completed by checking the '''Apply inputs if optimization was not finished''' box. Leave the box clear to select the opposite.
#:<div style="background-color: #ccf0ea;">'''Note''': The optimization can be either performed completely or stopped if maximum allowed duration is reached. There is no other way to stop optimization process without turning off automated trading.</div>
# The '''Optimization Settings''' button opens a dialog where one can set such parameters as optimizable inputs, method, criteria. Read more in [[Performing Optimization]].
<br>
When the '''Strategy Properties''' dialog is closed, the '''Automate Order Execution Switch''' button turns into '''DTAA''' or '''DTSA''' depending on the auto trading mode that is used [https://www.multicharts.com/trading-software/index.php/Understanding_Automated_Trade_Execution (sync or async)].
One can turn on/off Self-Adaptive Trading the same way as regular Auto Trading (via '''Format''' menu or by clicking on the '''Automate Order Execution Switch''' button).
When it is time to optimize the strategy, the specific command is initiated and the corresponding note appears in the [[Order and Position Tracker]] on the '''Logs''' tab.
<br>
If optimization is set to manual mode in the Self-Adaptive Trading settings one can start optimization during auto trading by clicking on the corresponding icon [[File:optimize icon.png|20px]] in the [[Status Line]] of the chart.

[[Category:Optimization]]