Smart Money Fibonacci OTE Engine [ChartPrime]🔶 OVERVIEW
In the world of Smart Money Concepts (SMC), finding a "cheap" or "expensive" price is not enough—you need to find the Optimal Trade Entry (OTE). The Smart Money Fibonacci OTE Engine is an automated structural analysis tool that identifies trend shifts and projects institutional retracement zones in real-time.
Unlike traditional Fibonacci tools that require manual drawing, this engine detects Break of Structure (BOS) events and automatically anchors a Fibonacci grid to the most relevant swing points. It specifically highlights the OTE zone, where institutional buying or selling typically occurs after a trend confirmation.
🔶 CORE MECHANICS: AUTOMATED ANCHORING
The engine operates on a sophisticated "Pivot and Shift" logic:
Swing Detection: The script monitors price for structural Swing Highs and Swing Lows based on your chosen pivot length.
Fibonacci Direction Shift Recognition: A direction shift is confirmed when pivot price exceeds the previous Swing Pivot High (Higher High), and a down direction shift is confirmed when price drops below the previous Swing Pivot Low (Lower Low).
Dynamic Stretching: Once a direction is established, the Fibonacci grid "breathes" with the market. If the trend continues to make new highs or lows, the grid automatically stretches to include the new extension, ensuring your retracement levels are always mathematically accurate.
🔶 THE OPTIMAL TRADE ENTRY (OTE) ZONE
The OTE zone is the primary focus of this indicator. Based on ICT (Inner Circle Trader) concepts, the OTE represents the "sweet spot" of a retracement.
The Range: By default, the zone is plotted between the 0.618 and 0.786 Fibonacci levels.
Institutional Discount/Premium: In a bullish trend, price retreating into the OTE zone is considered "buying at a discount." In a bearish trend, a rally into the OTE is "selling at a premium."
Visual Clarity: The zone is highlighted with a colored box (teal for bull, red for bear), making it easy to identify exactly where to look for price action reversal signals.
🔶 KEY VISUAL FEATURES
Structure Labels: Automatically marks HH (Higher High) and LL (Lower Low) points with Break-of-Structure (BOS) lines.
Swing Diagonal: A dotted line connects the two anchor points of the Fibonacci grid, providing a clear visual representation of the current swing's slope and magnitude.
Extended Levels: Horizontal Fibonacci lines (0.236, 0.382, 0.5, etc.) are projected across the chart, with price-sensitive labels that update every tick.
Historical Mode: Toggle "Show Previous Fibs" to see where past OTE zones were respected, helping you backtest the current asset's adherence to Fibonacci levels.
🔶 INDICATOR INPUTS
Pivot Length: Adjust this to filter between micro-structure (short length) and macro-structure (long length).
OTE Upper/Lower Levels: Fully customizable boundaries for your entry zone.
Visual Styles: Change line styles (Solid, Dashed, Dotted) and colors for the grid, labels, and structure shifts to match your chart theme.
🔶 TRADING UTILITY
High-Probability Entries: Instead of "chasing" a breakout, wait for the Smart Money Fibonacci Engine to identify the higher high or lower low, then wait for price to return to the OTE box.
Confluence Tool: Use the OTE zone in conjunction with Order Blocks or Liquidity Sweeps. When an OTE zone aligns with a previously swept EQL or EQH, the probability of a reversal increases significantly.
Objective Profit Taking: Use the 0.0 (origin) and various extension levels as objective targets for scaling out of positions.
🔶 CONCLUSION
The Smart Money Fibonacci OTE Engine removes the subjectivity from drawing Fibonacci retracements. By automating the detection of market structure and highlighting the most statistically relevant entry zones, it allows traders to focus on execution rather than chart drawing. Indicator

