OPEN-SOURCE SCRIPT
Gold Thai Compass

Gold Thai Compass Indicator
- Calculates Thai Gold Price (96.5%) by converting XAU/USD with the USD/THB exchange rate in real time
- Displays the calculated gold_price_thb directly on the chart with a clean right-aligned label for easy price reading
- Includes customizable reference lines — add, remove, rename, recolor, and adjust each line independently
- Supports multiple editable lines (e.g., 4 levels) with price labels displayed beside each line
- Provides user-friendly input settings (e.g., custom price sources, spread/adjustment options)
- Updates dynamically with live market data — suitable for trading, analysis, and Thai gold price tracking
- Designed for TradingView (Pine Script) and optimized for clarity and usability
- Optional visibility controls to show/hide labels and reference lines for a cleaner chart layout
Script de código abierto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script de código abierto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.