OPEN-SOURCE SCRIPT
SMC Fibonacci Golden Zone Oscillator

The SMC Fibonacci Golden Zone Oscillator is a technical analysis tool that combines the principles of Smart Money Concepts (SMC) with Fibonacci retracement theory. It operates as an oscillator in a separate pane, normalizing the current price to a 0-100 scale within a dynamically identified range (defined by the most recent swing highs and lows).
The script's primary purpose is to provide traders with a clear, visual representation of price's position relative to key Fibonacci levels, with a special focus on the "Golden Zone" (the area between the 50% and 61.8% retracement). It automates the identification of crucial SMC structures like Breaks of Structure (BOS), Changes of Character (CHoCH), and Equal Highs/Lows (EQH/EQL), plotting them directly on the oscillator for enhanced context.
iBOS (Internal Break of Structure)
An iBOS is a Break of Structure on the smaller, internal scale. It signifies that the short-term momentum is continuing in the same direction as the internal trend.
What it looks like on the oscillator: You will see a label iBOS appear as the oscillator line breaks a recent minor peak or trough.
How to use it:
For Entries: If the main trend is up (confirmed by a CHoCH on the Swing structure), you can use an iBOS on the internal scale as a precise entry signal to go long, as it confirms the short-term momentum is with you.
For Confirmation: A series of iBOSs in the direction of the main trend is a strong sign of a healthy, trending market.
iCHoCH (Internal Change of Character)
An iCHoCH is a Change of Character on the smaller, internal scale. It is the earliest possible warning of a potential reversal in the short-term momentum.
Utility & Core Functionality:
Contextual Price Position: It instantly shows whether the current price is in the "Premium" (high), "Discount" (low), or "Equilibrium" (middle) phase of its recent range.
Dynamic Support & Resistance: The script calculates and plots the exact price levels for the 0.50, 0.618, and 0.786 Fibonacci retracements of the current range. These act as dynamic, real-time support and resistance zones.
Reversal Zone Identification: The "Golden Zone" (highlighted between 61.8% and 50%) is a critical area where price often reverses or consolidates before a significant move. The oscillator clearly marks when price enters and exits this zone.
Automated SMC Analysis: It automatically draws and labels BOS, CHoCH, and Swing Points (HH, HL, LH, LL) on the oscillator, helping traders confirm trend strength and potential shifts without manual drawing.
Momentum and Signal Confirmation: It includes a Signal Line (EMA of the oscillator) and a Momentum Line to help confirm the strength and direction of price movements and to generate crossover trading signals.
What it looks like on the oscillator: You will see a label iCHoCH appear as the oscillator line breaks a recent minor trough or peak, going against the immediate internal trend.
How to use it:
For Exits: If you are in a long trade and see an iCHoCH to the downside, it might be a signal to take profits or tighten your stop-loss. It's the first hint that the short-term bullish momentum is faltering.
For Early Reversal Signals: An iCHoCH can sometimes precede a full-scale CHoCH on the Swing structure. Traders can use it as a very early alert that a larger reversal might be coming.
Recommended Timeframes:
This indicator is versatile and can be applied across various timeframes, but its effectiveness increases with higher timeframes due to more reliable structure.
Swing Trading (Ideal): 4-Hour, Daily, and Weekly charts are perfect. The SMC structures and Fibonacci levels formed on these timeframes are more significant and lead to more substantial price moves.
Day Trading: 15-Minute, 30-Minute, and 1-Hour charts work well. A common strategy is to use a higher timeframe (e.g., 4H) to determine the overall trend and key Golden Zone levels, then use a lower timeframe (e.g., 15M) for precise entry signals using the oscillator's crossovers and CHoCH patterns.
Scalping: 1-Minute and 5-Minute charts can be used, but with caution. Market noise on these low timeframes can generate false signals. It's highly recommended to use a higher timeframe for context when scalping.
How to Trade with the Script:
The core trading strategy revolves around identifying price reacting within the Golden Zone or other key Fibonacci levels.
Bullish (Long) Setup-
Identify the Context: Price is in a downtrend, and the oscillator is falling towards the lower end of the pane (0-50).
Entry Zone: Wait for the oscillator to enter the Golden Zone (61.8-50) or the Discount Zone (below 38.2). This indicates price is at a potential support area.
Confirmation Signal: Look for one or more of the following:
A bullish CHoCH (Change of Character) on the oscillator, where it breaks the most recent lower high.
A crossover of the main oscillator line above its Signal Line (EMA).
A bullish candlestick pattern (e.g., hammer, engulfing) on the main price chart at one of the Fibonacci price levels displayed on the right (e.g., the 0.618 or 0.786 price).
Entry: Enter a long position on the confirmation signal.
Stop-Loss: Place a stop-loss below the low of the range (the 0.786 or 1.0 Fibonacci level of that swing) or below the recent swing low on the price chart.
Take-Profit: Target the 50% equilibrium line (midline of the range), the opposite end of the range (the Premium Zone), or a subsequent lower high identified by the script.
Bearish (Short) Setup-
Identify the Context: Price is in an uptrend, and the oscillator is rising towards the upper end of the pane (50-100).
Entry Zone: Wait for the oscillator to enter the Golden Zone (61.8-50) or the Premium Zone (above 78.6). This indicates price is at a potential resistance area.
Confirmation Signal: Look for one or more of the following:
A bearish CHoCH on the oscillator, where it breaks the most recent higher low.
A crossover of the main oscillator line below its Signal Line (EMA).
A bearish candlestick pattern (e.g., shooting star, bearish engulfing) on the main price chart at one of the Fibonacci price levels (e.g., the 0.50 or 0.618 price).
Entry: Enter a short position on the confirmation signal.
Stop-Loss: Place a stop-loss above the high of the range (the 0.236 or 0.0 Fibonacci level) or above the recent swing high on the price chart.
Take-Profit: Target the 50% equilibrium line, the opposite end of the range (the Discount Zone), or a subsequent higher low.
Disclaimer:
Past performance of any trading system or methodology is not necessarily indicative of future results. This script and the accompanying analysis are provided for educational and informational purposes only. The content represents the personal opinions and strategies of the author and is not intended as, and should not be construed as, financial advice, a recommendation, or an offer to buy or sell any financial instrument.
The script's primary purpose is to provide traders with a clear, visual representation of price's position relative to key Fibonacci levels, with a special focus on the "Golden Zone" (the area between the 50% and 61.8% retracement). It automates the identification of crucial SMC structures like Breaks of Structure (BOS), Changes of Character (CHoCH), and Equal Highs/Lows (EQH/EQL), plotting them directly on the oscillator for enhanced context.
iBOS (Internal Break of Structure)
An iBOS is a Break of Structure on the smaller, internal scale. It signifies that the short-term momentum is continuing in the same direction as the internal trend.
What it looks like on the oscillator: You will see a label iBOS appear as the oscillator line breaks a recent minor peak or trough.
How to use it:
For Entries: If the main trend is up (confirmed by a CHoCH on the Swing structure), you can use an iBOS on the internal scale as a precise entry signal to go long, as it confirms the short-term momentum is with you.
For Confirmation: A series of iBOSs in the direction of the main trend is a strong sign of a healthy, trending market.
iCHoCH (Internal Change of Character)
An iCHoCH is a Change of Character on the smaller, internal scale. It is the earliest possible warning of a potential reversal in the short-term momentum.
Utility & Core Functionality:
Contextual Price Position: It instantly shows whether the current price is in the "Premium" (high), "Discount" (low), or "Equilibrium" (middle) phase of its recent range.
Dynamic Support & Resistance: The script calculates and plots the exact price levels for the 0.50, 0.618, and 0.786 Fibonacci retracements of the current range. These act as dynamic, real-time support and resistance zones.
Reversal Zone Identification: The "Golden Zone" (highlighted between 61.8% and 50%) is a critical area where price often reverses or consolidates before a significant move. The oscillator clearly marks when price enters and exits this zone.
Automated SMC Analysis: It automatically draws and labels BOS, CHoCH, and Swing Points (HH, HL, LH, LL) on the oscillator, helping traders confirm trend strength and potential shifts without manual drawing.
Momentum and Signal Confirmation: It includes a Signal Line (EMA of the oscillator) and a Momentum Line to help confirm the strength and direction of price movements and to generate crossover trading signals.
What it looks like on the oscillator: You will see a label iCHoCH appear as the oscillator line breaks a recent minor trough or peak, going against the immediate internal trend.
How to use it:
For Exits: If you are in a long trade and see an iCHoCH to the downside, it might be a signal to take profits or tighten your stop-loss. It's the first hint that the short-term bullish momentum is faltering.
For Early Reversal Signals: An iCHoCH can sometimes precede a full-scale CHoCH on the Swing structure. Traders can use it as a very early alert that a larger reversal might be coming.
Recommended Timeframes:
This indicator is versatile and can be applied across various timeframes, but its effectiveness increases with higher timeframes due to more reliable structure.
Swing Trading (Ideal): 4-Hour, Daily, and Weekly charts are perfect. The SMC structures and Fibonacci levels formed on these timeframes are more significant and lead to more substantial price moves.
Day Trading: 15-Minute, 30-Minute, and 1-Hour charts work well. A common strategy is to use a higher timeframe (e.g., 4H) to determine the overall trend and key Golden Zone levels, then use a lower timeframe (e.g., 15M) for precise entry signals using the oscillator's crossovers and CHoCH patterns.
Scalping: 1-Minute and 5-Minute charts can be used, but with caution. Market noise on these low timeframes can generate false signals. It's highly recommended to use a higher timeframe for context when scalping.
How to Trade with the Script:
The core trading strategy revolves around identifying price reacting within the Golden Zone or other key Fibonacci levels.
Bullish (Long) Setup-
Identify the Context: Price is in a downtrend, and the oscillator is falling towards the lower end of the pane (0-50).
Entry Zone: Wait for the oscillator to enter the Golden Zone (61.8-50) or the Discount Zone (below 38.2). This indicates price is at a potential support area.
Confirmation Signal: Look for one or more of the following:
A bullish CHoCH (Change of Character) on the oscillator, where it breaks the most recent lower high.
A crossover of the main oscillator line above its Signal Line (EMA).
A bullish candlestick pattern (e.g., hammer, engulfing) on the main price chart at one of the Fibonacci price levels displayed on the right (e.g., the 0.618 or 0.786 price).
Entry: Enter a long position on the confirmation signal.
Stop-Loss: Place a stop-loss below the low of the range (the 0.786 or 1.0 Fibonacci level of that swing) or below the recent swing low on the price chart.
Take-Profit: Target the 50% equilibrium line (midline of the range), the opposite end of the range (the Premium Zone), or a subsequent lower high identified by the script.
Bearish (Short) Setup-
Identify the Context: Price is in an uptrend, and the oscillator is rising towards the upper end of the pane (50-100).
Entry Zone: Wait for the oscillator to enter the Golden Zone (61.8-50) or the Premium Zone (above 78.6). This indicates price is at a potential resistance area.
Confirmation Signal: Look for one or more of the following:
A bearish CHoCH on the oscillator, where it breaks the most recent higher low.
A crossover of the main oscillator line below its Signal Line (EMA).
A bearish candlestick pattern (e.g., shooting star, bearish engulfing) on the main price chart at one of the Fibonacci price levels (e.g., the 0.50 or 0.618 price).
Entry: Enter a short position on the confirmation signal.
Stop-Loss: Place a stop-loss above the high of the range (the 0.236 or 0.0 Fibonacci level) or above the recent swing high on the price chart.
Take-Profit: Target the 50% equilibrium line, the opposite end of the range (the Discount Zone), or a subsequent higher low.
Disclaimer:
Past performance of any trading system or methodology is not necessarily indicative of future results. This script and the accompanying analysis are provided for educational and informational purposes only. The content represents the personal opinions and strategies of the author and is not intended as, and should not be construed as, financial advice, a recommendation, or an offer to buy or sell any financial instrument.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。