Golden Pocket ReduxeGolden Pocket Reduxe
Golden Pocket Reduxe is a single overlay that combines two of the most reliable kinds of price levels — Fibonacci Golden Pocket retracement zones and Supply/Demand order blocks — and shows you where they line up. It is built to give you a clean read of where price is most likely to react, across as many timeframes as you want to see at once, without the chart turning into spaghetti.
The Golden Pocket is the area inside a swing where pullbacks most often pause or reverse. The Reduxe applies this concept across multiple timeframes and trading styles at once, and pairs it with order-block detection so you can see when a Fib pullback is also landing on a level where institutional buyers or sellers stepped in.
Why this exists
Most Golden Pocket indicators draw one set of zones based on one set of pivot rules. That works great, but you might have issues when you change timeframes, switch from stocks to futures, or want to see a 1-hour zone while you trade a 5-minute chart. This indicator was built to address all of that:
It runs up to five GP setups at once — two on the chart timeframe and three from any higher timeframes you pick — without redrawing the same zone twice.
It detects supply and demand zones the way professional order-block traders do, with filters for break of structure, volume confirmation, and zone shrinkage on retest.
It highlights confluence — places where multiple signals overlap — so you can immediately see the highest-probability levels.
It handles futures session rollovers, non-standard chart types like Heikin Ashi and Renko, and Regular Trading Hours filtering for equities, all without you having to think about it.
Golden Pocket zones
The indicator tracks pivot highs and lows on whatever timeframe you point it at and draws the Golden Pocket retracement band between each pair. Each zone stays anchored to the specific pivot pair that created it, so an unrelated swing on the opposite side of the market does not destroy a still-valid zone. Bullish GPs mark pullback support in uptrends. Bearish GPs mark rally resistance in downtrends. Both can be color-coded, labeled, or hidden independently.
When a new pivot forms in the same direction, the previous zone can either be archived as a Closed GP (kept on the chart in a different color so you can see historical levels that may still matter) or removed entirely. Closed GPs can be cleaned up automatically by max count, by price invalidation, or both.
There is also an optional Active GP invalidation rule: if price closes beyond a zone for a set number of consecutive bars, the zone is closed automatically. While the counter is running, the box border can recolor as a warning so you can see at a glance which zones are about to be invalidated.
Supply and Demand zones
When an impulsive candle breaks recent structure, the indicator draws an order block at the last opposing candle before the impulse — the precise level where the previous side lost control. This is the classic order-block construction, not a wide consolidation range.
The S/D engine includes:
Break of Structure filter — only confirm a zone when the impulse actually breaks the recent high or low, not just any large candle inside a range. Toggleable.
Shrink on retest — each time price comes back to a zone, it shrinks from the tested edge to visually represent orders being absorbed. After the configured number of retests, the zone is removed.
Cross-invalidation — opposing zones that overlap heavily are automatically removed, since they cannot both be valid.
Volume protection — high-volume zones (marked with a ★) resist invalidation from weaker opposing impulses.
Overlap deduplication — prevents the same level from being marked twice.
Persistent GPs (Day / Week / Month)
Three calendar-period boxes drawn from the live High and Low of the current calendar day, week, or month. These are different from pivot-based GPs — they update continuously as the period's range expands and reset cleanly at the start of each new period. Each period has its own enable toggle, color, fib levels, position, label, midpoint extension, and Regular Trading Hours mode. They are anchored to calendar boundaries in the symbol's timezone, which means they stay stable across futures session rollovers and behave the same way on every symbol.
Useful for higher-timeframe context that does not move as fast as pivot-based GPs, intraday targets off the day range, and weekly or monthly bias zones for swing trading.
Profiles
Instead of forcing you to manually retune pivot distance, ATR multiplier, and zone height every time you change charts, the indicator ships with preset bundles tuned for different trading styles:
Auto — picks the best profile based on the chart's timeframe.
Scalping — tighter pivots and faster zones, suited to charts under 5 minutes.
Intraday — balanced settings for session trading on 15–30 minute charts.
Swing — wider, slower zones for institutional levels on 1-hour charts and above.
Custom — full manual control over every parameter.
GP profiles and S/D profiles are independent — you can run a Scalping GP and a Swing S/D on the same chart, or any other combination.
Multi-timeframe layout
Chart GP Profile 1 / 2 — two profile slots that draw on the chart timeframe with no higher-timeframe lag. Each has its own color.
Overlay Timeframe 1 / 2 / 3 — three slots that each have their own timeframe, GP profile checkboxes (Scalping, Intraday, Swing, Custom), and S/D profile selector. If an overlay slot's timeframe matches the chart and a chart profile already covers that profile, the overlay slot suppresses just that profile to avoid drawing the same zone twice.
So a typical setup might be: chart Profile 1 set to Auto for the chart timeframe, Overlay TF1 set to 1H for medium-term context, and Overlay TF2 set to 4H for higher-timeframe bias — all running simultaneously, each with its own color, all drawn on the same chart.
Confluence detection
Automatically highlights places where two GPs overlap, or where a GP overlaps an S/D zone. Confluence boxes are drawn in their own color and labeled "GP + GP" or "GP + S/D" so you can immediately tell which kind of agreement you're looking at. These are typically the highest-probability levels on the chart.
Volume enhancement
Zones that form on above-average volume are visually boosted (more opaque) and marked with a ★ in the label. The intuition is simple: a level made by real participation is more likely to hold than one made by thin price action. The volume MA length and the opacity boost are both configurable.
MA filter
Optional trend filter that restricts which GP boxes are drawn based on a configurable Fast/Slow MA pair. You can filter by trend direction (only draw GPs that align with the trend), by price position (only draw GPs whose pivots are on the right side of the MA), or turn the filter off entirely. Each MA has its own type (SMA or EMA), length, color, and line style (Solid / Dashed / Dotted).
Use Real OHLC
Forces the indicator to use actual market prices on non-standard chart types like Heikin Ashi, Renko, and Kagi. Without this, pivots and zones would be drawn from modified candle values that don't reflect real traded levels, and your entries, exits, and alerts would all sit at the wrong prices. Keep this on unless you specifically want zones based on the chart's modified candles.
Alerts
Two alert paths, usable independently or together:
Specific conditions — pick from the dropdown: Bull GP Touch, Bear GP Touch, Day GP Touch, Week GP Touch, Month GP Touch, Demand Zone Touch, Supply Zone Touch, Confluence Zone Touch, or Any Zone Touch.
All-Events Alert Stream — set the alert condition to "Any alert() function call" and every zone touch fires a detailed message with direction, timeframe, profile, and symbol — for example "Bull 15 Intraday Golden Pocket Hit on BTCUSD". Persistent GP touches fire as "Day GP Hit", "Week GP Hit", or "Month GP Hit".
Visual customization
Bull, Bear, Day, Week, Month, and Confluence labels each toggle independently. Volume ★ markers have their own toggle. GP box borders can be Solid, Dashed, or Dotted. Active GPs have separate cosmetic offset inputs that control visual width and position without affecting any underlying calculations. An optional GP anchor dot marks the pivot bar where each zone originated. Midpoint lines can optionally be extended back to the originating pivot to make the zone's history easier to read.
How to start
Open Settings → Inputs.
Pick a Chart GP Profile (Auto is a fine default) and a color.
Optionally enable one or more Overlay Timeframe slots if you want higher-timeframe GPs on the same chart.
Leave the S/D engine on its defaults to start; tune later if you want fewer or wider zones.
Enable Persistent GPs (Day / Week / Month) for fixed bias zones that don't depend on pivots.
To set up alerts, right-click the chart → Add alert → set the Condition to this indicator → pick a specific event or choose "Any alert() function call" with the All-Events stream toggle on.
Credit
Based on the original Golden Pocket script by TradingWolf , heavily extended from there.
Most features were inspired by Terry ( Terryztrade ), who taught myself and many others the true value of fibs.
Alert plumbing uses the RecursiveAlerts library by HeWhoMustNotBeNamed .
License
Open-source under the Mozilla Public License 2.0. Indicator

Indicator

