BacktestRookies

Synergy Stats

Synergy Stats

This indicator is intended to complement the Synergy indicator. It provides the following statistics:

  • A percentage showing how often the two assets move in the opposite direction over a given lookback period.
  • Similarly, another percentage showing how often the two assets move in the same direction over the same lookback period.
  • Count the number of times (occurrences) when the two assets move in the same direction for more than 4 bars.
  • Count the number of times the alternative asset moves more than x%
  • Count the number of times that chart asset moved in the same direction of the alternative asset when the alternative asset moved more than x%

Both indicators were developed for use in an investigation/tutorial using Pine Script to analyse Gold and US Dollar Index correlation.

The full free post can be found here: https://backtest-rookies.com/2018/12/21/gold-correlation-strategies-change-indicator-and-analysis/

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?