×

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

Portfolio Trader

93 bytes removed, 13:25, 24 January 2023
Here is a sequence of actions that will be performed during calculation:
# Before a portfolio is calculated, data from all instruments contained in the Instrument List are either gathered from MultiCharts database or downloaded from a data provider's server. The first instrument’s data range start date determines the start date for all instruments. The strategy is then applied to every instrument in the Portfolio Tree.
# During backtesting, a single bar of each symbol's data series is evaluated by the strategy's signal scripts, starting with the first (oldest) bar. The series’ bars are evaluated in the order that the symbols appear in the symbols table of Portfolio Trader. Based on evaluation of each series’ bar, a set of one or more orders may be generated by the scripts for each of the symbols. Order sets are generated in the same sequence as the series’ bars are evaluated.
# This process is illustrated in the Raw Order Generation section of the [[Portfolio Script Calculation Diagram|diagram]]: the first bar for symbol 1 is evaluated first, and a set of orders is generated based on that bar. Then the first bar for symbol 2 is evaluated, and a set of orders is generated based on that bar. The process is repeated until the first bar for the last symbol (Symbol N) is evaluated.
After all strategies have been calculated, the PMM (Portfolio Money Management) signal (if any PMM signal has been applied) is initiated.
The '''PMM signal''' can access all the strategies within a portfolio . PMMS functionality helps to manage:
* Rotation strategy (when N “Best” instruments are traded simultaneously).
If the '''PortfolioEntriesPriority''' function is specified within a strategy, the sequence of the sets of orders is rearranged based on the criteria specified.
This process is illustrated in the Symbol Prioritization section of the [[Portfolio Script Calculation Diagram|diagram]]: the resulting sequence of sets of orders begins with the set of orders for the symbol 1, followed by the set of orders for symbol N, and ends with the set of orders for symbol 2.
The position of a set of orders in the sequence determines its relative priority: the set of orders for symbol 1 has the highest priority (31), set of orders for symbol N has the second highest priority (2), and the set of orders for symbol 2 has the least priority (3).
== Risk Control ==

Navigation menu