Fibonacci Rainbow Bollinger BandsBollinger bands with fibonacci levels as a rainbow background on the price chart.Indicador Pine Script®por NotoriousPyro4
Inverse Golden Pocket MTF ZonesIGP Multi-TF Zones — Inverse Golden Pocket Mapper Overview IGP Multi-TF Zones identifies dynamic support and resistance by detecting when price inverts through a Fibonacci golden pocket (the 0.618–0.786 zone) on any timeframe. When price breaks through a golden pocket from one side, that zone flips from resistance to support (or vice versa), creating a high-probability area for re-entry on a retest. The indicator overlays golden pocket zones from up to four timeframes simultaneously — your chart timeframe plus three configurable higher timeframes — so you can spot multi-timeframe confluence at a glance. Each zone tracks its lifecycle from formation through inversion or invalidation, with full visual feedback at every stage. How it works: Detects swing high → swing low pairs using pivot-based logic Draws the golden pocket zone (0.618–0.786 retracement) between the swings Monitors for inversion — a candle closing through the 0.786 level, confirming the zone has flipped Inverted zones change color (green for long, red for short) and become active areas to watch for retests Zones that get broken the wrong way (price closes beyond the swing origin) are invalidated and removed This is not a signal generator — it's a zone mapper. It shows you where the important levels are across multiple timeframes and lets you apply your own entry logic. Settings Reference Timeframe Combo Preset — Quick selection for which timeframes to display: Chart Only: Only your chart's own timeframe zones Chart + 15m: Chart TF plus 15-minute zones Chart + 15m + 30m: Three-tier view (default) Chart + 15m + 30m + 1h: Full four-tier stack Custom: Manually select each HTF and toggle independently Chart TF Show Chart TF Zones — Master toggle for your chart's native timeframe zones. Turn off if you only want higher TF zones overlaid. Extend Right (bars) — How many bars ahead the zone box extends past the current bar. Default: 15. Label Position — Where the zone info label sits relative to the box: Top-Left, Top-Right, Bot-Left, or Bot-Right. Use different positions per TF to prevent overlap. HTF 1 / HTF 2 / HTF 3 Each higher timeframe has its own self-contained settings group: Timeframe — Which timeframe to pull swing data from (e.g., 15m, 30m, 1h, 4h, D). Enabled — Toggle this HTF on/off. Min Swing (pts) — Minimum size in points for a swing to qualify. Higher timeframes naturally produce larger swings, so set this proportionally. Defaults: HTF1 = 45, HTF2 = 80, HTF3 = 145. Extend Right (bars) — Independent extend per TF. Higher TF zones represent bigger structures, so longer extensions make sense. Defaults: HTF1 = 30, HTF2 = 50, HTF3 = 80. Freeze Inverted — When on, inverted zones stop extending after a set number of bars, freezing them in place on the chart. Freeze After (bars) — How many bars after inversion before the zone freezes. Label Position — Top-Left, Top-Right, Bot-Left, or Bot-Right. Set different TFs to different corners to avoid label stacking. Swing Detection Pivot Lookback — Number of bars on each side to confirm a swing high/low. Higher values = fewer, more significant swings. Default: 5. Min Swing (pts) — Chart TF — Minimum point range between swing high and swing low for chart timeframe zones. Filters out insignificant micro-swings. Default: 25. Fibonacci Entry Level — Which fib level defines the entry edge of the golden pocket box. Options: 0.618 (default), 0.705, 0.786. The box always draws from your chosen entry level to 0.786. Show Entry Lines — Dashed line at the entry fib level (the bottom/top edge of the GP zone). Show CE Line — Consequent Encroachment line at the midpoint of the golden pocket (halfway between entry level and 0.786). CE is a key reaction level within the zone. Turns green/red on inversion. Show 0.786 Line (uninverted) — Dotted line at the inversion trigger level. Visible only on potential (uninverted) zones — once the zone inverts, this line disappears since it has served its purpose. Show 0.886 Line (uninverted) — Dotted line at the deep retracement level. Shows the extreme edge of the golden pocket. Also disappears on inversion. Direction Long Setups (Bearish GP) — Show zones where a bearish swing (high → low) creates a golden pocket that could invert into long support. Short Setups (Bullish GP) — Show zones where a bullish swing (low → high) creates a golden pocket that could invert into short resistance. IDs & Swing Labels Show Zone IDs — Each zone gets a unique sequential ID (Z1, Z2, Z3...) shown on the zone label. Show Swing IDs — Labels at each swing high (H) and swing low (L) that formed a zone, tagged with the zone ID and timeframe. Example: "Z42 5m H". Only swings that generated a zone are labeled. When multiple zones share the same swing point, labels merge with a "/" separator (e.g., "Z42 5m H / Z43 15m H"). Show Swing Lines — Dotted horizontal lines extending from each swing high and swing low to the right edge of the zone box. Lines turn solid on inversion. Swing ID Size — Text size for swing labels: tiny, small, or normal. Swing High ID Color — Color for swing high labels and lines. Default: orange. Swing Low ID Color — Color for swing low labels and lines. Default: blue. Zone ID Size — Text size for the zone ID portion of labels. Zone Lifecycle Delete Invalidated Zones — When on, zones that get broken (price closes beyond the swing origin) are immediately removed from the chart. When off, they stay visible with gray dotted borders. Max Zones Per TF — Maximum number of zones to keep per timeframe. When exceeded, the oldest zone is removed. Default: 6. Max: 50. Invalidation Invalidate on Swing Break — When price closes below the swing low (for long zones) or above the swing high (for short zones), the zone is marked as invalidated. Turn off to keep all zones alive indefinitely. Visuals Show Zone Labels — Master toggle for all zone info labels. Zone Label Size — Text size for zone labels: tiny, small, or normal. Zone Label Content Fine-grained control over what information appears in each zone's label. Every field can be toggled independently: Zone ID (Z123) — The sequential zone identifier. Default: ON. Timeframe + Direction — Shows the source timeframe and direction arrow, e.g., "5m GP↑" or "15m IGP↓". Default: ON. Swing Size (42pt) — The point range of the swing that formed the zone. Default: ON. Swing Refs — Shows which swing high and low IDs created the zone, e.g., " ". Default: OFF. Swing Time — Timestamp (ET) of when the swing that formed the zone was detected. Default: ON. Inversion Time — Timestamp (ET) of when the zone inverted. Only appears on inverted zones. Default: ON. CE Value — The Consequent Encroachment price level. Default: ON. TF Colors Chart TF — Color for chart timeframe zones. Default: purple. HTF 1 — Color for the first higher timeframe. Default: blue. HTF 2 — Color for the second higher timeframe. Default: orange. HTF 3 — Color for the third higher timeframe. Default: teal. CE Line — Color for the Consequent Encroachment line. Default: white. Inverted Long — Color for zones that have inverted bullish (long). Default: green. Inverted Short — Color for zones that have inverted bearish (short). Default: red. Zone States Potential (colored by TF) — A golden pocket has formed but price hasn't broken through the 0.786 level yet. The zone extends to the right each bar. This is a zone to watch. Inverted (green or red) — Price closed through the 0.786 level, confirming the golden pocket has flipped. The zone is now an active support/resistance area for retests. The CE line and swing lines turn solid. The 0.786 and 0.886 helper lines disappear. Invalidated (gray/deleted) — Price closed beyond the swing origin, breaking the zone. Depending on settings, the zone is either deleted or shown as a gray dotted outline. Multi-Timeframe Confluence The real power is in stacking timeframes. When a 5m zone overlaps with a 15m and 30m zone at the same price level, that's multi-timeframe confluence — a much higher probability reaction area than any single-TF zone alone. Higher timeframe zones draw with thicker borders and more opacity so they stand out visually. Color-coding by timeframe lets you instantly see which TFs are aligned. Tips Start with Chart + 15m + 30m preset and adjust from there Set different label positions per TF (e.g., chart = Top-Left, HTF1 = Top-Right) to avoid clutter Higher TFs need larger min swing values to filter noise — the defaults are tuned for NQ but adjust for your instrument Use Freeze Inverted on lower TFs to keep the chart clean, turn it off on higher TFs so they keep extending The CE line is often the first reaction level within a zone — watch for wicks to CE When swing labels show merged IDs (Z42/Z43), that swing point is extra significant — multiple timeframes agree on it Built for NQ futures. Works on any instrument — adjust min swing sizes to match your market's typical range.Indicador Pine Script®por timkamazik17
EBP + FibThis indicator automatically detects bullish and bearish EBP candles, highlights them visually, and generates an inverted Fibonacci framework used to plan continuation trades with precision. 🔍 What This Indicator Does This tool fully automates the EBP workflow: 1. Detects Bullish & Bearish EBP Candles Bullish EBP: price sweeps prior lows and closes strongly above the previous open/close. Bearish EBP: price sweeps prior highs and closes strongly below the previous open/close. EBP candles often serve as high-probability directional anchors, defining short-term and medium-term bias. 2. Plots an Inverted Fibonacci Framework Once an EBP candle forms, the script builds a custom inverted fib projection using the candle’s high/low as anchor points. The levels used: 1.0 – EBP extreme 0.75 / 0.65 / 0.50 / 0.25 / 0.0 – retracement levels -0.25 / -0.50 – continuation targets 3. Clean Labeling & Custom Styling You can customize: Level colors Line weights & styles Label positions (left, middle, right) Label text size Vertical spacing (to separate labels from lines) Labels show the actual fib value for fast reference during execution. 4. Directional Bias Made Simple The indicator colors EBP candles and displays fib levels that express the market’s expected path: Bullish: price is expected to retrace into 0.50–0.65, hold above the 1.0 extreme, and extend toward negative extensions. Bearish: identical logic mirrored downward. This makes bias extremely easy to read on any timeframe (1m → 4H → HTF). 5. Built-in Alerts The indicator includes alert conditions for: Bullish EBP detected Bearish EBP detected ___________________________ ___________________________ 📈 How Traders Use This Tool This indicator is designed for traders who want a clean, systematic framework for trading EBP-based continuation setups. Common execution models: 🔹 Bullish EBP A 1H or 4H bullish EBP forms → bullish bias. Wait for price to retrace into the 0.65 or 0.50 level. Look for lower-timeframe confirmation (BOS, sweep + reclaim). Target 0, -0.25, or -0.50. 🔹 Bearish EBP Mirror the process above. This workflow is widely used in algorithmic price action, continuation models, and liquidity-based trading. ___________________________ ___________________________ ✨ Ideal For Liquidity-based traders Smart money / ICT-fluent traders Continuation model traders Systematic backtesters Intraday ES/NQ/MNQ/MES traders Crypto scalpers using HTF bias Indicador Pine Script®por Tequirisi60
Fibonacci Confluence Grids (Levels + Time Zones) [Metrify]This script is built around a simple but often-misused idea: Fibonacci levels are only useful when the reference swing is meaningful. In practice, most traders do not fail because they “used the wrong ratio,” but because they anchored the Fib to a weak or inconsistent swing. A 0.618 level drawn from noise is still noise. The core design of this indicator is therefore not “draw more levels” but to formalize three simple steps that we usually do inconsistently by eye: identify an A→B swing, filter that swing for significance, and project both price levels and timing windows from that swing. Once a valid swing is accepted, the script projects a configurable set of price Fibonacci levels (retracements and/or extensions) and a separate configurable sequence of time gates (bar offsets projected forward from point B). The price levels define a vertical map of potential reaction zones. The time gates define a horizontal map of potential timing windows. Used together, they create a 2D framework: not only where price may become sensitive, but also when the probability of a market event tends to increase. Time gates: temporal structure and why “events cluster” around them The time gate projects vertical markers forward from point B using a bar sequence (commonly Fibonacci-like). The key idea is not random, but practical timing structure. Markets often exhibit rhythm: impulsive legs, pullbacks, consolidations, and expansions frequently have characteristic durations. Time gates should be interpreted as attention windows: periods where you should expect the probability of a notable market event to be higher than usual. “Event” here is intentionally broad, because direction is not guaranteed: acceleration / continuation burst pullback completion and resumption attempt volatility expansion after compression reversal attempt (successful or failed) fakeout / stop run / liquidity sweep structural break and regime shift This is why it’s accurate to say that significant events often occur around time gates. Not because the gate forces a reversal, but because it’s a timing checkpoint where participation and auction dynamics frequently change. Your edge comes from combining the gate with context: price location near a major Fib level, session behavior, and confirmation from price action/structure. How to use it as a manual framework A strong discretionary workflow is to treat this as a 2D confluence map: price zone × time window. Start by asking: “Is the active A→B swing meaningful?” If it looks like chop, tighten filters (increase Min Size / Min Bars, or increase ZigZag reversal / pivot length). Once the swing quality is good, treat the map as a set of planned observation points. When price approaches a major retracement (0.5/0.618/0.786) or extension (1.272/1.618), check whether a time gate is also nearby. If yes, you should expect higher information density so you watch for confirmation rather than forcing prediction. Confirmation can be whatever your style uses: structure break, reclaim, rejection candle quality, volatility expansion, etc. If price is mid-range (far from major fibs) and far from gates, that’s often low-quality territory for forcing trades —> your standards should be higher, not lower.Indicador Pine Script®por Metrify11384
Automatic Fibonacci Levels [WillyAlgoTrader]Automatic Fibonacci Levels is an overlay indicator that detects the dominant swing high and swing low within the visible chart area, draws a full Fibonacci retracement and extension grid between them, highlights the Optimal Trade Entry (OTE) zone at 61.8%–78.6%, marks a target zone at the −50% to −61.8% extension, and labels four take-profit levels — all updating automatically as you scroll or zoom the chart. Most Fibonacci tools on TradingView are either manual (you draw them yourself and they become stale as price evolves) or pivot-based (anchored to a fixed lookback period that may not match the swing you're actually looking at). This indicator takes a different approach: it uses the visible chart range as its context. It finds the highest high and lowest low within what you can currently see, determines trend direction based on which came first, and draws the full Fibonacci grid accordingly. When you scroll or zoom to a different area, the grid adapts — making it a dynamic analysis companion rather than a static drawing tool. 🔍 WHAT MAKES IT ORIGINAL 1. Visible-range swing detection. Instead of using a fixed pivot lookback or requiring manual anchor placement, the indicator scans the chart's visible window (chart.left_visible_bar_time to chart.right_visible_bar_time) to find the absolute high and low. This means the Fibonacci grid always reflects the swing structure you are currently analyzing. Zoom into a 50-bar range to see intraday retracements; zoom out to 500 bars to see the macro structure — the grid adjusts automatically. When the visible range changes (scroll or zoom), swing detection resets and recalculates. 2. Automatic trend direction from swing sequence. The indicator determines bullish or bearish bias by comparing when the swing low and swing high occurred. If the swing low formed first and the swing high formed later, the trend is classified as bullish (retracement levels are drawn down from the high, extensions project upward). If the swing high came first, the trend is bearish (retracement down from the low, extensions project downward). No manual input is needed — the grid orientation follows the price structure. 3. OTE Entry Zone + Target Zone as highlighted boxes. Two key zones are highlighted with semi-transparent boxes: — Entry Zone (61.8%–78.6%) : the Optimal Trade Entry area from ICT/SMC methodology — the deep retracement zone where institutional re-entry is most likely — Target Zone (−50% to −61.8%) : the extension zone where breakout moves frequently reach Both zones have configurable colors and optional text labels ("ENTRY ZONE" / "TARGET ZONE") inside them. Zone-touch alerts fire when price enters either box for the first time. 4. Four labeled take-profit levels. TP labels are placed at key Fibonacci levels to provide a structured scale-out framework: — TP1 at 38.2% (first retracement target — conservative exit) — TP2 at 0% (full swing retest — swing high in uptrend, swing low in downtrend) — TP3 at −27.2% (first Fibonacci extension) — TP4 at −61.8% (deep extension — runner target) Each TP level is only displayed if the corresponding Fibonacci line is enabled, keeping the chart clean. 5. 16 individually toggleable levels. The indicator supports a comprehensive set of levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 70.6%, 78.6%, 100% (standard retracements), plus 18%, 150%, 200% (deep retracements), and −18%, −27.2%, −50%, −61.8%, −100% (extensions). Each level can be toggled on or off independently, so you can configure exactly the grid density you prefer — from a minimal 4-level setup to a full 16-level deep analysis. ⚙️ HOW IT WORKS Swing detection: On every bar, the script checks whether the current bar falls within the chart's visible time window (using chart.left_visible_bar_time and chart.right_visible_bar_time). Within this window, it tracks the highest high and lowest low, along with their bar indices. When the visible window changes (scroll/zoom), all swing data resets and recalculates from scratch. This ensures the grid always reflects your current view. Trend direction: If swingLowBarIdx < swingHighBarIdx (low came first), the trend is classified as bullish — Fibonacci levels count downward from the swing high (0% = high, 100% = low), and extensions project above the high. If the high came first, the trend is bearish — levels count upward from the swing low, extensions project below. Level calculation: Each Fibonacci level is calculated as: price = anchor ± (swingRange × ratio), where the anchor and direction depend on the trend bias. For a bullish trend: 0% = swingHigh, 61.8% = swingHigh − range × 0.618, −50% = swingHigh + range × 0.5. For bearish: mirrored. Zone detection: The Entry Zone (61.8%–78.6%) and Target Zone (−50% to −61.8%) are computed as price ranges. On each confirmed bar, the script checks if the close falls within either zone. A zone-touch alert fires on the first confirmed bar inside the zone (no repeated alerts while price stays in the zone). The inEntryZone / inTargetZone state resets when price leaves, allowing re-entry detection. Drawing: All visual elements (lines, labels, boxes) are drawn on barstate.islast and cleaned up on each redraw to prevent accumulation. Lines extend from 2 bars before the current bar to the label offset position. Zones use extend.right so they remain visible as new bars form. 📖 HOW TO USE Reading the chart: — Orange horizontal lines = Fibonacci levels (retracement + extensions) — Optional % labels next to each line = level identification — Gold semi-transparent box = Entry Zone (61.8%–78.6% OTE) — Gold semi-transparent box with "TARGET ZONE" = extension target (−50% to −61.8%) — TP1–TP4 labels = structured take-profit levels — Optional diagonal line = swing connection (low-to-high or high-to-low) Suggested workflow: — Zoom to the swing you want to analyze — the grid adapts automatically — In a bullish trend: look for buy entries when price retraces into the Entry Zone (61.8%–78.6%), with stop loss below 100% (swing low), targeting TP1 (38.2%) → TP2 (0% / swing high) → TP3 (−27.2%) → TP4 (−61.8%) — In a bearish trend: look for sell entries when price retraces up into the Entry Zone, stop above swing high, targeting downward extensions — Use the dashboard to confirm trend direction and monitor whether price is currently in the Entry or Target zone — Set alerts for zone touches to get notified when price reaches OTE or target levels without watching the chart Customization tips: — For a clean chart: enable only 0%, 61.8%, 78.6%, 100%, −27.2%, −61.8% — this gives you the OTE boundaries, swing anchors, and two extension targets — For deep analysis: enable all 16 levels to see the full Fibonacci structure — Adjust Label Offset to move level labels further right if your chart is crowded — Toggle Show Diagonal Swing Line to visually confirm which high/low pair is being used ⚙️ KEY SETTINGS REFERENCE — Show All Elements (default On): master toggle for all Fibonacci visuals — Line Width (default 1): thickness of Fibonacci lines (1 = subtle, 5 = bold) — Line Style (default Dashed): solid, dashed, or dotted — Label Offset (default 17 bars): how far right of the last bar to place labels — Individual Levels : 16 toggleable levels from 200% to −100% — Show Entry Zone (default On): highlight the 61.8%–78.6% OTE box — Show Target Zone (default On): highlight the −50% to −61.8% extension box — Show Text in Zones (default On): display "ENTRY ZONE" / "TARGET ZONE" labels — Show TP Labels (default On): display TP1–TP4 at key levels — Show Level % Labels (default Off): display percentage text next to each line 📊 Dashboard The info panel displays: — Trend direction (Bullish / Bearish) based on swing sequence — Signal status (Entry Zone / Target Zone / —) when price enters a key zone — Swing range in price units — Current timeframe and indicator version 🔔 Alerts Two alert conditions (each fires once per zone entry on bar close): — Entry Zone touch : price closes inside the 61.8%–78.6% retracement zone — Target Zone touch : price closes inside the −50% to −61.8% extension zone Both support standard text and JSON webhook format. ⚠️ IMPORTANT NOTES — This indicator anchors to the visible chart range — it recalculates when you scroll or zoom. This is a feature, not a bug: it lets you analyze any swing by simply framing it on your screen. However, it means the grid will change if you move the chart. — Fibonacci levels are not predictive — they are reference points based on the measured swing range. Price may or may not react at any given level. — The Entry Zone (61.8%–78.6%) is derived from the OTE concept used in ICT/SMC methodology. It represents a high-probability retracement area, but no retracement zone guarantees a reversal. — Zone alerts require bar-close confirmation and fire once per entry — they do not repeat while price remains in the zone. — Works across all asset classes and timeframes. No volume data required.Indicador Pine Script®por WillyAlgoTrader44159
Adaptive Pivot Structure [WillyAlgoTrader]Adaptive Pivot Structure (APS) is an overlay indicator that maps market structure in real time by detecting swing pivots, classifying structural breaks (BOS / CHoCH), tracking missed reversal levels, and projecting a dynamic Fibonacci grid between the last confirmed pivot and the live forming extreme. Most pivot-based tools plot swing points with a fixed delay and leave the trader to interpret structure manually. APS automates the full workflow: it detects pivots, grades their strength against ATR, identifies whether the structure is continuing (BOS) or reversing (CHoCH), keeps track of levels that price skipped over, and stretches a Fibonacci retracement grid that updates bar-by-bar as the current swing extends — giving you an always-current picture of where price sits within the swing. 🔍 WHAT MAKES IT ORIGINAL APS combines five analytical layers into a single coherent overlay that would otherwise require multiple separate indicators: 1. ATR-graded pivot detection. Every swing high and low is measured against the current ATR to classify it as Strong (swing > 1.5× ATR) or Weak. You can filter the display to show only strong pivots, only weak ones, or all — allowing you to strip noise on lower timeframes while keeping full detail on higher ones. 2. Automated BOS / CHoCH classification. The indicator continuously compares each new pivot high to the previous pivot high, and each new pivot low to the previous pivot low. When a higher high forms in an existing uptrend, the script labels it as a Break of Structure (BOS ↑) — trend continuation. When a higher high forms after a downtrend, it labels a Change of Character (CHoCH ↑) — potential reversal. The same logic applies in reverse for bearish breaks. This removes the subjectivity of manually drawing and labeling structure shifts. 3. Missed reversal tracking. When two consecutive pivots form on the same side (e.g. two pivot highs without an intervening pivot low), the "missed" pivot low between them is flagged with a ◇ marker and extended as a dotted horizontal level until price breaks it. These missed levels often act as hidden support/resistance that conventional pivot tools ignore entirely. 4. Live (potential) pivot tracking. Instead of waiting for full confirmation (which inherently lags by N bars), APS tracks the running extreme since the last confirmed pivot and plots it in real time as a "potential next pivot" with a dashed zigzag extension. This gives you immediate visual feedback on how far the current swing has traveled and where the Fibonacci grid is anchored — without pretending the pivot is confirmed. 5. Dynamic Fibonacci grid. A full Fibonacci retracement (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0 — with optional 1.272 and 1.618 extensions) is drawn between the last confirmed pivot and the live pivot. The grid redraws every bar as the live extreme moves, so the retracement levels always reflect the current swing range. The OTE (Optimal Trade Entry) zones at 0.236–0.382 and 0.618–0.786 are highlighted with a fill to make them easy to spot at a glance. ⚙️ HOW IT WORKS Pivot detection: Pivots are identified using ta.pivothigh() and ta.pivotlow() with a user-defined lookback (Pivot Length). A pivot high is confirmed when the bar has N lower highs on both sides; a pivot low when the bar has N higher lows on both sides. This means confirmed pivots appear with a delay of N bars — this is inherent to the standard pivot detection algorithm. Strength grading: Once a pivot is detected, the script measures the absolute price distance from the previous pivot to the current one. If this distance exceeds 1.5× the current ATR value, the pivot is classified as "Strong"; otherwise "Weak." A minimum swing size filter (Min Swing Size, expressed as an ATR multiple) lets you suppress insignificant swings entirely. Structure logic: The indicator maintains a running structure direction variable. When a new pivot high exceeds the previous pivot high and the current structure is already bullish, it triggers a BOS ↑. If the structure was bearish, it triggers a CHoCH ↑ (reversal). Mirror logic applies for lows. This follows standard Smart Money Concepts methodology. Missed pivot logic: Between any two consecutive same-side pivots, the indicator records the highest high or lowest low that occurred in the gap. This "missed" extreme is marked and extended as a horizontal level. The level is automatically removed from the chart when price closes through it — keeping only active levels visible. Live pivot: After each confirmed pivot, the script starts tracking the running high (if expecting a pivot high next) or running low (if expecting a pivot low). This value updates every bar and serves as one anchor of the Fibonacci grid. A "▲?" or "▼?" label and a dashed line show where this potential pivot currently sits. Fibonacci grid: The retracement is calculated between the lower and upper anchor of the current swing (using the confirmed pivot on one side and the live extreme on the other). All seven standard ratios are drawn as horizontal lines from the earlier pivot's bar index to 5 bars into the future. The 0.5 and 0.618 levels are drawn thicker and in a highlight color for emphasis. ⚠️ REPAINTING BEHAVIOR — IMPORTANT This indicator is designed as a live analysis tool , not a backtesting signal generator. The following elements will change on the current bar: — The Live Pivot marker moves as the running extreme updates — The Fibonacci grid redraws as the live anchor moves — BOS/CHoCH labels based on pivots inherit the standard pivot detection delay Confirmed pivots themselves do not repaint — once a bar is no longer within the pivot lookback window, its pivot status is final. The alert system includes a "Confirmed Only" toggle (on by default) that restricts alerts to bar-close events, ensuring no repainting alerts reach your trading bot. 📖 HOW TO USE Reading the chart: — ▲ / ▽ labels at swing lows = confirmed pivot lows (filled = Strong, outline = Weak) — ▼ / △ labels at swing highs = confirmed pivot highs (filled = Strong, outline = Weak) — ◇ markers = missed reversals (cyan for missed lows, orange for missed highs) — Dotted horizontal lines from ◇ markers = active missed levels (auto-removed when broken) — "BOS ↑/↓" yellow labels = Break of Structure (trend continuation) — "CHoCH ↑/↓" green/red labels = Change of Character (potential reversal) — Purple dashed line with "▲?" or "▼?" = live potential pivot (updates every bar) — Fibonacci lines with OTE zone fills = dynamic retracement grid Suggested workflow: — Use CHoCH labels as early warning of trend reversals — then look for entries in the Fibonacci discount/premium zones — Use BOS labels to confirm trend continuation — look for pullback entries at 0.618–0.786 retracement — Watch the dashboard's "Fib Zone" readout: Discount (below 38.2%) favors buys, Premium (above 61.8%) favors sells, Equilibrium suggests waiting — Missed reversal levels act as hidden S/R — watch for reactions when price revisits them Timeframe guidance: — Scalping (1–5min): Pivot Length 3–5, Min Swing 0.5 ATR, Strong Only filter — Intraday (15min–1H): Pivot Length 5–10, default settings — Swing (4H–Daily): Pivot Length 10–20, show all strengths for full context ⚙️ KEY SETTINGS REFERENCE — Pivot Length (default 5): bars left/right for pivot detection — lower = faster but noisier — ATR Length (default 14): period for strength grading and minimum swing filter — Min Swing Size (default 0.0): minimum swing as ATR multiple — increase to filter small moves — Pivot Strength Filter (default All): show All / Strong Only / Weak Only — Max Active Levels (default 10): maximum missed-reversal horizontal lines displayed — Show Live Pivot (default On): toggle the real-time potential pivot tracker — Show Fibonacci Grid (default On): toggle the dynamic retracement overlay — Show Extensions (default Off): add 1.272 and 1.618 extension levels — Show Fib Zone Fill (default On): highlight OTE zones (0.236–0.382 and 0.618–0.786) — Alerts: Confirmed Only (default On): restrict alerts to bar-close confirmation — recommended for bots 📊 Dashboard The info panel (adjustable to any chart corner) displays: — Current market structure (Bullish / Bearish / Ranging) — Last confirmed pivot type and price — Live pivot direction and price — Number of active missed-reversal levels — Last PH and PL values — Fib Zone classification (Premium / Discount / Equilibrium) with percentage — Current timeframe and indicator version ⚠️ DISCLAIMER — This tool is intended for live chart analysis and structure mapping — it is not a standalone entry/exit signal system. — The live pivot and Fibonacci grid are designed to repaint by nature — they track the forming swing in real time. Do not use them for backtesting. — Past pivot patterns and structure shifts do not guarantee future price behavior. — Always combine structural analysis with proper risk management and additional confluence.Indicador Pine Script®por WillyAlgoTrader371
Harmonic Pulse Tracker [JOAT]Harmonic Pulse Tracker Introduction The Harmonic Pulse Tracker is an open-source institutional-grade wave and rhythm analysis system that combines Elliott Wave principles, Fibonacci harmonic analysis, WaveTrend oscillator mechanics, and cycle detection into a unified oscillator. This sophisticated system integrates multiple proven methodologies to identify high-probability reversal zones where harmonic patterns, wave cycles, and momentum indicators converge. The indicator is designed for traders who understand that market movements follow natural harmonic patterns and cyclical rhythms. By synthesizing detrended price oscillation, Fibonacci retracement levels, WaveTrend momentum analysis, money flow dynamics, and volume confirmation, this tool helps identify structural market turning points with mathematical precision. Why This Integration Exists This indicator combines six distinct analytical frameworks that complement each other: Harmonic Wave Analysis: Uses detrended price oscillation combined with Ehlers cycle detection to identify natural market rhythms Fibonacci Harmonic Levels: Calculates dynamic Fibonacci retracements and extensions based on wave swing points WaveTrend Oscillator: Implements LazyBear's WaveTrend algorithm for momentum and overbought/oversold detection Money Flow Integration: Tracks institutional buying and selling pressure through Money Flow Index analysis Volume Analysis: Confirms wave movements with volume spikes and directional volume pressure Elliott Wave Counting: Simplified wave counting system to identify impulse and corrective wave phases Each component addresses different aspects of market rhythm and harmony. The harmonic wave engine identifies natural price cycles, Fibonacci levels provide mathematical support/resistance, WaveTrend shows momentum extremes, money flow reveals institutional activity, volume confirms genuine moves, and Elliott Wave counting provides structural context. Together, they create a multi-dimensional view of market harmony and discord. Core Components Explained 1. Harmonic Wave Engine The core wave calculation combines two advanced techniques: DPO (Detrended Price Oscillator) = close - sma(close, length/2 + 1) Ehlers Cycle Component = High-pass filtered price with cycle smoothing Harmonic Wave = Smoothed DPO + (Cycle Component * 0.5) This creates a wave that removes trend bias while preserving cyclical components, revealing the natural harmonic rhythm of price movement. Wave Derivatives: - Wave Momentum: Rate of change in harmonic wave - Wave Acceleration: Rate of change in momentum - Wave Velocity: Percentage rate of change over 5 periods These derivatives help identify wave phase transitions and momentum shifts before they become obvious in price. 2. Fibonacci Harmonic Level System The indicator calculates dynamic Fibonacci levels based on harmonic wave swing points: Standard Retracements: - 23.6%, 38.2%, 50.0%, 61.8%, 78.6% of wave range Extensions: - 127.2%, 161.8%, 261.8% beyond wave high Golden Pocket Zone: The critical 61.8% to 78.6% retracement zone where most harmonic reversals occur. This zone represents the mathematical sweet spot where Fibonacci ratios converge with natural market rhythm. Harmonic Resonance Detection: The system identifies when price is within 5% of key Fibonacci levels and calculates confluence scores when multiple levels align. 3. WaveTrend Oscillator Integration Implements the proven WaveTrend algorithm: ESA = ema(hlc3, channel_length) D = ema(abs(hlc3 - ESA), channel_length) CI = (hlc3 - ESA) / (0.015 * D) WT1 = ema(CI, average_length) WT2 = sma(WT1, 4) WaveTrend Signals: - Crossovers in oversold zone (< -50): Bullish reversal signals - Crossunders in overbought zone (> 50): Bearish reversal signals - Regular crossovers: Momentum shift confirmation 4. Money Flow Analysis Tracks institutional buying and selling pressure: MFI = Money Flow Index over specified period MFI Centered = (MFI - 50) * multiplier - Positive MFI: Institutional buying pressure - Negative MFI: Institutional selling pressure - Strong MFI: Absolute value > 25 indicates significant institutional activity 5. Volume Analysis Engine Comprehensive volume analysis including: Volume Spikes: Volume > Average Volume * Threshold Volume Ratio: Current volume / Average volume Volume Strength: Normalized volume intensity (0-100) Directional Volume: - Bullish Volume Spike: High volume + green candle - Bearish Volume Spike: High volume + red candle 6. Elliott Wave Phase Detection Simplified wave analysis to identify market structure: Impulse Waves: - Impulse Up: Positive momentum + acceleration + velocity - Impulse Down: Negative momentum + acceleration + velocity Corrective Waves: - Mixed momentum and acceleration signals indicating consolidation Wave Counting: Basic 5-wave count system that resets after wave 5 completion, helping identify potential reversal zones. Multi-Factor Confluence Scoring System The indicator calculates a real-time confluence score (0-100) by weighting each component: Confluence Score Components: - Fibonacci Zone: Up to 20 points (Golden Pocket = 20, other Fib levels = 4 each) - Wave Strength: Up to 20 points (based on wave momentum intensity) - WaveTrend: Up to 20 points (extreme zone crossovers = 20, regular = 15) - Money Flow: Up to 20 points (strong institutional activity = 20) - Volume: Up to 20 points (volume spikes = 20, elevated = 15) Scores above 80 indicate exceptional confluence for potential trades. The dashboard displays individual component scores for transparency. Perfect Harmonic Alignment Detection The system identifies rare "Perfect Harmonic" setups when: - Price is in Golden Pocket zone - Impulse wave phase is active - Wave strength > 70 - WaveTrend crossover in extreme zone - Positive money flow (for bullish) or negative (for bearish) - Volume spike confirmation These setups represent the highest probability reversal opportunities. Visual Elements Harmonic Wave: Main oscillator with gradient coloring based on wave position Wave Momentum: Histogram showing rate of change in wave movement Fibonacci Levels: Key retracement and extension levels (38.2%, 50%, 61.8%, 78.6%, 161.8%) Golden Pocket Zone: Highlighted area between 61.8% and 78.6% levels WaveTrend Lines: WT1 and WT2 with overbought/oversold zones Money Flow Columns: Institutional buying/selling pressure visualization Volume Strength: Volume intensity histogram Signal Markers: Perfect Harmonic signals and strong confluence alerts Background Zones: Golden Pocket and Perfect Signal highlighting Dashboard: Real-time display of all component values and confluence score How Components Work Together The integration creates a harmonic analysis approach: Layer 1 - Wave Rhythm: Harmonic wave identifies natural market cycles and turning points Layer 2 - Mathematical Levels: Fibonacci ratios provide precise support/resistance zones Layer 3 - Momentum Context: WaveTrend shows overbought/oversold extremes Layer 4 - Institutional Flow: Money flow reveals smart money positioning Layer 5 - Volume Confirmation: Volume analysis validates genuine moves vs noise Layer 6 - Wave Structure: Elliott Wave context provides structural framework Example scenario: Harmonic wave reaches Golden Pocket zone (Layer 1 + 2) during WaveTrend oversold crossover (Layer 3) with positive money flow (Layer 4) and volume spike (Layer 5) in corrective wave phase (Layer 6). This confluence suggests exceptional reversal probability. Input Parameters Wave Settings: Wave Length: Period for harmonic wave calculation (default: 34) Smoothing Period: Wave smoothing factor (default: 5) WaveTrend Settings: Show WaveTrend: Toggle WaveTrend display WT Channel Length: Channel calculation period (default: 9) WT Average Length: Smoothing period (default: 12) WT Overbought: Overbought threshold (default: 50) WT Oversold: Oversold threshold (default: -50) Money Flow Settings: Show Money Flow: Toggle money flow display MFI Length: Money Flow Index period (default: 14) MFI Multiplier: Sensitivity adjustment (default: 1.5) Volume Settings: Show Volume Analysis: Toggle volume indicators Volume Spike Threshold: Multiplier for spike detection (default: 1.5) Fibonacci Settings: Show Fibonacci Levels: Toggle Fibonacci level display Fibonacci Lookback: Period for swing point calculation (default: 100) Cycle Settings: Cycle Period: Ehlers cycle detection period (default: 20) Cycle Smoothing: Cycle component smoothing (default: 3) How to Use This Indicator Step 1: Identify Wave Phase Check the dashboard for current wave phase (Impulse Up/Down, Corrective, Neutral) and Elliott Wave count. Step 2: Locate Fibonacci Zones Look for price approaching key Fibonacci levels, especially the Golden Pocket zone (61.8%-78.6%). Step 3: Check WaveTrend Position Identify if WaveTrend is in extreme zones and watch for crossovers in oversold/overbought areas. Step 4: Analyze Money Flow Confirm institutional positioning through Money Flow Index - positive for bullish setups, negative for bearish. Step 5: Verify Volume Confirmation Ensure volume supports the move - look for volume spikes in the direction of the expected reversal. Step 6: Review Confluence Score Check the dashboard confluence score. Scores above 80 indicate high-probability setups. Step 7: Wait for Perfect Harmonic Signals The highest probability trades occur when "PERFECT" signals appear, indicating all factors are aligned. Best Practices Use on 15-minute to 4-hour timeframes for optimal harmonic detection Focus on Golden Pocket zone entries - this is where most harmonic reversals occur Wait for WaveTrend crossovers in extreme zones for best risk:reward Confirm with money flow direction - institutional flow should support the trade direction Volume spikes add significant confirmation to harmonic setups Perfect Harmonic signals are rare but offer exceptional probability Wave 5 completions often coincide with major reversal opportunities Use confluence scores above 80 as primary filter for trade selection Indicator Limitations Harmonic patterns can extend beyond expected Fibonacci levels Perfect Harmonic signals are rare - patience is required for best setups Wave counting is simplified and may not match complex Elliott Wave analysis Fibonacci levels are dynamic and may adjust as new swing points form Money flow can remain extreme longer than expected during strong trends Volume confirmation may be less reliable in low-liquidity markets Confluence scoring is mathematical, not predictive of future performance Requires understanding of harmonic analysis principles for effective use Technical Implementation Built with Pine Script v6 using: Advanced detrended price oscillation with Ehlers cycle detection Dynamic Fibonacci calculation based on swing point analysis LazyBear WaveTrend algorithm implementation Real-time Money Flow Index with institutional bias detection Volume analysis with spike detection and directional confirmation Simplified Elliott Wave counting with phase detection Multi-factor confluence scoring system with component weighting Anti-overlap signal filtering to prevent signal clustering The code is fully open-source and can be modified to suit individual trading styles and preferences. Originality Statement This indicator is original in its harmonic integration approach. While individual components (DPO, Fibonacci, WaveTrend, MFI, volume analysis, Elliott Wave) are established concepts, this integration is justified because: It synthesizes six distinct methodologies that address different aspects of market harmony The harmonic wave engine combines detrended oscillation with cycle detection for superior rhythm analysis Dynamic Fibonacci levels adjust to current wave structure rather than using static retracements Golden Pocket zone identification provides mathematical precision for reversal timing Multi-factor confluence scoring quantifies setup quality across all components Perfect Harmonic detection identifies rare, high-probability reversal opportunities Each component contributes unique harmonic information: wave analysis reveals natural cycles, Fibonacci provides mathematical levels, WaveTrend shows momentum extremes, money flow indicates institutional positioning, volume confirms genuine moves, and Elliott Wave provides structural context. The integration's value lies in identifying moments when all these harmonic factors align simultaneously. Disclaimer This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors. Harmonic analysis and Fibonacci levels are mathematical concepts that do not guarantee future price movement. Past performance and backtested results do not guarantee future results. Market conditions change, and harmonic patterns that worked historically may not work in the future. Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions. The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool. -Made with passion by officialjackofalltradesIndicador Pine Script®por officialjackofalltrades2241
Gann-Fibonacci Swing Toolkit [BigBeluga]🔵 OVERVIEW Gann–Fibonacci Swing Toolkit is an advanced swing-based projection tool that combines classic Gann geometry with Fibonacci ratios. The indicator automatically detects market swings, anchors them to the most recent structure, and dynamically plots either Gann Fans or Gann Boxes to visualize price–time relationships, trend angles, retracement zones, and expansion targets. This toolkit is designed to help traders understand not only where price may react, but also how fast it should move relative to time. 🔵 HISTORICAL BACKGROUND The foundation of this toolkit comes from two of the most influential schools of market geometry: W.D. Gann (early 1900s) introduced the idea that markets move according to geometric and mathematical laws, where price and time must stay in balance . His work emphasized angles (such as 1×1, 1×2, 1×3) that define how much price should advance or decline per unit of time. Fibonacci ratios , derived from the Fibonacci sequence and popularized in trading decades later, describe natural proportional relationships observed across markets, especially during corrections and expansions. Modern technical analysis merges these ideas by applying Fibonacci ratios to Gann’s price–time framework, creating tools that measure both distance (price) and duration (time) . The Gann–Fibonacci Swing Toolkit follows this combined philosophy by grounding all projections in real swing structure rather than static or manually drawn anchors. 🔵 CORE CONCEPT Swing-Based Anchoring — All calculations start from confirmed swing highs and lows detected via a rolling highest/lowest lookback. Directional Context — The tool automatically determines bullish or bearish structure and adapts all projections accordingly. Price–Time Geometry — Gann logic is applied by projecting price movement relative to elapsed bars, not just price distance. 🔵 KEY FEATURES SWING DETECTION LOGIC A swing high is confirmed when price forms a local maximum and then fails to extend higher. A swing low is confirmed when price forms a local minimum and then fails to extend lower. The most recent completed swing becomes the anchor point for all Gann and Fibonacci calculations. Optional ZigZag lines visually connect completed swings for structural clarity. GANN FAN MODE When Fibonacci Type = Fan , the indicator plots dynamic Gann fan angles from the swing anchor. Fan Ratios — Each fan line represents a 1/x (1/1, 1/2, 1/3, etc.), defining how much price should move per unit of time. Trend-Aware Projection - Bullish fans project upward from swing lows. - Bearish fans project downward from swing highs. Fan Fill Zones — Optional shaded regions between fan levels highlight price compression and expansion areas. GANN BOX (FIBONACCI BOX) MODE When Fibonacci Type = Box , the indicator builds a Gann Box using Fibonacci retracement and time ratios. Horizontal Levels — Fibonacci price retracement levels (0.236, 0.382, 0.5, 0.618, 0.786) are projected from the swing range. Vertical Levels — Fibonacci time divisions are applied across the swing duration to estimate timing of reactions. Inverse Mode — Flips retracement logic to project inverted expansions instead of standard pullbacks. OTE Zone — Optional Optimal Trade Entry zone highlights the premium/discount retracement area. Dual-Axis Structure — Combines price and time into a single geometric framework instead of treating them separately. MAIN FRAME LOGIC A dynamic frame is drawn between the swing anchor and current bar, scaled by trend slope. The frame visually represents the dominant trend channel derived from swing geometry. VISUAL ELEMENTS Swing anchor labels mark the exact price and bar index used for calculations. Color-coded bullish and bearish swings improve structural readability. Labels on fan and box levels display their exact Fibonacci ratios. 🔵 HOW TO USE Use Gann Fans to trade dynamic trend support and resistance that evolves with time. Use Gann Boxes to identify high-probability retracement zones and timing windows. Combine fan angles with horizontal box levels for confluence-based entries. Disable ZigZag if you want a cleaner chart focused only on projections. 🔵 CONCLUSION Gann–Fibonacci Swing Toolkit is a geometry-driven market structure tool that goes beyond static Fibonacci levels. By uniting Gann’s price–time balance with Fibonacci proportionality and anchoring everything to real swing structure, the indicator provides a deeper framework for understanding trend behavior, corrective depth, and future reaction zones — all derived directly from price action itself.Indicador Pine Script®por BigBeluga55814
GS Fibonacci Retracement Dynamic Anchor [Buy/Sell]GS Fibonacci Retracement Dynamic Anchor: Institutional Reversal Logic The GS Fibonacci Retracement Dynamic Anchor is a high-precision Fibonacci tool designed for various assets including Stocks, Forex, and Options. Instead of static lines that become irrelevant as price moves, this script uses a rolling lookback engine to find the absolute Current Range . It then projects a "live grid" starting exactly from the highest and lowest bar indices. How the Signals Work (Careful Entry): This script does not just signal because a line was touched. It uses a Validation Phase : The Pocket Entry: For a BUY signal, price must first dip into the "Golden Pocket" (below the 61.8% line). For a SELL signal, price must rise into the "Premium Pocket" (above 38.2%). The Verification: The arrow only appears when the price closes back across the 50% Median Line . This confirms that the trend has truly shifted and the high/low is locked in. Does this Redraw? The Lines: Yes. The lines are Dynamic . If the market makes a higher high, the Fibonacci levels will automatically recalculate and shift up. This ensures you are always looking at the most current mathematical reality. The Signals (Arrows): NO. The BUY and SELL arrows are calculated based on bar closes. Once an arrow appears on a closed candle, the logic is locked to that historical data. Main Trading Applications: Forex & Stocks: Ideal for catching "Mean Reversion." When a stock is overextended and enters the Premium Zone, the GS SELL signal helps you exit or short before the drop back to the median. Options: The GS BUY signals represent "Deep Discount" entries where the Greeks (Delta/Theta) are most favorable for a bounce. Equities/Funds: High-reliability signals for long-term investors to find "The Bottom" of a 75-day consolidation. Key Features: Institutional Ratios: Tracks the 21.0, 38.2, 50.0, 61.8, and 79.0 levels—the specific decimals used by automated trading algorithms. Dynamic Anchor Dashboard: Real-time tracking of whether the price is in a "Premium" (Expensive) or "Discount" (Cheap) state. Alert Ready: Fully integrated alert conditions for both Bullish and Bearish confirmations. Points to Note: Trend Strength: If the market is in a "Super Trend" (making new highs every 3 bars), the anchors will shift frequently. In these cases, wait for the price to stop making new anchors before trusting the 50% reclaim. Lookback Setting: The 75-bar default is the "Sweet Spot" for most traders. Shortening it to 30 will make it a scalping tool; lengthening it to 200 will make it a macro-trend tool. Indicador Pine Script®por Finis2331145
ZenAlgo - ABCThis indicator identifies a three-point price structure (X, A, B) and projects proportional price levels forward from point B. It uses either automatically detected swing points or manually selected anchors and then builds a forward projection framework based on the relative movement between X and A. 1. Anchor Point Selection (X, A, B) The script first determines three key price points that define the reference movement. Automatic mode When manual anchors are disabled, the indicator scans historical bars to detect local highs and lows using a fixed number of bars on the left and right side. A pivot high is confirmed only after enough future bars exist, and the same applies to pivot lows. This avoids using information that is not yet available in real time. Detected pivots are stored in sequence: The previous confirmed pivot becomes X The next confirmed pivot becomes A The most recent confirmed pivot becomes B To avoid repeatedly using the same type of pivot, the script alternates between highs and lows. This ensures that X, A, and B always represent a swing structure instead of a flat sequence. Manual mode When manual anchors are enabled, the user defines three timestamps. The script captures the price and bar index at those times. After all three points are collected, the script adjusts them to represent true extremes inside their bars. Depending on direction, it replaces closes with highs or lows so that X and A form a valid swing, and B represents a corrective endpoint. If manual anchors are incomplete, the script falls back to the automatic pivots. 2. Validation and Direction Detection After anchors are collected, the script checks whether all three points are available. If any of them is missing, no projection is drawn. When X, A, and B exist, the script determines the directional context: If A is above X, the structure is treated as bullish If A is below X, the structure is treated as bearish The vertical distance between X and A defines the reference movement. This distance is treated as the base unit for all further projections. This approach assumes that the impulse move from X to A represents the dominant directional leg, and that B represents a retracement or pause within that structure. 3. Projection Calculation All projected levels are derived from the difference between X and A and are applied starting from point B. For each predefined ratio: In bullish structures, the distance from X to A is added upward from B In bearish structures, the distance is subtracted downward from B This produces a set of horizontal price levels that are proportional to the initial impulse. No fixed price values are used. All levels scale automatically with market volatility and with the size of the X–A movement. 4. Configurable Levels and Naming The indicator defines a list of projection ratios that represent retracement, extension, and continuation zones. Each level can be enabled or disabled and has an adjustable color and transparency. Each level may be displayed in two ways: As a descriptive name combined with the ratio As a numeric ratio combined with the projected price The naming system maps specific ratios to semantic labels such as base, entry, intermediate targets, main target, and extended continuation levels. These names are fixed in the script and reflect their relative position in the projection structure. 5. Visual Construction On the most recent bar, the script clears all previously drawn elements and rebuilds the full structure. It then draws: A dashed line from X to A and from A to B to visualize the underlying swing Labels at X, A, and B with direction-aware placement Horizontal lines from B into the future for each enabled level Text labels at the end of each level line All level lines extend a configurable number of bars to the right of the current bar, creating a forward projection area. Transparency values are fixed to maintain visual consistency and to avoid obscuring price action. 6. Zone Construction In addition to individual lines, the script can draw shaded zones between selected pairs of levels. These zones include: A retracement zone between two closely spaced mid-range ratios A target zone between the main extension levels An extended continuation zone above or below the main target Zones are drawn as semi-transparent rectangles from point B to the right extension limit. Their vertical boundaries are defined by the corresponding projected levels. These zones highlight areas where price interaction with multiple proportional levels is expected. 7. Display and Update Logic The drawing process runs only on the most recent bar. This prevents excessive historical objects and ensures that projections always reflect the latest confirmed X, A, and B. All graphical objects are stored internally and deleted before redrawing. This avoids overlap and keeps the chart synchronized with the current structure. 8. Interpretation of Levels The projected levels represent proportional price distances derived from the prior impulse. They should be interpreted as: Reference zones for potential reactions Areas of interest for continuation or exhaustion Context for managing existing positions Lower ratios correspond to shallow projections near B. Higher ratios correspond to extended moves away from B. No level represents a guaranteed support or resistance. All values are conditional on the validity of the underlying X–A–B structure. 9. Practical Usage Typical usage follows this workflow: Wait for the script to confirm X, A, and B Observe whether the structure is bullish or bearish Use projected levels as reference for planning entries, exits, and risk placement Re-evaluate when a new pivot replaces X, A, or B Manual anchors can be used when the user wants to enforce a specific structure that differs from the automatic pivot logic. The indicator is designed for contextual analysis rather than standalone signal generation. 10. Limitations and Disclaimers This indicator depends on confirmed pivots. In fast or highly volatile markets, pivot confirmation can lag, which delays projections. Structures may be invalidated when: Price forms new extremes before a pivot is confirmed Market conditions change abruptly Range-bound markets produce frequent small pivots In such conditions, projected levels may shift frequently or lose relevance. The method assumes that past impulse size is a meaningful reference for future movement. This assumption does not hold in all market regimes. The indicator does not incorporate volume, order flow, trend filters, or volatility regimes. It should therefore be combined with additional analysis. 11. Relationship to Manual Fibonacci and ABC Tools Unlike standard manual Fibonacci retracement or projection tools, this indicator does not rely on subjective anchor placement. In automatic mode, swing points are selected using a fixed pivot detection process, which enforces consistent structural rules. Anchor points are derived from confirmed price pivots instead of manual selection The X–A–B structure is maintained automatically as new swings form All projection levels and zones are recalculated and redrawn dynamically This removes the need for repeated manual adjustments when market structure changes. Compared to typical ABC projection tools, the script formalizes the entire workflow. The selection of reference points, the construction of proportional levels, and the management of graphical objects are handled programmatically. This prevents inconsistent anchor choices, reduces user interpretation bias, and ensures that projections always reflect the most recent validated structure. The integrated zone construction further extends standard projection methods by grouping related levels into continuous price regions, rather than displaying only isolated horizontal lines. Summary This script identifies swing-based X–A–B structures using confirmed pivots or manual anchors, measures the impulse between X and A, and projects proportional levels from B. All displayed lines and zones are derived from this single reference movement and update dynamically as new pivots appear. The indicator provides a structured projection framework based on historical price geometry rather than predictive signals. Indicador Pine Script®por ZenAlgo_Official33329
Dynamic Trend-Based Fibonacci Extension💡 This indicator is a sophisticated, automated technical analysis tool designed to identify high-probability trend continuation setups using the principles of market structure and Fibonacci geometry. By algorithmically detecting "A-B-C" price structures (Pivot -> Impulse -> Retracement), it projects dynamic Fibonacci Extension levels to forecast potential price targets for the next impulsive move (Wave C to D). Unlike static drawing tools, this script adapts to market volatility and features an advanced invalidation engine to keep your charts clean and your risk managed. ✨ Originality and Utility Traders often struggle with the subjectivity of drawing Fibonacci extensions manually. This script solves that by standardizing the identification of market structure using a proprietary ZigZag algorithm enhanced with Average True Range (ATR) for volatility-adjusted sensitivity. Key unique features include: Automated Structure Detection: Instantly spots Bullish (Higher High, Higher Low) and Bearish (Lower Low, Lower High) sequences without manual input. Dynamic Invalidation: The script monitors price action in real-time. If price breaks the invalidation point (Point A), the structure is immediately "grayed out" or deleted, preventing you from trading based on broken setups. Golden Zone Targeting: Highlights the high-probability reversal zone between the 1.5 and 1.618 extensions, often associated with the completion of a measured move. JSON Alerting: Built-in support for algorithmic trading with structured JSON payloads (Entry, TP, SL) ready for webhook integration. 🔬 Methodology and Concepts The core logic operates on a three-step algorithmic sequence: 1. Pivot Identification: The script uses a "ZigZag" approach to find significant swing highs and lows. It employs an ATR-based threshold (or fixed deviation) to filter out market noise, ensuring only significant structural points are considered. 2. Geometric Validation: It evaluates the last three pivot points (A, B, C) to confirm a valid trend structure. Bullish Setup: Point C must be higher than Point A but lower than Point B (a valid retracement). Bearish Setup: Point C must be lower than Point A but higher than Point B. 3. Projection Mathematics: Once a valid ABC structure is locked, the script calculates extension targets using the standard formula: Target = Price C + ((Price B - Price A) * Ratio) . It also supports Logarithmic Scale calculations for assets with exponential growth, such as cryptocurrencies, ensuring proportional accuracy over large price ranges. 🎨 Visual Guide The indicator paints a clear, detailed roadmap on your chart. Here is how to interpret the visual elements: ● Structure Lines Solid Line (A to B): Represents the initial "Impulse" leg of the move. Dashed Line (B to C): Represents the "Retracement" or corrective leg. Green Structures: Indicate Bullish setups (looking for long entries). Red Structures: Indicate Bearish setups (looking for short entries). Gray/Dimmed Structures: These are invalidated setups where the price has breached the Stop Loss level (Point A). ● Extension Levels (Targets) The script projects the following key Fibonacci ratios extending from Point C: 0.618 (Wave 5): An early profit-taking level, often corresponding to a truncated 5th wave. 1.0 (Measured Move): Where the extension equals the length of the initial impulse (AB = CD pattern). 1.272 (Harmonic): A common extension level for corrective structures or deep pullbacks. Golden Zone (1.5 - 1.618): A highlighted fill area. The 1.618 level (Solid Line) is the "Golden Ratio" and is statistically one of the most significant targets in trending markets, often labeled as "Wave 3". ● Labels Points A, B, C: Clearly marks the swing points defining the structure. Right-Side Labels: Display the Ratio (e.g., 1.618) and the exact Price Level for easy order placement. 📖 How to Use This tool is best used as a trend-following system. 1. Trend Identification Wait for a new Solid Colored Structure (Green or Red) to appear. This confirms that a valid ABC retracement has occurred. 2. Entry Strategy The "Trigger" is generally the reversal from Point C. Aggressive traders enter near C, while conservative traders may wait for a breakout above B. Stop Loss: Place your SL just beyond Point A . If price breaks A, the script will automatically gray out the structure, signaling invalidation. 3. Profit Taking Use the projected extension lines as dynamic Take Profit (TP) zones: TP1: 1.0 (The Measured Move). TP2: The Golden Zone (1.5 to 1.618). This is often the strongest target for a Wave 3 impulsive move. 4. Automation For automated traders, create an alert using the "Any alert() function call" option. The script outputs a JSON string containing the Action, Ticker, Entry Price, TP (1.618), and SL (Point A). ⚙️ Inputs and Settings You can fully customize the script to fit your asset class and timeframe: ● ZigZag Detection Pivot Lookback Depth: (Default: 5) Determines how many bars to check left/right for a pivot. Higher numbers find larger, more significant structures. Use ATR-Based Threshold: (Default: True) Adapts the sensitivity to market volatility. ATR Multiplier: (Default: 2.0) Adjusts how much price must reverse to form a new leg. ● Structure Invalidation Enable Structure Invalidation: (Default: True) Toggles the logic that checks if Point A is breached. Invalidation Action: Choose "Gray Out" to keep history visible but dimmed, or "Delete" to remove failed setups entirely. ● Fibonacci Settings Use Logarithmic Scale: Essential for crypto or long-term timeframe analysis. Show 0.618 / 1.0 / 1.272 / 1.618: Toggles individual levels on/off to declutter the chart. Extend Lines Right: Extends the target lines into the future for better visibility. ● Display Settings Keep Last N Structures: Controls how many historical structures remain on the chart to prevent visual clutter. Show Elliott Wave Labels: Adds theoretical wave counts (e.g., "Wave 3") to the ratio labels. 🔍 Deconstruction of the Underlying Scientific and Academic Framework This indicator is grounded in Fractal Market Geometry and Elliott Wave Theory . 1. The Golden Ratio (Phi - 1.618): Mathematically derived from the Fibonacci sequence, the 1.618 ratio is omnipresent in natural growth patterns. In financial markets, it represents the psychological "tipping point" of crowd behavior during an impulsive trend. This script emphasizes the 1.618 extension as the primary target for a "Wave 3," which is academically cited as typically the longest and strongest wave in a 5-wave motive sequence. 2. Harmonic AB=CD Patterns: The inclusion of the 1.0 extension validates the "Measured Move" concept. Statistically, markets often move in symmetrical legs where the secondary impulse (CD) equals the magnitude of the primary impulse (AB). 3. Volatility Normalization (ATR): By utilizing the Average True Range (ATR) for pivot detection, the script adheres to statistical volatility normalization. This ensures that the structures identified are statistically significant relative to the asset's current volatility regime, rather than relying on arbitrary percentage moves which fail across different asset classes. ⚠️ Disclaimer All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.Indicador Pine Script®por MarkitTickActualizado 55 1.1 K
ZenAlgo - GridOverview and anchoring logic This indicator constructs a price grid based on a dynamically or manually defined price swing. The entire calculation starts by defining two anchor points that represent a completed directional move. These anchors can be selected in two ways: Manually, by specifying a start time and an end time, where the indicator uses the candle corresponding to those times and selects either wick highs or lows depending on direction. Automatically, by detecting significant swing points derived from recent price extremes over a configurable historical window. The chosen anchors form a reference segment between point A and point B. This segment defines both direction and magnitude of the move. All subsequent levels and zones are derived relative to this segment, ensuring the grid adapts to current market structure rather than using fixed price distances. Difference from traditional grid and Fibonacci tools Unlike fixed price grids or standard Fibonacci tools that require manual anchoring and remain static once drawn, this indicator continuously derives its grid from the most relevant completed price swing. Instead of treating levels as independent horizontal prices, all values are expressed as proportions of a single measured move, allowing the grid to automatically rescale and realign as market structure evolves. Market structure detection and directional context Before the grid itself is drawn, the script continuously evaluates price structure using swing detection over two different sensitivities. Larger swings establish the dominant structural direction, while smaller swings can optionally be shown for internal context. Swing highs and swing lows are detected by comparing historical highs and lows over a rolling window. When price crosses above or below the most recent structural level, the script classifies the event as either a continuation in the same direction or a change in direction. This structural state determines whether the grid is treated as upward or downward and influences the visual orientation of labels and zones. This step matters because retracement and extension levels only have meaning when referenced to a clearly defined directional move. Primary range construction between anchors Once the anchor points are established, the indicator measures the vertical price distance between them. This distance is treated as a normalized range rather than an absolute value. Every level drawn afterward is positioned as a proportional offset of this range. If the second anchor is above the first, the grid is considered bullish. If the second anchor is below the first, the grid is considered bearish. Colors and label orientation adapt automatically to this direction. By normalizing the range, the grid remains comparable across assets and timeframes. Retracement and extension level placement The indicator plots a predefined set of proportional levels between and beyond the anchor points. Each level represents a fraction or multiple of the original move. Lower values correspond to deeper retracements toward the origin of the move. Mid-range values represent partial pullbacks within the move. Higher values extend beyond the move, projecting potential continuation zones. Each level is drawn as a horizontal line extending into future bars, accompanied by a label. Labels can be shown either as descriptive names or as raw proportional values, depending on user preference. Zone construction instead of single levels Rather than relying only on precise price lines, the indicator groups selected proportions into zones. This reflects the observation that price interaction typically occurs across ranges rather than at exact prices. A retracement zone highlights an area between two closely spaced proportional levels. A projection zone marks a continuation region beyond the measured move. These zones are drawn as shaded areas extending forward in time. Visual reference points The indicator explicitly marks the two anchor points on the chart. Point A represents the origin of the measured move. Point B represents the completion of that move. This allows the user to visually verify which price swing the grid is derived from. How to interpret the values All plotted levels express proportional relationships to the measured move, not independent price predictions. Lower proportional values indicate proximity to the start of the move. Mid-range values represent partial retracements. Higher values indicate projected continuation areas. How to best use this indicator This indicator serves as a structural reference tool rather than a signal generator. Apply it after a clear directional swing has formed. Use higher-timeframe context to validate anchor selection. Combine the grid with price behavior and other contextual tools. Limitations and disclaimers This indicator is purely proportional and structure-based. It does not incorporate volume, volatility regimes, or fundamental data. Automatic anchoring may differ from subjective swing selection. Levels and zones represent reference areas, not guaranteed reaction points. The indicator describes price structure and proportional relationships only. Indicador Pine Script®por ZenAlgo_Official1111427
Prev-Week-Month with V-StopPrevious Week map: It automatically plots last week’s high/low and key Fibonacci levels (50%, 61.8%, 78.6), plus optional extensions, and can extend those lines into the current week with labels. Previous Month “Golden Zones”: It shades the prior month’s two main retracement zones (61.8%–78.6% from the month’s range) as bullish/bearish areas, optionally adds boundary lines, and labels them. Volatility Stop (V-Stop): It draws an ATR-based trailing stop that flips between uptrend/downtrend. You can run it on the chart timeframe or a higher timeframe, and it marks reversals and HTF breach/“limbo” events. **bits of code taken from TradingView script**Indicador Pine Script®por Warner_Bear17
Auto Fibonacci Lines Depending on ZigZag %In the world of technical analysis, few tools are as powerful—or as misused—as Fibonacci Retracements. The Auto Fibonacci Lines Depending on ZigZag % is not just an indicator; it is a complete, automated trading system designed to eliminate subjectivity and bring institutional-grade precision to your charts. This script automates the identification of significant market structures using a ZigZag algorithm. Once a market swing is mathematically confirmed (based on your deviation settings), it instantly projects a complete suite of Retracement and Extension levels. This allows you to stop guessing where to draw your lines and start focusing on price action. 🧠 The Logic Behind the Indicator Understanding how your tools work is the first step to trusting them. This script operates on a three-step logic loop: ZigZag Identification: The script continuously monitors price action relative to the last known pivot point. It uses a user-defined Deviation % to filter out market noise. A new "Leg" is only confirmed when price reverses by this specific percentage. This ensures that the Fibonacci lines are only drawn on significant market moves, not random chop. Automated Anchor Points: Once a downward trend is confirmed (e.g., price drops 30% from the top), the script automatically anchors the Fibonacci tool to the Swing High (Start) and the Swing Low (End). It does this without you needing to click or drag anything. Dynamic Cleanup: Markets evolve. A key feature of this script is its self-cleaning mechanism. As soon as a new trend leg is confirmed, the script automatically deletes the old, invalidated Fibonacci lines and draws a fresh set for the new structure. This keeps your chart clean and focused on the now. 🎓 How to Trade This System This indicator is color-coded to simplify your decision-making process. It moves beyond standard "rainbow" charts by categorizing price levels into three distinct actionable zones. 1. The "Reload Zone" (White Lines: 0.618 - 0.786) ⚪ Role: High-Probability Support / Entry In institutional trading, the 0.618 (Golden Ratio) to 0.786 region is often where algorithms step in to defend a trend. Why it works : This is the "discount" area where smart money re-accumulates positions before the next leg up. 2. The "Decision Wall" (Blue Lines: 1.382 - 1.5) 🔵 Role: Strong Resistance / Trend Check This is a unique feature of this suite. The 1.382 and 1.5 levels often act as a "ceiling" for weak breakouts. Strategy : If you entered in the White Zone, the Blue Zone is your first major hurdle. If price stalls here, consider securing partial profits. Warning : A rejection from the Blue Lines often leads to a double-top formation. However, a clean break above the Blue Lines usually signals a parabolic move is beginning. 3. The "Extension Zone" (Yellow, Red, Purple > 1.618) 🟡🔴 Role : Take Profit / Exhaustion Levels above 1.5 (starting with the 1.618 Golden Extension) are statistical extremes. Strategy : These are Strict Take Profit levels. Do not FOMO (Fear Of Missing Out) into new long positions here. The probability of a reversal increases drastically as price climbs through these levels (2.618, 3.618, 4.618). 📐 The Mathematical Edge: Logarithmic vs. Linear One of the most critical features of this script is the ability to toggle between Logarithmic and Linear calculations. Why use Logarithmic? If you are trading Crypto (Bitcoin, Altcoins) or high-growth Tech Stocks, linear Fibonacci levels are mathematically incorrect over large moves. A 50% drop from $100 is different than a 50% drop from $10. This script calculates the percentage difference (Log Scale), ensuring your targets are accurate even during 100%+ parabolic runs. Why use Linear? For mature markets like Forex (EURUSD) or Indices (SPX500) where volatility is lower, Linear scaling is the industry standard. 🛠️ Configuration & Best Practices Deviation % : This is the heartbeat of the indicator. Swing Trading : Set to 20-30%. This filters out noise and only draws Fibs on major macro moves. Scalping : Set to 3-5%. This will catch smaller intraday waves. Text Place : Keeps your chart clean by pushing labels to the right, ensuring they don't overlap with the current price action. 👤 Who Is This Indicator For? The Disciplined Trader : Who wants to remove emotional bias from their charting. The Crypto Investor : Who needs accurate Logarithmic targets for long-term holding. The Confluence Trader : Who combines these automated levels with Order Blocks, RSI, or Volume to find the perfect entry. ⚠️ RISK DISCLAIMER & TERMS OF USE For Educational Purposes Only: This script and the strategies described herein are provided strictly for educational and informational purposes. They do not constitute financial, investment, or trading advice. The "Auto Fibonacci Lines" indicator is a tool for technical analysis and should not be used as the sole basis for any trading decision. No Guarantees: Past performance of any trading system or methodology is not necessarily indicative of future results. Financial markets are inherently volatile, and trading involves a high level of risk. You could lose some or all of your capital. User Responsibility: By using this script, you acknowledge that you are solely responsible for your own trading decisions and risk management. The author assumes no liability for any losses or damages resulting from the use of this tool or the information provided. Always consult with a qualified financial advisor before making investment decisions.Indicador Pine Script®por abgthecoder68
Axis-Pro System | Trend Structure + Fibonacci Pullbacks Axis-Pro System is a comprehensive Trend Following strategy designed to trade high-probability pullbacks. Unlike indicators that merely chase price, this system patiently waits for market structure alignment before seeking an entry. The system is built on the premise of "Quality over Quantity", utilizing volatility and structure filters to avoid choppy markets (ranges) and false breakouts. 🧠 Strategy Logic The system makes decisions based on a strict 4-step hierarchy: Higher Timeframe (HTF) Bias: Analyzes the trend on a higher timeframe to ensure we are trading in the direction of the dominant flow. Structure & BOS (Break of Structure): Identifies clear impulses that break previous highs or lows. Once a BOS is confirmed, the system "arms" the trade and waits. Fibonacci Zone Pullback: It does not chase the breakout. Instead, it waits for a pullback into the "Discount Zone" (Golden Zone, configurable between 0.382 and 0.618) to improve the Risk/Reward ratio. Validation & Trigger: Uses an ATR expansion check to filter out low-volatility periods. Requires candle confirmation and alignment with fast EMAs before pulling the trigger. 🛡️ Risk Management The system incorporates advanced position management using a split execution model (50/50): Dynamic Stop Loss: Automatically calculated using an ATR multiplier or the recent Swing High/Low (whichever offers better protection). TP1 (Take Profit 1): Closes 50% of the position at a fixed R-multiple (e.g., 1.5R) to lock in profit and moves the Stop Loss to Break-Even. TP2 (Runner): The remaining 50% is left to run for higher targets (e.g., 3.0R) or until the trend bends, maximizing gains during strong moves. Trailing Stop: Optional feature to trail price with a fast EMA once the first target is hit. ⚙️ Settings & Features The script is highly customizable for different assets (Crypto, Forex, Indices): Date Range Filter: Includes a date selector to perform precise Backtesting on specific periods (e.g., testing specifically during a Bear Market vs. Bull Market). Auto Trendlines: Automatically draws relevant trendlines for visual support. Quality Filters: Options to toggle the EMA 200 filter and breakout buffers. ⚠️ Disclaimer This strategy is a tool for analysis and backtesting purposes. Past performance does not guarantee future results. It is highly recommended to test the strategy on a Demo account first and adjust parameters according to the volatility of the specific asset being traded. Always use responsible risk management.Estrategia Pine Script®por Fikiss7766
Range Indicator Golden Pocket, Liquidity, FairValueGapOverview This indicator is a comprehensive institutional market structure toolkit. It is designed to identify high-probability reversal zones by merging three powerful technical analysis concepts: Fibonacci Golden Pockets (61.8% - 65%), Liquidity Pool Analysis (Swing Failure Patterns), and Fair Value Gaps (FVG). By automating the detection of price inefficiencies and "stop runs," it helps traders navigate complex price action with objective, rule-based confirmation. What the Script Does The script continuously monitors a user-defined lookback period to define a trading range. Within this range, it dynamically plots: Golden Pockets: High-confluence retracement zones (calculated as 0.35 - 0.382 internal range levels). Liquidity Zones: Highlighted regions at the absolute high and low (Top/Bottom 5%) where institutional orders and retail stops are typically concentrated. Swing Failure Patterns (SFP): Real-time detection of liquidity grabs where price breaches a range extreme but fails to close outside, signaling a potential trap. Fair Value Gaps (FVG): Visualizes 3-candle price imbalances, showing areas of aggressive buying or selling that often act as future magnets or support/resistance. 2-Candle Confirmation: A momentum-based filter requiring a candle-close confirmation before a reversal signal is generated. For Whom is it? Smart Money Concepts (SMC) & ICT Students: Traders looking for automated liquidity sweeps and market inefficiencies. Fibonacci & Mean Reversion Traders: Those seeking a clean, professional visualization of the Golden Pocket across multiple timeframes. Systematic Day Traders: Who require strict price-action confirmation (SFP and 2-candle rules) to remove emotional bias from their entries. Functions and Input Options 1. Market Structure & Visuals Lookback Period (Default: 100): Defines the window for calculating the range extremes. Box Offset Right (Default: 50): Extends all zones into the future for better anticipatory trading. Show Price Lines & Labels: Displays the exact price for every zone boundary on the right axis for precise execution. 2. Fair Value Gap (FVG) Settings Show Fair Value Gaps: A toggle to enable/disable the plotting of price imbalances. FVG Extension (Default: 10): Determines how many bars into the future the FVG box remains visible. Custom Colors: Separate color inputs for Bullish (Gap Up) and Bearish (Gap Down) inefficiencies. 3. Professional Alert System The script includes five specific alert conditions: GP Touch: Early warning when price enters a Golden Pocket. 2-Candle Pattern: Confirmed momentum shift within a Golden Pocket. SFP Long/Short: Alerts when a Liquidity Grab (Swing Failure) is confirmed at the range high or low. Transparency and Compliance (Moderator Info) Non-Repainting Logic: All signals (SFP, 2-Candle, and FVG) are calculated and triggered based on confirmed candle closes. Drawings use barstate.islast purely for visual efficiency without altering historical data integrity. Educational Context: The script visualizes well-known market principles (Fibonacci, SFPs, and FVGs) to aid traders in their analysis; it does not provide automated financial advice or "black-box" buy/sell signals. Resource Management: Optimized for Pine Script v5, using efficient array and box handling to ensure smooth performance even on lower timeframes.Indicador Pine Script®por realmacgyver77Actualizado 2121 1.5 K
Fibonacci Sequence Grid [BigBeluga]🔵 OVERVIEW A geometric price mapping tool that projects Fibonacci sequence levels and grid structures from recent price swings to help traders visualize natural expansion and reversion zones. This indicator overlays Fibonacci-based structures directly on the chart, utilizing both grid projections and horizontal levels based on the classic Fibonacci integer sequence (0, 1, 1, 2, 3, 5, 8, ...). It identifies recent swing highs or lows and builds precision-aligned levels based on the trend direction. 🔵 CONCEPTS Uses the Fibonacci integer sequence (not ratios) to define distances from the most recent swing point. Identifies a trend based on EMA cross of fast and slow periods. Projects two types of Fibonacci tools: A grid projection from the swing point, displaying multiple sloped levels based on the sequence. A set of horizontal Fibonacci levels for clean structural references. Levels can be plotted from either swing low or high depending on the current trend direction. Adjustable “Size” inputs control spacing between levels for better price alignment. Lookback period defines how far the script searches for recent swing extremes. 🔵 FEATURES Fibonacci Grid Projection: Draws two mirrored Fibonacci grids—one expanding away from the swing high/low, the other converging toward price. Swing-Based Trend Detection: Uses a fast/slow EMA crossover to determine trend direction and reference swing points for projections. Fibonacci Sequence Levels: Displays horizontal levels based on the Fibonacci number sequence (0, 1, 2, 3, 5, 8, 13, 21...) for natural price targets. Dynamic Labels and Coloring: Each level is labeled with its sequence value and colored based on trend direction (e.g., red = downtrend, green = uptrend). Both grids and levels can be toggled on/off independently. Sizing controls allow tighter or looser clustering of levels depending on chart scale. 🔵 HOW TO USE Enable Fibonacci Grid to visualize price expansion zones during impulsive trends. Use Fibonacci Levels as horizontal support/resistance or target zones. A label below price means the current trend is up and levels are projected from swing low. A label above price means trend is down and levels are projected from swing high. Adjust “Size” input to fit grid/level projection to your preferred chart scale or instrument volatility. Use in confluence with price action, trend indicators, or volume tools for layered trading decisions. 🔵 CONCLUSION Fibonacci Sequence Grid reimagines Fibonacci analysis using whole-number spacing from natural math progressions. Whether used for projecting grid-based expansions or horizontal support/resistance zones, it provides a powerful and intuitive structure to trade within. Perfect for traders who rely on symmetry, market geometry, and mathematically consistent levels.Indicador Pine Script®por BigBelugaActualizado 44 1.1 K
eBacktesting - Learning: Fibonacci RetracementeBacktesting - Learning: Fibonacci Retracement helps you practice one of the most common “pullback” tools in trading: Fibonacci retracements. It automatically finds the most recent swing and draws your chosen Fibonacci levels (for example 0.382, 0.5, 0.618, 0.786) so you can clearly see where price is pulling back into “discount/premium” areas. When price taps a level (or the Golden Zone), the indicator marks it so you can review what happened next and build pattern recognition. These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance. Educational use only. Not financial advice.Indicador Pine Script®por eBacktesting25
Auto Session Fib (Daily / Weekly)Session-Anchored Fibonacci (RTH Only) Automatically tracks the Regular Trading Hours session (09:30–16:00). Fibonacci levels are built only from session high and low, not overnight noise. Levels dynamically update throughout the session and anchor precisely at 09:30. Session levels plotted: High / Low 50% retracement 61.8%, 78.6%, 88.6% (bullish and bearish interpretations) These levels are intended for intraday execution, not bias. 2️⃣ Previous Week Fibonacci (Market Context) Displays previous week High, Low, and Fibonacci retracements. Lines are confined strictly to the prior week (no overlap into the current week). Levels are shown in a faint gray to distinguish context from execution. Each key fib level includes descriptive labels, not just numbers: 61.8% → Golden Zone anchor 78.6% → Deep pullback / last defense 88.6% → Trend failure / trap zone These are decision-framing levels, designed to help identify where trends either hold or fail. 3️⃣ Previous Day Extension Zones (Expansion Targets) Calculates previous day range and projects: +1.618 / +1.786 −1.618 / −1.786 Draws filled zones (no borders) between: 1.618 ↔ 1.786 −1.618 ↔ −1.786 Boxes extend only across the current RTH session. These zones represent expansion / exhaustion areas, not reversal signals by themselves. 4️⃣ RSI Turn Signals (Clean, Non-Repainting) Uses a standard RSI, with: Adjustable length Adjustable overbought / oversold levels Optional independent RSI timeframe (can differ from chart TF) Signals trigger only on a turn, not while RSI remains extreme: Buy: RSI crosses up through oversold Sell: RSI crosses down through overbought This indicator is built to answer three questions: Where am I relative to important structure? Is price extended or mean-reverting? Is there a confirmed momentum turn?Indicador Pine Script®por Warner_Bear110
Fibonacci 5 Candles Retracement ================================================================================ FIBONACCI 5 CANDLES RETRACEMENT - STRATEGY GUIDE ================================================================================ WHAT DOES THIS STRATEGY DO? --------------------------- This strategy automatically identifies market trends and uses Fibonacci retracements to find the best entry points. The idea is simple: when price makes a strong movement (trend), it often pulls back before continuing in the same direction. The strategy captures these "pullbacks" to enter at the right moment. HOW IT WORKS? ------------- 1. TREND DETECTION The strategy looks for 5 consecutive candles of the same color: - 5 red candles = BEARISH trend (price falls) - 5 green candles = BULLISH trend (price rises) 2. CALCULATION OF START AND END POINTS For a BEARISH trend (5 red candles): - START: The highest point between the first red candle and the previous one - END: The lowest point reached during the 5 candles (and beyond, if the trend continues) For a BULLISH trend (5 green candles): - START: The lowest point between the first green candle and the previous one - END: The highest point reached during the 5 candles (and beyond, if the trend continues) 3. DYNAMIC UPDATE The END point updates automatically if price continues to move in the direction of the trend, creating new highs (for bullish trends) or new lows (for bearish trends). 4. TREND END Normal Mode: - BEARISH trend ends when a candle closes above the previous candle's open - BULLISH trend ends when a candle closes below the previous candle's open "Extended Trend" mode (optional): - The trend remains active until a candle closes beyond the dynamic 50% retracement level - When this happens, the END point "freezes" (stops updating), but the trend can continue 5. FIBONACCI RETRACEMENT CALCULATION Once START and END are identified, the strategy automatically calculates Fibonacci levels. IMPORTANT: for retracements and pending orders, we consider START as 100% and END as 0%, because we work on the part of the trend that is recovered (the pullback). The retracement levels are: - 70% = level closest to START (smallest retracement) - 60% = second level - 50% = central level (often used for entry) - 25% = level closest to END (largest retracement) 6. PENDING ORDER PLACEMENT When a trend is identified and completed, the strategy automatically places a pending order (limit order) at one of the selectable Fibonacci levels. Available levels: - 25%: closest to END - 50%: central level (balanced) - 60%: closest to START - 70%: very close to START The order direction depends on the trend: - BEARISH trend → SHORT order (bet that price falls) - BULLISH trend → LONG order (bet that price rises) Stop Loss and Take Profit (for retracements): - Stop Loss: always at START level - Take Profit: always at END level EXTENDED TAKE PROFIT: If the order is executed (filled), the strategy can apply an "Extended Take Profit" if configured. IMPORTANT: for the extended TP calculation, we consider START as 0% and END as 100% (the original trend movement). For example, if you set 3%, the Take Profit will be at 103% of the original trend movement instead of 100%. AVAILABLE FILTERS ----------------- 1. MINIMUM TREND (pips) Filters trends that are too small. If a trend is below the set value: - START and END labels become gray (instead of red/green) - No pending order is placed - The trend is still displayed on the chart Useful for avoiding trading movements that are too small. 2. EMA FILTER Uses two moving averages (EMA 50 and EMA 200) to filter direction: - If active: places LONG orders only when EMA50 > EMA200 (uptrend) - If active: places SHORT orders only when EMA50 < EMA200 (downtrend) Useful for trading only in the direction of the main trend. 3. EXTENDED TREND Modifies how the trend is considered "completed": - If disabled: uses normal logic (opposite candle) - If active: the trend remains in formation until a candle closes beyond the dynamic 50%. When this happens, END freezes but the trend can continue. Useful for capturing longer trends and extended movements. VISUALIZATION ------------- The strategy displays on the chart: 1. START AND END LABELS - Red color for bearish trends - Green color for bullish trends - Gray color if the trend is not valid (too small) - Remain visible even when new trends form 2. START AND END LINES - Horizontal lines indicating the start (START) and end (END) points of the trend - White color by default, customizable from the settings panel - Update dynamically when the END point changes - Can be shown or hidden via the "Show Start/End Lines" option 3. FIBONACCI LINES The strategy shows horizontal lines at retracement levels: - Line at 50% (yellow by default) - Line at 25% (green by default) - Line at 60% (azure by default) - Line at 70% (red by default) COLOR CUSTOMIZATION: All line colors can be customized from the settings panel in the "LINE COLORS" section: - Start/End Line Color: customize the color of START and END lines - 50% Line Color: customize the color of the 50% line - 25% Line Color: customize the color of the 25% line - 60% Line Color: customize the color of the 60% line - 70% Line Color: customize the color of the 70% line Lines update dynamically when the END point changes and can be shown or hidden individually via options in the "VISUALIZATION" section. 4. PENDING ORDER LABELS Show pending order information: - Direction (LONG or SHORT) - Entry price - Stop Loss - Take Profit Positioned far from the chart to avoid cluttering the visualization. ALERTS ------ If enabled, alerts send notifications when: 1. PENDING ORDER CREATED When a new pending order is placed, with all information. 2. PENDING ORDER UPDATED When the pending order is updated (for example, if the level changes or if the END point moves). 3. ORDER OPENED When the pending order is executed (filled) and the position is opened. Alerts can be configured in TradingView to send notifications via email, SMS, or other platforms. RECOMMENDED SETTINGS -------------------- To get started, you can use these settings: VISUALIZATION: - Show all lines and labels to see how it works - Show Start/End Lines: true (to display lines at START and END points) - Customize line colors in the "LINE COLORS" section according to your preferences STRATEGY: - Pending Order Level: 50% (balanced) - Extended TP: 0% (use standard TP at 100%) FILTERS: - Minimum Trend: 0 pips (disabled initially) - Use EMA Filter: false (disabled initially) - Extended Trend: false (use normal logic) ALERTS: - Enable Alerts: true (if you want to receive notifications) PRACTICAL EXAMPLE ----------------- Scenario: Bearish Trend 1. Price forms 5 consecutive red candles 2. The strategy identifies: - START = 1.2000 (highest point) - END = 1.1900 (lowest point) - Range = 100 pips 3. Calculates Fibonacci levels (for retracements: START = 100%, END = 0%): - 100% = 1.2000 (START) - 70% = 1.1930 - 60% = 1.1940 - 50% = 1.1950 - 25% = 1.1975 - 0% = 1.1900 (END) 4. If you set "Pending Order Level" to 50%: - Places a SHORT pending order at 1.1950 (50% retracement) - Stop Loss at 1.2000 (START = 100%) - Take Profit at 1.1900 (END = 0%) 5. If price rises and touches 1.1950: - The order is executed - Opens a SHORT position - If price falls to 1.1900 → Take Profit (profit) - If price rises to 1.2000 → Stop Loss (loss) IMPORTANT NOTE -------------- This strategy is a technical analysis tool. Like all trading strategies, it does not guarantee profits. Trading involves risks and you can lose money. Always use appropriate risk management and test the strategy on historical data before using it with real money. LICENSE ------- This code is open source and available for modification. You are free to use, modify, and distribute this strategy. If you republish or share a modified version, please kindly mention the original author. ================================================================================ Estrategia Pine Script®por Burdiga84Actualizado 1717 1 K
Golden Zone Structure [Kodexius]Golden Zone Structure is a ZigZag based market structure and Fibonacci tool designed to make swing context easier to read directly on the price chart. It detects meaningful pivot highs and lows, labels the evolving structure (HH, HL, LH, LL, including equal highs and lows), and automatically projects a Fibonacci map across the most recent completed swing. Instead of forcing you to manually anchor Fib tools after every new leg, the script rebuilds levels each time a fresh pivot is confirmed. This makes it well suited for traders who focus on swing continuation, pullback depth, and reaction zones where liquidity and orderflow often concentrate. A key emphasis is the Golden Zone highlight. The indicator shades the zone that is most relevant to the current swing context so you can quickly spot where a retracement is approaching a higher probability reaction area, without cluttering the chart with too many permanent objects. The tool is intentionally visual and configurable. You can choose pivot source (High/Low or Close), adjust swing sensitivity via ZigZag period, switch color themes, and decide how much detail you want on screen (levels, zigzag lines, labels). Optional trading markers can be enabled for users who want a lightweight “zone interaction” prompt. These markers are not intended as a standalone trading system. They are meant to complement your own confirmation rules (structure alignment, volume, higher timeframe bias, or price action triggers). 🔹Features 🔸 ZigZag Swing Engine - Uses a configurable ZigZag period to filter noise and confirm swing points only when the lookback logic validates the move. Supports different pivot sources (High/Low or Close) so you can choose between cleaner structure or more reactive behavior depending on the instrument. Optional ZigZag leg drawing to visualize swing flow without clutter. 🔸 Market Structure Labels (HH, HL, LH, LL + Equals) - Automatically labels each confirmed pivot based on how it compares to the prior pivot of the same type. High side classification: H, HH, LH, EH. Low side classification: L, HL, LL, EL. Equal highs and lows help reveal potential liquidity pools and “magnet” areas where price often reacts or breaks with intent. 🔸 Auto Fibonacci Map on the Active Swing - Rebuilds Fibonacci levels every time a new pivot is confirmed, keeping the projection aligned with the most recent completed leg. Core retracement levels: 0.236, 0.382, 0.500, 0.618, 0.786. Extension levels: 1.272 and 1.618 for expansion targeting and continuation mapping. Optional price labels on each level, formatted to tick size so levels remain readable across markets. 🔸 Golden Zone Highlighting (Context Aware) - Highlights the most relevant retracement band with a soft fill so you can spot “zone approach” moments at a glance. The zone selection adapts to swing context, focusing on a different retracement region depending on whether the last confirmed pivot is a peak or a trough. Adjustable transparency keeps the chart clean while preserving the key reaction area. 🔸 Visual Customization + Themes - Multiple color themes (Neon, Ocean, Sunset, Monochrome) so the tool fits different chart styles and backgrounds. Independent toggles for Fib levels, Golden Zone shading, ZigZag lines, and price labels. Line width controls for better scaling across timeframes. 🔸 Optional Trading Markers + Alerts - Optional BUY and SELL labels based on zone interaction logic with candle confirmation filters. ATR based placement offset scaled by sensitivity so labels stay visually separated during volatility. Built in alert conditions for new pivot highs and new pivot lows so you can monitor structure changes without watching every bar. ▶ Practical Usage Tip • Use structure labels to define bias (HH + HL for bullish structure, LH + LL for bearish structure). • Use the Golden Zone as a location filter, then wait for your own trigger (break of minor structure, rejection candle, volume shift, etc.). • Treat extensions as “map points” not guaranteed targets. They work best when structure supports continuation.Indicador Pine Script®por UnknownUnicorn113699460Actualizado 33 1.4 K
Auto-Anchored Fibonacci Volume Profile [Custom Array Engine]Description: 1. The Theoretical Foundation: Structure vs. Participation In professional technical analysis, traders often struggle to reconcile two distinct datasets: Price Geometry (where price should go) and Market Participation (where money actually went). Why Fibonacci? (The Structure) Fibonacci Retracements map the mathematical structure of a trend. They identify psychological and algorithmic "interest zones" (0.382, 0.5, 0.618) where a correction is statistically likely to terminate. However, Fibonacci levels are theoretical—they are "lines in the sand" that do not guarantee liquidity or reaction. Why Volume Profile? (The Verification) Volume Profile maps the historical exchange of shares at specific price levels. It reveals "fair value" (High Volume Nodes) and "market imbalance" (Low Volume Nodes). It is the only tool that verifies if a specific price level was actually accepted by institutional participants. 2. Underlying Calculations (The Custom Engine) This script operates on a custom-built calculation engine that bypasses standard built-in functions entirely. It uses Pine Script Arrays to build a Volume Profile from scratch. Here is the breakdown of the proprietary code logic: A. The "Smart-Fill" Distribution Algorithm (Solves Gapping) The Problem: Standard volume scripts often assign a candle's entire volume to a single price row. In volatile markets or steep trends, this creates visual "gaps" or a "barcode" effect because price moved too fast to register on every row. My Solution: I wrote a custom loop that calculates the vertical overlap of every candle against the profile grid. The Math: Volume Per Bin = Total Candle Volume / Bins Touched. The Result: If a single volatile candle spans 10 price rows (bins), the script mathematically divides that volume and distributes it equally into all 10 array indices. This generates a solid, continuous distribution curve that accurately reflects price action through the entire candle range, not just the close. B. Dynamic Arrays & Split-Volume Logic The script initializes two separate floating-point arrays (buyVolArray and sellVolArray) sized to the user's resolution (up to 300 rows). It iterates through the specific time-window of the swing: If Close >= Open, the calculated volume slice is injected into the Buy Array. If Close < Open, it is injected into the Sell Array. These arrays are then visually stacked to render the dual-color profile, allowing traders to see the "Delta" (Buyer vs. Seller aggression) at key structural levels. C. Custom Garbage Collection (Performance) To enable the "Auto-Anchoring" feature without causing chart lag or visual artifacts ("ghosting"), the script includes a Garbage Collection System. Before drawing a new profile, the script iterates through a tracking array of all existing objects (box.delete, line.delete) and clears them from memory. This ensures the indicator remains lightweight and responsive even when dragging chart margins or switching timeframes. 3. The Synthesis: Why Combine Them? The core philosophy of this script is Confluence . A Fibonacci level without volume is merely a suggestion; a Fibonacci level backed by volume is a defensive wall. By algorithmically anchoring a Volume Profile to the exact coordinates of a Fibonacci swing, this tool allows traders to instantly answer critical questions: "Is the Golden Pocket (0.618) supported by a High Volume Node (HVN), or is it a Low Volume Node (LVN) that price might slice through?" "Is the Shallow Retracement (0.382) holding because of structural support, or just a lack of selling pressure?" 4. How to Read the Indicator The Geometry: The script automatically detects the trend and draws standard Fib levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0). The Confluence Check: Look for the Point of Control (Red Line). If this High Volume Node aligns with a key Fib level (e.g., the 0.618), the probability of a reversal increases significantly. The Imbalance Check: Look for "Valleys" in the profile (Low Volume Nodes). These gaps often act as "slippage zones" where price travels quickly between structural levels. Buy/Sell Splits: The dual-color bars (Teal/Red) reveal the composition of the volume. A 0.618 level held up by dominant Buy Volume is a stronger bullish signal than one with mixed volume. 5. Settings & Customization Lookback Length: Sensitivity of the swing detection (Default: 200 bars). Resolution: Granularity of the profile rows (Default: 100). Higher values provide smoother definition. Width (%): Responsive sizing that scales the profile relative to the trend's duration. Extend Lines: Option to project structural levels infinitely to the right. Disclaimer This script is an analytical tool for visualizing historical market data. It does not provide trade signals or financial advice.Indicador Pine Script®por KIRI707744938
IDWM Master StructureExecutive Summary The IDWM Master Structure is a Multi-Timeframe (MTF) trading tool designed to force discipline by aligning traders with the "Parent" trend. It functions by locking onto the "Completed Auction" of a higher timeframe candle (like a Daily or Weekly bar) and projecting that structure onto your lower timeframe chart. Its primary goal is to define the "Dealing Range"—the hard boundaries where value was previously established—so you don't get lost in the noise of smaller price movements. 1. The Principle of Completed Auctions (Hierarchy) Most technical indicators curve dynamically with every price tick. This script acts differently because it relies on "Settled Arguments." A closed Daily candle represents a finished battle between buyers and sellers; the High and Low are the historical results of that battle. To enforce this, the script automatically selects a "Parent" timeframe based on your view: Scalping (charts below 15 minutes) uses the 4-Hour Auction. Intraday trading (15 minutes to 4 Hours) uses the Daily Auction. Swing trading (Daily chart) uses the Weekly Auction. 2. Liquidity Pools & The Sticky Range The High and Low lines drawn by the indicator are not just support and resistance; they represent Liquidity Pools. In market theory, stop-losses (Sell Stops below Lows, Buy Stops above Highs) accumulate at these edges. Smart money often pushes price just past these lines to grab this liquidity (a "Stop Hunt") before reversing direction. To account for this, the script uses a "Sticky Range" mechanism. It refuses to redraw the box simply because price touched the line. Instead, it uses an Average True Range (ATR) Buffer. A new structure is only formed if the candle closes decisively outside the range plus this volatility buffer. This ensures you are trading real breakouts, not liquidity sweeps. 3. Internal Range Mechanics (Premium vs. Discount) Inside the Master Box, the script applies Equilibrium Theory to help with trade location. The most important internal line is the Equilibrium (EQ), which marks the exact 50% point of the range. Premium Zone (Above EQ): Price is mathematically "expensive" relative to the recent range. Algorithms generally look to establish Short positions here. Discount Zone (Below EQ): Price is considered "cheap." Algorithms generally look to establish Long positions here. It also plots the Master Open, which acts as a "Line in the Sand." If price is currently trading above the Master Open, the higher timeframe candle is Green (Bullish), suggesting longs have a higher probability. If below, the candle is Red (Bearish). 4. Wick Theory (Failed Auctions) The script places special emphasis on the wicks of the Master Candle because a wick represents a "Failed Auction"—a price level the market tried to explore but ultimately rejected. The indicator highlights the background of the wick area (from the High to the Body). On a retest, these zones often act as supply or demand blocks because the market remembers the previous failure. It also calculates the "Consequent Encroachment," which is the 50% midpoint of the wick. The rule of thumb here is that if a candle body can close past 50% of a wick, the rejection is nullified, and price will likely travel to fill the entire wick. 5. Energy Expansion (Breakout Targets) Market energy transfers from Consolidation (inside the box) to Expansion (the breakout). When the price finally breaks the "Sticky Range" (confirming via the ATR buffer), the script projects where that energy will go. It uses the height of the previous range to calculate Fibonacci extensions. Specifically, it targets the 1.618 Extension, often called the "Golden Ratio." This is a statistically significant level where expansion moves tend to exhaust themselves and reverse. 6. Safety Protocol: Live Detection A dashboard monitors the state of the parent candle. If the text turns Magenta with a warning symbol, it means the Higher Timeframe candle is "Live" (still forming). Trading off a live structure is considered higher risk because the "Auction" isn't finished—the High or Low can still shift. The safest approach is to trade when the dashboard indicates a standard, locked, historical structure.Indicador Pine Script®por siLve_R88138