Hash Auto Fibonacci## Overview
Hash Auto Fibonacci eliminates the most time-consuming part of Fibonacci trading — drawing the levels yourself. Drop it on any chart and it automatically detects the most recent significant swing high and swing low, then instantly draws a complete Fibonacci retracement web anchored to those pivots. No manual drawing, no subjectivity, no missed setups.
Built for active traders who use Fibonacci as a core part of their strategy, this tool is engineered to keep up with fast-moving markets through a volatility-adaptive detection engine, a highlighted Golden Pocket zone, a built-in stop-loss reference, and optional multi-timeframe confirmation.
## Key Features
**Automatic Swing Detection**
The indicator uses a pivot-based algorithm to identify swing highs and lows in real time. A pink dot marks the swing high and a green dot marks the swing low on the chart — always showing only the current active pair, never cluttering your screen with historical markers.
**Dynamic Lookback Engine**
Rather than using a fixed lookback period, Hash Auto Fibonacci automatically adjusts its sensitivity based on current market volatility. During high-volatility conditions (fast trending moves, breakouts), the lookback shortens to detect swings quickly. During low-volatility conditions (consolidation, ranging markets), it lengthens to filter out noise and identify only meaningful pivots. This is calculated using the ratio of a 50-period ATR to a 10-period ATR, scaled by a user-adjustable multiplier. You can also switch to a fixed manual lookback at any time.
**Fibonacci Retracement Levels**
The following retracement levels are drawn automatically:
- 0 (swing high anchor)
- 0.236
- 0.382
- 0.5
- 0.618
- 0.65
- 0.786
- 1.0 (swing low anchor)
Optional extension levels (1.272, 1.618, 2.618) can be enabled for targets beyond the swing low.
**The Golden Pocket Zone**
The 0.618–0.65 confluence zone is highlighted as a gradient-filled amber band directly on the chart. This region — known as the Golden Pocket — is widely regarded as the highest-probability reversal zone within any Fibonacci retracement. The zone enforces an ATR-based minimum thickness so it remains visible even on assets with small absolute price ranges.
**ATR Stop-Loss Reference**
A dashed red line is automatically drawn below the swing low (bullish setup) or above the swing high (bearish setup) at a distance of 2× ATR-10. This gives a data-driven starting point for your stop-loss placement without requiring a separate indicator.
**Multi-Timeframe Confirmation**
When the current chart's swing pivot aligns within 0.5% of a confirmed pivot on a higher timeframe (default: 4H), the entire Fibonacci web is visually upgraded — lines become bolder, a confirmation badge appears, and an alert can be triggered. MTF-confirmed webs represent structurally significant levels that multiple timeframes agree on, which historically carry more weight as support and resistance.
**Direction Detection**
The indicator automatically determines whether the current setup is bullish (retracing upward from a low) or bearish (retracing downward from a high) by comparing which pivot — the high or the low — was confirmed most recently. You can override this manually if needed.
**Info Dashboard**
A clean navy dashboard in the corner of your chart displays:
- Current swing high and swing low prices
- 0.5 and 0.618 Fibonacci levels
- Golden Pocket price range
- Suggested ATR-based stop-loss price
- Active lookback period (and whether it's dynamic or manual)
---
## How To Use
**Basic setup**
Add the indicator to any chart. It works on all timeframes and all assets — crypto, stocks, forex, futures. The Fibonacci web draws automatically. The Golden Pocket zone is the primary area to watch for price reactions.
**Reading the chart**
- Price pulling back into the Golden Pocket (0.618–0.65 zone) in a bullish setup is the classic high-probability long entry zone
- Price rejecting from the Golden Pocket in a bearish setup is a potential short entry or profit-taking zone
- The 0.5 level acts as the midpoint — a close above (bullish) or below (bearish) confirms continuation of the retracement
- The 0.786 level is deep — a sweep past this level often signals the retracement is becoming a full reversal
**Using the stop-loss line**
The dashed red SL line is a reference, not a guaranteed stop placement. Use it as a starting point and adjust to your own risk tolerance. On volatile assets, consider placing your stop slightly beyond it to avoid wicks triggering your exit prematurely.
**Multi-timeframe confirmation**
When the ◆ MTF badge appears, the swing that anchors the current web also exists on the higher timeframe. These setups tend to produce cleaner reactions at Fibonacci levels because they represent areas where both short-term and institutional timeframe participants are watching the same price zone.
**Alerts**
Five alert conditions are available:
- New swing high detected
- New swing low detected
- MTF confirmation active
- Price entering the Golden Pocket
- Price at the 0.382 level
- Price at the 0.786 level
Set these in the Alerts panel to get notified without watching the chart constantly.
---
## Settings Reference
**Swing Detection**
| Setting | Default | Description |
|---|---|---|
| Dynamic lookback | On | Automatically adjusts pivot sensitivity based on volatility |
| Manual lookback | 10 | Fixed lookback used when dynamic mode is off |
| Dynamic multiplier | 9 | Controls the average lookback length in dynamic mode |
| Direction mode | Auto | Auto, Bullish, or Bearish override |
| Show swing markers | On | Displays pivot dots on the chart |
**Multi-Timeframe Confirmation**
| Setting | Default | Description |
|---|---|---|
| MTF confirmation | On | Enables higher timeframe pivot alignment check |
| HTF timeframe | 240 (4H) | The timeframe used for confirmation pivots |
**Fibonacci Levels**
| Setting | Default | Description |
|---|---|---|
| Retracement levels | On | Draws the standard 0–1 retracement web |
| Extension levels | Off | Adds 1.272, 1.618, 2.618 extension targets |
| Ratio labels | On | Shows ratio numbers next to each level |
| Golden Pocket zone | On | Highlights the 0.618–0.65 zone |
| ATR stop-loss line | On | Draws the 2× ATR stop reference |
**Info Table**
| Setting | Default | Description |
|---|---|---|
| Show info table | On | Displays the dashboard |
| Position | Top Right | Corner placement of the dashboard |
---
## Notes
- This indicator is an overlay — it draws directly on the price chart
- Works on all timeframes, all markets, and all asset classes available on PulseWire
- The dynamic lookback is calibrated on BTC/USDT 1H data and performs well across most liquid crypto and equity instruments
- Past Fibonacci levels do not guarantee future price reactions — use this tool as part of a broader trading system, not as a standalone signal
- This indicator does not repaint. Swing pivots are confirmed before being drawn and are not subject to change after confirmation
---
## By Hash Capital Research
Indicator

RSI Fibonacci Analysis [UAlgo]RSI Fibonacci Analysis is an oscillator based Fibonacci mapping tool that projects Fibonacci ratios directly onto RSI swings instead of price swings. The script identifies meaningful pivot highs and pivot lows on RSI, draws a Fibonacci ladder between the most recent alternating swing pair, and then enriches each level with historical retest statistics. This approach aims to answer a practical question: when RSI transitions from one swing extreme to the next, which retracement ratios tend to attract RSI retests most often.
The indicator is built for clarity and repeatability. Swing points are detected using a pivot depth setting that confirms highs and lows only after a defined number of bars, reducing noise. A minimum bar gap filter ensures that the Fibonacci anchor points are not too close together. Once a new swing is confirmed, the script draws a connector line between anchors and plots the Fibonacci levels as horizontal lines across the swing window.
The distinguishing feature is the integrated statistics engine. Over a configurable lookback of past swing sequences, the script measures how often RSI retests each Fibonacci ratio within a tolerance band. It tracks bullish and bearish swing sequences separately, then shows level strength both on chart labels and in a compact dashboard table. The result is an RSI Fibonacci tool that is not only visual but also descriptive of historical behavior.
🔹 Features
1) RSI Centered Fibonacci Projection
Instead of projecting Fibonacci levels on price, the script projects Fibonacci ratios across RSI swing ranges. This can be useful for traders who treat RSI as a structure tool, where oscillator retracements and reactions often precede or confirm price continuation.
2) Pivot Based Swing Detection with Adjustable Depth
Swing highs and swing lows are detected on RSI using pivot logic. Swing Depth controls how many bars are required to confirm a pivot. Higher depth creates fewer swings and stronger anchors. Lower depth reacts faster but may produce more frequent levels.
3) Minimum Bar Gap Filter for Cleaner Anchors
A minimum distance in bars is enforced between the swing anchors used to draw the current Fibonacci. This avoids drawing ladders on very small micro swings and keeps levels meaningful.
4) Customizable Fibonacci Level Set
The script uses a standard Fibonacci set:
0, 0.236, 0.382, 0.5, 0.618, 0.786, 1
Each level is drawn as a horizontal line between the start and end swing timestamps, with an optional thickness adjustment based on statistical strength.
5) Level Strength Statistics with Bull and Bear Separation
A built in statistics engine scans historical swing triplets to identify valid zig zag sequences and measures whether the third swing retests near a Fibonacci ratio. Hits are counted separately for bullish swing ranges and bearish swing ranges, producing direction specific behavior profiles.
If enabled, the script appends a percent value to each level label, showing how often that level was retested relative to all counted hits for that direction.
6) Strength Weighted Line Thickness
When statistics are enabled, the script increases the line width of a Fibonacci level when it represents a larger share of total hits. This provides an at a glance read of which levels historically attract more retests.
7) RSI Gradient Coloring and Context Lines
The RSI plot uses a gradient scheme:
Above 50, the gradient shifts toward green as RSI approaches higher values
Below 50, the gradient shifts toward red as RSI approaches lower values
Overbought and oversold reference lines at 70 and 30 are also plotted for context.
8) Dashboard with Directional Hit Breakdown
A table dashboard can be displayed in a selectable corner of the chart. It lists each Fibonacci level along with:
Bull hits and bull percentage
Bear hits and bear percentage
Optional row highlighting emphasizes levels that exceed a threshold share of hits on either side, making dominant ratios easier to spot.
🔹 Calculations
1) RSI Computation and Visualization
RSI is calculated on a selectable source with a selectable length:
float rsiValue = ta.rsi(rsiSource, rsiLength)
A gradient color is applied based on whether RSI is above or below 50:
color rsiGradient =
rsiValue > 50
? color.from_gradient(rsiValue, 50, 80, color.new(color.green, 50), color.green)
: color.from_gradient(rsiValue, 20, 50, color.red, color.new(color.red, 50))
plot(rsiValue, "RSI", color=rsiGradient, linewidth=2)
Context lines:
hline(70, "Overbought", color=color.new(color.gray, 50), linestyle=hline.style_dotted)
hline(30, "Oversold", color=color.new(color.gray, 50), linestyle=hline.style_dotted)
2) RSI Swing Detection Using Pivots
Swings are detected using pivot highs and pivot lows on RSI:
float ph = ta.pivothigh(rsiValue, swingDepth, swingDepth)
float pl = ta.pivotlow(rsiValue, swingDepth, swingDepth)
When a pivot is confirmed, it is stored as a Swing object with price, bar index, and direction:
if not na(ph)
allSwings.unshift(Swing.new(ph, bar_index - swingDepth, true))
if not na(pl)
allSwings.unshift(Swing.new(pl, bar_index - swingDepth, false))
The swing list is capped to prevent excessive memory growth.
3) Fibonacci Levels and Current Fib Drawing
The script draws a Fibonacci ladder between the most recent pair of alternating swings, with a minimum bar gap condition:
Swing lastSwing = allSwings.get(0)
Swing prevSwing = allSwings.get(1)
if lastSwing.isHigh != prevSwing.isHigh
if math.abs(lastSwing.barIdx - prevSwing.barIdx) >= minBarGap
Swing start = prevSwing
Swing end = lastSwing
Levels are derived from the swing range:
float diff = end.price - start.price
float levelPrice = start.price + (diff * lvl.ratio)
A connector line between anchors is also drawn for visual context.
4) Historical Retest Statistics Engine
On each new confirmed swing, the script recomputes statistics over a lookback of past swings. It iterates through swing triplets:
sStart, sEnd define the fib range
sRetest is a later swing used to test retests
A valid pattern requires alternating swing types:
bool isValidPattern =
(sStart.isHigh != sEnd.isHigh) and (sEnd.isHigh != sRetest.isHigh)
For valid triplets, it computes the fib range and tests whether the retest swing is close to any fib level. The tolerance is 5 percent of the total range:
float lvlPrice = sStart.price + (fibRange * lvl.ratio)
float dist = math.abs(sRetest.price - lvlPrice)
if dist < (math.abs(fibRange) * 0.05)
if isBullish
lvl.hitsBull += 1
else
lvl.hitsBear += 1
Interpretation:
A hit is counted when a retest swing lands within the tolerance band around a Fibonacci ratio
Hits are accumulated separately for bullish ranges and bearish ranges
5) Strength Normalization and Label Percentages
When drawing the current fib, the script computes total hits for the current direction and converts each level’s hits into a percent:
int totalHits = 0
for lvl in levels
totalHits += isBullish ? lvl.hitsBull : lvl.hitsBear
int pct = int((hits / float(totalHits)) * 100)
labelText += " (" + str.tostring(pct) + "%)"
Line width is also increased when a level’s strength exceeds thresholds:
Strength greater than 20 percent increases width
Strength greater than 30 percent increases width further
6) Dashboard Totals and Percent Columns
On the last bar, the dashboard computes totals and level percentages separately for bull and bear hits:
int totalBull = 0
int totalBear = 0
for lvl in fibLevels
totalBull += lvl.hitsBull
totalBear += lvl.hitsBear
float pctBull = totalBull > 0 ? (lvl.hitsBull / float(totalBull)) * 100 : 0
float pctBear = totalBear > 0 ? (lvl.hitsBear / float(totalBear)) * 100 : 0
These values are printed in the table. Optional highlighting can be applied when either pctBull or pctBear exceeds a threshold, helping dominant levels stand out. Indicator

