Category Volatility  Published on 23/05/2024

Z-score Spread Indicator

Description

The ZScoreSpreadIndicator is designed to measure the spread between two specified symbols and calculate the Z-score of this spread. This can be used to identify potential trading opportunities based on statistical arbitrage strategies. The indicator allows users to input the two symbols they wish to analyze, the rolling window for calculations, and specific thresholds for trade entries and exits.

Features:

  1. Symbol Selection: Choose any two symbols to calculate the spread.
  2. Rolling Window: Specify the period for the moving average and standard deviation calculations.
  3. Threshold Parameters: Set custom thresholds for upper, lower, and exit Z-score levels.
  4. Visual Output: Display the spread and Z-score on the chart, along with threshold lines for easy analysis.

This indicator helps traders to visualize and make decisions based on the statistical relationship between two financial instruments, leveraging mean reversion and divergence strategies.

Screenshot image

Example above shows the Z-score Spread between EURUSD & EURCAD. The spread between the symbol can me modify according to personal preference. and the thresholds are set as a parameter allow user to modify as well. 


The author decided to hide the source code.
HO
honglee_0903

Joined on 26.01.2024

  • Distribution: Paid
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Zscore between 2 pair.algo
  • Rating: 0
  • Installs: 0
  • Modified: 23/05/2024 05:57
Comments
Log in to add a comment.
No comments found.