Volume Profile P b D Shapes - Day PlaybookVOLUME PROFILE P b D SHAPES reads the market's body language: every trading day the volume profile prints a LETTER — P, b or D — and that letter tells you who is in control and exactly how to trade the next session. This indicator automates the complete PbD method: it builds every day's volume profile, classifies the shape, draws the levels, prints the playbook on your chart and fires webhook-ready JSON signals.
■ THE THREE LETTERS
P-SHAPE (bullish continuation) — fast impulse UP, then balance ON TOP. The thin tail below is single prints: nobody did business there. Buyers feel like winners, dips are for buying.
b-SHAPE (bearish continuation) — fast impulse DOWN, then balance AT THE BOTTOM. The thin tail above marks the drop. Sellers are in control, rallies are for selling.
D-SHAPE (balance day) — a symmetric bell curve with a fat POC in the middle. Buyers AND sellers are happy, fair price has been found. The next day usually stays range-bound: fade the edges.
■ THE AUTOMATED PLAYBOOK (7 SETUPS)
P behind you:
- PLAN A — CONTINUATION: price dips into yesterday's value area, the dip HOLDS (no low break), a reclaim candle closes back at/above the POC -> BUY. Targets: previous high, then a measured balance move.
- PLAN B — FAILURE = FULL TRAVERSE: 2+ candle CLOSES below the VAL (a wick is NOT enough) plus a volume spike = acceptance below balance. The shape has failed and price tends to walk the WHOLE way back to the impulse origin -> SELL.
b behind you: the exact mirror — sell failed rallies into value (Plan A), or buy the failure traverse when 2+ closes above VAH with volume appear (Plan B).
D behind you + today opens INSIDE the D:
- Range rules. Short the Value Area High rejection, long the Value Area Low rejection, target the POC first and the opposite edge second. The FIRST touch gives the best response — the fade counter limits how often each edge may be traded.
■ WHAT YOU SEE ON THE CHART
- A volume histogram for every completed day, colored by its letter (mint P / red b / gold D), POC row highlighted
- A big P / b / D letter above each day — hover it for the full lesson behind the shape
- Yesterday's VAH / VAL / POC projected into today as live rails with explanatory tooltips
- A bias note at every day open: which letter is behind you, where today opened, and both plans
- Two-line BUY/SELL pills that explain WHY the signal fired (hover for the complete reasoning + Entry/SL/TP1/TP2)
- Entry / SL / TP1 / TP2 lines, TP1 -> break-even management, TP2 runner
■ AUTOMATION / WEBHOOK
Create one alert with condition "Any alert() function call" and paste your webhook URL. Every BUY/SELL/TP1/TP2/SL/BE event sends ready-to-use JSON: id, symbol, action, setup, shape, entry, sl, tp1, tp2, timeframe, time. There is also an optional end-of-day SHAPE alert so your bot can pick tomorrow's playbook automatically.
■ HOW TO USE
1) Apply to an intraday chart (5m - 1h; crypto, indices, FX, stocks). 2) Let at least one full day close so the first letter prints. 3) Read the panel: previous-day letter -> today's bias -> checklist. 4) Take the pills or automate them via webhook. The first day on the chart only collects data — letters start from day two.
Educational note: shapes give a BIAS, not a guarantee — that is exactly why every setup ships with both Plan A and Plan B. Not financial advice.
WHY THESE PARTS BELONG TOGETHER
The volume profile and the shape classification are inseparable here. The profile alone tells you
where volume accumulated; the classification into P, b and D shapes is what turns that distribution
into a statement about who is trapped and where the day is likely to go. A P shape and a b shape can
contain identical volume and mean the opposite thing - which is only visible once the profile is
read as a letter rather than as a histogram.
אינדיקטור

Impulse Box Breakout Engine - Origin Range Buy Sell SignalsIMPULSE BOX BREAKOUT ENGINE — a complete breakout trading system in one indicator: self-adjusting impulse boxes with entry arrow, stop, two fixed targets, a pink trailing-stop dot line and webhook automation. Rebuilt 1:1 from a professional German "Impulsbox" breakout engine (72-minute source webinar, analyzed frame by frame) and redesigned as a modern cockpit indicator.
█ WHAT IT DOES
The engine meters the market N bars back: the range the market traded in PLUS the length of every single bar inside it (compression check). When a STRONG impulse bar closes outside that range, the IMPULSE BOX appears over the consolidation:
• CYAN BOX = long breakout — big entry arrow inside the box
• GOLD BOX = short breakout — mirrored to the downside
• Initial stop = the far side of the box (bottom for longs, top for shorts)
• TARGET 1 + TARGET 2 (violet marks) are projected from the box height the moment the box appears — FIXED, never repainted, never moved afterwards
• PINK DOTS = the trailing stop. It starts at the box edge and follows price with ~30% of the move as breathing room. It only ratchets in your favor — never back
• At Target 1 the stop jumps to break-even or better. After Target 2 the system follows the source rule: "never leave the market voluntarily — let the stop take you out"
█ SELF-OPTIMIZING ENGINE
Markets are sideways ~80% of the time — rigid breakout parameters fail there. This engine adapts automatically:
• TREND regime (ADX based): short lookback, wider targets (+35% / +100% of box height)
• RANGE regime: longer lookback, stricter impulse filter, closer targets (+25% / +75%)
• AUTO-RECALIBRATION: after a false breakout the impulse threshold is raised temporarily — fewer but cleaner boxes. A winning box resets it
• The cockpit shows the current regime, calibration and effective parameters at all times
█ HONEST LIVE STATISTICS
The cockpit counts every box on your chart and shows the real Target-1 and Target-2 hit rates — no marketing numbers, live counted on your symbol and timeframe. On XAUUSD 15m the default engine printed 500+ boxes with a T1 hit rate above 90% at the time of publishing (past performance never guarantees future results).
█ DIRECTION BIAS FILTER
The #1 rule of the source system: trade boxes only in the direction of the higher-level move. The indicator automates this via EMA-200 + Supertrend bias. Choose: Off / Mark counter-bias boxes (dimmed + warning) / Filter them out completely. Supertrend companion arrows are included as extra confluence.
█ EVERY SIGNAL EXPLAINS ITSELF
Hover any BUY/SELL pill: how many bars of consolidation, how strong the impulse bar was (x average bar), which range edge broke, which regime the engine was in, whether the box agrees with the bias — plus entry, stop and both targets. No black box.
█ WEBHOOK AUTOMATION (BOTS / BRIDGES)
Create ONE alert with "Any alert() function call" and your webhook URL. The indicator fires ready-to-use JSON on BUY, SELL, T1_HIT, T2_HIT, TRAIL_EXIT and SL_HIT — including entry, stop, both targets, box levels, regime and live hit rates. Works with any webhook bridge, bot or auto-trader.
█ HOW TO USE
1) Add to chart — works on ALL symbols and ALL timeframes (crypto, gold, forex, indices, stocks)
2) Use standard candles or OHLC bars (Heikin-Ashi smoothing swallows breakouts — a key finding of the source webinar)
3) Wait for a box + arrow, entry at the breakout close, stop at the far box edge
4) Take partial profit at Target 1, let the rest run with the pink trailing dots
5) Automate via webhook JSON if you want
█ SETTINGS
Everything is configurable: manual mode with fixed lookback/impulse strength, target distances, trailing gap, exit-at-T2 mode, bias filter mode, Supertrend, chart theme, cockpit position and all alert toggles.
Educational tool only — not financial advice. Trading involves substantial risk. Always test on a demo account first and never risk money you cannot afford to lose.
WHY THESE PARTS BELONG TOGETHER
The impulse detection and the box are one mechanism, not two features. The impulse identifies the
candle sequence that moved the market; the box freezes the range that impulse came out of, because
that range is the level the market has to defend for the move to continue. Detecting impulses
without marking their origin gives you a signal with no invalidation, and drawing boxes without an
impulse gives you consolidation zones with no direction.
אינדיקטור

Previous Day / Week / Month Range LevelsDraws the high, low and internal subdivisions of the last completed period on up to three higher timeframes at once.
Why the prior range matters
A finished period leaves behind a structure the market keeps referring back to. Yesterday's high and low are where yesterday's argument was settled, and price spends a surprising amount of the next session negotiating with those two numbers — breaking them, failing at them, or holding between them.
The subdivisions add resolution to that. The midpoint separates the upper and lower half of the range, and which side price accepts on tells you who won the period. The quarters mark the shallow zones inside each half — the levels a pullback reaches before it has retraced anything meaningful.
What it draws
Prior period high and low, as solid boundary lines
Midpoint at 50%
Quarters at 25% and 75%
Optional eighths at 12.5% and 87.5% for wider ranges
Price labels on every level, with the timeframe named
Three timeframe slots, each with its own colour and on/off switch. Defaults are Daily and Weekly enabled, Monthly available. Any timeframe works — 4H, quarterly, yearly — so intraday traders and swing traders can both configure it sensibly.
The levels do not repaint
Each level is read from the previous completed bar of its timeframe using a lookahead-safe request. Once a period closes, its levels are fixed and will not move. Nothing is recalculated on the developing bar, and nothing you see on historical bars was drawn with information from the future.
That means the numbers are frozen for the whole current period. The daily levels you see at the open are the same ones at the close.
Notes on use
Session settings matter. On a chart set to regular hours, the daily range is built from regular-hours prices only — switch to extended hours and every level moves. Neither is wrong, but be deliberate about which one you're reading.
Multi-period timeframes such as 2W or 6M are grouped by TradingView from a fixed reference point, which may not align with where you'd assume a fortnight begins. Worth eyeballing directly before relying on them.
Drawings are anchored by timestamp rather than bar index, so they stay put when you scroll back and TradingView loads more history. Bar indices renumber every time more history loads; timestamps do not.
There is also a fully transparent plot of close in there, doing a job that is easy to miss. Lines and labels do not feed TradingView's autoscale, so a script that only draws has no price range of its own and can be handed a separate price scale — at which point every level sits at an offset from the candles. The transparent plot gives the script a real range and locks it to the symbol's.
Settings
Three timeframe slots, each with an enable toggle, a timeframe and a colour
Midpoint, quarters and eighths switched independently
Price labels on or off, with a size option
Boundary line width, and a separate transparency for the inner levels so the range edges stay dominant
Extend left and extend right, in bars
Open source. Read it, fork it, adapt it. The non-repainting request pattern, the time-anchored drawing and the scale anchor are all worth stealing for your own scripts.
For educational purposes only. Nothing here is financial advice, a recommendation, or a solicitation to trade. Levels are reference points, not signals. אינדיקטור