Dynamic Auto FibonacciDynamic Auto Fibonacci - Logarithmic Fib Retracements & Extensions
Overview
Dynamic Auto Fibonacci is an advanced Fibonacci analysis tool that automatically identifies swing highs and lows to plot precise retracement and extension levels on your chart. Unlike traditional manual Fibonacci tools, this indicator dynamically updates as price action evolves, with full support for logarithmic scaling - essential for accurate analysis on long-term charts and high-growth assets.
The indicator features a clean, modern aesthetic with customizable vibrant colors and text-only labels that won't clutter your chart, making it perfect for both intraday scalping and long-term position trading.
Key Features
✅ Automatic Fibonacci Detection - Automatically finds the highest high and lowest low within your selected timeframe
✅ Manual Anchor Point - Click directly on the chart to set a custom low point for your Fibonacci analysis
✅ Logarithmic Scale Support - True logarithmic Fibonacci calculations for accurate levels on log-scale charts
✅ Flexible Display Modes - Show retracements only, extensions only, or both simultaneously
✅ Fully Customizable Levels - Adjust any Fibonacci level value, color, or toggle individual levels on/off
✅ Unified Color Mode - One-click option to change all levels to a single color (perfect for minimalist chart styles)
✅ Clean Modern Design - Text-only labels with vibrant colors and adjustable positioning
✅ 13 Default Levels - Includes 0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 0.886, 1.0, 1.236, 1.414, 1.618, 2.0, and 2.618
How to Use
Quick Start (Automatic Mode)
Add the indicator to your chart
By default, it will automatically find the lowest and highest points over the past 12 months
Fibonacci levels will appear with clean colored text labels positioned to the right of current price
Setting a Custom Anchor Point (Manual Mode)
This is the most powerful feature - drawing from a specific swing low:
Click the Settings icon (gear) on the indicator
Navigate to Fibonacci Settings group
Click inside the "Anchor Start Time" field - this will activate anchor selection mode
Click directly on the candle where you want to set your swing low point on the chart
The indicator will automatically:
Lock that candle as your anchor (swing low)
Find the highest high that occurred after your selected anchor point
Draw Fibonacci retracement and extension levels between those two points
Important: The anchor represents the starting point (0.0 level) of your Fibonacci, and the indicator finds the peak after that point as the 1.0 level.
Display Modes
Navigate to Display Settings → Display Mode to choose:
Retracements & Extensions (default) - Shows all levels from 0.0 to 2.618
Retracements Only - Shows only 0.0 to 1.0 levels (great for identifying pullback entry zones)
Extensions Only - Shows 1.0+ levels (useful for profit targets and breakout projections)
Customizing Individual Levels
Under Retracement Levels and Extension Levels groups, each level has three controls:
Toggle checkbox - Show/hide the level
Value field - Adjust the exact Fibonacci ratio (e.g., change 0.618 to 0.65 if desired)
Color picker - Set unique colors for each level
Unified Color Override
Perfect for chart screenshots or minimalist aesthetics:
Go to Unified Color Override settings group
Enable "Use Unified Color for All Levels"
Choose your color (defaults to gray)
All lines and text immediately change to that color - individual settings are preserved when you toggle back off
Line & Label Customization
Display Settings group offers:
Line Style: Solid, Dashed, or Dotted
Line Length: Short (10 bars), Medium (50 bars), or Long (extends right infinitely)
Line Width: 1-5 pixels
Label Size: Tiny to Huge
Label Offset: Adjust how many bars to the right labels appear (default: 12)
Show Anchor Line: Display vertical lines at your swing low and swing high points
Settings Overview
Fibonacci Settings:
Retracement Timeframe (default: 12M)
Anchor Start Time (click to select candle)
Use Log Scale Calculation (highly recommended for crypto and growth stocks)
Display Settings:
Display Mode (Retracements & Extensions / Retracements Only / Extensions Only)
Line Style, Length, Width
On-Chart Labels (clean text) or Price Scale Labels (traditional right-side axis)
Label Size and Offset
Unified Color Override:
One-click monochrome mode for all levels
Individual Level Controls:
8 customizable retracement levels (0.0 to 1.0)
5 customizable extension levels (1.236 to 2.618)
Use Cases
📊 Swing Trading - Identify key support/resistance zones for entries and exits
📊 Scalping - Use short-term anchors to find precise intraday reversal levels
📊 Position Trading - Logarithmic calculations essential for multi-year crypto/stock analysis
📊 Options Trading - Extension levels provide excellent profit target zones
📊 Multi-Timeframe Analysis - Set different anchors to compare short-term vs. long-term Fibonacci structures
Tips for Best Results
For cryptocurrency and growth stocks: Always enable "Use Log Scale Calculation" and view your chart in log scale
For precision: Use the manual anchor feature to draw from confirmed swing lows/highs rather than relying on automatic detection
For clean charts: Toggle off levels you don't actively use (e.g., disable 0.786 and 0.886 if you only trade 0.382/0.618)
For screenshots: Enable Unified Color Override and set to grayscale for professional-looking chart exports
Note on Logarithmic Scale
This indicator includes true logarithmic Fibonacci calculations, which are critical when analyzing assets with significant price appreciation. Standard arithmetic Fibonacci tools become increasingly inaccurate on log-scale charts - this indicator solves that problem by calculating levels using logarithmic mathematics when "Use Log Scale Calculation" is enabled.
Disclaimer: This indicator is a tool for technical analysis and does not constitute financial advice. Always perform your own analysis and risk management before making trading decisions. Indicator

