cubantobacco

Cuban's Pair Trading Index

cubantobacco 已更新   
The purpose of this indicator is to visually simplify the relationship between two assets when searching for pair trades or higher beta opportunities.

With highly correlated pairs, it can be a blessing or a curse during volatility when you're somehow stuck in the only lower beta pairs, or maybe you're market neutral and the wrong leg starts nuking.

This indicator was built as a visual way to track pair relationships.

Fundamentally, this script does the following:
  • Plots the relative performance of the relationship between two assets across multiple time horizons
  • Uses a consistent measurement of historical performance, regardless of asset -- currently standard deviations, may add log difference in the future
  • Plots a custom Average Directional Index on the current chart ticker for current asset contextual momentum
  • Plots the average 'rotation' of both the ADX and Pair Delta independently, over n numbers of rotations -- able to be specified using the 'Rotation Lookback' variable

    If you've never pair traded crypto before (i.e. long $DYDX, short $ETH), you might not be aware that most highly correlated alt asset returns tend to oscillate on a low timeframe rolling basis around the performance of the majors -- and more recently, predominantly $ETH. With this in mind and using this oscillator, we can track that relationship.

    Users are given the ability to adjust the following:

  • Comparison Asset
  • Fast and Slow Delta Lookbacks
  • Whether to wait for one bar delay during security calls
  • Rotation Lookback
  • Rotation Threshold for Pair Delta and ADX independently
  • ADX Lookback
  • Whether to utilize the ADX on the current chart ticker or also net that off against the ADX of the comparison asset


    TO DO:

  • Aesthetic update to Pair Delta plot
  • Permanent fix for security call forced delay
版本注释:
  • small logic fix

仅限邀请脚本

仅限作者授权的用户访问此脚本,并且通常需要付费。您可以将其添加到收藏中,但是只有在向作者请求并获得许可之后,才能使用它。 请与cubantobacco联系以获取更多信息,或按照以下作者的说明进行操作。

在您100%信任脚本作者并了解脚本的工作原理之前,TradingView不建议您购买脚本并使用它。在很多情况下,您可以在我们的公共指标库中免费找到一个不错的开源替代品。

免责声明

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

作者的说明

For access, please join the CUBAN'S EDGE Discord here: discord.gg/NqDfZgxeku

想在图表上使用此脚本?

警告:请阅读,然后再请求访问权限。