Fibonacci Retracement [AFD]Fibonacci levels that find their own two points, and keep finding them.
THE PROBLEM WITH DRAWING THEM BY HAND
A retracement is two clicks and a judgement call. The judgement is the hard part - which high, which low, and whether the leg you just measured is one move or two glued together. Then the session rolls over and the answer changes, so you do it again.
This draws the grid from the chart's own data instead. You tell it which range matters and it finds the two points itself, every bar, forever. Come back after the open and it has already re-anchored to the new day.
PICKING THE RANGE
Four choices, and they are all self-maintaining.
Current Day is the default and it is the one most intraday traders want - today's high and low, re-anchoring at each session open. Previous Day is yesterday's, and it draws from yesterday's start rather than today's, so the geometry sits over the data it came from. Current Week is the same idea one period up.
Latest Swing is the interesting one. It takes the last confirmed swing high and low, and it insists they alternate.
That insistence matters more than it sounds. ta.pivothigh() and ta.pivotlow() are independent detectors, and a real chart prints two, three, four highs in a row with no qualifying low between them. Take the most recent of each and you get a "leg" whose high end is simply the latest high, not the highest one in the span - so the grid measures a move that never happened as a single push, and 0.618 lands somewhere with no relationship to anything. Here, a pivot on the same side as the last one replaces it only if it is more extreme, and a pivot on the opposite side starts the next leg. On clean impulses this changes nothing at all. On ragged ones it pulls the anchor back to the extreme the leg actually reached.
Swing Strength sets how many bars have to print either side of a pivot before it counts. Higher means fewer and more significant swings, and a longer wait.
WHICH WAY THE LEG RUNS
Fib Direction is Auto, Long or Short, and it is the one control that stays live no matter what else you switch off - because it governs both grids, not just the near one.
Auto works out the direction from the range you actually chose. It looks at the two extremes that range uses and puts 0.00 at whichever one printed later, on the reasoning that the more recent extreme is the one the move ended on. So on Current Day, a day that made its low at 10:15 and its high at 15:50 gets 0.00 at the high and a grid you read downwards. Force it with Long or Short when you disagree.
THE MINUS SIGN, AND WHY THE EXTENSIONS HAVE ONE
Everything on this chart is numbered from the leg end. 0.00 sits at the recent extreme that finished the move, 1.00 at the point it started from. That way the number you read is retracement depth, and it means the same thing whichever direction the leg ran.
The extensions continue that same line past 0.00, which is why they are negative. -0.618 sits 0.618 of the leg's range beyond the 0.00 line, in the direction the leg was travelling - exactly the way 0.618 sits 0.618 of the range on the other side of it. One ruler, and the sign tells you which side of the origin you are on.
If that looks unfamiliar, put TradingView's own Fib Retracement tool on the same two points. Its tags read the same: -0.618, not 1.618. The 1.618 reading belongs to the Trend-Based Fib Extension tool, which measures from the leg origin instead - a perfectly good convention, but putting both on one chart gives you two rulers running opposite directions from the same 1.00 line, and sooner or later you read the wrong one.
Six ratios are on offer - -0.272, -0.414, -0.618, -1.00, -1.618, -3.236 - and they ship switched off. They are levels, not targets. They are arithmetic on the leg. This script says nothing about whether price gets to one, marks no entry or exit, and has no alerts of any kind.
THE SECOND GRID
Switch on Show HTF Context and a second grid draws behind the first, anchored to the latest confirmed swing on a higher timeframe and dimmed so it stays context rather than competing for your attention. It ships off, so a fresh add gives you one clean grid.
HTF Mode is where this differs from most higher-timeframe overlays. Adaptive , the default, does not hold a fixed interval - it takes the next one up from whatever chart you are on. A 5-minute chart anchors to the 15-minute swing, a 1-hour chart to the 4-hour. Change timeframe and it follows you, and because it always resolves to something strictly higher, it cannot silently resolve to nothing.
Custom lets you name the timeframe instead, which is what you want when a specific one matters - the 4-hour swing while you scalp the 5, say. The catch is that it has to be strictly higher than the chart. Set Custom to 240 and drop to a 4-hour chart and the grid disappears with no warning label, because 240 is not higher than 240.
Both grids keep their own level checkboxes, line width, label size and text colour, so you can make the context layer as quiet as you like. The extension ratios are the exception: which ratios get drawn is shared by both grids, while which grids draw them is not. Each layer has its own extension toggle. The tooltips say which is which, because a control that looks global and is not is worse than one that plainly is.
THE SETTINGS ACTUALLY WORTH YOUR TIME
Most of the 63 inputs are the ordinary colour-and-width kind. These are the ones that change how the thing reads.
Color Mode defaults to Gradient, and it is doing real work. Each level takes its colour from its own ratio, so hue states depth - the shallow end and the deep end are different colours, and the 0.618-0.786 span reads as a region instead of two more identical lines. There are five presets plus Custom. Single Color reverts to one colour per grid if you prefer the classic look, and either way whatever transparency you pick in the colour picker is the transparency you get.
Enable Glow draws every level twice - a wide, near-transparent halo under a thin bright core. It costs nothing but line objects and it is the difference between a grid you can see on a busy chart and a set of hairlines you lose against the candles. Turn it off when the chart is crowded.
Fill Between Levels shades the intervals. OTE Band, the default, shades only 0.618-0.786. All Bands shades everything, Custom Bands lets you pick, and Off is off. The fills are independent of the line checkboxes, so you can shade a band whose boundary lines are hidden.
Highlight Golden Zone at Price is the one piece of reactive styling here. While the last close is between the 0.618 and 0.786 prices, that band draws more opaque and lifts off the chart. It creates nothing new - no box, no zone object, no centre line, no label - it just restyles the band the fill control already drew, and Highlight Strength sets by how much. It is arithmetic on two numbers already on your screen.
HTF Layer Dimming adds transparency to the whole context grid on top of whatever its colours already carry, which is how the second grid stays behind the first instead of doubling the clutter.
Extension Fade fades each extension a little further as it travels away from the leg, so the near ones read as more prominent than the far ones. It counts only the extensions you actually enabled, not their slot in the ladder - so if you turn on just the far ones, the nearest of them is still drawn at full strength rather than arriving pre-dimmed.
Ratio Label Format switches the tags between decimal and percent - 0.618 or 61.8%, minus signs intact either way. Show Price Labels adds the actual price beside each ratio; it is off by default because eight prices is a lot of text.
Line Extension Left/Right and Label Right Offset control how far the grid reaches and how far past it the tags sit. The defaults keep the tags in the empty margin, clear of both the candles and the price scale.
One last thing: any control that cannot do anything greys itself out. Switch the context grid off and its settings dim. Switch to Gradient and the single-colour pickers dim. There is no control in this script that looks live, takes a value, and quietly does nothing.
GETTING STARTED
Add it. You get one grid on today's range, gradient-coloured, golden zone shaded.
Want a different range? Anchor Range. Leave Fib Direction on Auto until it tells you something you disagree with.
Want context from above? Show HTF Context, and leave HTF Mode on Adaptive unless a specific timeframe matters to you.
Want the extensions? Turn them on for whichever grid you want them on, then pick your ratios.
Too busy? Glow off, Fill Between Levels off. You are back to plain lines.
THINGS THAT WILL LOOK LIKE BUGS AND ARE NOT
Swing anchors arrive late. A pivot is not a pivot until Swing Strength bars have printed after it, so on Latest Swing and on the context grid you are always looking at the last confirmed pivot, not the bar in front of you. When a newer one confirms, the anchor moves. That is the price of anchoring to something you can only recognise in hindsight, and it is the same trade every swing-based tool makes.
The day and week ranges are live. Current Day and Current Week use the period's running high and low, so the grid re-scales when the session makes a new extreme. It is showing you the range as it stands, not a finished one.
It draws one grid, not a history of them. You get the current grid, redrawn as things move. There is no trail of old ones behind you.
Higher-timeframe data uses the documented confirmed-value form - the expression is offset by one bar and the request passes barmerge.lookahead_on. Together, that is the pattern the Pine Script documentation gives for reading a higher timeframe without pulling unclosed data into historical bars. The source is open, so you can read the call rather than take my word for it.
Custom HTF at or below the chart timeframe draws nothing at all , and says nothing about it. Worth remembering before you conclude the context layer is broken.
A 12-month chart draws no context grid. 12M is the top of TradingView's interval list, so Adaptive has nothing left to step up to. 3-month and 6-month charts both work.
Prices come from standard OHLC via ticker.standard(), so your levels are the same on Heikin Ashi, Renko, Kagi, Line Break and Point and Figure as they are on candles. The synthetic geometry of those chart types can still put the lines somewhere you would not expect.
WHAT IT DELIBERATELY DOES NOT DO
No alerts. No signals. No scores, ratings or probabilities. No zones, no nested zones, no centre line. It draws Fibonacci levels, labels them honestly, and stops. If you want something that tells you when to act, this is not it.
WHY IT IS DIFFERENT
Four self-maintaining ranges instead of a two-point drag you place today and replace tomorrow. Two independently configured grids on one continuous number line, with the higher one dimmed to sit behind rather than on top. Extensions numbered on the same ruler as the retracements, matching the tags TradingView's own tool gives those prices, rather than a second scale running the other way. A swing range that is genuinely one leg, because the pivot pair is kept alternating. And colour that carries information - a level's hue states its depth - instead of a palette applied to identical lines.
Open source under the Mozilla Public License 2.0. אינדיקטור

Anchor rails - session levels and event countdown [AuraSznfx]Most intraday trading is organized around a handful of scheduled clock times — the London open, the 8:30 and 10:00 data releases, the cash open, the end of the first hour, the 2:00 policy release. This script makes that schedule visible on the chart instead of tracked in your head, and pairs it with the price levels that formed before each one.
There are many scripts that draw session highs and lows. What this one adds is the clock layer on top of them: a countdown to the next scheduled anchor, a phase read-out describing where the current bar sits relative to that anchor, a configurable window marked either side of it, and a running count of how many of the day's tracked levels have already been taken.
WHAT IT DRAWS
Five session ranges: overnight, London, premarket, opening range, and first hour. Each window's start and end time is a session input you can change, so the defaults are a starting point rather than a rule. While a window is open the script tracks its running high and low and shows them as a box. When the window closes, the box is deleted and replaced by two horizontal lines fixed at the final high and low, extended forward a configurable number of bars.
Yesterday's high, low and close, pulled from the daily timeframe with lookahead disabled. An optional midpoint is available.
HOW THE LEVEL-TAKEN LOGIC WORKS
Once a range is locked, each of its two lines is watched independently. The high is marked taken the first time a bar's high exceeds it. The low is marked taken the first time a bar's low falls below it. Detection is one-way and permanent for the session — a level does not un-take itself if price returns.
When a level is taken you can have it dim to a configurable transparency, dim and switch its label to a marked state, or delete outright. That choice is a style preference; the underlying state is tracked the same way regardless.
Note the deliberate limitation: detection uses the bar's high and low, so on a live bar a level can register as taken and then the bar can close back inside the range. If you want confirmed-close behavior instead, use a higher timeframe or wait for the bar to close before acting on the alert.
HOW THE ANCHOR CLOCK WORKS
You enable whichever of the nine preset times you care about, plus one custom hour and minute of your own. Every one is read in the timezone you select at the top of the settings.
On each bar the script builds a timestamp for every enabled anchor on the current date, then finds the nearest one ahead of the current bar close and the nearest one behind it. From those two distances it produces four outputs in the panel:
Time to the next anchor, formatted as a countdown.
A progress bar filling over the final 30 minutes before it.
A phase label, resolved in this priority order: inside the post-anchor window, within 15 minutes after, inside the pre-anchor window, inside 10 minutes, inside 30 minutes, otherwise standby.
A taken count out of the ten tracked level lines.
If every enabled anchor for the day has passed, the countdown rolls to the earliest one on the following day.
The event window is the pre and post minute values you set. When the current bar falls inside it, the chart is optionally tinted, and an alert can fire once as it begins. Nothing about this window predicts direction. It marks that a scheduled release is close, which is information you would otherwise be checking a calendar for.
HOW TO USE IT
Set your timezone first; everything else reads from it. Adjust the five session windows to the instrument you trade — the defaults are built around US index futures on New York time and will not suit an FX or crypto session structure without changes. Then switch off the anchor times that aren't relevant to your market.
The levels show where price has already been tested. The clock shows when the next scheduled event arrives. What you do with either is your decision — this script issues no buy or sell signals and takes no view on direction.
ALERTS
Two alert condition entries are provided, for any level taken and for the event window opening, usable from the standard alert dialog. Individual per-level alerts fire through the alert() function on bar close. Payloads can be sent as plain text or as structured JSON for webhook use, toggled in the settings.
NOTES AND LIMITATIONS
Written in Pine v6.
Locked levels do not repaint. A range only becomes lines after its window has closed, and those values never change afterward.
The daily request uses lookahead_off. No future data is accessed anywhere in the script.
The phase labels describe clock position only. They are not signals and carry no expectation of what price will do.
The script has no view on direction and produces no entry or exit signals. It is a context tool.
On very low timeframes the drawing limits of 500 lines, boxes and labels can be reached over a long history. Reduce the extend-right value or switch off sessions you do not need. אינדיקטור

Bull Bear Power Breaks with Trend Reversal [JPT]🔷 OVERVIEW
Bull Bear Power Breaks with Trend Reversal – Module 1 is an original Pine Script® v6 indicator designed to identify the prevailing market trend using a combination of EMA 50, EMA 200, and Bull/Bear Power analysis. It provides traders with a clear visual representation of trend direction, buying pressure, and selling pressure, making it easier to understand market conditions before looking for breakout or reversal opportunities.
Rather than generating trading signals, Module 1 establishes the core trend framework that future modules will build upon.
🔷 HOW IT WORKS
The indicator continuously evaluates price relative to two exponential moving averages while calculating Bull Power and Bear Power values.
Bullish Trend
A bullish trend is identified when:
EMA 50 is above EMA 200
Bull Power remains positive
Buyers maintain control of market momentum
During bullish conditions, the chart background changes to a light green color, providing an immediate visual indication of the dominant trend.
Bearish Trend
A bearish trend is identified when:
EMA 50 is below EMA 200
Bear Power remains dominant
Sellers control market momentum
During bearish conditions, the chart background changes to a light red color.
Trend changes are automatically labeled on the chart with BULL and BEAR markers whenever the EMA relationship changes.
🔷 VISUAL FEATURES
EMA 50 Trend Line
EMA 200 Trend Line
Automatic Bullish Trend Detection
Automatic Bearish Trend Detection
Bull Power Calculation
Bear Power Calculation
Smoothed Bull/Bear Power Histogram
Trend Change Labels
Dynamic Trend Background
Professional Dashboard
Customizable Inputs
🔷 EMA TREND ENGINE
The built-in EMA Trend Engine uses two exponential moving averages to determine the dominant market direction.
Supported trend states include:
Bullish Trend
Bearish Trend
Neutral Transition
This allows traders to quickly align their analysis with the prevailing market direction.
🔷 BULL & BEAR POWER ENGINE
Bull Power is calculated from the distance between price highs and the fast EMA, while Bear Power measures the distance between price lows and the same average.
To reduce market noise, both values are smoothed before being displayed as histograms, helping traders visualize changes in buying and selling pressure more clearly.
🔷 DASHBOARD
The integrated dashboard displays real-time market information, including:
Current Trend
Bull Power Value
Bear Power Value
EMA 50
EMA 200
This provides a quick overview of the current market environment without requiring additional indicators.
🔷 INPUTS
Available settings include:
EMA Fast Length
EMA Slow Length
Bull/Bear Power Smoothing Length
Show EMA Lines
Show Trend Background
Show Bull/Bear Histogram
Show Dashboard
🔷 COMMON WORKFLOW
A typical workflow is:
Identify whether the market is bullish or bearish using the EMA Trend Engine.
Observe Bull Power and Bear Power to evaluate buying and selling pressure.
Monitor trend changes using the automatic BULL and BEAR labels.
Use this information as a directional filter before considering breakout or reversal setups in future modules.
🔷 MARKETS
This indicator can be used on:
Forex
Gold (XAUUSD)
Cryptocurrency
Stocks
Indices
Futures
Commodities
It is compatible with multiple timeframes and different trading styles.
🔷 BEST PRACTICES
Many traders combine this trend engine with additional forms of technical analysis, such as:
Market Structure
Support & Resistance
Break of Structure (BOS)
Change of Character (CHoCH)
Fair Value Gaps (FVG)
Order Blocks
Volume Analysis
Higher Timeframe Confirmation
These techniques are optional but may provide additional context when evaluating market conditions.
🔷 UPCOMING FEATURES
Future modules are planned to include:
Dynamic Swing High & Swing Low Detection
Automatic Support & Resistance
Bull Power Break Detection
Bear Power Break Detection
Trend Reversal Confirmation
Buy & Sell Signals
Entry Price Calculation
Stop Loss
TP1, TP2 & TP3 Auto Targets
Risk/Reward Visualization
Advanced Dashboard
Smart Alert System
🔷 DISCLAIMER
This indicator is provided as a technical analysis tool for educational and informational purposes only. It evaluates historical price data using moving averages and Bull/Bear Power calculations to help visualize market trends. It does not predict future price movements or guarantee trading performance. Always perform your own analysis, use appropriate risk management, and seek additional confirmation before making trading decisions. אינדיקטור