SITFX_FuturesSpec_v17SITFX_FuturesSpec_v17 – Universal Futures Contract Library
Full-scale futures contract specification library for Pine Script v6. Covers CME, CBOT, NYMEX, COMEX, CFE, Eurex, ICE, and more – including minis, micros, metals, energies, FX, and bonds.
Key Features:
✅ Instrument‑agnostic: ES/MES, NQ/MNQ, YM/MYM, RTY/M2K, metals, energies, FX, bonds
✅ Full contract data: Tick size, tick value, point value, margins
✅ Continuation‑safe: Single‑line logic, no arrays or continuation errors
✅ Foundation for SITFX tools: Gann, Fibs, structure, and risk modules
Usage example:
import SITFX_FuturesSpec_v17/1 as fs
spec = fs.get(syminfo.root)
label.new(bar_index, high, str.format("{0}: Tick={1}, Value=${2}", spec.name, spec.tickSize, spec.tickValue))
Library

Fibonacci Sequence Moving Average [BackQuant]Fibonacci Sequence Moving Average with Adaptive Oscillator
1. Overview
The Fibonacci Sequence Moving Average indicator is a two‑part trading framework that combines a custom moving average built from the famous Fibonacci number set with a fully featured oscillator, normalisation engine and divergence suite. The moving average half delivers an adaptive trend line that respects natural market rhythms, while the oscillator half translates that trend information into a bounded momentum stream that is easy to read, easy to compare across assets and rich in confluence signals. Everything from weighting logic to colour palettes can be customised, so the tool comfortably fits scalpers zooming into one‑minute candles as well as position traders running multi‑month trend following campaigns.
2. Core Calculation
Fibonacci periods – The default length array is 5, 8, 13, 21, 34. A single multiplier input lets you scale the whole family up or down without breaking the golden‑ratio spacing. For example a multiplier of 3 yields 15, 24, 39, 63, 102.
Component averages – Each period is passed through Simple Moving Average logic to produce five baseline curves (ma1 through ma5).
Weighting methods – You decide how those five values are blended:
• Equal weighting treats every curve the same.
• Linear weighting applies factors 1‑to‑5 so the slowest curve counts five times as much as the fastest.
• Exponential weighting doubles each step for a fast‑reacting yet still smooth line.
• Fibonacci weighting multiplies each curve by its own period value, honouring the spirit of ratio mathematics.
Smoothing engine – The blended average is then smoothed a second time with your choice of SMA, EMA, DEMA, TEMA, RMA, WMA or HMA. A short smoothing length keeps the result lively, while longer lengths create institution‑grade glide paths that act like dynamic support and resistance.
3. Oscillator Construction
Once the smoothed Fib MA is in place, the script generates a raw oscillator value in one of three flavours:
• Distance – Percentage distance between price and the average. Great for mean‑reversion.
• Momentum – Percentage change of the average itself. Ideal for trend acceleration studies.
• Relative – Distance divided by Average True Range for volatility‑aware scaling.
That raw series is pushed through a look‑back normaliser that rescales every reading into a fixed −100 to +100 window. The normalisation window defaults to 100 bars but can be tightened for fast markets or expanded to capture long regimes.
4. Visual Layer
The oscillator line is gradient‑coloured from deep red through sky blue into bright green, so you can spot subtle momentum shifts with peripheral vision alone. There are four horizontal guide lines: Extreme Bear at −50, Bear Threshold at −20, Bull Threshold at +20 and Extreme Bull at +50. Soft fills above and below the thresholds reinforce the zones without cluttering the chart.
The smoothed Fib MA can be plotted directly on price for immediate trend context, and each of the five component averages can be revealed for educational or research purposes. Optional bar‑painting mirrors oscillator polarity, tinting candles green when momentum is bullish and red when momentum is bearish.
5. Divergence Detection
The script automatically looks for four classes of divergences between price pivots and oscillator pivots:
Regular Bullish, signalling a possible bottom when price prints a lower low but the oscillator prints a higher low.
Hidden Bullish, often a trend‑continuation cue when price makes a higher low while the oscillator slips to a lower low.
Regular Bearish, marking potential tops when price carves a higher high yet the oscillator steps down.
Hidden Bearish, hinting at ongoing downside when price posts a lower high while the oscillator pushes to a higher high.
Each event is tagged with an ℝ or ℍ label at the oscillator pivot, colour‑coded for clarity. Look‑back distances for left and right pivots are fully adjustable so you can fine‑tune sensitivity.
6. Alerts
Five ready‑to‑use alert conditions are included:
• Bullish when the oscillator crosses above +20.
• Bearish when it crosses below −20.
• Extreme Bullish when it pops above +50.
• Extreme Bearish when it dives below −50.
• Zero Cross for momentum inflection.
Attach any of these to PulseWire notifications and stay updated without staring at charts.
7. Practical Applications
Swing trading trend filter – Plot the smoothed Fib MA on daily candles and only trade in its direction. Enter on oscillator retracements to the 0 line.
Intraday reversal scouting – On short‑term charts let Distance mode highlight overshoots beyond ±40, then fade those moves back to mean.
Volatility breakout timing – Use Relative mode during earnings season or crypto news cycles to spot momentum surges that adjust for changing ATR.
Divergence confirmation – Layer the oscillator beneath price structure to validate double bottoms, double tops and head‑and‑shoulders patterns.
8. Input Summary
• Source, Fibonacci multiplier, weighting method, smoothing length and type
• Oscillator calculation mode and normalisation look‑back
• Divergence look‑back settings and signal length
• Show or hide options for every visual element
• Full colour and line width customisation
9. Best Practices
Avoid using tiny multipliers on illiquid assets where the shortest Fibonacci window may drop under three bars. In strong trends reduce divergence sensitivity or you may see false counter‑trend flags. For portfolio scanning set oscillator to Momentum mode, hide thresholds and colour bars only, which turns the indicator into a heat‑map that quickly highlights leaders and laggards.
10. Final Notes
The Fibonacci Sequence Moving Average indicator seeks to fuse the mathematical elegance of the golden ratio with modern signal‑processing techniques. It is not a standalone trading system, rather a multi‑purpose information layer that shines when combined with market structure, volume analysis and disciplined risk management. Always test parameters on historical data, be mindful of slippage and remember that past performance is never a guarantee of future results. Trade wisely and enjoy the harmony of Fibonacci mathematics in your technical toolkit. Indicator

