How to Have Same Calculation Results in MultiCharts vs. TradeStation

From MultiCharts
Revision as of 19:07, 20 June 2013 by Andrew MultiCharts (talk | contribs) (Created page with "Though the 2 pieces of software are similar in many aspects and the scripting languages (EasyLanguage vs. PowerLanguage) are 99% compatible, strategy/study calculation results...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Though the 2 pieces of software are similar in many aspects and the scripting languages (EasyLanguage vs. PowerLanguage) are 99% compatible, strategy/study calculation results may still differ.
To have same results, make sure the following requirements are met.

Chart Configuration

Make sure the data on charts is the same both in MC and in TS:

  1. Same data source (TradeStation) should be used to feed charts in MC and in TS software. Comparing strategy/study calculation results on charts with data from different data providers is irrelevant.
  2. Same symbol should be plotted on charts in MC and TS software. It means the symbol should have exactly the same name and exchange.
  3. Same chart type should be selected for both charts in MC and in TS. It is irrelevant to compare results based on different chart types even within 1 piece of software.
  4. Same Chart Resolution should be set for both charts. It is irrelevant to compare results based on different chart resolutions even within 1 piece of software.
  5. Since TradeStation software doesn’t allow using asks and bids as data series on chart, only trades should be selected in MultiCharts in Quote Field.
  6. Same Sessions should be applied for the symbols in both pieces of software. It is important to understand that having “default” in session field for chart in MC doesn’t mean the same sessions are set for chart in TS. Please read this article to learn more.
  7. If the strategy/study references volume data for its calculation, the same option should be selected in Build Volume On field in chart settings both in TS and MC.
  8. Same time interval should be specified in Data Range setting for the charts in TS and MC.
  9. If the strategy/study references date and time for its calculation, the same option should be selected in Time Zone field in chart settings both in TS and MC.
  10. Even if data range and session settings are the same, the actual number of bars on the chart in MC vs. chart in TS may still differ (for example due to Holiday List). This difference may lead to different strategy/study calculation results. It is necessary to make the actual number of bars on the charts either the same or as close to each other as possible.
    Note: In MultiCharts you can see last bar number in Hint or Data Window if you put your cursor on the last bar on chart. In TradeStation this is not available out of box, but there is an easy way to find it out:
    Make a right-click on chart in TS -> Insert Analysis Technique… -> Indicators tab -> Select Custom 1 Line indicator -> Ok -> Insert the following as the Formula input currentbar+maxbarsback -> Ok. You will see the indicator on the subchart showing the actual number of bars.
  11. The price formats on chart should be the same. It means that the number of digits in integer part of price scale and number of digits in decimal part of Price Scale should be the same in MC chart and in TS chart.

Strategy Configuration

Make sure the applied study/strategy and its settings are the same:

  1. Since EasyLanguage(TS) and PowerLanguage(MC) are almost the same but not 100%, the script may required some syntax adjustment, but the logic of the script should be the same in both pieces of software.
  2. Make sure strategy/study inputs are the same for both scripts in MC and in TS.
  3. IntraBar Order Generation and Bar Magnifier features for signals (strategies) in MultiCharts work slightly different from their analogues in TradeStation. One should not expect identical results if any of these 2 features are used.
  4. Limit Order Fill Assumptions should be also configured identically for the charts in both platforms. TradeStation has additional options for this feature that are not supported in MultiCharts.
  5. Such feature as Market Order Fill Assumption (Backtesting tab of Strategy Properties) is not implemented in MultiCharts. It should be disabled in TradeStation.
  6. Commissions, Slippage (that doesn’t affect limit and stop limit orders in MC), Initial Capital, Interest Rate, Position Limits (pyramiding), Maximum Shares/Contracts/Units per Position, Trade Size and especially Maximum Number of Bars Study Will Reference (MaxBarsBack) should be configured identically in MultiCharts and TradeStation.
  7. As for automated execution in real-time with your broker account, there are multiple settings in MultiCharts that would make difference in comparison to TradeStation.