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/

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?