Fibonacci Trend [ChartPrime]Fibonacci Trend Indicator
This powerful indicator leverages supertrend analysis to detect market direction while overlaying dynamic Fibonacci levels to highlight potential support, resistance, and optimal trend entry zones. With its straightforward design, it is perfect for traders looking to simplify their workflow and enhance decision-making.
⯁ KEY FEATURES AND HOW TO USE
⯌ Supertrend Trend Identification :
The indicator uses a supertrend algorithm to identify market direction. It displays purple for downtrends and green for uptrends, ensuring quick and clear trend analysis.
⯌ Fibonacci Levels for Current Swings :
Automatically calculates Fibonacci retracement levels (0.236, 0.382, 0.618, 0.786) for the current swing leg.
- These levels act as key zones for potential support, resistance, and trend continuation.
- The high and low swing points are labeled with exact prices, ensuring clarity.
- If the swing range is insufficient (less than five times ATR), Fibonacci levels are not displayed, avoiding irrelevant data.
⯌ Extended Fibonacci Levels :
User-defined extensions project Fibonacci levels into the future, aiding traders in planning price targets or projecting key zones.
⯌ Optimal Trend Entry Zone :
A filled area between 0.618 and 0.786 levels visually highlights the optimal entry zone for trend continuation. This allows traders to refine their entry points during pullbacks.
⯌ Diagonal Trend Line :
A dashed diagonal line connects the swing high and low, visually confirming the range and trend strength of the current swing.
⯌ Visual Labels for Fibonacci Levels :
Each Fibonacci level is marked with a label displaying its value for quick reference.
⯁ HOW TRADERS CAN POTENTIALLY USE THIS TOOL
Fibonacci Retracements:
Use the Fibonacci retracement levels to find key support or resistance zones where the price may pull back before continuing its trend.
Example: Enter long trades when the price retraces to 0.618–0.786 levels in an uptrend.
Fibonacci Extensions:
Use Fibonacci extensions to project future price targets based on the current trend's swing leg. Levels like 127.2% and 161.8% are commonly used as profit-taking zones.
Reversal Identification:
Spot potential reversals by monitoring price reactions at key Fibonacci retracement levels (e.g., 0.236 or 0.382) or the swing high/low.
Optimal Trend Entries:
The filled zone between 0.618 and 0.786 is a statistically strong area for entering a position in the direction of the trend.
Example: Enter long positions during retracements to this range in an uptrend.
Risk Management:
Set stop-losses below key Fibonacci levels or the swing low/high, and take profits at extension levels, enhancing your trade management strategies.
⯁ CONCLUSION
The Fibonacci Trend Indicator is a straightforward yet effective tool for identifying trends and key Fibonacci levels. It simplifies analysis by integrating supertrend-based trend identification with Fibonacci retracements, extensions, and optimal entry zones. Whether you're a beginner or experienced trader, this indicator is an essential addition to your toolkit for trend trading, reversal spotting, and risk management. Indicator

