OPEN-SOURCE SCRIPT
Gold Fibonacci Multiple Grid

█ OVERVIEW
Gold Fibonacci Multiple Grid draws, on the price chart, a static grid of horizontal levels at Fibonacci-number multiples of a fixed base price, 35 currency units per ounce by default. The thesis under examination is an observation from technical analysis literature that gold has tended to reverse near prices equal to Fibonacci numbers times the 35 dollar official price fixed in 1934. The script renders the grid, identifies the nearest levels above and below the current price, and flags proximity; it does not assert that the observation is valid.
█ HISTORY / BACKGROUND
The Gold Reserve Act of 1934 fixed the official US dollar price of gold at 35 dollars per troy ounce. That price held through the two-tier market of 1968 and ended with the suspension of dollar convertibility in 1971, after which gold floated. Because 35 dollars was the last administratively fixed price, some technicians, including Robert Prechter, have used it as a permanent anchor and observed that subsequent multi-year turning points in gold have clustered near Fibonacci-number multiples of it, for example 55 times 35 equals 1925, 89 times 35 equals 3115, and 144 times 35 equals 5040. The observation is two sided: certain multiples have coincided with major highs while others have coincided with major lows, so each multiple carries a role, not just a price. Whether that clustering exceeds what random level placement would produce is an open empirical question. This script is a visualization of the hypothesis, built so the reader can inspect the historical record directly.
█ HOW IT WORKS
• On the first bar, the script generates the sequence of distinct Fibonacci numbers, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987 and onward, up to the configured count.
• Each level equals the base price times one Fibonacci number. The level prices are constants that never move or depend on price history. To keep the price scale usable, only levels inside the visible price range expanded by the range margin are drawn as horizontal lines extended across the whole chart. The possible turning multiples are exempt from the margin when the always-draw option is on, or automatically when the chart is zoomed out so the visible window spans at least the configured number of years; zooming back in hides them again. The script recalculates when the chart is scrolled or zoomed, so the drawn set follows the current view; levels outside the band remain part of every calculation.
• On every bar, the script computes the percent distance from the closing price to each level, records the nearest level, the nearest level above and the nearest level below, and detects whether the close crossed any level relative to the prior close.
• When the distance to the nearest level is at or below the proximity threshold, that level's line and label switch to the proximity color and gain width, and an alert condition becomes true on the first bar of the approach. A second alert condition fires on any bar whose close crossed a level. Every other drawn level is colored by its assigned role: three user-editable lists designate each multiple as a high target, a low target or a possible future turning level, multiples on no list use the neutral color, possible turning levels draw dashed, and labels append the assigned role.
• An optional table shows the nearest level above and below with their multiples and percent distances, the nearest possible turning level at or above the current price, and the distance to the nearest level. The exact distance is also exposed in the data window.
█ HOW TO USE
In plain terms, the script draws a ladder of fixed price rungs. Every rung is the old 35 dollar gold price multiplied by a Fibonacci number, so the rungs get further apart as price rises, roughly 62 percent apart, matching the way gold's swings have grown with its price. The claim being examined is that gold tends to stall or turn near these rungs. Scroll back through history and judge for yourself how often turns landed near a rung and how often they ignored the grid entirely. The table always tells you the next rung overhead, the next rung underneath, and how far away the closest one is. When price gets within the threshold of a rung, that rung lights up.
The grid is designed for charts quoted in US dollars per troy ounce of gold: spot gold, gold futures, or a gold index. The levels are timeframe independent; daily and weekly charts are the practical choices because the observation concerns multi-year turning points. Treat a highlighted level as a location of interest for confluence with independent analysis, not as a prediction of reversal. A level is one price; nothing in the script measures whether price will respect it.
█ SETTINGS
• Base price, currency units per ounce. Default 35. Every level is this value times a Fibonacci number. Changing it repurposes the grid for any anchored-multiple study.
• Number of Fibonacci multiples. Default 15, which spans 35 to 34545 at the default base. Maximum 20.
• Proximity threshold, percent of level. Default 2. Price within this percent of a level counts as at the level.
• Range margin, percent. Default 20. A level beyond the visible price extremes is drawn only when it lies within this percent of them, so the price scale stays close to the price data on arithmetic charts and a level appears overhead or underneath as price approaches it. Raising the margin draws more of the grid at the cost of scale headroom. Undrawn levels still participate in every calculation and in the table.
• High target multiples, comma separated. Default 21, 55, 144. Levels at these multiples always draw in the high target color.
• Low target multiples, comma separated. Default 1, 3, 8, 34, 89. Levels at these multiples always draw in the low target color. Multiples on no list draw in the neutral color.
• Possible turning multiples, comma separated. Default 233, 377, 610. Unreached multiples treated as possible future turning levels, drawn dashed in the possible turning color.
• Always draw possible turning levels. Default off. Forces the possible turning multiples on screen regardless of zoom, which expands the price axis on an arithmetic scale; a logarithmic scale is recommended while enabled. When off, the nearest possible turning level is still reported in the table.
• Auto-show possible levels when visible span exceeds, years. Default 10. When the visible window spans at least this many years, the possible turning multiples draw even though they lie beyond the range margin, and they hide again when the chart is zoomed back in.
• Show level labels. Default on. Each label states the multiple, the base, the resulting price and the assigned role.
• Show nearest-level table. Default on.
• High target color, Low target color, Possible turning color, Unassigned level color and Proximity color. Defaults red, green, blue, gray and orange. The table rows for the nearest level above and below inherit the role color of that level; the proximity color overrides the nearest level when price is within the threshold.
█ WHAT MAKES IT ORIGINAL
Fibonacci tools on this platform are almost always relative: retracements, extensions and fans measured between two user-selected swing points, which move whenever the anchors change. This grid is absolute. Every level is a constant derived from one historically fixed price and the integer Fibonacci sequence, so the entire level set is defined before any chart data is read, identical on every symbol and timeframe, and immune to anchor-selection bias. The script adds mechanical proximity detection, crossing detection and nearest-level reporting on top of the static grid, which turns a qualitative literature observation into an inspectable, falsifiable chart object.
█ NOTES / LIMITATIONS
• The levels are meaningful only on series quoted in US dollars per troy ounce. On gold ETFs, gold miners, or gold quoted in other currencies, the default grid does not correspond to the underlying observation; the base price would need to be redefined.
• The level prices are static constants and there are no lookahead or higher-timeframe requests. Which levels are drawn depends on the visible price range, so the drawn subset changes as the chart is scrolled or zoomed, and the script recalculates on each change of the visible range. Calculations, alerts and the table always use the full level set and are unaffected by the view.
• Proximity and crossing calculations use closing prices. On the developing bar they update until the close and do not change afterward.
• Labels are positioned a few bars past the last bar and reposition as new bars print. The table renders on the last bar only.
• The script draws at most 20 lines and 20 labels, far below platform object limits.
• Level spacing follows the Fibonacci sequence, so consecutive levels are roughly 62 percent apart at scale. Between rungs the script is silent by design.
• The default role assignments restate a published observation about which multiples coincided with historical highs and lows. The script does not verify the assignments, and both lists are editable.
• The script visualizes a hypothesis. It performs no statistical test of whether reversals near these levels occur more often than chance would produce.
Gold Fibonacci Multiple Grid draws, on the price chart, a static grid of horizontal levels at Fibonacci-number multiples of a fixed base price, 35 currency units per ounce by default. The thesis under examination is an observation from technical analysis literature that gold has tended to reverse near prices equal to Fibonacci numbers times the 35 dollar official price fixed in 1934. The script renders the grid, identifies the nearest levels above and below the current price, and flags proximity; it does not assert that the observation is valid.
█ HISTORY / BACKGROUND
The Gold Reserve Act of 1934 fixed the official US dollar price of gold at 35 dollars per troy ounce. That price held through the two-tier market of 1968 and ended with the suspension of dollar convertibility in 1971, after which gold floated. Because 35 dollars was the last administratively fixed price, some technicians, including Robert Prechter, have used it as a permanent anchor and observed that subsequent multi-year turning points in gold have clustered near Fibonacci-number multiples of it, for example 55 times 35 equals 1925, 89 times 35 equals 3115, and 144 times 35 equals 5040. The observation is two sided: certain multiples have coincided with major highs while others have coincided with major lows, so each multiple carries a role, not just a price. Whether that clustering exceeds what random level placement would produce is an open empirical question. This script is a visualization of the hypothesis, built so the reader can inspect the historical record directly.
█ HOW IT WORKS
• On the first bar, the script generates the sequence of distinct Fibonacci numbers, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987 and onward, up to the configured count.
• Each level equals the base price times one Fibonacci number. The level prices are constants that never move or depend on price history. To keep the price scale usable, only levels inside the visible price range expanded by the range margin are drawn as horizontal lines extended across the whole chart. The possible turning multiples are exempt from the margin when the always-draw option is on, or automatically when the chart is zoomed out so the visible window spans at least the configured number of years; zooming back in hides them again. The script recalculates when the chart is scrolled or zoomed, so the drawn set follows the current view; levels outside the band remain part of every calculation.
• On every bar, the script computes the percent distance from the closing price to each level, records the nearest level, the nearest level above and the nearest level below, and detects whether the close crossed any level relative to the prior close.
• When the distance to the nearest level is at or below the proximity threshold, that level's line and label switch to the proximity color and gain width, and an alert condition becomes true on the first bar of the approach. A second alert condition fires on any bar whose close crossed a level. Every other drawn level is colored by its assigned role: three user-editable lists designate each multiple as a high target, a low target or a possible future turning level, multiples on no list use the neutral color, possible turning levels draw dashed, and labels append the assigned role.
• An optional table shows the nearest level above and below with their multiples and percent distances, the nearest possible turning level at or above the current price, and the distance to the nearest level. The exact distance is also exposed in the data window.
█ HOW TO USE
In plain terms, the script draws a ladder of fixed price rungs. Every rung is the old 35 dollar gold price multiplied by a Fibonacci number, so the rungs get further apart as price rises, roughly 62 percent apart, matching the way gold's swings have grown with its price. The claim being examined is that gold tends to stall or turn near these rungs. Scroll back through history and judge for yourself how often turns landed near a rung and how often they ignored the grid entirely. The table always tells you the next rung overhead, the next rung underneath, and how far away the closest one is. When price gets within the threshold of a rung, that rung lights up.
The grid is designed for charts quoted in US dollars per troy ounce of gold: spot gold, gold futures, or a gold index. The levels are timeframe independent; daily and weekly charts are the practical choices because the observation concerns multi-year turning points. Treat a highlighted level as a location of interest for confluence with independent analysis, not as a prediction of reversal. A level is one price; nothing in the script measures whether price will respect it.
█ SETTINGS
• Base price, currency units per ounce. Default 35. Every level is this value times a Fibonacci number. Changing it repurposes the grid for any anchored-multiple study.
• Number of Fibonacci multiples. Default 15, which spans 35 to 34545 at the default base. Maximum 20.
• Proximity threshold, percent of level. Default 2. Price within this percent of a level counts as at the level.
• Range margin, percent. Default 20. A level beyond the visible price extremes is drawn only when it lies within this percent of them, so the price scale stays close to the price data on arithmetic charts and a level appears overhead or underneath as price approaches it. Raising the margin draws more of the grid at the cost of scale headroom. Undrawn levels still participate in every calculation and in the table.
• High target multiples, comma separated. Default 21, 55, 144. Levels at these multiples always draw in the high target color.
• Low target multiples, comma separated. Default 1, 3, 8, 34, 89. Levels at these multiples always draw in the low target color. Multiples on no list draw in the neutral color.
• Possible turning multiples, comma separated. Default 233, 377, 610. Unreached multiples treated as possible future turning levels, drawn dashed in the possible turning color.
• Always draw possible turning levels. Default off. Forces the possible turning multiples on screen regardless of zoom, which expands the price axis on an arithmetic scale; a logarithmic scale is recommended while enabled. When off, the nearest possible turning level is still reported in the table.
• Auto-show possible levels when visible span exceeds, years. Default 10. When the visible window spans at least this many years, the possible turning multiples draw even though they lie beyond the range margin, and they hide again when the chart is zoomed back in.
• Show level labels. Default on. Each label states the multiple, the base, the resulting price and the assigned role.
• Show nearest-level table. Default on.
• High target color, Low target color, Possible turning color, Unassigned level color and Proximity color. Defaults red, green, blue, gray and orange. The table rows for the nearest level above and below inherit the role color of that level; the proximity color overrides the nearest level when price is within the threshold.
█ WHAT MAKES IT ORIGINAL
Fibonacci tools on this platform are almost always relative: retracements, extensions and fans measured between two user-selected swing points, which move whenever the anchors change. This grid is absolute. Every level is a constant derived from one historically fixed price and the integer Fibonacci sequence, so the entire level set is defined before any chart data is read, identical on every symbol and timeframe, and immune to anchor-selection bias. The script adds mechanical proximity detection, crossing detection and nearest-level reporting on top of the static grid, which turns a qualitative literature observation into an inspectable, falsifiable chart object.
█ NOTES / LIMITATIONS
• The levels are meaningful only on series quoted in US dollars per troy ounce. On gold ETFs, gold miners, or gold quoted in other currencies, the default grid does not correspond to the underlying observation; the base price would need to be redefined.
• The level prices are static constants and there are no lookahead or higher-timeframe requests. Which levels are drawn depends on the visible price range, so the drawn subset changes as the chart is scrolled or zoomed, and the script recalculates on each change of the visible range. Calculations, alerts and the table always use the full level set and are unaffected by the view.
• Proximity and crossing calculations use closing prices. On the developing bar they update until the close and do not change afterward.
• Labels are positioned a few bars past the last bar and reposition as new bars print. The table renders on the last bar only.
• The script draws at most 20 lines and 20 labels, far below platform object limits.
• Level spacing follows the Fibonacci sequence, so consecutive levels are roughly 62 percent apart at scale. Between rungs the script is silent by design.
• The default role assignments restate a published observation about which multiples coincided with historical highs and lows. The script does not verify the assignments, and both lists are editable.
• The script visualizes a hypothesis. It performs no statistical test of whether reversals near these levels occur more often than chance would produce.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.