INVITE-ONLY SCRIPT

Convergence/divergence indicator

已更新
Convergence/divergence indicator (CDI)

Class: arbitrage oscillator
Trading type: intraday trading
Time frame: 1 hour
Purpose: trading on divergence
Level of aggressiveness: standard

Arbitrage - several logically related transactions aimed at profit from the difference in prices for the same or related assets at the same time in different markets.

Pair trading is a trading strategy based on trading a pair of financial instruments that have some fundamental or statistical relationship, expressed in the fact that the price ratio of these instruments tends to return to a certain average value in the long term.

“Convergence/divergence indicator (CDI)” using correlation analysis from different time frames provides information about statistical relationship between pair of assets.

Correaltion - a statistical relationship between two variables, showing that a larger value (in the case of positive, direct correlation) or a smaller (in the case of negative, inverse correlation) corresponds to a larger value of one value in a certain part of the cases.

The correlation coefficient is a statistical measure of the strength of the relationship between the relative movements of two variables.

The values range between -1.0 and 1.0.

A correlation of -1.0 shows a perfect negative correlation, while a correlation of 1.0 shows a perfect positive correlation.

A correlation of 0.0 shows no linear relationship between the movement of the two variables.

“Convergence/divergence indicator (CDI)” a) allows to find assets where pair arbitrage is possible and determines the moments in time and prices when the conditions for pair arbitrage are ideal.

“Convergence/divergence indicator (CDI)” evaluates the statistical relationship between pair of assets in a particular period of time and, if it is available, seeks for the divergence in price fluctuations of these “identical” assets.

“Convergence/divergence indicator (CDI)” displays the current value and dynamics of the Pearson correlation coefficient for a pair of selected assets based on daily (thick blue line) and hourly (thin red line) data.

Basic parameters:
- asset 1 (name of the trading instrument 1);
- asset 2 (name of the trading instrument 2);
- period_d (number of periods used to calculate daily correlation).
- period_h (number of periods used to calculate hourly correlation).

To gain the access to this indicator, please, send a private message to Trade24Fx.

發行說明
Converted into Pine Script 5.0.

Generator of alerts is added.

Additional variable are incorporated:
- Hourly correlation bottom - responsible for the alert, when hourly correlation goes below threshold (0.2 by default)
- Hourly correlation top - responsible for the alert, when hourly correlation goes above threshold (0.7 by default)

In case of alert function activation indicator will initate an alert if hourly corelation is below "Hourly correlation bottom" or if hourly corelation is above "Hourly correlation top."
convergenceconvergencedivergenceDivergencedivergencetradingindicatorsOscillators

僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請聯繫Trade24Fx以了解更多信息,或按照下面作者的說明進行操作。

TradingView 不建議購買並使用此腳本,除非您 100% 信任其作者並了解腳本的工作原理。在許多情況下,您可以在我們的社群腳本中免費找到良好的開源替代方案。

作者的說明

To gain the access to this indicator, please, send a private message to Trade24Fx.

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。

Авторские индикаторы
bit.ly/2oBvkHY
Больше информации на нашем ютьюб-канале
youtube.com/channel/UCYEOurJfasXWyYnrriGwsqQ
更多:

免責聲明