OPEN-SOURCE SCRIPT
已更新 Strategy Of Cross-Market Correlation Table By [Mukuro-Hoshimiya]

It is common knowledge that assets are influenced by the state of the market, with the majority of said influence being placed in the correlation of an asset relative to a few other assets or in this case, Tickers. Through calculating the correlation on a multitude of different timeframes and averaging them out, one would come out with the average correlation between two assets. Then using a multitude of trend following indicators to discern in which direction the correlating asset is heading in, based on a score of "1" for a positive trend, and a score of "-1" for a negative trend. You could then multiply the trend by the average correlation, thus gaining the implied correlation of your desired asset, in other words, the direction your asset is likely headed in according to its correlation to another.
Based on that knowledge I decided to create this table. The table calculates the correlation of SIX different tickers that can be selected by the user relative to the ticker on the chart. It does so through the combination of up to FIVE different timeframes which can also be selected by the user. Following which, FIVE different time coherent and medium term trend following indicators are used to discern in which direction each of the correlating assets is going in. Then the correlation is multiplied by the averae correlation of each ticker to provide the user with the average implied correlation, in other words, which direction is the asset on my chart headed in based on the correlation it has to another asset.
This table also allows the user to customize almost everything inside of it, all the while maintaining the benefits of having a backtest due to being a strategy.
Finally, I would also like to give credit to the following individuals:
Credits to AriSai_TRW for the TTI indicator
Credits to IkkeOmar for the Normalized Kama Oscillator
Credits to @QuantiLuxe for the Regularized Moving Average Oscillator Suite
Credits to LazyBear for the ElliotWave Oscillator
Credits to VanHe1sing for the idea
Credits to BackQuant for some ideas
Credits to @MeiniacLol (Skuby) for some help
Based on that knowledge I decided to create this table. The table calculates the correlation of SIX different tickers that can be selected by the user relative to the ticker on the chart. It does so through the combination of up to FIVE different timeframes which can also be selected by the user. Following which, FIVE different time coherent and medium term trend following indicators are used to discern in which direction each of the correlating assets is going in. Then the correlation is multiplied by the averae correlation of each ticker to provide the user with the average implied correlation, in other words, which direction is the asset on my chart headed in based on the correlation it has to another asset.
This table also allows the user to customize almost everything inside of it, all the while maintaining the benefits of having a backtest due to being a strategy.
Finally, I would also like to give credit to the following individuals:
Credits to AriSai_TRW for the TTI indicator
Credits to IkkeOmar for the Normalized Kama Oscillator
Credits to @QuantiLuxe for the Regularized Moving Average Oscillator Suite
Credits to LazyBear for the ElliotWave Oscillator
Credits to VanHe1sing for the idea
Credits to BackQuant for some ideas
Credits to @MeiniacLol (Skuby) for some help
版本注释
I do not endorse shorting and am not responsible for whatever happens if you do short.开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。