Chart Backtesting VS Portfolio Backtesting: Difference between revisions
From MultiCharts
No edit summary |
|||
Line 1: | Line 1: | ||
MultiCharts and [[Portfolio_Trader|Portfolio Trader]] serve different purposes, and backtesting on charts and in Portfolio is not supposed to match. Still there are some recommendations that can help in bringing the backtesting on charts and in Portfolio as close to each other as possible. | MultiCharts and [[Portfolio_Trader|Portfolio Trader]] serve different purposes, and backtesting on charts and in Portfolio is not supposed to match. Still there are some recommendations that can help in bringing the backtesting on charts and in Portfolio as close to each other as possible. | ||
==Instrument | ==Instrument Settings== | ||
<div class="important">Portfolio workspace should contain only 1 symbol in the [[Data_Numbers|'''Data 1''']] column.</div> | <div class="important">Portfolio workspace should contain only 1 symbol in the [[Data_Numbers|'''Data 1''']] column.</div> | ||
Line 16: | Line 16: | ||
<div class="footnote">[[Operating_Portfolios#Data_Range|Data Range]] and [[Operating_Portfolios#Time_Zone|Time Zone]] for Portofio are specified in the [[Operating_Portfolios#Data_Series_Properties|common Data settings]].</div> | <div class="footnote">[[Operating_Portfolios#Data_Range|Data Range]] and [[Operating_Portfolios#Time_Zone|Time Zone]] for Portofio are specified in the [[Operating_Portfolios#Data_Series_Properties|common Data settings]].</div> | ||
==Signal | ==Signal Settings== | ||
# [[Signal_Settings#Setting_Input_Values|Signal inputs]] on the chart should match those in Portfolio precisely. | # [[Signal_Settings#Setting_Input_Values|Signal inputs]] on the chart should match those in Portfolio precisely. | ||
# [[Signal_Settings#Intra-Bar_Order_Generation|Intra-Bar Order Generation]] has to be disabled on charts, because this mode is not available in Portfolio. | # [[Signal_Settings#Intra-Bar_Order_Generation|Intra-Bar Order Generation]] has to be disabled on charts, because this mode is not available in Portfolio. | ||
==Strategy | ==Strategy Settings== | ||
The following strategy settings should also match: | The following strategy settings should also match: | ||
Line 37: | Line 37: | ||
#* [[Bar Magnifier]] and [[Precise_Backtesting|Extended backtesting]] are unavailble for Portfolio, so on the chart it is required to disable these options. | #* [[Bar Magnifier]] and [[Precise_Backtesting|Extended backtesting]] are unavailble for Portfolio, so on the chart it is required to disable these options. | ||
==Portfolio Trader | ==Portfolio Trader Specific Settings== | ||
The following settings are unavailable on charts, therefore they need to be configured so that they don’t influence Portfolio backtesting. In the [[Portfolio_Settings|'''Money Management Settings''']] section: | The following settings are unavailable on charts, therefore they need to be configured so that they don’t influence Portfolio backtesting. In the [[Portfolio_Settings|'''Money Management Settings''']] section: |
Revision as of 10:53, 23 July 2024
MultiCharts and Portfolio Trader serve different purposes, and backtesting on charts and in Portfolio is not supposed to match. Still there are some recommendations that can help in bringing the backtesting on charts and in Portfolio as close to each other as possible.
Instrument Settings
Portfolio workspace should contain only 1 symbol in the Data 1 column.
- Only one symbol from one data source must be used and they must be identical in both the MultiCharts chart and the Portfolio Trader;
- The following parameters should be set identically:
- Chart type
- Resolution
- Quote Field
- Sessions
- Build volume on if the strategy uses volumes in its calculations.
- Data Range* should be specified as From/To and not Days/Bars Back.
- Time Zone*
Signal Settings
- Signal inputs on the chart should match those in Portfolio precisely.
- Intra-Bar Order Generation has to be disabled on charts, because this mode is not available in Portfolio.
Strategy Settings
The following strategy settings should also match:
- on the Properties tab:
- Commission Rule
- Slippage
- Init Capital (for Portfoio this parameter is specified in the common Portfolio Settings)
- Maximum number of bars study will reference
- Position limits
- Trade size
- on the Backtesting tab:
- Backtesting assumptions
- Realtime-history matching
- Bar Magnifier and Extended backtesting are unavailble for Portfolio, so on the chart it is required to disable these options.
Portfolio Trader Specific Settings
The following settings are unavailable on charts, therefore they need to be configured so that they don’t influence Portfolio backtesting. In the Money Management Settings section:
- Exposure = 100%
- Max % of Capital at Risk per Position = 100%
- Margin value = 0
- Max Potential Loss = 0
Even with all of these recommendations implemented there’s a possibility that the backtesting results in both applications will not match. This is related to the code’s specific and one should review the strategy’s code to find the reason for the discrepancy. An example of how to do that can be found here.