OPEN-SOURCE SCRIPT

Cumulative Relative Performance

Purpose:

  • Compares performance between two securities over a specified timeframe
  • Shows relative strength/weakness of one asset versus another


Key Features:

  • Displays cumulative percentage difference in performance
  • Optional smoothing using SMA or EMA
  • Shows ticker symbols in bottom-right corner
  • Can display the difference line between the two securities


In the example screenshot, we use the same point of comparison to show the relative out-performance of SPY vs VUSA (both S&P 500 ETFs) at different points in time.
pairtradingrelativeperformanceRelative Strength ComparisonTrend Analysis

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


Disclaimer: Not a financial professional or financial advisor. Any and all publications are opinion and not investment advice.

免責聲明