MFx Trend Vitality Engine V3MFx Trend Vitality Engine V3
Overview
Diagnose the Health of a Trend—Not Just Its Direction
Most technical indicators focus primarily on one question: Where is price likely to go next? The MFx Trend Vitality Engine was designed to answer a different question: How healthy is the force currently driving the market?
Rather than attempting to predict future price direction, Trend Vitality evaluates the internal condition of buyer and seller campaigns. It measures the quality of the trend itself by examining buyer and seller vitality, structural fatigue, trend efficiency, reserve capacity, cumulative wear, trajectory, and overall market state.
The framework separates trend direction from trend health. Those are not always the same thing. A market may continue making new highs while the underlying buyer campaign gradually weakens. Likewise, a downtrend may continue falling even as seller strength begins to deteriorate. Price alone cannot always reveal these hidden changes.
Think of Trend Vitality less like a crystal ball and more like a physician evaluating a patient. A doctor cannot predict exactly what will happen tomorrow, but can assess a patient's current condition using multiple measurements. Trend Vitality follows the same philosophy.
Price tells you where the market is moving. Trend Vitality helps explain how healthy the force behind that movement really is.
Why the Framework Was Created
Most technical indicators are designed to help traders identify entries, exits, momentum, or trend direction. Trend Vitality was created to answer a different question: "How healthy is the trend I already own?"
As trends mature, price may continue moving in the same direction while subtle signs of deterioration begin developing beneath the surface. Buyer participation may become less efficient, structural fatigue may increase, reserve capacity may decline, and cumulative wear may continue building long before price itself reflects those changes.
Trend Vitality was designed to identify those internal conditions.
It does not attempt to predict exact tops or bottoms, nor does it generate automatic buy or sell signals. Instead, it provides a structured framework for evaluating the condition of the active buyer or seller campaign.
Originality & Design
Trend Vitality is not a collection of unrelated indicators combined into a single script. It is a unified diagnostic framework in which every subsystem evaluates a different characteristic of the same underlying process: the health and durability of buyer and seller campaigns.
Each component contributes one piece of evidence:
Buyer & Seller Vitality identify which side currently possesses the healthier campaign.
Structural Fatigue measures the amount of strain required to maintain the current trend.
Trend Efficiency evaluates how effectively market participation is being converted into directional price movement. Reserve Capacity estimates how much internal strength remains available to sustain the campaign. Cumulative Wear measures deterioration accumulated throughout the life of the campaign. Trajectory identifies whether overall trend health is improving, stable, or deteriorating. Market State combines these diagnostics into a higher-level assessment of the campaign's current condition.
Rather than relying on a single measurement, Trend Vitality combines complementary diagnostics into one integrated assessment of trend health.
Understanding the Chart
The Trend Vitality chart contains three primary visual components:
The White Trend Line
The Trend Vitality Line
The Trend Vitality Scale
Each answers a different question about the market.
White Trend Line
The White Trend Line represents the market's directional campaign. It answers one simple question: "What direction is the market currently moving?" A rising White Trend Line indicates buyers currently possess directional control. A falling White Trend Line indicates sellers currently possess directional control. Importantly, the White Trend Line measures direction, not health. A trend can continue moving higher while gradually becoming less healthy, or continue falling while seller strength quietly deteriorates. That distinction is why the Trend Vitality Line exists.
Trend Vitality Line
While the White Trend Line measures direction, the Trend Vitality Line measures the health of the side currently controlling the market. Its color changes depending on which campaign possesses the vitality advantage.
Green Trend Vitality
A green Trend Vitality Line indicates that buyers currently possess the healthier campaign.
Think of two championship boxers entering the later rounds of a fight. The scorecards tell you who is ahead, but looking into each fighter's corner tells you who still appears strongest. A green Trend Vitality Line suggests buyers currently have the stronger internal condition—not that they are guaranteed to win the match.
Red Trend Vitality
A red Trend Vitality Line indicates that sellers currently possess the healthier campaign.
This should not automatically be interpreted as a sell signal. Instead, it reflects that sellers currently possess the stronger internal condition relative to buyers. Like the boxer analogy, momentum within the fight can shift before the final outcome is decided.
Understanding the Trend Vitality Scale
The Trend Vitality Scale is standardized from +100 to -100.
Unlike traditional oscillators, it does not measure price. It measures the relative health of the buyer and seller campaigns.
Above Zero: Buyers possess the vitality advantage.
Below Zero: Sellers possess the vitality advantage.
Near Zero: Neither side has established a meaningful health advantage.
The farther the Trend Vitality Line moves away from zero, the stronger the measured vitality of the controlling side.
General Interpretation
+80 to +100: Exceptional Buyer Health
+50 to +80: Healthy Buyer Campaign
+20 to +50: Moderately Healthy Buyers
-20 to +20: Neutral Battlefield
-20 to -50: Moderately Healthy Sellers
-50 to -80: Healthy Seller Campaign
-80 to -100: Exceptional Seller Health
These ranges are intended as interpretation guidelines rather than trading signals.
Understanding the Zero Line
The Zero Line represents the center of the battlefield, where neither buyers nor sellers possess a meaningful vitality advantage. Imagine the market as a game of tug-of-war. Buyers pull from one side of the rope, sellers from the other, and the Zero Line marks the exact center.
When the Trend Vitality Line is above zero, buyers have pulled the rope onto their side and currently possess the healthier campaign. When it falls below zero, sellers have gained the vitality advantage and are pulling the rope in their favor.
A move through the Zero Line simply tells you that the balance of internal strength has shifted from one side of the battlefield to the other. It does not necessarily mean price will immediately reverse or that a new trend has begun. Just like a real tug-of-war, the rope may briefly cross the center before one team regains its footing and pulls it back.
For that reason, a Zero Line crossover should never be interpreted automatically as a buy or sell signal. Instead, it signals that the balance of campaign health is changing. The surrounding diagnostics help determine whether that change represents a meaningful shift in control or only a temporary swing in momentum.
Understanding the Dashboard
The dashboard summarizes the current condition of the active campaign.
Buyer Vitality: Measures the health of the buyer campaign.
Seller Vitality: Measures the health of the seller campaign.
Market Health: Overall condition of the active trend.
Engine Health: Combined strength of the Trend Vitality framework.
Structural Fatigue: Current strain required to maintain the trend.
Trend Efficiency: How effectively market participation produces directional progress.
Reserve Capacity: Remaining internal strength available to sustain the campaign.
Cumulative Wear: Structural deterioration accumulated throughout the campaign.
Trajectory: Whether trend health is improving, stable, or deteriorating.
Market State: The current diagnostic phase of the campaign.
Warnings: Highlights meaningful signs of internal deterioration that deserve additional attention.
No single measurement should be interpreted in isolation. The dashboard is designed to provide a complete diagnostic assessment of trend health.
Suggested Use
Trend Vitality is designed as a diagnostic companion to price analysis.
It may be useful for:
Monitoring the health of long-term positions.
Evaluating the quality of established trends.
Comparing buyer and seller campaign strength.
Identifying hidden deterioration beneath continued price movement.
Supporting position management decisions.
Adding context alongside price structure and risk management.
Important Limitations
Trend Vitality is based on historical and current market data.
It does not:
Predict future price.
Generate guaranteed buy or sell signals.
Anticipate news, earnings, geopolitical events, or unexpected market catalysts.
Like any analytical tool, it should be used alongside sound risk management and independent market analysis.
Release Notes – V3
This version introduces an updated Trend Efficiency model designed to preserve greater historical context while improving the evaluation of campaign performance.
The publication has also been reorganized with expanded documentation explaining the framework's methodology, design philosophy, chart interpretation, dashboard components, and intended use.
The underlying objective remains unchanged:
Trend Vitality is a diagnostic framework designed to evaluate the health of buyer and seller campaigns—not to predict the future or replace price analysis.
אינדיקטור

McGinley Dynamic Fusion [MarkitTick]💡 The McGinley Dynamic is a lesser-known adaptive moving average developed in the 1990s by market technician John R. McGinley, specifically engineered to solve a problem that plagues conventional moving averages: their tendency to lag badly during fast market moves while whipsawing excessively during slow, choppy conditions. Unlike a standard EMA or SMA, the McGinley Dynamic adjusts its own speed automatically based on the relationship between price and its prior value, effectively "hugging" price more tightly when the market accelerates and smoothing out more when it decelerates. This script builds a complete trading framework around a Fast/Slow McGinley Dynamic crossover, layering in higher-timeframe confirmation, signal cooldown filtering, ATR-adaptive trade levels, a live dashboard, and a manual signal-lock mechanism.
✨ Originality and Utility
While McGinley Dynamic implementations exist on TradingView, this script does not simply plot the raw indicator. It combines four distinct engineering layers into a single decision framework:
A recursively self-adjusting dual McGinley Dynamic engine (Fast and Slow) used as a crossover trigger rather than a static trend line.
An optional higher-timeframe directional filter that requires the HTF trend to agree with the signal direction before a crossover is allowed to fire.
A cooldown/gap filter measured in bars, which suppresses new signals for a configurable number of bars after the last one, reducing signal clustering during choppy crossover conditions.
An ATR-based trade management layer that auto-plots Entry, Stop Loss, and three Take Profit levels the moment a signal fires, extended live on the chart with a color-coded risk/reward fill.
The value to traders lies in how these layers interact: the McGinley crossover alone would generate frequent false signals in ranging markets, but the HTF filter and cooldown mechanism specifically target the crossover's greatest weakness (over-triggering during consolidation), while the ATR trade-level engine converts a raw directional signal into a fully defined, risk-quantified trade plan without any additional charting work from the user.
🔬 Methodology and Concepts
• The McGinley Dynamic Engine
The core building block is a recursive moving average that adjusts its step size relative to how far price has moved away from its previous value. Rather than applying a fixed weighting like an EMA, the McGinley Dynamic divides the price-to-prior-value distance by a dynamic denominator that grows sharply when price moves far from the average and shrinks when price sits close to it. This produces a curve that speeds up during trending, high-momentum moves and slows down during sideways congestion, giving it a self-correcting quality that fixed-period moving averages lack. The script instantiates two independent copies of this engine: a Fast McGinley Dynamic (default length 14) and a Slow McGinley Dynamic (default length 50), each with its own configurable "K Constant" that governs how aggressively the adaptive denominator reacts to price displacement.
• Crossover Signal Logic
A long signal is generated when the Fast McGinley Dynamic closes above the Slow McGinley Dynamic after having been at or below it on the prior two bars — a confirmed upward crossover, not an intrabar or provisional one. A short signal mirrors this logic on the downside. This two-bar confirmation approach (checking both the and offsets) ensures the crossover has actually completed on a closed bar before a signal is registered, rather than reacting to a crossover that could still repaint on the current forming bar.
• Higher-Timeframe Directional Filter
When enabled, the script pulls the source price and Fast McGinley Dynamic value from a user-selected higher timeframe (default 4-hour) and requires that the HTF price sit on the correct side of the HTF Fast McGinley Dynamic before allowing a same-direction signal on the working timeframe. This acts as a macro-trend veto: a bullish crossover on the chart timeframe will be ignored if the higher-timeframe trend context is bearish, and vice versa. The higher-timeframe request is built using a confirmed, prior-bar value combined with TradingView's lookahead-on merge policy — the standard non-repainting pattern for pulling higher-timeframe data — so the filter reacts only to fully closed higher-timeframe bars.
• Cooldown / Signal Spacing Filter
To prevent rapid-fire signals during periods where the Fast and Slow McGinley Dynamic lines oscillate around each other, the script tracks the bar index of the last long and last short signal separately. A new signal in the same direction is only permitted once a user-defined minimum number of bars ("Cooldown Bars") has elapsed since the prior one, reducing signal noise without altering the underlying crossover logic itself.
• ATR-Based Trade Level Construction
The moment a qualifying signal fires, the script calculates an Average True Range value over a configurable lookback and uses it to derive five reference prices: an entry (the prior bar's close), a stop loss, and three take-profit targets. Each level is expressed as an ATR multiple away from entry, with independently configurable multipliers for the stop and each take-profit tier. This means the distance between entry and each level automatically expands or contracts with recent volatility rather than using a fixed point or percentage distance, keeping the risk/reward structure proportionate to current market conditions.
• Signal Lock
The optional Lock Signal feature freezes the currently displayed trade levels once toggled on, preventing them from being overwritten by a subsequent crossover. This is useful for traders who want to manually track a single active setup on the chart without the lines and labels shifting each time a new signal condition is technically met.
🎨 Visual Guide
Fast MD line (default blue) — the fast-length McGinley Dynamic.
Slow MD line (default orange) — the slow-length McGinley Dynamic.
Heatmap Candles — when enabled, candle bodies and wicks are recolored based on trend bias: teal/green when the Fast MD sits above the Slow MD (bullish bias), red when below (bearish bias), independent of the raw candle color.
Entry line (dashed, blue by default) — plotted at the close of the bar prior to signal confirmation, marking the reference entry price.
Stop Loss line (solid, red by default) — the ATR-derived stop level, labeled with an "✕ SL" tag showing the exact price.
Take Profit lines (dashed, teal by default, three tiers with increasing opacity) — TP1, TP2, and TP3, each labeled with its price.
Risk fill — a shaded region between the entry line and stop-loss line, tinted in the stop-loss color, visually representing the risk portion of the trade.
Reward fill — a shaded region between the entry line and the TP3 line, tinted in the take-profit color, visually representing the potential reward span.
All trade-level lines and labels extend live to the right edge of the chart until superseded by a new signal or, if Signal Lock is active, held in place.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
A bullish signal occurs when the Fast MD confirms a crossover above the Slow MD, subject to the HTF filter and cooldown filter both being satisfied. The dashboard's Bias row will read "▲ Bull".
A bearish signal occurs on the mirrored downward crossover, with the Bias row reading "▼ Bear".
When a signal fires, use the auto-plotted Entry, SL, and TP1/TP2/TP3 lines as a starting framework for trade structure — the R:R progress bar on the dashboard shows the reward-to-risk ratio for TP1 relative to the stop distance.
The MD Gap row on the dashboard visualizes, as a percentage bar, how far apart the Fast and Slow MD lines currently are, which can help gauge trend strength or an approaching crossover.
Enabling the HTF Filter is recommended for traders who want signals to align with a broader trend context rather than trading every local crossover.
Enabling Signal Lock freezes the current trade plan on screen, useful when manually managing an active position and wanting to prevent the levels from updating on the next crossover.
⚙️ Inputs and Settings
Src / Fast N / Slow N — source price and the lookback lengths for the Fast and Slow McGinley Dynamic calculations. Shorter lengths react faster but generate more signals; longer lengths are smoother but slower to confirm.
K Const — governs how aggressively the McGinley Dynamic's adaptive denominator responds to price displacement from the prior value. Higher values slow the line's responsiveness.
HTF Filter / HTF TF — enables the higher-timeframe directional veto and sets which higher timeframe is used for that check.
Cooldown Bars — minimum number of bars required between two signals of the same direction.
Lock Signal — freezes the current trade levels in place, blocking updates from subsequent signals.
ATR Len — lookback length for the Average True Range used to size the SL and TP levels.
SL Mult / TP1 Mult / TP2 Mult / TP3 Mult — ATR multipliers that set the distance of the stop loss and each take-profit tier from the entry price.
Heatmap Candles / Trade Levels — visual toggles for the bias-colored candles and the auto-plotted trade-level lines/labels/fills.
Show Dash / Dash Pos — toggles the on-chart dashboard and sets its screen position.
Alert action fields (Long/Short/Close Long/Close Short) — customizable string values embedded into the script's JSON alert payloads, allowing the fired alerts to be mapped to specific automation or webhook actions.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The McGinley Dynamic belongs to a broader family of adaptive-smoothing techniques in technical analysis that attempt to address a structural weakness of fixed-weight moving averages: a constant smoothing factor cannot simultaneously be fast enough to track trending markets and slow enough to filter noise in ranging markets. McGinley's original design achieves adaptivity by making the effective smoothing constant a function of the ratio between current price and the prior average value raised to the fourth power — a formulation that causes the adjustment factor to grow disproportionately large when price diverges sharply from the average, automatically accelerating the line's response, and to shrink toward a baseline when price and average are close, automatically slowing the response. This self-referential feedback mechanism places the McGinley Dynamic conceptually closer to adaptive filters used in signal processing (where a filter's gain is modulated by the magnitude of recent error) than to the fixed-coefficient exponential smoothing used in a standard EMA.
The dual-length crossover structure applied here draws on the well-established moving-average-crossover framework from technical trend-following literature, where the relationship between a fast and slow-adaptive series is used as a proxy for shifting momentum regimes, conceptually related to dual-moving-average systems and change-point detection approaches that flag a regime shift once a fast-reacting series diverges from a slow-reacting baseline. The higher-timeframe confirmation layer reflects the top-down, multi-timeframe analysis principle common in technical trading methodology, where signals on a lower timeframe are treated as more reliable when they align with the prevailing direction on a higher timeframe, reducing the frequency of signals that run counter to the dominant trend. Finally, the ATR-scaled trade-level construction is grounded in volatility-normalized position and risk sizing, a standard practice in quantitative trade management where stop and target distances are expressed as a multiple of recent realized volatility (via Average True Range) rather than fixed price or percentage distances, ensuring risk parameters adapt to the current volatility regime rather than remaining static across changing market conditions.
⚠️ 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. We 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. אינדיקטור

