mukeshupadhyay68

Ratio Chart of Two Assets

This custom Pine Script indicator allows traders and analysts to compare the performance of two distinct assets by visualizing their price ratio over time. The "Ratio Chart" indicator plots the ratio of the closing prices of any two selected assets, making it easier to observe how one asset performs relative to another within the same chart.

Features:

1. Customizable Symbols: Users can input any two ticker symbols for comparison. The default comparative symbol is set as 'NSE:NIFTY'.
2. Ratio Visualization: The main plot displays the ratio of the two asset prices, providing a straightforward view of their relative price movements.
3. Moving Average: An optional moving average can be added to the ratio plot. This helps in identifying the trend direction and smoothens out short-term fluctuations. The period of the moving average is customizable, with a default setting of 50.

Use Cases:

1. Market Analysis: Ideal for traders who wish to analyze the strength of one market relative to another, such as comparing a sector index against a broader market index.
2. Strategic Trading: Useful for pairs trading strategies, allowing traders to identify potential convergence and divergence opportunities between two correlated assets.

How to Use:

1. Add the indicator to your chart from the Indicators menu.
2. Customize the comparative symbol as required.
3. Adjust the moving average period to suit your analysis timeframe.

By providing a clear, comparative visualization of asset prices, this indicator is an invaluable tool for market analysis and trading strategy development.
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?