Fibonacci Moving Average PlusFibonacci Moving Average Plus is a sophisticated technical indicator that employs the first 15 numbers of the Fibonacci sequence to create dynamic moving average channels. This indicator aims to capture both immediate and long-term price movements by calculating Exponential Moving Averages (EMAs) based on these Fibonacci values. By using Fibonacci-based moving averages for both high and low price points, the indicator generates a visual channel that reflects the ebb and flow of market trends, acting as potential zones of support and resistance. Additionally, the indicator provides midline, retracement, and extension levels rooted in Fibonacci ratios, which are frequently observed as key levels for reversals or trend continuation.
Ideology Behind Using Fibonacci Sequence-Based Moving Averages
The Fibonacci sequence, known for its mathematical harmony and prevalence in natural patterns, is widely utilized in technical analysis to identify potential turning points in markets. In this indicator, the first 15 Fibonacci numbers (5, 8, 13, 21, etc.) are used as the lookback periods for EMAs to capture different layers of market sentiment. These moving averages represent timeframes that are theoretically in alignment with the natural rhythms of market cycles, where key levels—often coinciding with Fibonacci numbers—can act as magnetic points for price.
The Fibonacci high and low channels aim to encapsulate price action, giving traders a sense of whether the market is trending, consolidating, or experiencing reversal pressure. These levels, grounded in both mathematics and market psychology, help traders spot areas where price might face resistance or find support.
Key Features
Fibonacci Moving Average High and Low: This indicator calculates the high and low EMAs based on Fibonacci sequence numbers (e.g., 5, 8, 13, etc.) for enhanced trend analysis.
Golden Pocket Retracement (GPR) and Extension (GPE) Bands: Displays common Fibonacci retracement and extension levels (0.618, 0.65 for retracement, and 1.618, 1.65 for extension).
Midline: Plots the average of the Fibonacci high and low to act as an additional reference level.
Stop-Loss Levels: Provides suggested stop-loss levels based on Fibonacci levels for both long and short positions.
Basic User Guide
Adjust Input Settings:
Input Timeframe: Set a specific timeframe for the Fibonacci moving average calculation, separate from the chart's primary timeframe.
Show Fibonacci MA High/Low: Toggle the visibility of the high and low Fibonacci moving averages.
Show Mid Line: Display a midline for added trend reference.
Show Golden Pocket Bands: Choose to display retracement or extension bands for potential support or resistance zones.
Show Stop-Loss Levels: Enable to visualize potential stop-loss levels for both long and short trades.
Interpretation:
Fibonacci MA High and Low: Use these lines to gauge the general trend. When the price is above both, it may indicate an uptrend; below both, a downtrend.
Golden Pocket Retracement: This zone (between 0.618 and 0.65) is often a key level for potential reversals or support/resistance.
Golden Pocket Extension: The 1.618 and 1.65 levels can indicate potential profit-taking or trend exhaustion points.
Stop-Loss Levels: The calculated stop-loss levels (long SL below and short SL above) can aid in risk management.
Customization:
You can customize the appearance and visibility of each component through the input settings to fit your specific strategy and visual preferences.
This indicator should be used alongside other technical analysis tools to provide a more comprehensive trading approach.
This Indicator would not exist without the original contributions and blessing from Sofien Kaabar Indicator

