OPEN-SOURCE SCRIPT

Ratio Between Two Symbols

62
Ratio Between Two Symbols — Plots the price ratio of the current chart's symbol against a user-selected benchmark (default: TVC:SPX / S&P 500 index), optionally scaled by a multiplier. A moving average (default length: 36) of the ratio is overlaid to smooth out trend direction. An optional floating label displays the current symbol pair, the live ratio value (truncated to a set number of digits), and the multiplier in use. This is typically used for relative strength/weakness analysis — e.g., is this asset outperforming or underperforming the benchmark over time — which is common in sector rotation, commodities-vs-equities, or intermarket analysis.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.