OPEN-SOURCE SCRIPT
Cập nhật Graveyard Pivots Price Magnet

Graveyard Pivots
Graveyard Pivots draws a fresh grid of price levels every day, measured from the daily open. It marks the quarter levels (.25, .50 and .75) between each pair of main round-number levels, so you can see where price may stall, react or reverse.
How it works
*Daily anchor. The grid starts from the daily open, so it resets at the start of each new day.
*Automatic step size. The gap between main levels is set from the timeframe and the instrument's tick size and price scale, so it works on forex, stocks, crypto and indices without manual setup.
*Quarter levels. Between each pair of main levels, the script draws a .25 line, a .50 core line and a .75 line.
*Core line. The .50 line is drawn thicker, in black, with a soft glow, so it stands out as the key level.
*Edge lines. The .25 and .75 lines are drawn in light blue.
Settings
*Graves each side of price: how many levels to show above and below price (up to 60 each side).
*Anchor source: Daily Open (default), Prev Day Close, Weekly Open, Monthly Open, Yearly Open, or Zero for a fixed grid that never resets.
*Line widths and colours for the core and edge lines.
*Price tags: optional labels showing each level's price, with an adjustable distance from the last bar.

Graveyard Pivots draws a fresh grid of price levels every day, measured from the daily open. It marks the quarter levels (.25, .50 and .75) between each pair of main round-number levels, so you can see where price may stall, react or reverse.
How it works
*Daily anchor. The grid starts from the daily open, so it resets at the start of each new day.
*Automatic step size. The gap between main levels is set from the timeframe and the instrument's tick size and price scale, so it works on forex, stocks, crypto and indices without manual setup.
*Quarter levels. Between each pair of main levels, the script draws a .25 line, a .50 core line and a .75 line.
*Core line. The .50 line is drawn thicker, in black, with a soft glow, so it stands out as the key level.
*Edge lines. The .25 and .75 lines are drawn in light blue.
Settings
*Graves each side of price: how many levels to show above and below price (up to 60 each side).
*Anchor source: Daily Open (default), Prev Day Close, Weekly Open, Monthly Open, Yearly Open, or Zero for a fixed grid that never resets.
*Line widths and colours for the core and edge lines.
*Price tags: optional labels showing each level's price, with an adjustable distance from the last bar.
Phát hành các Ghi chú
Fixes and clarificationsFixed
- Levels now land on clean prices. The anchor (daily open etc.) is rounded to the nearest 25 ticks before the grid is built, so levels read like 4148.25 / 4150.75 / 4153.25 instead of 4148.31 / 4150.81.
- Line and label limits. "Graves Each Side of Price" is now capped at what fits TradingView's limits: 37 per side, or 20 per side with price tags on.
Clarifications
- Only the current grid is drawn, on the latest bar. Past days' grids are not kept on history. The grid re-anchors when a new day starts.
- The main round-number levels (.00) are not drawn. Only the .25, .50 and .75 levels between them are.
- The core line is black by default, so change its colour on dark charts.
- Step = tick size x 1000 (x5 on Daily and 4H+, x10 on Weekly/Monthly) x price scale. Levels = rounded anchor + n x step + 0.25 / 0.50 / 0.75 x step.
No change to colours, line widths, price tags or anchor options.
Phát hành các Ghi chú
v1.1.2 - Header restoredRestored: The license and author header (Mozilla Public License 2.0, © ChartTrader-X) was removed by mistake in an earlier update. It is back in this version.
No change to the code, levels, colours or settings.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
ChartTrader-X
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
ChartTrader-X
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.