Portfolio Trader: Difference between revisions
From MultiCharts
→Understanding Portfolio Money Management Signals
No edit summary |
Abeloglazova (talk | contribs) |
||
(20 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
In MultiCharts 9.0 '''Portfolio Backtester''' has been improved and became '''Portfolio Trader''' adding [[#Automated Trading|Portfolio Automation]] and [[#Forward Testing|Forward Testing]] to the list of features. | |||
In MultiCharts 9.0 '''Portfolio Backtester''' has been improved and became '''Portfolio Trader''' | |||
Download [[Media:Portfolio_Trader_Manual.pdf]] in '''.PDF''' format. | |||
== Opening Portfolio Trader == | |||
To open '''Portfolio Trader''': | |||
* click '''Portfolio Trader''' [[File:Port Trdr icon.png]] icon on the '''Main''' toolbar; or: | |||
* in the '''Main''' menu select '''File''', then point to '''New''' and click '''Portfolio Trader'''. | |||
<br> | |||
== Understanding Portfolio Trader == | == Understanding Portfolio Trader == | ||
Line 10: | Line 16: | ||
=== Portfolio Trading Benefits === | === Portfolio Trading Benefits === | ||
Applying a trade strategy to a number of financial instruments simultaneously offers the following advantages: | |||
* A diverse portfolio will produce more consistent results | * A diverse portfolio will produce more consistent results. | ||
* Infrequent trading opportunities will be more common across a number of symbols | * Infrequent trading opportunities will be more common across a number of symbols. | ||
* Portfolio strategies can maximize profit and minimize risks by dynamically allocating a portfolio’s capital based on each instrument’s performance | * Portfolio strategies can maximize profit and minimize risks by dynamically allocating a portfolio’s capital based on each instrument’s performance. | ||
* Portfolio strategies can enter, scale-in, scale-out, or exit positions based on the portfolio’s overall performance | * Portfolio strategies can enter, scale-in, scale-out, or exit positions based on the portfolio’s overall performance. | ||
* Portfolio strategies are generally more robust and less susceptible to over-optimization | * Portfolio strategies are generally more robust and less susceptible to over-optimization. | ||
* By backtesting on a diverse portfolio, instruments best suitable for that particular trading strategy can be selected. | * By backtesting on a diverse portfolio, instruments best suitable for that particular trading strategy can be selected. | ||
Line 45: | Line 51: | ||
'''Performance Graph''' gives a visual representation of portfolio performance. The following values are shown: | '''Performance Graph''' gives a visual representation of portfolio performance. The following values are shown: | ||
* Initial Capital | * Initial Capital. | ||
* Net Profit | * Net Profit. | ||
* Equity | * Equity. | ||
* Buying Power | * Buying Power. | ||
[[File:Perf Graph.png]] | [[File:Perf Graph.png]] | ||
Line 72: | Line 78: | ||
'''Portfolio Performance Report''' is available in '''Auto Trading Mode'''. A Portfolio Performance Report shows results generated from the moment it opens. | '''Portfolio Performance Report''' is available in '''Auto Trading Mode'''. A Portfolio Performance Report shows results generated from the moment it opens. | ||
<br><div style="background-color: #E3FBE5;">'''NOTE:''' The report is recalculated automatically in the '''Forward Testing''' and '''Auto Trading''' modes, but not in the '''Backtesting''' mode. | |||
Please, also note that there are 2 cases when the Report is not recalculated: | |||
* when it is opened on Trade Analysis -> List of Trades page | |||
* when it is opened on Breakdown by Symbols -> Overview -> detailed report for the symbol page. </div> | |||
== Understanding Dynamic Portfolio == | == Understanding Dynamic Portfolio == | ||
Line 100: | Line 112: | ||
# 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. | # 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 | # 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 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. | # This process is illustrated in the Raw Order Generation section of the 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 of the strategies have been calculated, the PMM (Portfolio Money Management) signal is initiated (if any has been applied under Portfolio Properties). The PMM signal is used to apply money management settings to the entire portfolio. It can access all of the portfolio's strategies via pmms_keywords. (Calculation-wise, the PMM signal is not copied to every signal and is always calculated on the first instrument on the same bar on which all other signals are calculated). | # After all of the strategies have been calculated, the PMM (Portfolio Money Management) signal is initiated (if any has been applied under Portfolio Properties). The PMM signal is used to apply money management settings to the entire portfolio. It can access all of the portfolio's strategies via pmms_keywords. (Calculation-wise, the PMM signal is not copied to every signal and is always calculated on the first instrument on the same bar on which all other signals are calculated). | ||
Line 126: | Line 138: | ||
Each strategy is designed to open and close positions of a specific instrument, i.e. the strategy calculates the moment WHEN the position should be opened/closed. | Each strategy is designed to open and close positions of a specific instrument, i.e. the strategy calculates the moment WHEN the position should be opened/closed. | ||
After all strategies have been calculated, the PMM (Portfolio Money Management) signal (if any | 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: | The '''PMM signal''' can access all the strategies within a portfolio PMMS functionality helps to manage: | ||
Line 136: | Line 148: | ||
[[File:PMMS Signal window.png]] | [[File:PMMS Signal window.png]] | ||
Since '''MultiCharts 11''' Portfolio Money Management signals can generate '''alerts'''. To enable alerts for the PMM signals it is required to use [[Alert]] keyword in the code of the signal and enable alerts in the '''Alerts''' tab in '''Strategy properties'''. | |||
<div style="background-color: #E3FBE5;">'''Note:''' It is important to understand that Money Management signals have a base resolution – this is the first symbol in your Portfolio table (the upper left cell of the table, as shown on the picture above). The data and statuses are taken from it during the PMM signal’s calculations. Even if the first strategy is disabled in Portfolio Tree, the PMM signal will refer to this symbol.</div> | |||
<div style="background-color: #E3FBE5;">If a PMM signal references additional data series (Data2, Data3, etc) the values are also taken from the first row of the Portfolio instruments table.</div> | |||
== Symbol Prioritization == | == Symbol Prioritization == | ||
Line 160: | Line 177: | ||
All major strategy calculation indicators, such as Portfolio Net Profit, Gross Profit, Gross Loss, Trades Profits and Losses, etc. are calculated in the account currency, including EXISTING MaxIDDrawDown, NetProfit, MaxPositionProfit; PosTrade***;_OpenEntry***. <br> | All major strategy calculation indicators, such as Portfolio Net Profit, Gross Profit, Gross Loss, Trades Profits and Losses, etc. are calculated in the account currency, including EXISTING MaxIDDrawDown, NetProfit, MaxPositionProfit; PosTrade***;_OpenEntry***. <br> | ||
Strategy values (during backtesting, optimization, forward testing, realtime trading) are converted using historical data. The corresponding exchange rates at the close of the previous FOREX trading session will be used, intra-day exchange rate fluctuations are not taken into account: e.g. if the trade occurs on April 30th, the close price of the April 29th FOREX trading session will be used. | |||
Currency conversion patterns:<br> | Currency conversion patterns:<br> | ||
Line 208: | Line 224: | ||
[[Category:Portfolio | [[Category:Portfolio Trading]] |