Previous Day Volume Profile (VAH / POC / VAL)Previous Day Volume Profile — VAH / POC / VAL
Automatically calculates the previous trading day's Volume Profile and projects its three key levels — Value Area High, Point of Control, and Value Area Low — as dotted horizontal lines across the current trading day. Levels roll forward automatically at each new session, so yesterday's value area is always on your chart without manual drawing.
How it works
The trading day is defined by a configurable session and timezone (not midnight), so it works correctly on nearly-24h futures — e.g. 23:00–21:55 UK for CME index futures.
The profile is built from intrabar data (request.security_lower_tf, default 1-minute; seconds timeframes supported on Premium+ plans), giving near-tick resolution regardless of your chart timeframe. Where intrabar history isn't available it falls back to chart bars.
Each intrabar's volume is pro-rated across the price bins its high-low range overlaps (with an even-split option).
Bins are anchored to the absolute price grid, exactly N ticks wide (configurable, default 2 ticks), or alternatively a fixed row count.
POC = the highest-volume bin. The Value Area (default 70% of the day's volume) expands outward from the POC using the classic Market Profile "double" method — comparing the sum of the two bins above the band vs. the two below and adding the fuller pair (a simpler single-bin mode is also available). VAH and VAL are the band's top and bottom edges.
Inputs
Session and timezone defining the trading-day boundary
Row sizing: ticks per row, or fixed number of rows
Value Area percentage and expansion method (double / single)
Volume distribution: pro-rated or even split
Intrabar timeframe (1S–5min) with on/off toggle
Colour and line width per level, label toggle and offset
Notes
Lines are drawn only on the current day, from its first bar to the right edge — the previous day's candles stay clean. Old drawings are removed at each session roll.
Computed values are also exposed in the Data Window for verification.
Pine cannot access true tick data; on plans without seconds timeframes, 1-minute intrabars are the finest available resolution (the same resolution TradingView's built-in profiles use on those plans), so levels may differ from tick-based profiles by a row or so. Indicador

NY 4H Range - HayderNY First 4H Candle Range
Overview
This indicator marks the high and low of the first 4-hour candle of the New York trading day and projects that range across the remainder of the session as a reference zone.
What makes it different
Most session-range scripts read the 4H candle directly with `request.security()`, which breaks or misaligns when the chart timeframe is 4H or higher, and which depends on the data feed's own session alignment. This script instead reconstructs the range from lower-timeframe data, so the same values are produced regardless of the chart's timeframe.
Method
1. Trading day anchor at 17:00 New York . The script defines the trading day as starting at 17:00 America/New_York, not at midnight. This follows the standard forex/futures rollover rather than the calendar day. The first 4-hour candle therefore spans 17:00 to 21:00 New York time.
2. DST handling without fixed offsets . The `f_tradeDayStart()` function derives the day boundary by decomposing the current bar's timestamp into New York year/month/day/hour components, deciding whether the bar belongs to the current or previous trading day based on whether the New York hour is at or past 17:00, and rebuilding the anchor with `timestamp()` in the New York timezone. Because the timestamp is rebuilt from calendar components rather than by subtracting a constant offset, daylight saving transitions are handled automatically.
3. Lower-timeframe reconstruction. Rather than requesting the 4H candle, the script pulls arrays of time, time_close, high, and low from a configurable internal timeframe (default 15m) using `request.security_lower_tf()`. It then iterates those intrabar values and accumulates the running high and low of every bar whose open time is at or after the trading day anchor and whose close time falls at or before the anchor plus four hours. This means the range is computed from actual price data inside the window rather than from a pre-aggregated candle, and it remains correct on 4H and higher charts where a standard security call would fail.
4. Single confirmed draw, no repaint . The box and boundary lines are created only once the chart's own bar close has passed the end of the 4H window, and a state flag prevents any redraw for that trading day. Nothing is plotted while the window is still forming, and the levels never shift after they appear.
5. Projection . The range is drawn from the trading day anchor forward to anchor plus 24 hours, covering the full trading day. Each new trading day resets the accumulators and draws a fresh range.
Inputs
- Internal Calculation Timeframe (default 15m): the resolution used to reconstruct the 4H window. Lower values give a more precise range at the cost of more data; must be lower than the chart timeframe.
How to use it
The 17:00–21:00 New York window covers the futures reopen and the early Asian handoff, a period that frequently establishes the initial liquidity boundaries traders reference through the rest of the day. Watch for acceptance outside the boundary, rejection back inside, or consolidation within it. The script does not interpret this behavior for you.
Limitations
- Does not generate buy or sell signals, entries, exits, or alerts.
- The internal calculation timeframe must be lower than the chart timeframe; `request.security_lower_tf()` returns no data otherwise.
- Nothing is drawn until the chart's bar close passes 21:00 New York for that trading day.
- Intrabar data availability is limited by your TradingView plan's historical intrabar depth, which caps how far back ranges are drawn.
- Symbols with gaps or missing data inside the 17:00–21:00 window will produce a range built from whatever bars exist.
- A visual reference only, to be used as one component of a complete trading plan.
Indicador

Indicador

Indicador

Indicador

Indicador

Auto Support/Resistance ZonesAuto Support Resistance Zones is a visual support and resistance mapping tool built from confirmed pivot highs and pivot lows.
The script automatically detects confirmed swing pivots, clusters nearby pivot prices into horizontal zones, and displays the most relevant zones around current price. Instead of drawing single-price support or resistance lines, it builds price areas because real market reactions often occur around ranges rather than exact levels.
What the script shows
- Horizontal support and resistance zones
- Zones built from confirmed pivot highs and pivot lows
- Touch count for each zone
- Zone role: S, R, or Inside
- Relative strength label: Valid, Good, or Strong
- Pivot source label: H, L, or H/L
- Zone price range
- A compact state label showing the nearest support and resistance context
- Optional alerts for zone entry, zone exit, support break, and resistance break
How it works
The script uses confirmed pivot highs and confirmed pivot lows. A pivot is only available after the selected Pivot strength bars have passed.
Nearby pivot prices are grouped into zones using an ATR-based clustering method. If multiple pivots occur close to the same price area, they are merged into one zone. The script then evaluates each zone using touch count, recency, and zone width.
The displayed zones can be selected using:
- Nearest to price
- Most touches
- Balanced strength
Balanced strength is designed to keep the chart cleaner by considering both the number of touches and the freshness of the zone.
Zone labels
Each zone label can show:
- S: price is above the zone, so the zone is currently acting as support
- R: price is below the zone, so the zone is currently acting as resistance
- Inside: price is currently trading inside the zone
- x count: number of confirmed pivot touches
- H: zone mainly built from pivot highs
- L: zone mainly built from pivot lows
- H/L: mixed pivot-high and pivot-low area
- Valid / Good / Strong: a relative descriptive strength label
The strength label is not a prediction. It is only a descriptive score based on the zone’s structure.
State label
The state label summarizes the current relationship between price and nearby zones. It can show whether price is inside a zone or between zones, and it displays the nearest resistance and support areas when available.
Main inputs
Pivot Detection:
- Pivot strength
- Lookback bars
Zone Building:
- Cluster width x ATR
- Zone padding x ATR
- Maximum zone height x ATR
- Minimum touches
- Minimum bars between touches
- Maximum zones shown
- Zone selection mode
Display:
- Zone starts from first touch or last touch
- Show zone labels
- Show S/R role
- Show touch counts
- Show strength
- Show pivot source H/L
- Show price ranges
- Show state label
- State label offset
- Right-side zone extension
- Label size
Style:
- Zone border width
- Zone fill transparency
- Zone border transparency
- Support color
- Resistance color
- Inside-zone color
- State label text color
Alerts
The script includes alert conditions for:
- Zone entered
- Zone exited
- Resistance broken
- Support broken
These alerts are descriptive chart events. They are not buy or sell signals.
Repainting and confirmation note
This script uses confirmed pivot highs and confirmed pivot lows. Because pivots require confirmation, a new pivot appears only after the selected Pivot strength bars have passed.
When new pivots are confirmed, zones can be rebuilt, merged, or reclassified as support, resistance, or inside-zone areas depending on current price. This is normal behavior for a confirmed-pivot support and resistance tool.
The script does not use future-looking signals to predict price movement. It displays zones derived from confirmed historical pivot structure.
Limitations
Support and resistance zones are visual reference areas, not guaranteed reaction levels.
A zone with more touches or a stronger label does not guarantee that price will reverse, hold, reject, or break from that zone.
The script is intended for chart analysis, education, and visual review of horizontal price structure. It is not a trading system, financial advice, or a standalone buy/sell tool. Indicador

Indicador

Perrin Polygons Shape Engine | ProjectSyndicatePerrin Polygons — Shape Engine
Ten tabs of real dot-lattice mathematics, constructed live on your chart. Not a picture of figurate numbers — the actual construction, built dot by dot, every bar.
What it is
Most "Fibonacci" tools draw three lines and call it geometry. This one builds the geometry.
Perrin Polygons renders figurate numbers — the ancient dot-lattices that gave us triangular, square, pentagonal and hexagonal numbers — as living constructions on a chart canvas. Every dot is placed by the formula that defines it. Nothing is an image, nothing is hardcoded, nothing is traced.
The polygonal number
(s-2)·n² − (s-4)·n
P(s,n) = ──────────────────────────
2
is built here the way it is drawn, not the way it is written: as n nested gnomons. Gnomon k is the path W₁→W₂→…→W₍ₛ₋₁₎ of a regular s-gon of side k anchored at the origin, and it carries exactly (s-2)k + 1 dots. Stack k = 0 … n-1 and the total is P(s,n) — exactly, for every s and every n.
That construction is the engine. Everything else is what you can see once you have it.
The idea: why Perrin and polygons belong together
The Perrin sequence
P(n) = P(n-2) + P(n-3), P(0)=3, P(1)=0, P(2)=2
→ 3 · 0 · 2 · 3 · 2 · 5 · 5 · 7 · 10 · 12 · 17 · 22 · 29 · 39 · 51 · 68 …
is the plastic ratio's answer to Fibonacci — it grows by ρ = 1.3247179572, the real root of x³ = x + 1, where Fibonacci grows by φ = 1.618.
It looks like an unrelated curiosity. It isn't. It touches polygons twice, and both are shapes:
1 · The Perrin sequence is a list of polygons.
Read the terms as side counts: 3, 5, 7, 10, 12, 17, 22, 29 → triangle, pentagon, heptagon, decagon, dodecagon, 17-gon, 22-gon, 29-gon. The sequence doesn't describe polygons. It enumerates them.
2 · The Perrin numbers count polygons.
P(n) is exactly the number of maximal independent sets of the n-vertex cycle graph — and a cycle graph is a polygon. Choose vertices so no two are adjacent and no vertex is left uncovered; the number of ways is the nth Perrin number.
Tabs 02 and 05 draw those two facts. They are the reason this indicator exists.
The ten tabs
#TabWhat it draws01ATLASThe whole polygonal family. s = 3…8 across, n = 1…4 down. Every dot the same size, so the shapes grow with n — the sequence made visible.02PERRIN POLYGONSThe Perrin sequence as side counts: eight lattices from triangle to 29-gon.03GNOMONSOne shape, then the same shape taken apart ring by ring — (s-2)k+1 dots at a time.04CENTEREDCentered polygonal numbers: concentric rings of s·k dots around a single centre.05CYCLE GRAPHC(n) plus every one of its maximal independent sets, each drawn as a highlighted polygon. The count is brute-forced live and checked against P(n) on screen.06ROSETTEs = 12→3 nested, each radius divided by a power of ρ.07SPIRALSPlastic spiral (ρ per 120°) beside the golden spiral (φ per 90°) — why the plastic whirl is ~3× tighter.08RADAR ▸ liveThe market as a polygon: one vertex per Perrin-length RSI.09MARKET LATTICE ▸ liveThe last P(s,n) bars poured into a lattice — oldest at the centre, newest on the outer ring, coloured by direction.10IDENTITYA proof you can see: P(s+1,n) − P(s,n) = T(n-1). Three lattices, one shared pitch, counts checked live.
The formula panel
The dead chart space to the left of the shapes carries 30 formula cards — three per tab, switching with the tab.
Pine has no LaTeX. But its labels are monospace, so the panel renders genuine fraction bars instead of collapsing everything into (...)/2:
√( 8(s-2)·x + (s-4)² ) + (s-4)
n = ──────────────────────────────────
2(s-2)
Every card carries live values substituted in, not just symbols — the identity and its evaluation at your current settings. Set the atlas to n=4 and the gnomon card reads rings: 1 + 7 + 13 + 19 = 40.
Font size is yours (up to huge). Nothing is locked small.
Why it's unique
It computes; it doesn't illustrate. The gnomon construction, the plastic ratio, the maximal independent sets, the inverse of P(s,n) — all evaluated on your chart, from first principles.
It checks itself in public. Tab 05 brute-forces every maximal independent set of C(n) across all 2ⁿ subsets, counts them, and prints the result against the Perrin number with a ✓ or ✗. It isn't asserting the theorem at you. It's demonstrating it, and it would show you if it failed.
Every claim was verified before it was drawn. The gnomon construction was checked against P(s,n) for s = 3…12, n = 1…6 (dot counts and totals). MIS(Cₙ) = P(n) was brute-forced for n = 2…13. The inverse formula was checked to be exact for s = 3…12, n = 3…8. None of it was transcribed on trust.
The lattice actually reads. Dots are drawn in canvas units as a fraction of the lattice pitch, not in fixed pixels — so a 40-dot octagon stays legible instead of collapsing into a blob. Comparison tabs share one pitch across every shape, which is what makes a figurate sequence look like a sequence rather than a row of unrelated blobs.
Colour carries information. Five perceptual ramps (Magma, Viridis, Plasma, Ember, Ice) run inner→outer, so ring colour encodes gnomon order rather than fighting it.
Practical applications
1 · A non-Fibonacci lookback family.
Everyone uses 8/13/21/34/55. The Perrin sequence gives 5, 7, 10, 12, 17, 22, 29, 39, 51, 68, 90, 119 — a different, slower-growing ladder (ρ = 1.325 vs φ = 1.618), so the periods are more tightly spaced and sample the middle horizons that Fibonacci skips.
2 · RADAR — read many horizons as one shape.
Instead of stacking eight RSI panes, read the polygon. A swollen shape means every horizon is extended the same way — broad-based pressure. A shrunken shape is the mirror. A lopsided shape — fast vertices pushed out, slow vertices pulled in — is short-term extension against a slower base, which is the geometry of a divergence. One glance replaces eight readings.
3 · MARKET LATTICE — regime texture at a glance.
The last P(s,n) bars, oldest at the centre. Directional runs appear as coloured arcs; chop appears as speckle. The up-fraction is printed underneath. It's a compact way to see whether recent history is trending or shuffling.
4 · Reference geometry for plastic-ratio work.
Exact constants and identities for anyone building ρ-based levels: ρ³ = ρ+1, and the exact "plastic pocket" 1/ρ² + 1/ρ³ = 1 (0.569840 + 0.430160), the plastic analogue of the golden pocket.
5 · Teaching and content.
Figurate numbers, gnomon growth, the plastic ratio, and a graph-theory identity, all on one canvas with the formulas beside them. For educators, students, and anyone publishing.
Settings that matter
◧ Shape aspect (x per y) — the one dial you must set.
Pine cannot read a pane's pixel size, so nothing can automate this. Set it to:
aspect = (Canvas width / 100) × (pane height ÷ pane width)
Default 1.80 = a 440-bar canvas on a pane roughly 2.4× wider than tall. Shapes squashed flat → raise it. Stretched tall → lower it. They are only true polygons when this is right.
Everything else is optional: Lattice dot size (× pitch), five palettes, independent heading / caption / tab / formula text sizes, manual text colours, panel widths, and per-tab shape parameters.
On the tab strip: it is an index, not a button bar. Pine Script exposes no click, mouse or hover events — no TradingView indicator can have a working on-chart button. Tabs switch in Settings → Canvas → Tab.
What this is not
Stated plainly, because the space is full of tools that won't:
It generates no signals. No buy/sell arrows, no alerts, no strategy, no entries, no targets.
It reports no performance. No win rate, no profit factor, no backtest, no equity curve — because it makes no claims that would need them. Nothing here has been shown to have an edge, and nothing here pretends to.
The two live tabs are readouts, not forecasts. RADAR is RSI across Perrin lookbacks. MARKET LATTICE is bar direction. Neither predicts anything.
The plastic ratio is not magic. ρ is a real constant with real mathematics behind it. That it appears in a market tool does not mean markets obey it.
This is an instrument and a teaching engine. It shows you mathematics and it shows you your data. What you conclude is yours.
Pine Script® v6 · separate pane · no repainting · no external data. Indicador

Indicador

Indicador

Indicador

Indicador

Indicador

OHLC Range MeterOHLC Range Meter
An indicator that reads the Open / High / Low / Close of every candle and measures each candle's "range" from its High − Low. It's built to show at a glance which candles are moving hard and which are quiet, making it useful for reading momentum and volatility bar by bar — especially for gold (XAUUSD) trading.
Key features
Displays the range (H−L) as a label on every candle. Choose from three units — Points, Price (dollars), or Ticks — to match your own counting style and your broker's price precision. You can optionally add the body range |Close − Open| and the full OHLC values inside each label.
Labels are clearly separated between up and down candles (default: green candles above, red candles below), so direction and trend shifts are instantly readable. The position for each color is fully adjustable.
A real-time summary table in the corner shows the latest candle's OHLC and range. Position it in any of the four corners, adjust font size for both labels and table across five levels, and customize colors and label frequency.
About the units
Points mode divides (High − Low) by your chosen point size. For gold, 0.01 is recommended — a candle moving $2.30 will read as 230, matching how most gold traders count. If your broker quotes prices with three decimals, switch to 0.001, or use Ticks mode, which follows the symbol's actual mintick automatically.
How to use
Open the Pine Editor on TradingView, paste the code, and Add to chart. Adjust units and styling under Settings. Works on any symbol and any timeframe.
Note: TradingView limits labels to the most recent 500. Indicador

OB/FVG + Volume Profile Confluence█ OVERVIEW
OB/FVG + Volume Profile Confluence identifies the most relevant supply and demand zones by combining three complementary market analysis concepts: Order Blocks (OB), Fair Value Gaps (FVG), and Volume Profile.
Not every Order Block or Fair Value Gap carries the same weight. Markets create many of them, but only a small fraction actually influences future price action. This script addresses that by cross-checking every newly formed zone against a local volume profile, keeping only the zones that align with areas of increased market participation. Unlike standard Volume Profile tools that rely on a single POC (Point of Control), this script detects multiple local volume peaks (Vol Peaks), allowing several independent high-activity price levels to be tracked at once.
Each zone is continuously analyzed for its internal volume flow, tracking how much of the volume within it was generated by buyers versus sellers. This updates bar by bar, so the user can see which side of the market is gradually gaining control over a given area.
The indicator can also generate break and exit signals, but only for Order Blocks and Fair Value Gaps that are confluent with the Volume Profile, filtering out a large share of less significant levels.
The result is a tool that combines market structure, supply/demand imbalance, and real volume activity — giving traders not just the location of potential reaction zones, but also a read on their quality and historical strength.
█ CONCEPTS
Volume Profile (Vol Peaks)
Volume Profile shows how volume is distributed across price levels rather than looking only at the volume of each individual candle. Most Volume Profile tools focus on a single POC — the price level with the highest traded volume in the analyzed period. In practice, markets often form several local high-activity areas that can also act as meaningful support/resistance levels. Instead of a single POC, this indicator searches for Vol Peaks — local volume maxima across the entire price profile. Each one marks a level where the market showed above-average trading interest, and these levels are later used to score the quality of Order Blocks and Fair Value Gaps.
Order Blocks (OB)
Order Blocks are price zones where significant activity from large market participants previously occurred — areas where strong bullish or bearish impulses began, and where institutions may have built or closed positions. A bullish Order Block marks a demand zone that often preceded a strong upward move; a bearish Order Block marks a supply zone that preceded a strong decline. The script detects Order Blocks from local pivots and the direction of the candles preceding a structure shift, and can use either the full candle range (including wicks) or the body only.
Note: because Order Blocks require a confirmed pivot, each zone is drawn with a delay of roughly pivot_length + 1 bars after the point where it actually formed. This is a structural property of pivot-based detection, not a defect — it should be kept in mind when reading the chart, since the zone is confirmed only after the fact.
Fair Value Gaps (FVG)
A Fair Value Gap marks an imbalance between buyers and sellers. It forms during a strong price impulse, when the market moves fast enough that a gap remains between consecutive candles — evidence that supply and demand were not being matched evenly. These areas frequently attract price during later corrections, as the market tends to retest zones where trading did not occur smoothly. The indicator detects both bullish and bearish FVGs and can optionally display additional, informational gaps regardless of their confluence with the Volume Profile.
Why combine Order Blocks, Fair Value Gaps, and Volume Profile?
Each method looks at the market from a different angle: an Order Block points to where large participants may have acted; a Fair Value Gap shows where a sharp imbalance between buyers and sellers occurred; Volume Profile shows which price levels actually saw the highest concentration of trading activity. Combining the three isolates zones that simultaneously:
• arise from market structure,
• formed during a strong impulse,
• are confirmed by above-average volume activity.
Volume analysis inside zones
No zone is treated as a static rectangle. From the moment it forms, the indicator analyzes every following candle and calculates how much volume was generated by buyers versus sellers. Based on this, it displays the total volume accumulated inside the zone, the volume delta, and the percentage dominance of one side of the market.
Dynamic zone updates
Most indicators draw an Order Block or Fair Value Gap once and leave it unchanged. In this script, every active zone is updated on every new candle — volume calculations, buyer/seller dominance, labels, and zone appearance all change dynamically as the market develops. This means the user sees not just where a zone historically formed, but its current state.
Break and Exit signals
The indicator can generate two types of signals. Break signals mark a definitive break of a zone, meaning it has lost its validity. Exit signals appear when price leaves a zone after having entered it, which can indicate the end of a retest and a return of the dominant market direction. Both signal types are generated only for zones that are confluent with the Volume Profile.
█ FEATURES
Multi-Peak Volume Profile
• Configurable lookback (up to 1000 bars)
• Price range split into bins (up to 100)
• Automatic detection of multiple local Vol Peaks instead of a single POC
• Filters: max number of peaks, minimum peak strength (% of the strongest bin), minimum distance between peaks
• Script-load optimization by recalculating the profile every N bars
• ATR-based confluence tolerance (a zone is considered confluent when a Vol Peak lies within its range or within ATR × multiplier of its edge)
Order Blocks
• Detection based on local pivots (configurable length)
• Option to include wicks or use the candle body only
• Zone-size filter relative to the average candle body size
• Colors, transparency, and optional buyer/seller volume split inside the box
• Dynamic label showing total volume, delta, and percentage dominance
Fair Value Gaps
• Automatic detection of bullish and bearish FVGs
• Gap-size filter relative to the average candle body size
• Optional display of "simple" FVGs without Volume Profile confluence (fixed box length)
• Same volume visualization and labeling options as Order Blocks
OB / FVG confluence with Vol Peaks
• Only zones located at a Vol Peak (or within ATR tolerance) are highlighted as significant
• Non-confluent zones remain nearly invisible or fully hidden
Dynamic in-zone volume analysis
• Continuously updated buyer/seller volume split
• Displays total volume, delta, and percentage dominance
• Border and label color change according to the currently dominant side of the market
Break and Exit signals
• Break — definitive break of a zone (loss of validity)
• Exit — price leaves a zone after having entered it (end of a retest)
• Signals generated only for zones confluent with a Vol Peak
• Separate signals for Order Blocks and Fair Value Gaps
Alerts
• Break Up / Break Down and Exit Up / Exit Down alerts, for both OB and FVG
█ APPLICATIONS
Filtering higher-quality supply and demand zones
The indicator lets you focus only on the Order Blocks and Fair Value Gaps that overlap with local volume peaks, filtering out most of the lower-relevance zones that otherwise clutter the chart.
Reading zone strength in real time
The dynamic volume split shows which side of the market is gradually taking control of a given area. A shift in dominance from buyers to sellers (or vice versa) can indicate a weakening zone.
Retests and breaks as areas of interest
• Exit signals mark potential continuation points after a zone has been retested
• Break signals confirm that a zone has lost validity, which can be relevant when tracking a breakout move
Break and Exit signals mark areas of interest, not automatic entry points. They are not standalone trade triggers — before treating a signal as significant, it is worth checking whether other tools, such as momentum indicators, are aligned with it.
Mapping market structure together with real activity
Vol Peaks combined with OB/FVG form a map of levels where large-participant activity historically concentrated and where a supply/demand imbalance also occurred.
Confirming setups from other methods
Confluent zones can serve as an additional filter for strategies based on market structure, order flow, or classic support/resistance — for example, treating a confluent supply zone as a reason for caution before going long into it, or using a test or break of a confluent zone as one factor among several when evaluating a trade.
Matching lookback to market structure and strategy
The lookback value should be chosen based on the timeframe and trading style. Too large a lookback causes many locally significant zones to be diluted, as the profile "smooths out" short-term peaks. Too small a lookback produces excessive noise and an overly dense grid of levels.
█ NOTES
• A larger lookback and higher bin count produce a more precise profile, but also increase script load. If you run into timeout issues, increase "Recalculate Volume Profile every N bars."
• Order Block zones are drawn with an inherent delay of roughly pivot_length + 1 bars, since they require a confirmed pivot before they can be plotted.
• Only zones with Vol Peak confluence generate Break/Exit signals — all other zones are purely informational.
• Dynamic changes in a zone's color and label reflect current volume flow, not just the historical moment the zone formed.
• Break and Exit signals represent different market behaviors and should be interpreted separately. They are not automatic entry signals — it is recommended to check for alignment with other tools (e.g., momentum indicators) before acting on them. Indicador

Indicador

Momentum Cascade | Lyro RSOverview:
Momentum Cascade is a rate-of-change momentum tool that passes a single momentum reading through three sequential smoothing stages to filter out early, unconfirmed moves. Rather than reacting to the first sign of a shift, it waits for the momentum signal to "cascade" through instant, reactive, and committed stages before confirming a trend, giving a cleaner read on when a move has genuine follow-through.
Key Features
Three-Stage Cascade Engine: Calculates a rate-of-change momentum value, then passes it through two successive EMA smoothing stages. Stage 1 is the raw instant impulse, Stage 2 is the first reactive smoothing, and Stage 3 is the fully committed signal.
Trend Confirmation Score: Each stage contributes +1 or -1 depending on its direction. A trend only confirms when all three stages agree (score of +3 or -3), filtering out momentum blips that fade before they cascade through.
Gradient Strength Visualization: The committed Stage 3 line and candle coloring use a gradient blend based on how strong the current agreement is across all three stages, giving an at-a-glance read on conviction.
Multi-Layer Plotting: Displays all three cascade stages simultaneously (thin instant line, mid-weight reactive line, and a glow-effect committed line) so you can see momentum building in real time, not just the final confirmation.
Candle Coloring: Optionally recolors chart candles using the same gradient logic as the oscillator, aligning price action visually with the cascade's current trend strength.
Customizable Visuals: Choose from 4 preset palettes — Classic, Mystic, Accented, Royal — or define your own custom bullish/bearish colors.
Built-In Signals: Automatically plots long/short labels on confirmed trend flips (when the score crosses into full +3 or -3 agreement).
How It Works
Momentum Calculation – Computes rate-of-change of price over the chosen length as the raw momentum impulse (Stage 1).
Cascade Smoothing – Passes that momentum through an EMA to produce Stage 2 (reactive), then smooths again to produce Stage 3 (committed).
Scoring – Assigns +1/-1 per stage based on sign, summing to a score between -3 and +3.
Trend Confirmation – A trend state only flips when the score reaches full agreement (+3 or -3), meaning all three stages point the same direction.
Signal Plotting – Trend flips are marked with long/short labels, and candle/line coloring reflects both direction and agreement strength via gradient.
Practical Use
Trend Confirmation – Use full cascade agreement (score of ±3) as confirmation that a momentum shift has enough follow-through to be tradeable, rather than acting on Stage 1 alone.
Early Warning – Watch Stage 1 and Stage 2 for early signs of a potential shift before the full cascade confirms, useful for anticipating entries.
Conviction Reading – Use the gradient strength on Stage 3 and candles to gauge how strongly the current trend is holding versus weakening.
Combine with Structure – Pair cascade confirmations with support/resistance or market structure levels for higher-quality entries.
Customization
Adjust Momentum Length and Stage Smoothing independently to tune responsiveness vs. lag.
Toggle signal labels and candle coloring on/off.
Pick a preset palette or define fully custom bullish/bearish colors.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals. Indicador

Advanced Fibonacci Golden Zone [HexaTrades]Advanced Fibonacci Golden Zone automatically finds the market's significant swing legs and projects the Fibonacci Golden Zone, the 0.5 – 0.618 retracement pocket of the latest leg. That band is where trend-continuation entries are classically hunted. No manual fib drawing: the script detects the swing, anchors the retracement correctly for both directions, draws the zone the moment the swing confirms, manages the setup's whole lifecycle, and drives a duplicate-free alert stream.
⭐️How it works
True late-zone detection:
When a swing confirms, the script scans every bar from the actual pivot through the confirmation bar (wicks or closes, per Zone Touch Source). If the price has already reached the zone's near edge anywhere in that window, the zone is late and is skipped; no zone is ever painted behind a reaction that already happened. Strict rule: exactly touching the edge counts as late.
Superseded setups :
A skipped candidate retires the previously active setup immediately: status “Superseded”, zone frozen/faded, and total silence no false “Invalidated” alert (that one is reserved for setups price actually broke).
Invalidation frozen ATR buffer:
A setup dies when a bar closes beyond the protective swing by more than the Invalidation Buffer (× ATR). The buffer is measured once, at setup creation, and the invalidation price stays fixed for the setup's lifetime; later ATR changes can't move it. Dead zones gray out instantly and can never alert again; a broken leg is “poisoned” so its later extensions can't spawn a fresh setup.
Zone anchoring retracements vs projections
Bullish (up-leg): Retracement anchored at 0.0 at the high, 1.0 at the low → the 0.5–0.618 band sits below price as potential support.
Bearish (down-leg) : Mirror-anchored → the 0.5–0.618 band sits above the price as potential resistance.
Retracements (0–1.0) and continuation projections (1.272× / 1.618× of the impulse, beyond the extreme) are computed by separate functions and labelled separately projections are targets, not retracement ratios.
True late-zone detection :
When a swing confirms, the script scans every bar from the actual pivot through the confirmation bar (wicks or closes, per Zone Touch Source). If the price has already reached the zone's near edge anywhere in that window, the zone is late and is skipped; no zone is ever painted behind a reaction that already happened. Strict rule: exactly touching the edge counts as late.
Superseded setups:
A skipped candidate retires the previously active setup immediately: status “Superseded”, zone frozen/faded, and total silence no false “Invalidated” alert (that one is reserved for setups price actually broke).
Invalidation frozen ATR buffer:
A setup dies when a bar closes beyond the protective swing by more than the Invalidation Buffer (× ATR). The buffer is measured once, at setup creation, and the invalidation price stays fixed for the setup's lifetime; later ATR changes can't move it. Dead zones gray out instantly and can never alert again; a broken leg is “poisoned” so its later extensions can't spawn a fresh setup.
⭐️ Features
- Automatic Golden Zone (default 0.5 – 0.618, both ratios configurable)
- Optional fib levels: retracements 0 · 0.236 · 0.382 · 0.5 · 0.618 · 0.786 · 1.0 + separately labelled 1.272× / 1.618× projections
- ZigZag + HH / HL / LH / LL structure labels with live structure bias
- Historical zones stay frozen & softened; optional “One zone per leg” replaces same-leg drafts in place (off by default)
- Zone lifecycle: Waiting → Inside Zone → Rejected / Broke Out → Invalidated / Superseded dead zones gray out and go permanently silent
⭐️How to use it
- Wait for a fresh zone in the direction of the structure (HH+HL → longs, LH+LL → shorts).
- Let price come into the zone covered by the “Price Enters Golden Zone” .
- Look for the rejection: a candle that gets into the zone and closes back out in the trend direction.
- Targets & invalidation: Target 1 = the 0.0 level (the impulse extreme), Target 2 = the 1.272× projection, Target 3 = the 1.618× projection; status “Invalidated” (close beyond the protective swing + buffer) is the classical exit.
⭐️Alert
1 · Golden Zone Invalidated: close beyond the protective swing + frozen ATR buffer — kills the setup
2 · 1.618× Projection Reached: continuation target hit (also completes 1.272× if reached directly)
3 · 1.272× Projection Reached: continuation target hit
4 · Bullish / Bearish Rejection: candle gets into the zone, closes back out in trend direction (completes the entry latch too)
5 · Zone Breakout: price closes straight through the zone
6 · Price Enters Golden Zone: first touch of the zone
No zone-interaction alert can fire on the candle that creates a setup; signals are eligible from the following confirmed candle.
Bar-close confirmation is enforced in code (barstate.isconfirmed is part of every alert condition); alerts cannot trigger intrabar regardless of the frequency you pick. Still select “Once Per Bar Close”.
Advanced Fibonacci Golden Zone combines confirmed market structure, automatic Fibonacci mapping and complete setup management in one tool. It helps traders identify fresh retracement opportunities without manually drawing Fibonacci levels while keeping invalidation, projections and alerts consistent. Use it alongside trend context, price action and proper risk management—not as a standalone entry signal.
We would love to hear your suggestions. If you have ideas for new features, indicators, analytics, or improvements, please share your feedback. Your input helps guide future updates and improve the indicator for all traders.
Wedge pattern detector indicator is for educational and analytical purposes only. It is not financial advice. Trading involves risk. Always use proper risk management and combine this indicator with your own analysis before taking any trade.
Indicador

Indicador

Estratégia

Darwin 40-40 MidlineThe Darwin 40-40 Midline is a custom overlay indicator designed to track and display a dynamic midpoint of price action, anchoring to a specific time interval. Rather than using standard hourly or daily resets, this script resets its tracking specifically at the 40th minute of every hour, providing a unique intra-hour perspective on price equilibrium.
How It Works (The Logic)
This indicator utilizes a dynamic high/low range calculation to plot a continuous midline:
The Reset: The script monitors the timestamp of each bar. As soon as the time hits the 40th minute of the hour (e.g., 09:40, 10:40, 11:40), the indicator resets its internal high and low anchor points to the high and low of that specific bar.
The Dynamic Midpoint: For every subsequent bar following the 40-minute mark, the script checks if price has broken the anchored high or low. If a new high or low is established, the range is updated.
The Plot: The indicator dynamically draws a line at the exact mathematical center of this expanding range (Highest High + Lowest Low) / 2. The line extends forward with each new bar, visually adjusting its level in real-time as the range expands.
How to Use It
Traders often use dynamic midpoints as shifting zones of support, resistance, or trend bias:
Trend Bias: When the price sustains itself above the active midline, the intra-hour bias can be interpreted as bullish. Conversely, trading below the midline suggests a bearish bias.
Mean Reversion: In ranging environments, extended moves away from the midline might be viewed as overextended, with the midline acting as a natural magnet for mean-reversion trades.
Breakouts: A sudden expansion of the range (which shifts the midline drastically) can highlight increasing volatility and potential breakout direction following the 40-minute reset.
Settings & Customization
The indicator includes a dedicated "Midline Settings" group in the configuration menu, allowing users to fully customize the visual appearance of the line to fit any chart theme. Users can adjust:
Midline Color: Change the color of the dynamic line (defaults to yellow).
Midline Width: Adjust the thickness of the line (1 to 5).
Style: Choose between Solid, Dashed, or Dotted line styles.
happy Trading!!!! Indicador

Indicador