Impulse Origin [Smart Money]A strong move only tells you it mattered once it is over. Impulse Origin waits for that moment: a run that closes in one direction for a set number of bars without a single counter-close, ending on a bar whose volume has expanded against its own average. When that run is complete, the tool walks back and marks the candle it started from — and not just any opposing candle, but one whose liquidity was taken by the candle that came after it. The result is a zone at the origin of the move, which is then tracked: the first close through it flips its role between support and resistance, and the second close through it retires it.
HOW IT WORKS
The idea behind it is that the beginning of a move is only interesting if the move turned out to be decisive, and you cannot know that while it is still running. So the measurement is deliberately backward-looking: the run is the gate, the origin is the output.
The run — over the last N bars there must be no close against the direction at all. A single lower close breaks an up-run; a single higher close breaks a down-run. This is measured on closes, not on candle bodies, so the run describes where price actually settled bar after bar.
The volume gate — the bar that completes the run must carry at least a chosen multiple of the average volume over its own baseline period. The baseline is independent of the run length, so a long run cannot inflate its own reference level.
The origin — from that bar the tool searches backwards for the first candle that closed against its own open: a down candle for an up-run, an up candle for a down-run. This is the candle price left from.
The sweep requirement — an opposing candle only qualifies as an origin if its liquidity was taken by the candle immediately after it. For a support origin, the next candle's low must trade below the origin low; for a resistance origin, the next candle's high must trade above the origin high. Search Back keeps walking further back until such a candle is found. First Only tests just the first opposing candle and draws nothing if it does not qualify. Off removes the requirement entirely and uses the opposing candle alone.
The zone — with the sweep requirement active, the zone spans the combined range of the origin candle and the candle that swept it, so the swept level sits inside the zone rather than at its edge. The zone is anchored to the origin candle and extends forward from there.
Role tracking — a zone holds a role until a bar closes beyond it. Wicks through it change nothing. On the first close beyond, the zone switches colour and swaps role: a support that is closed through becomes resistance, a resistance that is closed through becomes support. On the second close beyond, it is removed from the chart.
An uninterrupted run of higher closes therefore produces a support zone below, at the candle the run started from — and a run of lower closes produces a resistance zone above, the same way.
A run of N bars completes with no counter-close and with expanded volume on the final bar
The tool searches backwards for the opposing candle that started it, keeping only one whose low or high was taken by the candle after it
The zone is drawn from that candle, then tracked: first close through it flips the role, second close through it removes it
Original zones and flipped zones are kept in separate pools with their own capacity, so a new signal never pushes out a zone that has already flipped. Because a long run can produce several trigger bars in a row that all resolve to the same origin candle, the tool remembers the origin it last used and will not redraw the same candle.
HOW TO READ
A zone marks where a decisive move began, with the stops below or above it already taken before it left. Price returning to that area is returning to the point it departed from.
A grey zone is still in its original role. A blue zone has been closed through once and is now working the other way round — the level that was holding price up is now the level it is trading under, or the reverse.
A blue zone is on its last life by design. The next close through it, now in its flipped role, removes it rather than leaving an old level on the chart forever.
Only closes matter. A wick through a zone leaves it untouched, so a zone survives being tested and only changes when price actually settles on the other side.
It fires rarely by design. A run with no counter-close at all, ending on expanded volume, is not a common event — on most charts you will see a handful of zones rather than a wall of them. Shorten the run length or lower the volume ratio for more, raise them for fewer and more selective ones.
The shading carries no information: every zone is drawn at the same intensity, because the zone sits on the origin candle while the volume condition was measured on the bar that completed the run.
INPUTS
Streak Length — how many consecutive bars must close in one direction with no counter-close.
Volume Average Length — the baseline period the trigger bar's volume is measured against.
Min Volume Ratio — how many times the average that volume must be. Higher gives fewer, more selective zones.
Max Origin Lookback — how far back the search for the origin candle may run.
Liquidity Sweep — Off, Search Back, or First Only, as described above.
Original Support / Original Resistance — draw each side, with its own capacity for how many grey zones are kept.
Flipped Support Max / Flipped Resistance Max — capacity for zones that have already flipped, held separately from the originals.
ATR Length / Min Zone Height (%ATR) — if a zone is thinner than this share of ATR, it is expanded symmetrically around its midpoint. At 0 the zone keeps the exact range of the candles it came from.
Colours / Transparency Offset — the original and flipped colours, and a single offset that shifts the tone of all zones together.
NOTES & LIMITS
A zone records where a decisive move began and whether that level has since been closed through. What you make of it at the next touch is yours, and that is exactly as it should be. The volume gate is part of the mechanism, so the tool needs a volume feed to produce anything at all — on a symbol that publishes no volume, no zones are drawn, and on forex and CFDs the volume is tick volume (the number of price updates, not contracts traded), which makes the gate read more loosely there. The zone is anchored to the origin candle in the past but is published on the close of the bar that completes the run, so on a chart you are scrolling back through, the zone was not on the screen for the bars between the two. Its price boundaries are set when it is created and never move afterwards: creation, the role flip and the removal all happen on closed bars, and the colour change is a change of state, not of level. The zone is as tall as the candles it came from — with the sweep requirement active that is the origin candle and the candle that swept it combined — so on volatile instruments it can be a wide band; Min Zone Height only ever expands a zone, never shrinks one. Breaks are judged on closes alone, so a wick beyond a zone leaves its role unchanged. No profit, win-rate, or guarantee claim. Open-source under CC BY-NC-SA 4.0 — non-commercial use, attribution to ElisTools required for reuse or derivatives. TradingView (Pine v6) only. אינדיקטור

Pressure Transfer ZoneMany reversal indicators tell you when a market looks stretched. Pressure Transfer Zone asks a harder question: when price returns to the extreme, can the side that drove it there still make meaningful progress?
This indicator was built to identify a specific form of failed continuation. It waits for a strong directional drive, a real retreat, and then a second attempt at the extreme. If that second attempt makes little progress and closes with clear rejection, the script freezes the structure into a decision zone. From there, price must prove that control has actually transferred before a signal is confirmed.
The goal is not to call every top or bottom. The goal is to isolate the moments when a mature move may be losing control, show that process directly on the chart, and give the trader clear confirmation and invalidation levels.
WHO IT IS FOR
Pressure Transfer Zone is designed for intraday, swing, and position traders who use price action and want a more disciplined way to evaluate exhaustion, failed breakouts, failed continuation, and early reversals.
It is designed for liquid stocks, futures, forex, and cryptocurrency on standard candlestick charts. The engine does not run on Heikin Ashi, Renko, or other synthetic chart types because their prices can distort the structure being measured.
THE IDEA BEHIND IT
A strong trend does not end simply because price is overbought, oversold, or extended. Strong moves can remain extended for a long time. What matters is whether the original side can still produce results when it gets another opportunity.
The pattern develops in five stages:
1. A mature directional drive establishes real displacement.
2. Price makes a meaningful retreat away from the extreme.
3. The original side returns for a second attempt.
4. That second attempt produces limited progress and a weaker close.
5. Price confirms the transfer with a qualified break of the selected boundary or, in Sniper mode, with that break followed by a successful first retest.
This is an effort-versus-result test expressed entirely through price. The script does not claim to measure order flow, bid/ask delta, institutional activity, hidden liquidity, or volume pressure.
HOW THE MATHEMATICS WORKS
The first filter is directional efficiency:
Directional efficiency = net directional change / total absolute bar-to-bar movement
A clean drive that travels mostly in one direction receives a higher score. A noisy move that covers a lot of distance but makes little net progress receives a lower score.
The selected Source is used for net displacement and path efficiency. The zone itself is always built from confirmed OHLC prices.
The drive must also meet volatility, range, closing-location, and local-extreme requirements. Under the default pace profiles, it must:
* Produce at least 1.25 ATR of net directional displacement.
* Span at least 2.00 to 2.50 ATR, depending on the selected pace.
* Meet a directional-efficiency threshold of 0.40 to 0.48.
* Close in the outer 28% of the drive range.
* Create a fresh local extreme.
ATR is measured with a 14-bar lookback and frozen when the sequence begins. This prevents later volatility changes from moving the event’s established thresholds.
The retreat must travel at least the greater of 0.55 ATR or 18% of the original drive range, and the closing price must confirm that full retreat distance.
When price returns to the extreme, the second attempt must show deterioration. By default:
* Price must return to within the greater of 0.30 ATR or 8% of the original drive range from the first extreme.
* New progress beyond the first extreme cannot exceed 0.20 ATR.
* The second push cannot exceed 72% of the original drive range.
* The close must migrate away from the first attempt by at least 0.10 ATR.
* Rejection must equal at least the greater of 0.25 ATR or 25% of the developing zone.
* The rejection bar must close within the directional outer 45% of its range.
* The completed zone cannot exceed 60% of the original drive range.
Together, these filters are intended to remove many one-candle reactions, shallow pauses, and weak two-test formations. The model wants to see a legitimate first drive, real separation between attempts, and measurable deterioration on the return.
THE ZONE
Once the second attempt qualifies, the structure is armed and its levels are frozen:
* Outer edge: the most extreme price reached by the two attempts.
* Inner edge: the counter-extreme formed between the two attempts.
* Midpoint: the halfway point of the zone.
* Invalidation: 0.15 ATR beyond the outer edge in the direction of the original move.
For a bullish setup, price must transfer upward after a mature downward drive. For a bearish setup, price must transfer downward after a mature upward drive.
Invalidation requires a confirmed close beyond the buffered outer edge. The invalidation level is structural information, not an automatic stop-loss recommendation.
ENTRY TIMING
Early
Confirms on a qualified close through the zone midpoint. This is the fastest mode and can trigger on the same confirmed bar that arms the zone. It offers earlier recognition with a greater risk of false starts.
Balanced
Confirms on a later qualified close beyond the structural inner edge. Balanced is the default middle ground between earlier recognition and additional structural confirmation.
Sniper
Requires a qualified break of the inner edge followed by the first later retest of that level. The retest must remain shallow and close back in the transfer direction. The first retest decides the setup; a failed first retest cannot become a signal later.
The breakout candle must move in the transfer direction, span at least 0.35 ATR, have a real body covering at least 45% of its range, close within the directional outer 32% of the candle, and finish no more than 0.45 ATR beyond the selected boundary. The final limit is an anti-chase filter.
A valid Sniper retest must stay within 15% of the frozen zone depth, close at least 0.05 ATR back beyond the inner edge, have a directional body covering at least 35% of the candle, and close within the directional outer 40% of its range.
HOW TO READ THE CHART
With the default color palette:
* Amber: the pattern is still developing. It is information, not an entry signal.
* Violet: the structure is complete, armed, and waiting for confirmation.
* Cyan: the action area between the midpoint and inner edge.
* Green: a bullish pressure transfer has been confirmed.
* Red: a bearish pressure transfer has been confirmed.
* Faint gray: an armed setup failed, expired, or was invalidated.
The right-edge label shows the current phase and the next required action. Once the structure is armed, it also displays the confirmation boundary and invalidation price. A diamond appears only when the selected timing mode produces a confirmed trigger.
When Keep Recent Resolved Zones is enabled, the script retains a limited number of recent successful and failed zones. The default is eight, adjustable from one to twelve, so failures remain visible without overwhelming the chart.
PRACTICAL USE
1. Treat an amber zone as a developing idea, not permission to trade.
2. When the zone turns violet, note its direction, confirmation boundary, and invalidation price.
3. Wait for the exact requirement of Early, Balanced, or Sniper mode.
4. Use the broader trend, nearby support and resistance, liquidity, session conditions, and scheduled news as separate context.
5. Apply your own position sizing, stop placement, targets, and trade-management rules.
ADAPTIVE PACE
Auto mode adjusts the engine according to the chart timeframe:
* Fast: 15-minute charts and below.
* Swing: above 15 minutes through 4 hours.
* Position: above 4 hours.
Fast, Swing, and Position can also be selected manually. The selected pace changes the drive and local-extreme lookbacks, minimum drive size, efficiency threshold, formation lifetime, armed lifetime, and Sniper retest window. It does not change the meaning of the pattern.
ALERTS
The indicator includes five alerts:
* Long Zone Armed
* Short Zone Armed
* Long Pressure Transfer
* Short Pressure Transfer
* Pressure Transfer Invalidated
Create alerts using Once Per Bar Close.
Trigger alerts and chart diamonds use the same confirmed-bar event. If an Early setup resolves on the same bar it arms, the temporary armed alert is suppressed so users do not receive a stale or redundant notification.
CONFIRMED-BAR DESIGN
Actionable signals are confirmed only after the chart bar closes. They are not backdated and do not use future data, pivot backpainting, negative offsets, higher-timeframe requests, or lookahead logic.
Amber developing zones are intentionally provisional and can change or disappear because the pattern is not complete. Once a zone turns violet, its structural prices and invalidation level are frozen for that event.
LIMITATIONS
Pressure Transfer Zone identifies structural-exhaustion candidates, not guaranteed reversals. It tracks one active sequence at a time and can miss fast V-shaped turns that never form two separate attempts.
Strong trends can repeatedly invalidate countertrend setups. Thin markets, price gaps, news shocks, and irregular sessions can also reduce the usefulness of ATR-based thresholds.
This is an indicator, not a strategy. It does not place orders, calculate position size, set profit targets, or claim a win rate. Its job is narrower: determine whether the original directional side returned to the extreme, failed to produce enough additional progress, and then met the model’s confirmation rule at a clearly defined price.
אינדיקטור

Engulfing Overlap Zone [8 Types]Engulfing Overlap Zone
This script looks for the moment control changes hands.
An engulfing pattern forms and commits one side of the market. Later that pattern breaks. On or
around the same candle, an engulfing pattern in the OPPOSITE direction confirms. When the two
structures occupy the same price area, that shared area is where one side was trapped and the
other took over. This script finds those moments and draws only that area.
Nothing else is plotted. Ordinary engulfing patterns, and engulfing patterns that simply failed,
are used internally but never drawn, because on their own they are not what this tool is about.
WHAT MAKES THIS DIFFERENT
1. It reports a transfer of control, not a pattern.
Most pattern tools mark every occurrence they find. This one requires a three step sequence to
complete before anything appears: a pattern forms, that pattern breaks, and an opposing pattern
confirms in the same price area. Any of the three missing means nothing is drawn.
2. The zone is measured, not just marked.
Two zones can touch by a hair or sit almost perfectly on top of each other. Those are very
different situations, so the script measures how much of the zone is actually shared and states
it as a percentage. You can then hide everything below a threshold you choose.
3. Everything is sorted into eight types.
The zone carries the identity of the engulfing pattern that took over, including whether that
pattern grabbed liquidity before it confirmed. Each of the eight can be shown or hidden
independently and has its own alert.
4. The hard part is the pairing.
When a pattern breaks there is often more than one opposing pattern nearby that could be its
counterpart. Picking the right one, and rejecting the ones that only look related, is what this
script is really about. The rule used is simple to state and is described below, but it is the
piece that decides whether the output is meaningful or noise.
THE PATTERNS INVOLVED
A candle is Green when close is greater than open, Red when close is less than open, and a Doji
when close equals open. A Doji is neither. Only fully closed candles are read, and the running
candle is never used.
Regular engulfing, two candles
R Buy EG: Red Base candle, and the very next candle is Green and closes above the Base High.
R Sell EG: Green Base candle, and the very next candle is Red and closes below the Base Low.
E-Regular engulfing, three or more candles
ER Buy EG: Red Base candle followed by a run of consecutive Green candles. The run must contain
at least 2 Green candles, and confirmation happens when one of them closes above the Base High.
A single Red candle before confirmation cancels the run. Doji candles are skipped: they neither
count toward the run nor break it.
ER Sell EG: the mirror image, with a Green Base and a run of at least 2 Red candles, one of
which closes below the Base Low.
If the very first candle after the Base already closes through it, that is by definition a
Regular pattern, so E-Regular requires the second candle or later to break the level. One Base
candle can never produce both.
Type 1, the same four patterns plus a liquidity sweep
Type 1 adds one requirement: before the close breaks through one side of the Base candle, price
must have traded through the opposite side.
T1 R Buy EG: the Confirm candle's Low reaches at or below the Base Low.
T1 R Sell EG: the Confirm candle's High reaches at or above the Base High.
T1 ER Buy EG: at least one Green candle of the run reaches at or below the Base Low.
T1 ER Sell EG: at least one Red candle of the run reaches at or above the Base High.
Any candle of the run can satisfy the sweep, including the Confirm candle itself. The sweep is
always measured against the Base candle, never against another candle in the run.
HOW AN OVERLAP ZONE IS BUILT
Step 1. A pattern confirms and is tracked from then on.
Step 2. The pattern breaks. A Buy Engulfing breaks when a Red candle CLOSES below its Base Low.
A Sell Engulfing breaks when a Green candle CLOSES above its Base High. A wick through the level
is not enough; the close has to settle beyond it.
Step 3. The script looks for an engulfing pattern in the opposite direction whose confirmation
lands on the breaking candle, or as close before it as possible, and whose zone shares both time
and price with the broken one. Where several candidates exist, the one closest to the break is
taken, because that is the one that actually represents the handover.
When all three steps line up, one zone is drawn: the price range of the Base candle of the
pattern that took over, running from that Base candle to its Confirm candle.
The eight resulting types are R Buy EG Overlap, R Sell EG Overlap, ER Buy EG Overlap, ER Sell EG
Overlap and the four Type 1 versions of the same. The type always describes the pattern that
took over, because that is the zone on your chart.
OVERLAP STRENGTH
Strength is the share of the drawn zone that sits inside the price range of the broken zone.
100 percent means the whole zone is shared, which is the tightest possible confluence. A small
number means the two structures barely reach each other. The figure is appended to each label,
and Minimum Overlap Strength lets you discard anything below a level you set. That threshold
applies to the chart, the summary table and the alerts together, so what you see and what you
are notified about never disagree.
READING THE CHART
Each zone is filled in two tones, and the split is the whole point:
- The part that shares price with the broken zone is drawn in the direction colour, green for a
Buy Overlap and red for a Sell Overlap, with a solid border. This is the confluence.
- Whatever is left over is drawn in neutral yellow with no border.
So the colour split you see is the strength figure, shown rather than stated. A zone that is
almost entirely green is strong. A zone with a thin green sliver and a large yellow body is
weak, and the percentage will say so.
Each zone carries a label with its type and strength, placed below a Buy Overlap and above a
Sell Overlap so it points at its own zone.
A summary table in the corner counts what was found in the current scan window, split by Buy and
Sell. Types you have switched off are still counted, so the table always reflects what the market
printed rather than what is currently on screen. Zones rejected by the strength threshold are not
counted, because that threshold decides what qualifies as a zone at all.
SETTINGS
Scan
- Scan Length: how many closed candles are scanned backwards. The running candle is always
excluded.
- Minimum Overlap Strength: the percentage a zone must reach to qualify.
Pattern Types
- An individual switch for each of the eight types.
Zone Style
- Separate colours for the shared area and the remaining area, on both the Buy and Sell side.
Labels
- Show Labels, Show Strength in Label, Label Size, and Label Distance from Zone as a percentage
of the zone height. Increase the distance on noisy charts so labels clear the candles.
Summary Table
- Show, position and size of the corner table.
ALERTS
Eight alert conditions are available, one per type:
R Buy EG Overlap, R Sell EG Overlap, T1 R Buy EG Overlap, T1 R Sell EG Overlap, ER Buy EG
Overlap, ER Sell EG Overlap, T1 ER Buy EG Overlap, T1 ER Sell EG Overlap.
An alert fires on the candle that completes the handover. Each message carries the type, the
symbol, the timeframe and the closing price. The same messages are also sent through the alert
function, so the "Any alert() function call" alert type can deliver every zone through a single
alert.
All alerts are evaluated only after a candle has fully closed.
If you read the source, note that the chart and the alerts are two separate paths. The chart is
rebuilt by scanning history backwards on the last bar, while the alerts keep a running list of
confirmed patterns and test each closed candle against it. Two paths are used because rescanning
the whole history on every bar would be far too slow, and a running list cannot redraw the past.
Both apply exactly the same rules and the same strength threshold, so they always agree.
REPAINTING
This script does not repaint.
- Detection reads confirmed candles only. The scan starts one bar behind the latest bar, so the
candle that is still forming is never part of any calculation.
- Every alert signal is written so that it can only become true once a candle has finished. Price
moving inside an open candle cannot make a signal appear and then disappear.
- Zones are rebuilt on the last bar from confirmed history. A drawn zone does not move, change
colour, change type or change its strength figure afterwards. It only leaves the chart when it
falls outside the Scan Length window.
When you create an alert, TradingView may show a caution banner saying the indicator can repaint.
That banner appears automatically for any script that uses the built in bar state variables, no
matter how they are used, because the platform cannot check the intent behind them. This script
uses them for the opposite purpose: one of them is what restricts every signal to bar close, and
the other is what redraws the zones efficiently on the final bar. Choosing "Once Per Bar Close"
when creating the alert is still recommended.
NOTES AND LIMITATIONS
- These zones are rare by design. Three separate conditions have to line up, so long stretches
with nothing on the chart are normal and expected. If you want to see more, lower the strength
threshold before raising the scan length.
- Scan Length is capped lower than in a plain pattern scanner. Every candidate pattern has to be
followed forward for a break and then matched against opposing patterns, which is far heavier
than simply detecting a pattern. The cap keeps the script responsive on slower machines.
- A zone whose Base candle falls outside the scan window will not appear even if the handover
itself was recent. If zones seem to be missing, raise the Scan Length before changing anything
else.
- For alerts the number of patterns tracked at once is capped and the oldest are released first.
In practice patterns break or age out long before this matters.
- Detection is purely structural. It reports where control changed hands and how much the two
structures shared. It does not rank zones beyond that, measure what happened afterwards, or
produce entries, targets or stops.
- Doji candles are treated as neutral by design. They never act as a Base candle and never break
an E-Regular run. On symbols and timeframes that print many Doji candles this makes runs
slightly more tolerant than a strict same colour rule would be.
HOW TO USE IT
A zone marks an area where one side committed, was proven wrong, and was immediately replaced by
the other side. Traders commonly watch these areas for reactions when price returns to them,
particularly the shared portion, since that is the part both structures agreed on.
The strength figure is there to let you be selective. Starting at zero shows everything so you
can see how the tool behaves on your symbol and timeframe, and raising it narrows the output to
the tighter confluences.
Type 1 zones are worth separating out. There the pattern that took over first grabbed liquidity
and only then confirmed, which is a different sequence from a clean takeover.
These are reference areas, not entry signals. Use them alongside higher timeframe structure, your
own support and resistance mapping, and proper risk management.
DISCLAIMER
This indicator is a pattern detection tool. It is not financial advice and it makes no claim
about profitability. Trading involves risk. Always apply your own analysis and risk management. אינדיקטור

AlgoStorm Institutional Session Structure (ISS)AlgoStorm Institutional Session Structure (ISS)
A complete intraday auction-structure engine that maps global session boxes (Asia, London, New York), the Globex overnight range, the Initial Balance with day-type extension targets, the Opening Range, and an automated overnight-inventory classification of the RTH open — directly onto your intraday charts.
The AlgoStorm Institutional Session Structure (ISS) indicator is designed for index futures and intraday traders who read the market through the auction lens: where overnight inventory built, whether the open printed inside or outside that inventory, whether the Initial Balance is containing rotation or the day is extending toward trend, and which session built the reference high or low everyone now trades against. It answers those questions structurally instead of drawing decorative boxes.
TIMEFRAME REQUIREMENT — READ BEFORE LOADING
This is an intraday tool. It refuses to run on 1D charts and above, and the chart timeframe should stay at or below the Opening Range length (the Opening Range and Initial Balance locks resolve at bar granularity). All session windows are DST-aware through a configurable IANA timezone, defaulting to New York time.
Technical Architecture: Fixed-Pool Session Engine
Session-structure indicators commonly rebuild their drawings on every bar, bloating chart performance and churning objects. ISS uses a different execution model:
Per-Session Box Engines: Each session runs its own tracking engine with a private box history. The active box updates its high/low boundary in place as the session develops; boxes older than the history cap (default five days, configurable to twenty) are evicted automatically.
Time-Window Lock Pipeline: The overnight range, Initial Balance, and Opening Range each accumulate in staging registers, then lock permanently the moment their window closes — the overnight at the RTH open, the IB and OR when their configurable minute-windows complete. Locked levels cannot move for the rest of the day.
Extension Mathematics: Extension targets use the classic day-type formula, extension(m) = IB low + m × IB range above the market and IB high − m × IB range below it, with 1.5× and 2.0× defaults. A 1.5× tag means price has traveled 150% of the IB range from the opposite IB boundary.
Zero-Churn Drawing Pool: Every level line and label is created exactly once at initialization and repositioned in place afterward. No per-bar create/delete cycles, no garbage-collection artifacts.
Label Anti-Overlap Engine: Right-edge labels (ON, IB, extensions, OR) are sorted by price each bar and automatically spaced apart whenever two or more sit within a configurable minimum gap (default 0.05% of price). Level lines always stay locked to the true price — only the label text position shifts to stay readable. On by default; fully optional.
Confirmed-Bar Alert Gate: Every alert condition is gated on confirmed bar closes inside RTH. Nothing repaints, and no alert can fire intra-bar and then vanish.
Features & Functionality
Session Boxes: Asia, London, and New York boxes with running high/low, dotted session-open line, and session label. Defaults cover the full sessions (18:00–03:00, 03:00–09:30, 09:30–16:00 New York time); killzone-style alternatives are documented in the input tooltips.
Overnight Range Lock: Globex high/low accumulated through the overnight window and held through the trading day — the reference frame for gap and inventory reads.
Initial Balance + Extension Targets: First 60 minutes of RTH (configurable 15–120) with configurable extension multiples for day-type classification: containment inside the IB, 1.5× tests, or 2× trend extension.
Opening Range: First 15 minutes of RTH (configurable 1–60) — the breakout reference for the open drive.
Overnight Inventory Read: At the RTH open, the engine classifies the print: above the ON high, upper half of the ON range, lower half, or below the ON low — the gap-risk context before the first rotation completes.
Session State Table: Active session, ON high/low, open-vs-ON classification, IB range (shows "forming…" while building, then the locked H/L) with a separate breakout status (inside IB vs. breakout ▲/▼), OR range and status, and which IB extensions have been tested — the whole auction state in one glance.
Alert Suite: Eight conditions — Opening Range breakout up/down, Initial Balance breakout up/down, overnight high/low break, and upper/lower reach of the second IB extension multiple (default 2.0×, trend-day behavior). The first multiple (default 1.5×) is tracked live in the state table but does not carry its own alert.
Honest limitations: ISS is structural context, not a signal system — no entries, no exits, no arrows . Intraday levels draw for the current day only by design; historical context comes from the session boxes. If you also run our Institutional Key Levels (IKL) script, keep IKL's Initial Balance, Opening Range, and Overnight toggles off so nothing double-plots — ISS is the time-anchored view, IKL is the right-edge level strip.
Open-source under CC BY-NC-SA 4.0. Educational tool — not financial advice. אינדיקטור

Liquidity Hunter | SMC System - Full SuiteA full-sequence Smart Money Concepts strategy that trades the way institutional order flow moves — liquidity sweep, displacement, structure break, and a confirmed retest.
This strategy chains them into the complete institutional sequence: a real liquidity pool gets taken, an impulsive displacement candle breaks structure, a correctly-identified order block gets frozen at that exact moment, and only a genuine retest with confirmation triggers the entry.
Features
The Full SMC Sequence
HTF Bias → Liquidity Pool Taken → Sweep → Displacement Candle → BOS/CHoCH → FVG → Return to OB → Confirmation → Entry — every stage gated on the one before it, so entries reflect genuine confluence rather than a single coincidental signal.
Real Liquidity Pool Tracking
Tracks multiple historical swing highs/lows simultaneously (not just the most recent one), so a sweep can trigger off any untaken pool — mirroring how liquidity actually accumulates at equal highs/lows and older structure.
Displacement Filter
Structure breaks only count as valid if the breaking candle's body exceeds a configurable ATR multiple — filters out slow grinds through a level that aren't genuine institutional impulses.
Frozen-Zone Retest Logic
Once an OB forms, its boundaries are locked/frozen at that moment. Entries reference this frozen snapshot, not a live, potentially-mutated box — with an overlap-based touch test (not a strict "price must sit inside the zone" test) for realistic retest detection.
Configurable Confirmation Filters
After a retest touch, choose from: no confirmation, rejection candle, engulfing candle, close back through the OB, or a break of the retest candle's high/low — tune entry strictness to your risk tolerance.
Higher Timeframe Bias
Optional HTF trend filter ensures you're only taking setups aligned with the dominant trend on a higher timeframe.
FVG Confluence Option
Optionally require that the structure break actually creates a fair value gap — an added imbalance-based confluence layer before a setup is even considered.
Liquidity-Target Take Profit
Choose a fixed R-multiple target, or let the strategy aim at the nearest untaken liquidity pool in the trade's direction — closer to how institutional targets are actually theorized to work.
Risk-Based Position Sizing
Size trades by % risk per trade (scaled to actual stop distance) or flat % of equity, with a hard position-size cap.
Realistic Cost Modeling
Commission and slippage built into the backtest engine from the start.
Notes
Start with requireOBRetest = true and confirmationMode = "None" to validate the base sequence produces trades before layering on stricter confirmation modes.
HTF Bias and FVG Confluence are off by default — each meaningfully reduces trade frequency in exchange for higher-conviction setups; enable incrementally and check trade count after each change.
Works on any intraday or swing timeframe — the sequence logic (sweep → displacement → BOS → retest) is timeframe-agnostic, though displacement thresholds and pool aging windows may need retuning per timeframe.
"Nearest Liquidity Pool" take-profit mode requires active, untaken pools in the trade's direction to function — falls back to the R-multiple target if none exist.
אסטרטגייה

StonkGame MTF MA Trend TableOverview
StonkGame MTF MAs & Trend Table is designed to provide objective market context across multiple trading horizons, regardless of the timeframe you're trading.
Rather than trying to predict future price, it measures where price sits relative to trend, whether that trend is strengthening or weakening, how well different horizons agree with one another, and whether today's move is typical or historically unusual.
The goal is to keep the bigger picture in view, whether you're trading a 1-minute chart or managing a long-term position.
How It Works
Each horizon (Hourly, Daily, Weekly, Monthly, Quarterly, Half-Year, Yearly and Multi-Year) can use its own timeframe and moving average length. Every horizon evaluates:
Price relative to its moving average
Trend direction and momentum
Historical Z-score
Historical percentile
Adaptive normalization
Those measurements are combined into an objective view of trend quality, momentum and cross-horizon alignment.
Adaptive Normalization
Markets don't all behave the same. A 2% move in SPY doesn't carry the same meaning as a 2% move in Bitcoin, crude oil or gold.
Instead of comparing raw price movement, each horizon compares today's reading against that market's own history using up to 1,000 valid observations. If less history exists, the script automatically uses the largest reliable sample available. If there isn't enough data to produce meaningful statistics, it displays N/A rather than potentially misleading values.
Reading the Dashboard
The dashboard is designed to answer four questions:
Trend: Is the market structurally bullish, bearish or mixed?
Momentum: Is that trend strengthening or weakening?
Context: How unusual is the current move relative to its own history?
Alignment: Are different trading horizons telling the same story?
The Setup Score summarizes overall trend quality, consistency and market structure. Higher scores generally reflect cleaner, more aligned conditions, while lower scores suggest greater conflict or uncertainty.
Notes
This indicator is descriptive, not predictive. Strong trends can stay extended, and statistically extreme readings are not automatic buy or sell signals. They are intended to provide context alongside price action, risk management and your own trading process.
Changing the moving average type, timeframe, horizon lengths or normalization settings changes how the market is evaluated. There is no universally correct configuration—choose settings that match your trading horizon and objectives. אינדיקטור

High Volume Breakout Targets [AlgoAlpha]🟠 OVERVIEW
High Volume Breakout Targets identifies price zones formed by related pivot highs or pivot lows. These zones represent areas where price previously reacted around overlapping wick and candle-body levels.
The indicator then checks whether price closes through a zone with enough of the breakout candle extending beyond its boundary. Qualified breakouts can display directional labels, an entry level, and three targets based on the height of the broken zone.
Normalized volume candles are also shown inside recent active zones. This helps traders compare current volume with its recent average while watching price interact with a potential support or resistance area.
🟠 CONCEPTS
Pivot High Zone — A resistance area formed when a confirmed pivot-high wick falls within the body of a previous pivot-high candle. The zone spans the associated wick highs and body-top levels.
Pivot Low Zone — A support area formed when a confirmed pivot-low wick falls within the body of a previous pivot-low candle. The zone spans the associated wick lows and body-bottom levels.
Pivot Confirmation — A pivot requires the selected number of bars on both sides of the turning point. A higher Pivot Length identifies broader structures but confirms them later and less often.
Zone Maximum Age — The maximum number of bars during which two pivots can be associated and an active zone can continue extending. An expired zone remains visible but no longer produces a breakout.
Qualified Breakout — A breakout requires a confirmed close above a bearish zone or below a bullish zone. It must also place the selected percentage of the candle’s full range beyond the broken boundary.
Normalized Volume — Current volume is divided by its 20-bar average. The resulting ratio controls the size and transparency of the volume candle displayed inside an active zone.
Breakout Targets — The breakout close becomes the entry level. The broken zone’s height is divided into three equal steps to calculate TP1, TP2, and TP3 in the breakout direction.
Target Expiry — Each target setup remains active for a selected number of bars. When TP1 or TP2 is reached, the remaining unhit targets receive a new expiry period from the hit candle.
🟠 FEATURES
Pivot Zones — Displays bullish support zones and bearish resistance zones created from associated pivot structures.
Breakout Labels — Marks bullish and bearish closes that satisfy the selected outside-range requirement.
Three-Level Targets — Displays the breakout entry, a target area, and TP1, TP2, and TP3 levels derived from the broken zone’s height.
Zone Volume Display — Shows normalized volume candles inside the four most recently active zones.
Target Completion Marker — Prints a checkmark on the first candle whose wick reaches TP3.
🟠 HOW TO USE
Adjust Pivot Length to match the structure you trade. Use lower values for smaller and more frequent zones, or higher values for broader and less frequent zones.
Treat bullish zones as potential support and bearish zones as potential resistance while they continue extending.
Watch how price behaves inside a zone. Use the normalized volume candles to compare participation with the recent volume average.
Wait for a breakout label rather than treating every wick through a zone as a breakout. A label appears only after the candle closes beyond the boundary and meets the Minimum Breakout Range setting.
Use a higher Minimum Breakout Range to require more of the breakout candle to trade beyond the zone. Use a lower value to accept less decisive moves.
After a qualified breakout, use the entry line as the breakout reference and TP1, TP2, and TP3 as zone-based projection levels.
Check whether targets are reached before their expiry. TP1 and TP2 extend the active period for the remaining targets when reached.
Combine the zones and breakout signals with market structure, trend direction, liquidity, and risk controls. The indicator does not define a stop-loss or position size.
🟠 CONCLUSION
High Volume Breakout Targets combines pivot-based support and resistance zones, normalized volume context, qualified breakout signals, and zone-height target projections. It gives traders a structured way to assess price interaction with established zones and track the progression of confirmed breakouts. אינדיקטור

Sigmoid Alpha Bands | NAL1. Overview
Sigmoid Alpha Bands | NAL is an adaptive trend and volatility framework built around a sigmoid-weighted EMA baseline and dynamically adjusted volatility bands.
Instead of smoothing price with a fixed alpha, the indicator modifies its responsiveness using a selected market feed. Momentum, volatility, volume, or price disparity can control how quickly the baseline adapts to changing conditions.
The surrounding bands can also respond asymmetrically to bullish and bearish return shocks. This allows the upper and lower boundaries to develop independently rather than remaining equally spaced around the baseline.
2. Calculation
The indicator begins by selecting the market variable used to control the baseline’s adaptive smoothing weight.
Momentum measures changes in RSI, volatility measures changes in ATR, volume measures changes in smoothed volume, and disparity measures changes in price relative to its EMA.
sigmoidFeed = switch sigFeed
"Momentum" => ta.change(ta.rsi(src, modLen), changeL)
"Volatility" => ta.change(ta.atr(modLen), changeL)
"Volume" => ta.change(ta.ema(volume, modLen), changeL)
"Disparity" => ta.change(src / ta.ema(src, modLen), changeL)
The selected feed is passed through a sigmoid function, converting it into a bounded adaptive weight.
That weight modifies the standard EMA alpha. When the sigmoid weight increases, the baseline can respond more quickly. When it decreases, the baseline becomes more stable.
sigmoidWeight = sigmoid_function(sigmoidFeed)
baseAlpha = 2.0 / (emaLen + 1.0)
adaptiveAlpha = f_clamp(baseAlpha * (0.5 + sigmoidWeight), 0.01, 1.0)
The final adaptive baseline is calculated recursively using the changing alpha.
sigmoid_ema = f_sigmoid_ema(src, sigmoidFeed, sigLen)
The indicator then calculates its base volatility using one of four methods: standard deviation, ATR, mean absolute deviation, or median absolute deviation.
volatilityRaw = switch volFeed
"SD" => ta.stdev(src, volLen)
"ATR" => ta.atr(volLen)
"MeanAD" => ta.dev(src, volLen)
"MedianAD" => f_median_ad(src, volLen)
This raw volatility value is also processed through a sigmoid-adaptive smoothing layer. The result becomes the symmetric volatility foundation used by the bands.
volatilityFeed = ta.change(volatilityRaw / nz(ta.ema(volatilityRaw, volLen), volatilityRaw), changeL)
volatility = f_sigmoid_ema(volatilityRaw, volatilityFeed, volLen)
When asymmetric bands are enabled, positive and negative log-return shocks are separated into bullish and bearish variance components.
bullShock = math.pow(math.max(ret, 0.0), 2.0)
bearShock = math.pow(math.max(-ret, 0.0), 2.0)
totalShock = bullShock + bearShock
Each shock component is adaptively smoothed and compared with total variance. This produces separate upper and lower volatility multipliers.
The multipliers are constrained around their longer-term average so the bands can adapt without becoming unstable.
upperVol = math.max(nz(symmetricVol, syminfo.mintick) * upperMultAdj, syminfo.mintick)
lowerVol = math.max(nz(symmetricVol, syminfo.mintick) * lowerMultAdj, syminfo.mintick)
The final bands are positioned around the sigmoid-adaptive baseline.
upperBand = sigmoid_ema + finalUpper * volMul
lowerBand = sigmoid_ema - finalLower * volMul
A bullish state is established when price closes above the upper band. A bearish state is established when price closes below the lower band. While price remains between the boundaries, the existing state is preserved.
if close > upperBand
NAL := 1
if close < lowerBand
NAL := -1
3. Key Features
Sigmoid-weighted adaptive EMA baseline.
Selectable momentum, volatility, volume, or disparity adaptation feed.
Multiple volatility calculation methods.
Optional asymmetric bullish and bearish volatility bands.
Independent modeling of positive and negative return shocks.
Controlled asymmetry through long-term multiplier normalization.
State-based candle coloring, layered volatility hulls, glow effects, and directional fills.
4. Use
Sigmoid Alpha Bands is designed to identify when price expands beyond an adaptively smoothed volatility structure.
A close above the upper boundary reflects bullish expansion beyond the current baseline and volatility regime. A close below the lower boundary reflects bearish expansion beneath that structure.
The asymmetric mode allows the indicator to recognize that bullish and bearish volatility do not always develop with equal intensity. As market pressure changes, each side of the channel can adjust independently while remaining anchored to the same adaptive baseline.
This indicator is designed as a specialized component within a complete strategy architecture. Its role is to isolate the interaction between adaptive trend, changing volatility, and directional return pressure. Its full value emerges through the way this information is integrated into a broader decision framework.
אינדיקטור

Sigmoid RSI | NAL1. Overview
Sigmoid RSI | NAL is an adaptive momentum-regime indicator built from a transformed RSI engine, sigmoid weighting, and two independently adaptive smoothing layers.
Instead of using raw RSI values directly, the indicator recenters RSI around its midpoint and passes the result through a sigmoid transformation. This reshapes the oscillator into a smoother 0–100 momentum curve while preserving directional pressure around the central regime.
The final signal is refined through volatility-sensitive smoothing and an optional momentum-driven signal line, creating a more adaptive structure than a standard RSI with fixed smoothing.
2. Calculation
The indicator starts by calculating RSI from the selected source and centering it around 50. This converts the standard RSI range into a positive and negative momentum input around the neutral midpoint.
rsiRaw = ta.rsi(src, rsiLen)
rsiNorm = rsiRaw - 50.0
The centered RSI is then passed through a sigmoid function. The sigmoid transformation compresses extreme values and smoothly maps the momentum input back into a 0–100 range.
sigmoidRSIRaw = 100.0 * sigmoid_function(rsiNorm)
The indicator then builds two separate adaptive feeds.
The volatility feed measures changes in ATR, while the momentum feed measures changes in a separate RSI calculation.
momentumFeed = ta.change(ta.rsi(src, modLen), changeL)
volatilityFeed = ta.change(ta.atr(modLen), changeL)
These feeds are used inside a sigmoid-weighted EMA. The sigmoid output adjusts the smoothing alpha dynamically, allowing the moving average to respond differently as the input environment changes.
sigmoidWeight = sigmoid_function(sigmoidFeed)
adaptiveAlpha = f_clamp(baseAlpha * (0.5 + sigmoidWeight), 0.01, 1.0)
The main Sigmoid RSI is smoothed using the volatility feed. This makes its response sensitive to changes in the volatility environment.
sigmoidRSI = f_sigmoid_ema(sigmoidRSIRaw, volatilityFeed, rsiSmoothLen)
A second adaptive smoothing layer creates the signal line using the momentum feed. This gives the indicator an internal directional reference that reacts to changes in momentum rather than using a fixed moving average alone.
sigmoidRSISignal = f_sigmoid_ema(sigmoidRSI, momentumFeed, rsiSignalLen)
The bullish state requires the Sigmoid RSI to rise above the upper threshold. When confluence is enabled, it must also remain above its adaptive signal line.
The bearish state requires the Sigmoid RSI to fall below the lower threshold and, when enabled, remain below the signal line.
NAL := sigmoidRSI > longThres and (sigmoidRSI > sigmoidRSISignal or not boolCon) ? 1 : sigmoidRSI < shortThres and (sigmoidRSI < sigmoidRSISignal or not boolCon) ? -1 : NAL
When neither condition is active, the previous directional state is preserved.
3. Key Features
Sigmoid-transformed RSI momentum engine.
Adaptive volatility-sensitive RSI smoothing.
Momentum-driven adaptive signal line.
Dynamic smoothing alpha generated through sigmoid weighting.
Upper and lower threshold regime detection.
Optional signal-line confluence.
Glow plot, threshold fills, candle coloring, bar coloring, and transition labels.
4. Use
Sigmoid RSI is designed to identify when momentum transitions into a more established bullish or bearish regime.
A move above the upper threshold reflects bullish momentum expansion, while a move below the lower threshold reflects bearish momentum deterioration. The adaptive signal line adds another layer of internal structure by measuring whether the transformed RSI remains aligned with its momentum-driven smoothing path.
The indicator’s behavior is shaped by both volatility and momentum changes, allowing its response to shift with the underlying environment rather than remaining mechanically fixed.
Sigmoid RSI is designed as a specialized momentum component within a complete strategy architecture. Its real value lies in how its adaptive regime state is integrated into a broader decision process, where several layers of market behavior are evaluated together.
אינדיקטור

Volume Delta Pressure [JOAT]Volume Delta Pressure estimates how much of each bar's volume was buying versus selling, then turns that split into a clean read on who is actually in control. It combines a per-bar delta engine, a cumulative session delta line, a normalized pressure oscillator, gradient candle heat, VWAP bands, and a full on-chart dashboard — so order flow becomes something you can see at a glance instead of guessing.
▎ WHAT IT DOES
It reconstructs buy/sell volume for every candle, tracks the running net delta across the session, and measures whether current flow is stretched into Accumulation or Distribution . From that it colors your candles by pressure, prints cooldown-gated BUY/SELL labels, flags CVD/price divergences, and reports the full picture in a top-corner panel.
▎ HOW IT WORKS
• Delta engine — Two methods. Lower-TF Intrabar polls a smaller timeframe, signs each intrabar by its direction (up = buy, down = sell, doji split), and sums the volume. Range/Body Proxy splits chart-bar volume using where close sits inside the bar's range blended with candle-body direction. Auto uses intrabar data when available and falls back to the proxy everywhere else.
• Bar delta — Buy volume minus sell volume for the current candle, plus buy% / sell% of total bar volume.
• CVD — Cumulative volume delta that adds each bar's delta and resets on your chosen anchor (session/day, week, month, or never).
• Pressure oscillator — Delta is EMA-smoothed, then normalized either as a Z-Score against its rolling mean/stdev (roughly −3..+3) or as % of Volume (−100..+100). This single value drives the state, gauge, and candle color.
• Signals — A BUY fires when pressure crosses up through zero; a SELL when it crosses down. Each flip must also pass a delta-expansion filter (absolute delta above a multiple of its recent average), optional price confirmation (up close for buys, down close for sells), an optional divergence requirement , and a cooldown that blocks stacked same-side signals. Signals only confirm on bar close.
• Divergence — Pivot highs/lows on price are compared against CVD at the same pivot. Price lower-low with CVD higher-low prints a Bull Div ; price higher-high with CVD lower-high prints a Bear Div . Each stays "active" for a set number of bars.
• VWAP + σ bands — Anchored VWAP with inner and outer standard-deviation channels, tinted green above / red below.
• No-volume guard — On assets that report no volume, signals switch off and the dashboard shows a clear notice instead of printing misleading data.
▎ HOW TO USE IT
• Read candle heat first: deep green = strong net buying, grey = balanced, deep red = strong net selling. Candles flash full color on a confirmed signal.
• Treat BUY / SELL pills as flow-flip alerts, not standalone entries. They are strongest when they agree with the CVD trend and VWAP location.
• Use CVD to judge conviction behind a move — price up while CVD falls warns the push is thin.
• Divergence labels mark spots where price and delta disagree — useful for anticipating exhaustion or reversal.
• Trade with the VWAP channel : above VWAP favors longs, band edges mark stretched conditions and mean-reversion zones.
• For fewer, higher-quality signals, turn on Require CVD Divergence and keep price confirmation on.
▎ KEY SETTINGS
• Engine — Delta method, intrabar timeframe (auto or manual), proxy close-vs-body weight, and delta smoothing.
• Pressure Oscillator — Normalization mode, lookback, and the Accumulation / Distribution thresholds.
• CVD & Divergence — Reset anchor, pivot length, recency window, and label caps.
• Signals — Expansion multiplier and baseline, price/divergence requirements, cooldown, and label size/cap.
• VWAP — Source, anchor, inner/outer σ multipliers, and colors.
• Visuals — Gradient candle toggle, saturation points, and the buy/neutral/sell color set.
• Dashboard — Show/hide, position, and text size.
▎ DASHBOARD
A top-right gradient panel reporting: delta source (LTF or Proxy), bar delta, session/cumulative CVD and its trend, buy% and sell%, the pressure value, a segmented flow gauge, the current State (Accumulation / Distribution / Neutral), active divergence, dominant side, VWAP location, and the last active signal — each cell color-coded by side.
▎ ALERTS
• Buy Pressure Flip — fires on a confirmed BUY signal.
• Sell Pressure Flip — fires on a confirmed SELL signal.
▎ NOTES
• Works on all timeframes and assets that report volume; degrades gracefully where volume is absent.
• Signals confirm on bar close, so labels and alerts do not repaint after the bar completes.
• Every visual layer — candles, VWAP, labels, dashboard — toggles independently for a clean chart.
• Delta is an estimate reconstructed from price and volume, not exchange-reported order flow.
For research and education only. This is not financial advice. No indicator can predict the future, and past behavior does not guarantee future results. Always do your own analysis and manage your own risk.
Made with passion by JackOfAllTrades ⚡ אינדיקטור

Liquidity Draw Probability Map [ForexCracked]🔵 OVERVIEW
Every liquidity tool draws the pools. This one measures whether price actually goes there.
The Liquidity Draw Probability Map finds the resting liquidity on your chart, equal highs and lows, the prior day high and low, the prior week high and low, and the session extremes, then studies your chart's own history and prints what actually happened to pools like each one: how often price reached them, how long it took, and how often the touch rejected versus cut straight through.
The phrase "price is drawing on liquidity" gets said a thousand times a day. This script puts a measured number on it.
🔵 HOW THE MEASUREMENT WORKS
Every pool is filed by two things: its type, and how far from price it was born, measured in ATR units so the numbers transfer across symbols and timeframes.
For each combination the script keeps running counts on your chart's own history:
• How many pools like this were created
• How many were reached within 50 bars
• Of the touches, how many rejected (price closed at least 1 ATR back inside within 20 bars) and how many cut through (price closed at least 0.5 ATR beyond). A touch that does neither within the window is filed as a stall.
• The median number of bars it took to get there
Nothing is estimated and nothing comes from outside data. Every figure is a frequency counted on the chart in front of you, and the sample size is printed next to it, so a number built on 12 events never dresses up as a number built on 300.
🔵 THE MAP
Active pools draw as horizontal lines from the swing that created them. The line gets thicker and more solid as its category's measured reach frequency gets higher, so the levels price has historically honoured stand out and the ones it historically ignores fade back. Each pool carries a compact label: type, measured reach frequency, rejection share of touches, and the sample size behind those numbers.
When a pool is touched, a small circle prints on that bar to mark the purge (these are measurement events, not signals, and they can be switched off). The engine then watches the next 20 bars, classifies the outcome, adds it to the tables, and retires the pool. Purged liquidity leaves the map, exactly as it leaves the market.
🔵 WHAT THIS IS NOT
This script fires no signals. There are no buy or sell arrows, no sweep alerts dressed as entries, no order blocks and no fair value gaps. It does not tell you to trade anything. It is a measurement instrument: it maps where the resting liquidity is and reports what historically happened to liquidity like it, with the sample sizes in plain view. What you do with that context is your decision.
🔵 NET DRAW BIAS
Each active pool contributes its measured reach frequency, discounted by how far away it currently sits. Everything above price is summed against everything below, and the result is z-scored against its own recent history. A strongly positive reading means the statistically heavier magnet is overhead. A strongly negative one means it is below. The dashboard prints the score and the direction plainly.
🔵 THE DASHBOARD
• Nearest pool above: type, distance in ATR, measured reach frequency, median bars to reach, sample size
• Nearest pool below: the same
• Net Draw Bias: score and direction
• Last purge: which pool type was taken and how the touch resolved
• Sample: total pools logged and bars of history measured
🔵 HOW TO USE
• Treat high-frequency pools as context, not entries. A pool whose category was historically reached 75 percent of the time within 50 bars is a level price has tended to gravitate toward on this chart. Useful when planning targets, never a trigger on its own.
• Read the rejection versus cut-through split before assuming a reaction. Some categories on some charts get swept and keep going. The split tells you which kind of chart you are on.
• Use Net Draw Bias for directional context between levels. It answers "which side's liquidity is heavier right now" with a measured number instead of a feeling.
• Respect the sample sizes. Early in a chart's history the tables are thin and the map says so. The numbers firm up as history accumulates.
• Combine with your own structure and risk rules. This is a measurement instrument. It does not know your plan.
🔵 SETTINGS
• Pivot strength and equal-level tolerance control how pools are detected
• Reach horizon (default 50 bars) and outcome window (default 20) control the measurement windows
• Session input defines the session whose extremes are tracked, set it to your Asia hours for the classic use
• Max pool age retires stale levels; per-side caps keep the map readable
• Dashboard position, colors, and line extension are adjustable
🔵 ALERTS
• Price approaching a high-reach pool (within 0.25 ATR, category at or above 70 percent with a meaningful sample)
• Pool purged (liquidity taken)
• Net Draw Bias flips sign
⚠️ DISCLAIMER
These are descriptive statistics of past price behaviour on your chart, not predictions. A pool that was historically reached 80 percent of the time can be ignored today. Sample sizes vary by chart and timeframe, and small samples are unreliable by nature. Nothing here is a trade signal, and results depend on market conditions, settings, and your own execution and risk management. Shared for educational and research purposes. Not financial advice. אינדיקטור

Opening Range Breakout Engine - Session Range SignalsaDESCRIPTION:
RANGE BREAKOUT PRO is a complete range-breakout trading engine: it detects tradeable ranges from confirmed swing pivots, fires BUY and SELL signals when price breaks out in the direction of the trend, and then manages every trade on the chart with entry, stop loss, take profit, break-even and trailing logic - all fully visualized and fully automatable via webhook alerts.
HOW THE ENGINE WORKS
1. RANGE DETECTION - Confirmed swing highs and swing lows (pivot length configurable) become the active RANGE HIGH and RANGE LOW. Each extreme is marked on the chart with a dot and a vertical marker line. A range must be wide enough (minimum height in ATR) and fresh enough (maximum age in bars) to be tradeable - micro-ranges and stale levels are skipped automatically.
2. BREAKOUT SIGNAL - A signal fires only when a candle CLOSES beyond the range extreme plus an ATR buffer (no wick fake-outs), the gradient trend ribbon points in the breakout direction, the trend strength score clears your Buy/Sell Strength threshold, the breakout is not overextended (max distance from the ribbon in ATR - no chasing exhausted moves), and an optional cooldown after a losing trade has expired. Optional MTF Agreement requires the 15-minute trend to confirm.
3. TRADE MANAGEMENT - Every signal is managed like a real trade, live on the chart:
- TP1 (partial target) banks the win early and moves the stop to break-even
- the remainder runs to the full R-multiple take profit or a chandelier trail
- green TP box and red SL box grow bar by bar from the entry, exactly like a position tool
- price tags at the right edge show Entry, Stop Loss, Take Profit and live Profit/Loss %
- every closed trade is marked with a tick (win), circle (break-even) or cross (loss)
4. TWO TRADE MODES - "TP/SL Mode" (fixed targets, split TP1 + runner) or "Trailing Mode" (no fixed target, the trail line is the moving stop).
THE COCKPIT PANEL
- MARKET OVERVIEW: multi-timeframe trend dashboard - live trend strength meters for the chart timeframe, 15m, 1H, 4H and 1D
- SIGNAL SETUP: entry system, MTF agreement, current signal (Long / Flat / Short), Buy/Sell strength thresholds, trend filter state, trade mode, active Take Profit and Stop Loss levels
- PERFORMANCE: asset, exchange, timeframe, total trades and live win rate calculated from every signal on the chart history - no cherry picking, the counter runs over everything the engine fired
Win rate accounting is transparent: a trade counts as WIN when TP1 is banked, as LOSS when the initial stop is hit first, and break-even exits are tracked separately - the same split-target accounting professional scalpers use.
WHY-EXPLANATIONS ON THE CHART
Every BUY/SELL pill carries a tooltip that explains WHY the signal fired: which range level broke, the trend strength at the trigger, entry, stop and target prices. Range dots explain the level they mark. Nothing is a black box.
WEBHOOK AUTOMATION
Create one alert with condition "Any alert() function call" and paste your webhook URL. The indicator sends ready-to-use JSON for every event: BUY, SELL, TP_HIT, SL_HIT, TRAIL_EXIT, BE_EXIT - including symbol, price, stop, target, trade mode, win rate and timeframe. Connect it to any bridge or bot and the strategy runs hands-free.
WORKS ON
Any symbol and timeframe: indices (NASDAQ, S&P, DAX), gold and forex, crypto, stocks. Scalping on 1-5 minute charts, day trading on 15m-1H, swing trading on 4H-Daily. Defaults are tuned for intraday breakout scalping.
DISCLAIMER
This indicator is a technical analysis tool, not financial advice. Past win rates do not guarantee future results. Always test on a demo account first and manage your risk.
WHY THESE PARTS BELONG TOGETHER
An opening range on its own produces a break in both directions on most days. The session filter
and the range-quality measurement exist to decide which of those breaks is tradeable: the session
defines when the range is allowed to form, and the quality measurement rejects ranges that are too
wide or too thin to hold. The breakout level is only meaningful once both have passed.
אינדיקטור

Renko Keltner Trend Engine - Brick Based Buy Sell SignalsDESCRIPTION:
█ RENKO + KELTNER CHANNEL = A MATCH MADE FOR TREND TRADING
This indicator rebuilds the classic two-window "Keltner Channel + Renko" trend strategy as ONE self-contained tool — and paints real Renko bricks directly on your normal candle chart. No Renko chart subscription needed, no second window: both Renko engines are built internally from chart data, and every indicator runs on the BRICK series, not on time bars.
█ HOW THE STRATEGY WORKS (the exact rule set)
The system uses TWO Renko engines side by side:
1 — TREND FILTER (3x brick Renko + Stochastic 1,1,1)
The big-brick Renko removes all noise. A fast stochastic (1,1,1) on those bricks produces a clean square-wave regime line:
• Crosses UP through 20 → regime turns BULLISH → longs only
• Crosses DOWN through 80 → regime turns BEARISH → shorts only
The regime stays valid until the opposite cross happens.
2 — EXECUTION WINDOW (1x brick Renko + Keltner Channel + Stochastic 7,3,3 + 9 MA)
• Keltner Channel with the classic settings: EMA 20 mid line, 2 x ATR 10 bands — computed on the Renko bricks, so the channel hugs the brick ladder
• Entry: stochastic (7,3,3) crosses in the regime direction AND one FULL Renko brick closes completely OUTSIDE the Keltner channel → that breakout brick is the entry
• Stop: the middle Keltner band (EMA 20) at entry
• Exit: a brick closes back through the 9-period MA (below for longs, above for shorts)
Simple, mechanical, fully rule-based — and every signal on the chart explains WHY it fired (hover the BUY/SELL pill for the full checklist: regime, stochastic values, breakout level, entry, stop).
█ WHAT YOU GET ON THE CHART
• Real RENKO BRICKS painted over your chart (green/red ladder) — you SEE the logic the signals are computed on
• Keltner Channel (gold bands + mid stop line) and the white 9 MA exit line, all computed on bricks
• Designed BUY ▲ / SELL ▼ signal pills with full "WHY THIS TRADE?" tooltips
• TREND ▲/▼ flip tags whenever the 3x-brick filter changes regime
• Entry + stop lines for the running trade, ✓/✗ exit marks with result tooltips
• Animated cockpit panel: Renko engine info (both brick sizes), 4-step entry checklist with live status, position box, live trade counter + win rate
• Auto (ATR) brick sizing so it works on ANY symbol and timeframe out of the box — or fix the brick size manually (e.g. $3 on ES with $9 filter, the classic setup)
█ WEBHOOK AUTOMATION READY
Create ONE alert with condition "Any alert() function call" and paste your webhook URL. The indicator fires ready-to-use JSON on every event:
BUY / SELL / MA_EXIT / SL_HIT — including symbol, price, stop, brick size, regime, win rate, timeframe and timestamp. Plug it straight into bots, bridges and auto-traders.
█ HOW TO USE
1. Add to a liquid symbol (indices, gold, FX, crypto). The video setup: S&P 500 E-mini, 1-min data, $3 brick / $9 filter
2. Leave brick mode on Auto (ATR) or set your fixed brick size
3. Wait for the checklist in the panel to light up: ① Trend Filter ② Stochastic ③ Brick outside Keltner ④ Entry
4. Manage by the rules: stop = mid band, exit = 9 MA recross — or automate it via webhook
█ NOTES
• Signals are computed on confirmed bricks from confirmed bars — no repainting of past signals
• The Renko engines need warm-up bricks; on fresh charts give it a moment of history
• This is a trading TOOL, not financial advice. Test any setting on your market before going live.
Open source — read it, change it, learn from it.
WHY THESE PARTS BELONG TOGETHER
Renko strips time out of the chart and shows only committed movement, but it has no sense of
whether that movement is stretched or normal. A Keltner channel measures exactly that, but on a
time chart it is constantly distorted by bars that carry no movement at all. Building the channel
on the brick series instead of the candle series is the whole point of this script: the volatility
envelope is finally measured on the same axis the trend is measured on.
אינדיקטור

TJR Swing High/Low + BOSTJR Swing High/Low + BOS
Version 1.0.0
Marks swing highs, swing lows and Breaks of Structure using TJR's 2-candle method, so you can see how market structure is forming and where the trend shifts.
WHAT IT DRAWS
• Swing highs and lows: read from the stream of real candles. A colour flip from bull to bear marks a swing high at the higher of the two paired candle highs; a colour flip from bear to bull marks a swing low at the lower of the two paired candle lows. Each line sits on whichever paired candle holds the extreme, one candle wide.
• Historical swings: the current swing plus up to two previous swings per type are kept, so up to three swing high lines and three swing low lines can show at once. Older lines hold their price and restyle to a shared historical look. Two depth dropdowns, one for highs and one for lows, choose how many are shown: current only, current plus one, or current plus two.
• Break of Structure: one horizontal line at the broken swing's price, from that swing's origin to one bar past the break. Only the most recent break is shown. It is drawn solid on the break, then once the break candle plus one further candle have closed it restyles to the chosen historical style, which defaults to dotted.
HOW IT WORKS
• Doji handling: a doji, defined as a candle whose close equals its open, is ignored entirely and the real candles on either side of it are compared directly.
• Break of Structure logic: a trend state machine is driven by the current swing high and low. From a cold start a close beyond either current swing sets the trend. Once a trend is set, only the opposite swing is watched, so in a bullish trend a close below the current swing low is a bearish break, and in a bearish trend a close above the current swing high is a bullish break.
• Repaint-safe: the indicator acts only on confirmed, closed bars, so lines do not flicker or repaint on the live forming bar. It uses no external data requests, no alerts and no tables.
WHAT IT RUNS ON
Standard Japanese candlestick charts only. Heikin Ashi, Renko, Kagi, Point and Figure and Range charts are refused, because on those chart types the candle open, high, low and close are synthetic and the structure they imply would be misleading. On any of those the indicator stops with a message and draws nothing.
INPUTS
• Swing High: history depth, colour, opacity, line style and thickness.
• Swing Low: history depth, colour, opacity, line style and thickness.
• Historical Swings: colour, opacity, line style and thickness, shared by all aged tiers.
• Break of Structure: thickness and the historical style applied once the break has aged.
HOW TO USE
Add it to any standard candlestick chart. Use the swing highs and lows to see where structure is forming, and the Break of Structure line to see when a swing has been broken and the trend has shifted.
FEEDBACK
Please let me know if you experience any issues, or have feedback for improvements or additions in the comments below. Thank you, Tom אינדיקטור

Daily ATR [Pogiest]General
This Daily ATR indicator is a real-time Average True Range monitor designed for active intraday traders. The indicator displays a live, updating table directly on your chart that shows the daily ATR value alongside the current session's developing range, allowing you to instantly assess how much of the day's expected move has already been consumed.
The ATR is calculated on the daily timeframe and only updates at the close of each session, mirroring the behavior of a standard ATR indicator on a daily chart. The live range (LIVE TR), however, updates in real time as price makes new session highs and lows — so traders always know exactly where they stand relative to the day's expected range, at any moment during the session.
Key differentiators:
1. Live session tracking — LIVE TR updates as each new tick makes a new intraday high or low, not just on candle closes.
2. Threshold price levels — automatically calculates the price the market needs to reach from both the session high and session low to complete the ATR (or any percentage of it).
3. Two Live TR modes — choose between Session Range (high minus low from the 18:00 EST open) or True Range (which includes the overnight gap from the previous session's close).
4. Percentage rows — add up to two custom ATR percentage rows (e.g. 50%, 75%) to monitor partial ATR completions.
3. Color-coded status — each row shows OVER (red) or UNDER (green).
4. Warning threshold — the LIVE TR status cell turns yellow when the session range reaches 80% of the daily ATR, giving you an early alert before the full ATR is consumed.
5. Fully customizable — every column can be toggled on or off, and all colors are adjustable to match the chart theme.
6. Alerts: Includes three built-in alert conditions accessible for exceeding Daily ATR and Percentage ATRs.
How the Indicator Table Works
The table is overlaid directly on your chart and updates in real time. Each row represents a different range reference, and each column provides a different dimension of information about that range.
Rows
DAILY ATR The smoothed Average True Range of the instrument calculated on the daily timeframe. This value only changes once per day when the previous session closes and a new ATR value is calculated. The Status cell shows OVER (red) if today's live range has exceeded the full ATR, or UNDER (green) if it has not.
Percentage ATR (optional) Up to two configurable percentage rows can be enabled. For example, a 50% ATR row shows what half the daily ATR looks like in ticks, points, and price levels. These rows are useful for identifying partial move targets and assessing whether a common retracement or extension level has been reached. The Status cell shows OVER or UNDER based on whether the current live range has exceeded that percentage threshold.
LIVE TR The current session's developing range, updating in real time as new highs and lows are printed. The Status cell displays the live range as a percentage of the daily ATR. It turns yellow at 80% as an early warning, and red when the full ATR is exceeded (100%+).
Columns
Range The row label identifying what is being measured — DAILY ATR, a percentage row (e.g. 50% ATR), or LIVE TR. The header also displays the active smoothing method and ATR period (e.g. RMA 5).
Ticks (toggleable) The ATR or range value expressed in ticks — the minimum price increment for the instrument. Useful for instruments where traders think in tick-based terms such as ES (0.25 per tick) or NQ.
Points (toggleable) The ATR or range value expressed in points — the raw price unit of the instrument. For ES this is dollars-per-contract divided by the multiplier; for NQ it reflects the index point value.
High (toggleable) The price level the market needs to reach from the current session low to complete that row's range target. Calculated as: session low + ATR target. Updates live as the session low changes.
Low (toggleable) The price level the market needs to reach from the current session high to complete that row's range target. Calculated as: session high − ATR target. Updates live as the session high changes.
Status A color-coded cell showing whether each range threshold has been OVER (red) or UNDER (green). For the LIVE TR row, the status cell displays the current percentage of the ATR consumed, turning yellow at 80% and red at 100%+.
Settings
ATR Settings
1. ATR Period The lookback period used to calculate the Average True Range. Default is 5. Accepts values from 1 to 500.
2. ATR Smoothing The smoothing method applied to the true range values when calculating the ATR. Options to select include RMA, SMA, EMA, and WMA.
3. Live TR Mode Controls how the current session's live range is calculated. Options include Session Range (measures the high minus low of the current daily bar from the 18:00 EST session open. No overnight gap is included) and True Range (includes the overnight gap from the previous session's close, calculated as max(session high, prev close) − min(session low, prev close).
Display Settings
1. Show ATR Table: Toggles the entire table on or off.
2. Show Ticks Column: Toggles the Ticks column on or off.
3. Show Points Column: Toggles the Points column on or off.
4. Show High Column: Toggles the High threshold price column on or off.
5. Show Low Column: Toggles the Low threshold price column on or off.
6. Table Position: Sets the position of the table on the chart. Nine positions available: top left, top center, top right, middle left, middle center, middle right, bottom left, bottom center, bottom right.
7. Change header background color of the header row.
8. Change header text color of the header row.
9. Change ATR background color of the first (label) column cells — DAILY ATR, percentage rows, and LIVE TR.
10. Change data background color of all data cells — Ticks, Points, High, and Low columns.
11. Change text color of all data cells.
12. Adjust font size of all text in the table. Options are tiny, small, normal, large, and huge.
13. Show Percentage 1 Row: Enables the first optional ATR percentage row.
14. Show Percentage 2 Row: Enables the second optional ATR percentage row.
Alert Settings
1. Configurable through TradingView: Alerts can be setup for Daily ATR Exceeded, Percentage 1 ATR Exceeded, and Percentage 2 ATR Exceeded.
Risk Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. All trading and investment decisions remain solely the responsibility of the user.
Trading involves a high degree of risk, and past performance is not indicative of future results.
Always conduct your own research and consult with a qualified financial professional before making any trading decisions.
By using this indicator, users acknowledge they understand these risks and accept full responsibility for their trading decisions and outcomes.
אינדיקטור