Linear and Logarithmic Fibonacci Levels and (Price&Time) FansIntroduction
The Fibonacci Retracement tool is a go-to for traders looking to spot potential support and resistance levels. By measuring the distance between swing highs and lows, you can apply Fibonacci ratios like 0.236, 0.382, and 0.618 to predict key market levels.
Traditionally, these levels are set by dividing this distance into equal parts—known as Linear Levels. A more refined approach, Logarithmic Price and Time Levels, divides the distance into proportionally equal segments. Plus, this indicator now includes Fibonacci fans, adding another layer of analysis by projecting potential price levels using trendlines based on Fibonacci ratios.
This tool makes it easier to identify both Linear and Logarithmic levels while also leveraging Fibonacci fans for a more complete market view.
Applications
Logarithmic Levels and Fibonacci fans are ideal for volatile markets. In crypto, they’re especially effective for BTCUSDT (check out the wick from January 23, 2024). They also help spot accumulation and distribution patterns in high-volume altcoins like FETUSDT . In traditional markets, they’re useful for tracking stocks like TSLA and NVDA with extreme price swings, as well as indices in inflation-affected markets like XU100 , or recession-hit currency pairs like JPYUSD .
How to Use
This indicator is intuitive and similar to PulseWire’s Fibonacci Tool. Select your reference levels (Level 1 and Level 0), then tweak the settings to customize your analysis, including adding Fibonacci fans for extra insights.
Why It’s Different
Unlike PulseWire’s tool, which forces you to switch to a logarithmic scale (messing with other indicators and trend lines), this indicator lets you view both Linear and Logarithmic levels—and Fibonacci fans on Price and Time Series—without changing your chart’s scale. The original Fibonacci Code was derived from zekicanozkanli, modified and upgraded to plot fib front and back fans as well. Due to TV Max Plot restrictions I need to publish just Front and Back and Front Fibs separately. Indicator

Indicator

Indicator

Fib top and bottom Hunter - No Repaint "Top and bottom Hunter" indicator combines two popular technical analysis tools, Fibonacci retracement levels and the Relative Strength Index (RSI), to identify potential trading opportunities in the market.
Fibonacci retracement levels are based on the Fibonacci sequence, a mathematical series where each number is the sum of the two preceding ones. In trading, Fibonacci retracement levels are used to identify potential support and resistance levels based on the recent price action. The indicator uses two Fibonacci levels, fib_0 and fib_1, which are typically set to 0.382 and 0.618, respectively. These levels represent common retracement ratios.
To calculate the Fibonacci levels, the indicator considers the highest and lowest prices within a specified range, typically the highest and lowest of the last two bars. It calculates the fib_range, which is the difference between the highest and lowest prices. Then, fib_level_0 and fib_level_1 are determined by subtracting the Fibonacci ratios from the highest price.
The RSI is a momentum oscillator that measures the speed and change of price movements. It helps identify overbought and oversold conditions in the market. The RSI parameters used in this indicator are rsi_length (length of the RSI calculation), rsi_overbought (upper threshold indicating overbought conditions), and rsi_oversold (lower threshold indicating oversold conditions). The RSI value is calculated based on the closing prices.
The indicator generates buy and sell signals based on specific conditions:
Buy Condition: A buy signal is triggered when the RSI crosses above the oversold level (rsi_oversold) and the closing price is higher than fib_level_1. This indicates a potential reversal or bounce from the Fibonacci support level.
Sell Condition: A sell signal is triggered when the RSI crosses below the overbought level (rsi_overbought) and the closing price is lower than fib_level_0. This suggests a potential reversal or pullback from the Fibonacci resistance level.
In summary, this indicator combines the power of Fibonacci retracement levels and the RSI to identify potential trading opportunities. It helps traders find confluence between the Fibonacci support or resistance levels and the RSI readings, indicating potential trend reversals or bounces. Traders can use this information to make informed decisions about entering or exiting positions in the market.
Feel free to change the settings for what works best for you and use this with other confluences. I personally use RSI overbought and oversold values as 80 and 20
Indicator

Indicator

Golden PocketGolden Pocket
This marks up the fibonacci retracement levels of 0.65 and 0.618 by default, these levels are often referred to as the golden pocket.
They are known by this because when price has an impulse either to the up or downside, price will end up retracing at some point. This Golden pocket often lines up with other means of confluence where it's considered a good entry price from the retrace.
Unlike standard fib retracement indicators, these boxes will extend with current price until they are hit. As well as this, there is a moving average filter which you can set to higher timeframes meaning that you can choose to only look for golden pockets which are following the higher time frame trend. You can easily monitor all of your settings by setting up just 1 alert.
Settings
You have the option to enable/disable the line which marks out the pivot points the fib is being calculated from, you can also change the colour and style of the line.
Below this you have the option to choose what colour the fib boxes are and what colour they change to once price hits it. If you want them to disappear change the colours opacity to 0%.
If you want to change the golden pocket levels you can do that by changing the 0.618 or 0.65 levels in the settings.
The pivot distance controls what part defines a pivot high or low, it must be the highest/lowest to the left/right of the pivot candle count.
MA filter will only accept golden pockets which are trending with the Moving average.
You can change all the settings of the Moving average which acts as a filter including which timeframe it is calculated on.
Alerts
Simply toggle this on int the settings and then click on the 3 dots next to the indicators name, 'add alert', leave the top boxes as they are, you can name the alert anything you like but once you confirm this, it will monitor all golden pockets on the particular asset and timeframe you are looking at. The alerts are set up to trigger as soon as price touches one of the boxes.
Use Cases
We like setting are moving average up on the daily timeframe and using the Moving average filter so we know we are only trading with the higher timeframe trend. From there we can set up alerts on any lower timeframe.
Feel free to use any part of this script in your own code, please just give us a mention so we can check out your contributions to the community as well!
Happy to take in any suggestions or ways of improving Indicator

Library

Indicator

Indicator

Indicator

Library

Indicator

Indicator
