OPEN-SOURCE SCRIPT
Chosen Instrument Real Price Line - S.Grey v.1

The Chosen Instrument Real Price Line indicator is designed to display the live price of any selected stock, index, futures contract, CFD, or custom TradingView symbol directly on your chart as a dynamic horizontal reference level. Unlike traditional comparison tools that only display percentage relationships or secondary panels, this indicator projects the real-time price level of the chosen instrument directly onto the active chart, allowing traders to visually compare markets in real time from a single chart window.
The indicator continuously tracks the selected instrument and plots its current live price as a customizable horizontal line. The line can be styled with different colors, thicknesses, and extension modes, giving the trader full visual control over how the reference level appears on the chart. The line can extend to the right, left, both directions, or remain as a fixed-width segment. A separate toggle also allows the line itself to be hidden completely while still keeping the label visible at the correct price level.
The label system is designed specifically for real-time intermarket comparison and spread monitoring. The label can display the selected instrument name, its current live price, the live price difference between the chosen instrument and the current chart instrument, or both values simultaneously. This makes the indicator especially useful for traders who monitor the relationship between CFDs and their underlying base instruments.
One of the most practical applications of this tool is tracking the difference between CFD products and their corresponding futures or index markets in real time. For example, a trader using a broker CFD such as SPX500USD can compare it directly against the underlying SPX index or ES futures contract. The indicator instantly shows whether the CFD is trading above or below the base instrument and by how many points. This allows traders to monitor broker spreads, temporary pricing inefficiencies, overnight premium or discount conditions, and market synchronization across different instruments without switching charts.
Because the difference is updated live, the indicator can also be used as a spread-monitoring tool during volatile market conditions. Traders can quickly identify moments when a CFD deviates unusually far from the underlying futures contract, which may help in execution timing, spread analysis, or broker comparison. This is particularly useful during high-impact news events, session transitions, overnight trading, or periods of reduced liquidity.
The indicator is also highly flexible for broader intermarket analysis. Traders can compare futures against cash indexes, ETFs against futures, sector ETFs against indexes, or even different brokers’ CFD feeds against each other. Since the selected instrument is fully customizable using TradingView symbols, virtually any supported market can be tracked as a live reference level.
The label itself is fully customizable and can be configured to display:
* only the real-time price,
* only the price difference versus the active chart,
* or both values together.
Importantly, the instrument name always remains visible regardless of the selected label mode, ensuring clear identification at all times.
This tool is particularly valuable for futures traders, CFD traders, index traders, arbitrage-oriented traders, and anyone monitoring the live relationship between correlated markets from a single chart environment.
The indicator continuously tracks the selected instrument and plots its current live price as a customizable horizontal line. The line can be styled with different colors, thicknesses, and extension modes, giving the trader full visual control over how the reference level appears on the chart. The line can extend to the right, left, both directions, or remain as a fixed-width segment. A separate toggle also allows the line itself to be hidden completely while still keeping the label visible at the correct price level.
The label system is designed specifically for real-time intermarket comparison and spread monitoring. The label can display the selected instrument name, its current live price, the live price difference between the chosen instrument and the current chart instrument, or both values simultaneously. This makes the indicator especially useful for traders who monitor the relationship between CFDs and their underlying base instruments.
One of the most practical applications of this tool is tracking the difference between CFD products and their corresponding futures or index markets in real time. For example, a trader using a broker CFD such as SPX500USD can compare it directly against the underlying SPX index or ES futures contract. The indicator instantly shows whether the CFD is trading above or below the base instrument and by how many points. This allows traders to monitor broker spreads, temporary pricing inefficiencies, overnight premium or discount conditions, and market synchronization across different instruments without switching charts.
Because the difference is updated live, the indicator can also be used as a spread-monitoring tool during volatile market conditions. Traders can quickly identify moments when a CFD deviates unusually far from the underlying futures contract, which may help in execution timing, spread analysis, or broker comparison. This is particularly useful during high-impact news events, session transitions, overnight trading, or periods of reduced liquidity.
The indicator is also highly flexible for broader intermarket analysis. Traders can compare futures against cash indexes, ETFs against futures, sector ETFs against indexes, or even different brokers’ CFD feeds against each other. Since the selected instrument is fully customizable using TradingView symbols, virtually any supported market can be tracked as a live reference level.
The label itself is fully customizable and can be configured to display:
* only the real-time price,
* only the price difference versus the active chart,
* or both values together.
Importantly, the instrument name always remains visible regardless of the selected label mode, ensuring clear identification at all times.
This tool is particularly valuable for futures traders, CFD traders, index traders, arbitrage-oriented traders, and anyone monitoring the live relationship between correlated markets from a single chart environment.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。