OPEN-SOURCE SCRIPT
TZ_Gold_Round_Levels

TZ_Gold_Round_Levels displays a moving grid of round-number price levels around the latest chart price. It automates a five-level layout with fixed offsets, making it easier to keep these reference levels centered as price changes. It is designed for XAUUSD on a 15-minute chart and also works on other chart timeframes. It does not change the chart timeframe automatically.
CALCULATION AND COLORS
The central level is calculated as:
nearest round level = round(latest price / spacing) x spacing
With the default spacing of 50, the indicator selects the nearest multiple of 50 and draws two round levels above it and two below it. Each of these five levels has a blue horizontal line, a green line 10 price units above it, and a red line 10 price units below it, producing 15 lines in total.
For example, when the center is 4300, the blue levels are 4200, 4250, 4300, 4350, and 4400. The lines surrounding 4300 are green at 4310 and red at 4290.
LIVE UPDATES
The grid updates as the live candle's price changes. Midpoint ties round upward: at 4325, the center changes from 4300 to 4350. If price moves back below that midpoint, the center returns to 4300. This can happen before the candle closes.
The latest grid extends across the chart, including earlier candles. These lines represent the current grid, not the levels that were active at each historical candle. The indicator is a visual reference tool; it does not generate buy/sell signals or backtest results.
SETTINGS AND USE
Add the indicator to an XAUUSD chart and choose the desired timeframe, such as 15 minutes. Inputs control round-number spacing, offset distance, levels on each side, line colors and width, price-label visibility, and label distance. The offset must remain below half the spacing.
Distances are price units, not pips. On XAUUSD, an offset of 10 means a 10.00 change in the quoted price. The horizontal levels alone do not establish support, resistance, or a trade recommendation.
CALCULATION AND COLORS
The central level is calculated as:
nearest round level = round(latest price / spacing) x spacing
With the default spacing of 50, the indicator selects the nearest multiple of 50 and draws two round levels above it and two below it. Each of these five levels has a blue horizontal line, a green line 10 price units above it, and a red line 10 price units below it, producing 15 lines in total.
For example, when the center is 4300, the blue levels are 4200, 4250, 4300, 4350, and 4400. The lines surrounding 4300 are green at 4310 and red at 4290.
LIVE UPDATES
The grid updates as the live candle's price changes. Midpoint ties round upward: at 4325, the center changes from 4300 to 4350. If price moves back below that midpoint, the center returns to 4300. This can happen before the candle closes.
The latest grid extends across the chart, including earlier candles. These lines represent the current grid, not the levels that were active at each historical candle. The indicator is a visual reference tool; it does not generate buy/sell signals or backtest results.
SETTINGS AND USE
Add the indicator to an XAUUSD chart and choose the desired timeframe, such as 15 minutes. Inputs control round-number spacing, offset distance, levels on each side, line colors and width, price-label visibility, and label distance. The offset must remain below half the spacing.
Distances are price units, not pips. On XAUUSD, an offset of 10 means a 10.00 change in the quoted price. The horizontal levels alone do not establish support, resistance, or a trade recommendation.
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
📈 Trade Smarter with TradZoo!
📣 Telegram: t.me/tradzooIndex
📣 Forex Telegram: t.me/tradzoofx
📲 Mobile App: tradzoo.com/download
📲 Forex App:tradzoo.com/forex/download
🔗 Website: bit.ly/tradzoopage
📣 Telegram: t.me/tradzooIndex
📣 Forex Telegram: t.me/tradzoofx
📲 Mobile App: tradzoo.com/download
📲 Forex App:tradzoo.com/forex/download
🔗 Website: bit.ly/tradzoopage
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
📈 Trade Smarter with TradZoo!
📣 Telegram: t.me/tradzooIndex
📣 Forex Telegram: t.me/tradzoofx
📲 Mobile App: tradzoo.com/download
📲 Forex App:tradzoo.com/forex/download
🔗 Website: bit.ly/tradzoopage
📣 Telegram: t.me/tradzooIndex
📣 Forex Telegram: t.me/tradzoofx
📲 Mobile App: tradzoo.com/download
📲 Forex App:tradzoo.com/forex/download
🔗 Website: bit.ly/tradzoopage
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน