OPEN-SOURCE SCRIPT

Thai Gold 96.5%

업데이트됨
Gold 96.5% Price Display (Test Version)

This Pine Script indicator is a test version designed to display the current price of Thai gold (96.5%) in a customizable table on your TradingView chart. The script calculates the gold price using the latest values for XAU/USD and USD/THB, reflecting the price of gold in Thai Baht (THB) with a purity adjustment.

Features:
- Price Calculation: Computes the Thai gold price by multiplying the XAU/USD price with USD/THB and adjusting for gold purity (0.49 * 0.965).
- Customizable Display: Adjust text size, text color, background color, and table position (Top Right, Top Left, Bottom Right, Bottom Left).
- Formatted Output: Gold price is formatted with commas for better readability.

Inputs:
- Text Size: Choose from tiny, small, normal, large, or huge.
- Text Color: Customize the text color.
- Background Color: Select a background color for the table.
- Table Position: Choose the table position on the chart.

Usage:
Add this test script to your TradingView chart to see the current Thai gold price displayed in a table format. This version is for testing purposes and may be updated based on feedback.
Feel free to test and customize the script further!
릴리즈 노트
This Pine Script is a test script that calculates the export price (รับซื้อ) of Gold 96.5% purity in Thai Baht (THB). It uses the bid price for gold (XAUUSD) and the bid price for the Thai Baht (USDTHB) to estimate the price, which is then displayed in a table on the chart. The displayed price is rounded to the nearest multiple of 10 THB for a cleaner look.

1/ Key Features:
- Price Calculation (Test Formula): The export price is calculated based on the bid prices of gold and USD/THB using a test formula that includes the purity factor (0.965) and export percentage (0.49).

2/ Rounded to Nearest 10:
- The calculated price is rounded to the nearest 10 THB. For example:
If the price is 39,914, it rounds down to 39,910.
If the price is 39,916, it rounds up to 39,920.

3/Customizable Table Display:
- Users can adjust the table position (Top Right, Top Left, Bottom Right, Bottom Left) and customize the text size, text color, and background color.

4/Table Output:
- The rounded export price is displayed in a clean format with comma-separated thousands for better readability.

Important Note:
This is a test script for experimental purposes only and is not guaranteed to reflect the actual price of gold. It uses high/low prices as proxies for the bid/ask, which may not be accurate for real-time pricing. The values are updated every minute based on market data. Use this script at your own discretion as it may not reflect real market conditions and should not be relied upon for financial decisions.
릴리즈 노트
Update.
릴리즈 노트
New Features:
- Price Calculation: Computes both the Bid & Ask prices of Thai gold based on current XAU/USD and USD/THB rates, adjusting for gold purity (96.5%) and including a fixed premium and discount.
- Customizable Display: Allows adjustment of text size, text color, background color, and table position (Top Right, Top Left, Bottom Right, Bottom Left).
- Formatted Output: Prices are rounded to the nearest multiple of 10 and formatted with commas for better readability.

Inputs:
- Text Size: Choose from tiny, small, normal, large, or huge.
- Background Color: Select a background color for the table.
- Table Position: Choose the table position on the chart.
- Label Colors: Customize colors for bid and ask price labels and their respective values.
릴리즈 노트
.
릴리즈 노트
.
릴리즈 노트
.
릴리즈 노트
-
릴리즈 노트
-
릴리즈 노트
---- -test
goldpricePine utilities

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항