Индикатор

SMC Order Block Scorer [Volume Confluence]SMC Order Block Scorer
Finds smart money order blocks and ranks them by volume-profile confluence, so you can see which zones are more likely to hold.
What it does
*Draws market structure (BOS and CHoCH) from major swing pivots
*Creates an order block on every swing break
*Builds a volume profile and marks the POC, Value Area (VAH/VAL) and HVNs
*Scores every order block from 0 to 100 and grades it A+, A, B or C
*Removes order blocks once price revisits them (mitigation)
How it works
*Structure : A close beyond the last swing high or low is a break. A break in the trend direction is a BOS. A break against it is a CHoCH. A CHoCH on a volume spike is tagged "CHoCH Vol".
*Order block: The last opposite candle before the break becomes the zone. It is the last down candle before a bullish break, or the last up candle before a bearish one.
*Volume profile : Volume is spread across price rows over a lookback window.
POC: the row with the most volume.
Value Area: the range holding about 70% of volume.
HVN: a local volume peak well above the average row.
Score : An order block earns more points when it has:
*the POC inside it (biggest credit)
*Value Area overlap
*an HVN inside it (extra credit)
*a large share of the profile's volume
*a strong impulse move and high volume on the break
*a BOS in the trend direction (worth more than a CHoCH)
How to read the chart
*Green boxes: bullish (demand) order blocks
*Red boxes: bearish (supply) order blocks
*Label: direction, grade and score, for example ▲ A+ 84%, with the volume features it touches (POC · VA · HVN) underneath
★ and thicker border: the highest-scoring active order block
*Stronger fill: a higher grade
*Dotted line: the 50% level of the zone
*Histogram on the right: the volume profile, with the POC in red, Value Area in blue and HVNs in gold
*Table: the current swing trend, the top 3 order blocks and the count of active ones
How to use it
*Look for order blocks graded A or A+ that also have POC or HVN in the label.
*Trade in the direction of the swing trend. A bullish block in a bullish trend is a stronger setup than a counter-trend one.
*Wait for price to come back to the zone and confirm on a lower timeframe before entering.
*Use the 50% line as a reference for entries.
*Use the far side of the block as a stop reference.
*If the chart looks busy, raise "Hide OBs below score" to 50 or higher.
Key settings
*Swing Lookback: the default of 50 gives fewer, larger zones. Use 10–20 for more zones on lower timeframes.
*Mitigation trigger:
*Touch: removed when price revisits the zone.
*50%: removed when price reaches the middle of the zone.
*Wick: removed when a wick trades through the far side.
*Close: removed when a candle closes beyond the far side.
*Keep mitigated OBs: shows used zones as faded boxes instead of deleting them.
*Scoring weights: change how much the POC, Value Area and HVN count.
*Market structure toggle: turns BOS and CHoCH drawing on or off. Order blocks still work with it off.
Alerts
*Bullish and bearish BOS
*Bullish and bearish CHoCH, with or without a volume spike
*New bullish or bearish order block
*Order block mitigated Индикатор

EMA Stack Auto TrendlinesMost auto-trendline tools find their swing points with fractals — a high with N lower highs either side of it. This one finds them with EMA structure instead.
How swings are identified
Six EMAs are tracked: 5, 12, 34, 50, 72 and 89, calculated on hl2 by default. The script cares about one thing — whether they are perfectly stacked:
Bullish: 5 > 12 > 34 > 50 > 72 > 89
Bearish: 5 < 12 < 34 < 50 < 72 < 89
While the market is in a bullish swing, every candle high is tracked and the highest one is held as the running extreme. The swing only ends when the complete bearish stack appears and holds for a set number of consecutive bars — at which point the tracked high becomes a confirmed swing high. Bearish swings work the same way in reverse, tracking lows.
Partial EMA disorder does nothing. The stack has to fully invert, and stay inverted, before a swing changes direction. That's what keeps normal pullbacks inside a trend from fragmenting it into dozens of minor pivots.
Trendlines
Confirmed highs are connected high-to-high, confirmed lows low-to-low. The most recent line on each side is drawn in its own style and can extend right as a forward projection; older lines drop back to a dimmer historic style, with a configurable number retained.
A dotted forming line runs from the last confirmed pivot to the extreme of the swing currently in progress, so the projection is visible before the opposite stack arrives to confirm it. It moves as new extremes print — by design, since the swing hasn't finished yet. Confirmed lines never move once drawn.
Swing filter
A full stack reversal on its own isn't enough. Each candidate pivot is measured against the last confirmed pivot in the opposite direction and must clear a minimum distance, set in ATR multiples or percent.
If it fails, the swing doesn't end — it keeps running and keeps tracking the same extreme, so a shallow counter-move leaves no pivot on either side of it. A release valve accepts the pivot anyway once price has travelled a full swing distance out of the tracked extreme, which prevents the state from locking in one direction. Set the filter to Off if you want every stack reversal to count.
Settings worth tuning first
Minimum Swing Measured In — Percent tends to travel better across timeframes than ATR, since the same ATR multiple means very different things on 5m and 1h.
Confirmation Bars — how long the opposite stack must hold. Raise it on noisy intraday charts.
Show Swing Points — turn this on while tuning. Get the H and L labels landing where you'd mark them by hand, then worry about the lines.
Alerts fire on each newly confirmed swing high and swing low.
The EMA lengths follow the pairings popularised by Ripster's EMA Clouds. No code from that script is used here — only the choice of lengths. Индикатор

Confirmed Close MTPI SPXCONFIRMED CLOSE MTPI SPX
WHAT THIS IS
This is a trend indicator for the S&P 500. It answers one question: is the
index in an uptrend or a downtrend right now?
It does that by running twelve separate trend indicators at once and taking a
vote. Each of the twelve looks at the chart in its own way and says either
"up" or "down". The score you see is simply the average of those twelve votes.
All twelve agreeing up gives +1.00. All twelve agreeing down gives -1.00. Six
against six gives 0.00.
Because twelve votes average out, the score can only land on thirteen values,
one sixth apart: -1.00, -0.83, -0.67 and so on up to +1.00.
This approach is usually called a Trend Probability Indicator, or TPI. The
point is that no single indicator is reliable on its own. Any one of them will
whipsaw you. A group of twelve disagreeing with each other is information, and
the score tells you how much of that group agrees.
WHY "CONFIRMED CLOSE"
A lot of indicators change their mind while the current candle is still
forming, then change back before it closes. That is called repainting and it
makes an indicator untradeable, because the signal you acted on may not be
there an hour later.
This one does not do that. While today's candle is still open, the indicator
shows you yesterday's confirmed reading. The state only changes when a daily
candle actually closes. What you see is what you could have traded.
On an index this matters more than it does on a 24 hour market. A US equity
session runs for six and a half hours and the index can travel a long way
inside one of them. A reading taken at 11am is a reading of an unfinished
candle. This script will not give you one.
HOW TO READ IT
On the price chart:
- Candles are painted cyan while the score is above zero and magenta while it
is below. This is the state, at a glance.
- A cyan triangle with the word BULLISH below it marks the candle where the
score turned positive. A magenta triangle with BEARISH above it marks the
turn down. These are the moments that matter.
- Two moving averages, a 12 period and a 21 period EMA, are drawn as a
reference. They are a crude version of the same question and they are there
so you can see how much smoother the twelve indicator version is.
- Bars are tinted amber where the twelve indicator score and the simple 12/21
cross disagree. Those are the bars where the crude version would have put
you on the wrong side.
In the separate pane below:
- The stepped line is the score, from -1.00 to +1.00, filled to the zero line
and coloured by state.
- Dotted lines at +0.5 and -0.5 give you a sense of how strong the agreement
is. A score of +1.00 is twelve out of twelve. A score of +0.17 is seven
against five, which is a trend barely holding together.
The dashboard, bottom right by default:
- The big number is the current score, with the state next to it.
- The bar beside it is a gauge. It fills outward from the middle, right and
cyan for bullish, left and magenta for bearish.
- The twelve indicators are listed in two columns, the six trend-following
ones on the left and the six oscillators on the right, each showing its own
vote. This is where you see WHY the score is what it is.
- "12/21 agree" is the share of days where the twelve indicator score and the
simple EMA cross pointed the same way, measured across all the history your
chart has loaded. Read it as a rough measure of how often the crude version
would have agreed with the careful one. It is measured against the raw cross
with no filtering, so treat it as an indication rather than a precise
statistic.
- "Regime" is how many days the current state has lasted. It turns amber below
eight days, because a trend that has not lasted eight days has a habit of
being noise.
A cyan and magenta pair was chosen on purpose rather than the usual green and
red. It separates on the blue and the red channel, so it stays readable with
red green colour blindness, and it tells this script apart from the others in
the set at a glance. If you would rather have green and red, there is a toggle
in the settings.
HOW TO USE IT
The simplest use is the one it was built for. When the score is above zero,
equities are in an uptrend and you hold them. When it is below zero, they are
not, and you do not. You act on the close, and you execute on the open of the
next session. Anything earlier is acting on a candle that has not finished
forming.
Set an alert if you do not want to watch it. The script exposes two alert
conditions, one for the turn up and one for the turn down, and both fire only
on a confirmed daily close.
Read the twelve rows when the score is near zero. A score of -0.67 that is
being held off the floor by two oscillators is a very different situation from
a -0.67 where the trend-following group is turning. The individual votes tell
you which one you are in.
THE WIDER SYSTEM THIS BELONGS TO
This indicator is one rung of a ladder. The idea is that you are always
holding the strongest available thing, and that the decision is made in steps
rather than all at once.
Step one. A TPI on the total crypto market cap. If it is positive, you stay in
crypto and you go to step two. If it is negative, you leave crypto and go to
step three.
Step two, only when crypto is bullish. An ETH/BTC ratio TPI decides which of
the two majors leads. From there a further layer of ratio TPIs compares mid
caps against whichever major won, and the ones that are outperforming get a
share of the book.
Step three, when crypto is bearish. A gold TPI. If gold is in an uptrend, that
is where the money sits.
Step four, when gold is not working either. This indicator. If equities are
trending up, that is the holding.
Step five, when nothing is trending. Cash, and a EUR/USD TPI decides whether
that cash is better held in euros or in dollars.
Each rung is its own TPI, built the same way: twelve indicators, one vote
each, tuned separately for that market. The ladder simply asks them in order.
This rung is the quiet one. In a long crypto bull market it never gets asked,
because the ladder stops at step one or two. It earns its place in the years
when crypto and gold are both dead and something still has to be held.
A SET, NOT A SINGLE SCRIPT
This is the fourth published piece of that set, after the total market cap, the
ETH/BTC ratio and gold. The remaining rung is built and running and will follow
as its own publication, reading the same way so you only have to learn the
layout once.
ABOUT THE SETTINGS
The twelve indicators and their periods are visible in the settings and in the
source. They were tuned for this specific market against a cleaned 12/21 EMA
reference on daily data from January 2023 onward, with regimes shorter than
eight days treated as noise and removed before the tuning was scored. The
symbol itself has daily history back to 2005 if you want to look further back.
Those numbers are right for the S&P 500. They are not automatically right for
anything else, and they are deliberately not the numbers the other scripts in
this set use. If you put this on another symbol, expect to retune. That is the
honest answer, and it is why each market in the set gets its own publication
rather than one script with a symbol dropdown.
Two of the twelve are read on a smoothed line rather than the raw one, which
is deliberate: the CCI is scored on its EMA 5 smoothing and the RSI on its
EMA 10. The Awesome Oscillator is scored on its raw line. Those choices are in
the code and commented.
HOW FAITHFUL THE REBUILD IS
Because seven of the twelve are rewritten from other people's published
formulas rather than called directly, the obvious question is whether they
behave the same. They do. Every one of the twelve votes was compared bar by bar
against the original indicator running on the same chart, across 5,365 daily
bars going back to May 2005. Zero disagreements on any of the twelve, and the
combined score matched on every single bar.
That check is worth repeating if you change a setting, and it is why each vote
is exposed as a hidden plot in the script rather than kept internal.
CREDIT WHERE IT IS DUE
Seven of the twelve components are reimplementations of open-source community
scripts, written from their published formulas so they could all live in one
indicator and be scored consistently. Full credit to the original authors:
- Gaussian Channel by DonovanWall
- Optimized Trend Tracker by KivancOzbilgic
- Awesome Oscillator v2 by KivancOzbilgic
- Hull Suite by InSilico
- SSL Channel by ErwinBeckers
- Coral Trend Indicator by LazyBear
- WaveTrend by LazyBear
The remaining five are standard: ALMA, CCI, RSI, Coppock Curve and the
Detrended Price Oscillator.
What is added here is the aggregation into a single score, the confirmed close
behaviour, the per indicator breakdown, the agreement measurement against the
reference, and the ladder logic this is built to serve.
LIMITATIONS AND A PLAIN WARNING
This is a trend indicator. It is late by design. It will not catch the exact
top or the exact bottom, and it is not supposed to. It will be wrong in a
sideways market, which is what the eight day regime warning is there to tell
you.
A negative reading does not mean the index is about to fall, and a positive one
does not mean it is about to rise. It reports what has already been happening.
Equities also carry something the other rungs do not: gaps. An index can close
on a confirmed uptrend and open several percent lower on news, and no daily
trend indicator will protect you from that. Size accordingly.
Nothing here is financial advice. It is a tool for reading a chart. Past
behaviour of any indicator tells you nothing reliable about the future. Do
your own work and size your positions so that being wrong is survivable.
Индикатор

Momentum Range Flip @MaxMaseratiMomentum Range Flip
Momentum Range Flip flags a body-close breakout candle, then tracks how far price runs from it before reversing back through the origin. While the range is open, it splits the volume traded inside it into estimated buy and sell volume per price level, then sorts those levels into a Point of Control, High Volume Nodes, and Low Volume Nodes.
─── RANGE ANCHOR AND EXPANSION ───
A momentum candle closes above the prior high or below the prior low, checked only on confirmed bars. Immediate Body Close anchors on that candle; Wait for NBC waits for one inside/balance candle to close first, then anchors back to the breakout candle. Once anchored, the range top and bottom track the highest high and lowest low seen so far. Expansion Method sets whether those bounds update live, tick by tick, or only on candle close. A close back outside the range in the opposite direction ends it.
─── DELTA VOLUME PROFILE, POC, HVN, AND LVN ───
Each bar inside the range splits its volume into buy and sell using:
buy % = clamp(0.5 + body-to-range ratio × 0.3 − wick ratio × 0.1, 0.1, 0.9)
That split is spread across price bins sized by Ticks per Bin. The single bin with the highest total volume becomes the Point of Control (POC). Any other bin at or above the HVN Threshold percent of that top bin is a High Volume Node — a price level heavy trading defended. Any bin at or below the LVN Threshold percent is a Low Volume Node — a price level trading passed through fast, with little resistance. POC, HVN, and LVN each have their own show/hide toggle and line width, so you can isolate any one layer.
─── HOW TO USE ───
1. Wait for the wedge box to appear — this marks a new momentum range, colored by its bullish or bearish bias.
2. Read the RH / RH TGT and RL / RL TGT labels for the current top and bottom of the range.
3. Find the thickest line — that is the POC, the price level with the most volume traded inside the range.
4. Check the High Volume Node lines for other price levels where volume built up; these tend to act as support or resistance if price returns.
5. Check the Low Volume Node lines for gaps in volume; price tends to move through these fast rather than stall.
6. A candle closing beyond the top or bottom line ends the range; treat that as invalidation of the current bias.
─── SETTINGS ───
Calculation Logic — choose the anchor trigger (Immediate vs Wait for NBC) and the expansion method (Live vs Wait for Candle Close).
Colors and Style — wedge fill transparency, bullish/bearish colors, extension line width.
Structure Targets — how far the target lines and labels extend, and their label size.
Delta Volume Profile and POC — toggle the profile, set bin size (Ticks per Bin) and max profile width, then independently toggle and set the line width for POC, HVN (with its own volume threshold), and LVN (with its own volume threshold). Buy/sell colors apply across all three.
─── NOTES ───
In Live (Tick-by-Tick) mode, the range bounds and volume profile update using unclosed, live wick prices and can shift before the bar closes. Switch to Wait for Candle Close for calculations that only use confirmed values. The buy/sell volume split is an estimate based on candle structure, not real order flow data. HVN and LVN thresholds are relative to the biggest bin in the current range, not a fixed volume number. Built for intraday futures charts (ES, NQ) but works on any liquid symbol with volume data. Индикатор

Confirmed Close MTPI GOLDWHAT THIS IS
This is a trend indicator for gold. It answers one question: is gold in an uptrend or a downtrend right now?
It does that by running twelve separate trend indicators at once and taking a vote. Each of the twelve looks at the chart in its own way and says either up or down. The score is the average of those votes. All twelve agreeing up gives +1.00, all twelve agreeing down gives -1.00, and a six against six split gives 0.00.
Because twelve votes average out, the score can only land on thirteen values, one sixth apart: -1.00, -0.83, -0.67 and so on up to +1.00.
This approach is usually called a Trend Probability Indicator, or TPI. The point is that no single indicator is reliable on its own. Any one of them will whipsaw you. What holds up is the question of how much of the group agrees, and that is what the score measures.
WHY THIS PARTICULAR GOLD CHART
It is tuned on a tokenised gold contract that trades around the clock rather than on a spot gold chart with market hours. That is deliberate. This indicator is one rung of a ladder whose other rungs are crypto, and crypto closes at midnight UTC every day of the week. A gold chart that shuts at the weekend would put the rungs on different clocks and make the daily decision ambiguous two days out of seven.
If you prefer a conventional gold chart, the twelve will still compute, but the periods were fitted to this one. Expect to retune.
WHY "CONFIRMED CLOSE"
A lot of indicators change their mind while the current candle is still forming, then change back before it closes. That is called repainting and it makes an indicator untradeable, because the signal you acted on may not be there an hour later.
This one does not do that. While today's candle is still open, the indicator shows you yesterday's confirmed reading. The state only changes when a daily candle actually closes. What you see is what you could have traded.
HOW TO READ IT
Gold means the uptrend, steel blue means the downtrend. Warm against cool rather than green against red, so it stays readable for the most common forms of colour blindness. There is a green and red palette in the settings if you prefer it.
On the price chart:
- Candles are painted gold while the score is above zero and steel blue while it is below. This is the state, at a glance.
- A gold triangle with the word BULLISH below it marks the candle where the score turned positive. A steel blue triangle with BEARISH above it marks the turn down. These are the moments that matter.
- Two moving averages, a 12 period and a 21 period EMA, are drawn as a reference. They are a crude version of the same question and they are there so you can see how much smoother the twelve indicator version is.
- Bars are tinted purple where the twelve indicator score and the simple 12/21 cross disagree. Those are the bars where the crude version would have put you on the wrong side.
In the separate pane below:
- The stepped line is the score, from -1.00 to +1.00, filled to the zero line and coloured by state.
- Dotted lines at +0.5 and -0.5 give you a sense of how strong the agreement is. A score of +1.00 is twelve out of twelve. A score of +0.17 is seven against five, which is a trend barely holding together.
The dashboard, bottom right by default:
- The big number is the current score, with the state next to it.
- The bar beside it is a gauge. It fills outward from the middle, right and gold for the uptrend, left and blue for the downtrend.
- The twelve indicators are listed in two columns, the six trend-following ones on the left and the six oscillators on the right, each showing its own vote. This is where you see WHY the score is what it is.
- "12/21 agree" is the share of days where the twelve indicator score and the simple EMA cross pointed the same way, measured across all the history your chart has loaded. Read it as a rough measure of how often the crude version would have agreed with the careful one. It is measured against the raw cross with no filtering, so treat it as an indication rather than a precise statistic.
- "Regime" is how many days the current state has lasted. It turns amber below eight days, because a trend that has not lasted eight days has a habit of being noise.
HOW TO USE IT
On its own it tells you whether gold is trending. Positive and it is, negative and it is not. You act on the close, and you execute on the open of the next candle. Anything earlier is acting on a candle that has not finished forming.
What it does not tell you is when to ask the question. In the system this belongs to, gold is a fallback rather than a holding you go looking for. It gets asked only once crypto has turned down, and it gets answered before equities and cash.
Set an alert if you do not want to watch it. The script exposes two alert conditions, one for the turn up and one for the turn down, and both fire only on a confirmed daily close.
Read the twelve rows when the score is near zero. A score of +0.17 that is being held up by two oscillators is a very different situation from a +0.17 where the trend-following group is turning. The individual votes tell you which one you are in.
THE WIDER SYSTEM THIS BELONGS TO
This indicator is one rung of a ladder. The idea is that you are always holding the strongest available thing, and that the decision is made in steps rather than all at once.
Step one. A TPI on the total crypto market cap excluding stablecoins. If it is positive, you stay in crypto and you go to step two. If it is negative, you leave crypto and go to step three.
Step two, only when crypto is bullish. An ETH/BTC ratio TPI decides which major leads, and a further layer of ratio TPIs hands a share of the book to whichever mid caps are outperforming it.
Step three, and this is where this indicator sits. Gold. If gold is trending up, that is where the money sits while crypto is off.
Step four, when gold is not working either. An index TPI on the S&P 500. If equities are trending, that is the holding.
Step five, when nothing is trending. Cash, and a EUR/USD TPI decides whether that cash is better held in euros or in dollars.
Each rung is its own TPI, built the same way: twelve indicators, one vote each, tuned separately for that market. The ladder simply asks them in order.
A SET, NOT A SINGLE SCRIPT
This is the third published piece of that set, after the total crypto market cap and the ETH/BTC ratio. The remaining rungs are built and running and will follow as separate publications, each one an indicator for its own market, all reading the same way so you only have to learn the layout once.
ABOUT THE SETTINGS
The twelve indicators and their periods are visible in the settings and in the source. They were tuned for gold against a cleaned 12/21 EMA reference on daily data from January 2023 onward, with regimes shorter than eight days treated as noise and removed before the tuning was scored. This contract has daily history back to March 2022, which is as far as the chart goes.
Two components differ from the market cap script. The Follow Line is here, and the Detrended Price Oscillator replaces the Fisher Transform.
The Follow Line is worth understanding, because it is the one component that cannot be read the obvious way. It is a ratchet: in an uptrend it can only step up, in a downtrend it can only step down, and in between it sits perfectly flat for weeks. Asking whether it rose today is meaningless on most days. The vote is the direction of its LAST change, walked backwards until the value differs. If the script cannot find a change because the chart has not loaded enough history, it refuses to vote rather than guessing, which is why the score can be blank at the very left edge.
Three of the twelve are read on a smoothed line rather than the raw one, which is deliberate: the CCI is scored on its EMA 7 smoothing and the RSI on its EMA 9. The Awesome Oscillator is scored on its raw line, not its signal line. Those choices are in the code and commented.
Those numbers are right for gold. They are not automatically right for anything else. If you put this on another symbol, expect to retune. That is why each market in the set gets its own publication rather than one script with a symbol dropdown.
HOW FAITHFUL THE REBUILD IS
Because seven of the twelve are rewritten from other people's published formulas rather than called directly, the obvious question is whether they behave the same. They do, and you can check it yourself: put the twelve original indicators on this chart with the settings listed in the source and compare.
That is what was done here. Every daily bar the contract has, 1,651 of them going back to March 2022, was loaded, and every one of the twelve votes was compared bar by bar against the original indicator running on the same chart. On the 1,559 bars where all twelve originals were reporting, there were zero disagreements on any of them, and the combined score matched on every one.
The score also reproduces the daily record of the live system this belongs to, exactly, for 626 consecutive days. That part you cannot verify from here, so take it for what it is worth. The bar by bar check above is the one that stands on its own.
That check is worth repeating if you change a setting, and it is why each vote is exposed as a hidden plot in the script rather than kept internal.
CREDIT WHERE IT IS DUE
Seven of the twelve components are reimplementations of open-source community scripts, written from their published formulas so they could all live in one indicator and be scored consistently. Full credit to the original authors:
- Gaussian Channel by DonovanWall
- Optimized Trend Tracker by KivancOzbilgic
- Awesome Oscillator v2 by KivancOzbilgic
- Hull Suite by InSilico
- SSL Channel by ErwinBeckers
- Follow Line Indicator by Dreadblitz
- WaveTrend by LazyBear
The remaining five are standard: ALMA, CCI, RSI, Coppock Curve and the Detrended Price Oscillator.
What is added here is the aggregation into a single score, the confirmed close behaviour, the per indicator breakdown, the agreement measurement against the reference, and the ladder logic this is built to serve.
LIMITATIONS AND A PLAIN WARNING
This is a trend indicator. It is late by design. It will not catch the exact top or the exact bottom, and it is not supposed to. It will be wrong in a sideways market, which is what the eight day regime warning is there to tell you.
A negative reading does not mean gold is about to fall, and a positive one does not mean it is about to rise. It reports what has already been happening. Gold can also be trending up while everything else is too, in which case this rung never gets asked.
Nothing here is financial advice. It is a tool for reading a chart. Past behaviour of any indicator tells you nothing reliable about the future. Do your own work and size your positions so that being wrong is survivable.
Индикатор

Liquidity Sweep + Delta Absorption [PineGen AI]Overview
This strategy looks for one specific institutional footprint: a liquidity sweep of a confirmed swing high or low that gets absorbed rather than continuing. Price wicks through a recent swing point, but instead of running with the breakout, the same bar shows elevated volume and a volume-delta signature that leans against the sweep — a sign the aggressive orders that took out the level got absorbed by resting liquidity on the other side.
How It Works
1. Liquidity levels — the script tracks the most recently confirmed swing high and swing low (ta.pivothigh/ta.pivotlow), not session or daily levels, so setups can occur on any market and any session.
2. Sweep — a bar's wick pierces one of those levels and its close comes back inside it.
3. Absorption confirmation — the sweep bar must also show volume above its own average, a close back toward the opposite end of its range, and a volume-delta proxy that leans against the sweep direction. The delta is built from lower-timeframe up/down volume, since Pine Script has no access to real exchange bid/ask tape on standard data feeds — that's disclosed here, not glossed over.
4. Optional one-bar confirmation candle, optional EMA trend filter, and an adjustable session window (defaults to the 09:30–12:00 ET US session).
5. Risk: ATR-buffered stop beyond the sweep wick, a configurable reward:risk target, and a daily trade cap to prevent overtrading.
Key Features
- Non-repainting: signals only evaluate on a confirmed bar; swing levels only update once a pivot is fully confirmed.
- Long and short, independently toggleable.
- Adjustable liquidity-level lookback, volume filter, delta filter, trend filter, session window, and risk settings.
- Built-in alerts for both bullish and bearish setups.
Backtest Disclosure (as shown)
Tested on BTCUSDT, 2h chart, Jan 1 2022 – Sep 19 2026, default settings, $10,000 initial capital, 10% of equity per trade, 0.02% commission, 2-tick slippage:
- Net profit: +$568.41 (+5.68%)
- Max drawdown: $211.64 (2.02%)
- Win rate: 47.83% (11/23 trades)
- Profit factor: 2.23
Important Notes
- This is a backtesting and research tool. Past performance does not guarantee future results.
- The default session window (09:30–12:00 ET) is tuned for US index/futures and FX/gold day trading — adjust or disable it for other markets.
- The "Order Flow Lower Timeframe" input must be smaller than your chart's timeframe (e.g. "1" on a 5–15 min chart), or TradingView will throw a lower-timeframe error.
How to Use
Add the strategy to your chart, open the Strategy Tester tab to review the full report, then use the Settings panel to tune the swing lookback, volume/delta thresholds, session window, and risk inputs to your market.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Trading involves substantial risk of loss. Backtested results do not guarantee future performance.**Overview**
This strategy looks for one specific institutional footprint: a liquidity sweep of a confirmed swing high or low that gets absorbed rather than continuing. Price wicks through a recent swing point, but instead of running with the breakout, the same bar shows elevated volume and a volume-delta signature that leans against the sweep — a sign the aggressive orders that took out the level got absorbed by resting liquidity on the other side.
How It Works
1. Liquidity levels — the script tracks the most recently confirmed swing high and swing low (ta.pivothigh/ta.pivotlow), not session or daily levels, so setups can occur on any market and any session.
2. Sweep — a bar's wick pierces one of those levels and its close comes back inside it.
3. Absorption confirmation — the sweep bar must also show volume above its own average, a close back toward the opposite end of its range, and a volume-delta proxy that leans against the sweep direction. The delta is built from lower-timeframe up/down volume, since Pine Script has no access to real exchange bid/ask tape on standard data feeds — that's disclosed here, not glossed over.
4. Optional one-bar confirmation candle, optional EMA trend filter, and an adjustable session window (defaults to the 09:30–12:00 ET US session).
5. Risk: ATR-buffered stop beyond the sweep wick, a configurable reward:risk target, and a daily trade cap to prevent overtrading.
Key Features
- Non-repainting: signals only evaluate on a confirmed bar; swing levels only update once a pivot is fully confirmed.
- Long and short, independently toggleable.
- Adjustable liquidity-level lookback, volume filter, delta filter, trend filter, session window, and risk settings.
- Built-in alerts for both bullish and bearish setups.
Backtest Disclosure (as shown)
Tested on BTCUSDT, 2h chart, Jan 1 2022 – Sep 19 2026, default settings, $10,000 initial capital, 10% of equity per trade, 0.02% commission, 2-tick slippage:
- Net profit: +$568.41 (+5.68%)
- Max drawdown: $211.64 (2.02%)
- Win rate: 47.83% (11/23 trades)
- Profit factor: 2.23
23 trades over roughly 4.7 years is a small sample — enough to show the logic behaves as designed, not enough on its own to draw strong conclusions about edge. Test it on your own instrument, timeframe, and date range before sizing it.
Important Notes
- This is a backtesting and research tool. Past performance does not guarantee future results.
- The default session window (09:30–12:00 ET) is tuned for US index/futures and FX/gold day trading — adjust or disable it for other markets.
- The "Order Flow Lower Timeframe" input must be smaller than your chart's timeframe (e.g. "1" on a 5–15 min chart), or TradingView will throw a lower-timeframe error.
How to Use
Add the strategy to your chart, open the Strategy Tester tab to review the full report, then use the Settings panel to tune the swing lookback, volume/delta thresholds, session window, and risk inputs to your market before using it live or basing alerts on it.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Trading involves substantial risk of loss. Backtested results do not guarantee future performance.
Стратегия

Planting & Harvesting Seasons V1.1Overview
As a commodity trader, seasonal patterns play a big role in my analysis. This script visually overlays the typical planting and harvesting periods for key agricultural futures directly on the chart. It automatically detects the underlying commodity based on the symbol (e.g. ZC, ZW, ZS, CT) and displays color-coded zones for each seasonal window.
These zones are based on historical crop calendars and help identify when planting or harvesting typically takes place, so technical setups can be better aligned with fundamental seasonal factors.
How It Works
The script reads the chart's symbol root and matches it against a built-in table of crop development and harvest windows (month ranges) for supported futures. Two background zones are drawn:
Development (green) — the typical crop development/growing period
Harvest (red) — the typical harvest period
Labels mark the start and end of each zone as the chart crosses into or out of it. Month ranges that cross the calendar year boundary (e.g. harvest starting in one year and ending in the next) are handled correctly.
Supported Markets
Chicago Wheat (ZW), Corn (ZC), Soybeans (ZS), Rough Rice (ZR), Cotton (CT), Oats (ZO), Cocoa (CC), Coffee (KC), Sugar (SB), Orange Juice (OJ).
What This Script Does Not Do
This is a visual aid only — it does not generate buy or sell signals, does not predict price direction, and is not a standalone trading system. Crop calendars are based on typical/historical timing and can vary by growing region and year.
Limitations
Actual planting and harvest timing can shift from year to year due to weather, regional differences, and other agronomic factors. The zones shown are typical historical windows, not a forecast for the current season.
Changelog (V1.1)
Improved terminology inside the script (crop development and harvest phases)
Improved month-range handling for seasons that cross the calendar year boundary
Updated futures-relevant windows for ZC, CC, KC, SB and OJ
Feedback is always appreciated! Индикатор

Индикатор

Adaptive Statistical Location + Pressure Engine V1Adaptive Statistical Location + Pressure Engine — V1
ASLP describes where price sits relative to historical daily and session excursions, whether the current movement is directional or two-sided, and whether expansion is strengthening or deteriorating. When enough comparable resolved events exist, it also displays empirical first-touch outcome estimates.
Its distinguishing design combines separate upside/downside excursion distributions, independent daily/session context, non-overlapping pressure observations, and a causal event database. It keeps statistical location, movement consumption and future outcomes separate.
A high percentile describes an extended location. It does not, by itself, imply a reversal or provide a buy/sell instruction.
1. Reading the display
Teal curve: signed location relative to the selected session open.
Purple curve: signed location relative to the trading-day open.
Positive values: price is above the corresponding open; magnitude is its upper-excursion percentile.
Negative values: price is below the corresponding open; magnitude is its lower-excursion percentile. A reading of -90 means the 90th percentile of downside excursion, not the 10th percentile of a symmetric price distribution.
Zero: the corresponding open. Location is not a distance scale: a 10-point change on the pane does not mean a fixed price change.
State ribbon: green indicates expansion, darker green strong expansion, gold two-sided volatility, blue an extreme state, orange/red an exhaustion candidate, and purple reversion in progress. Gray shades represent normal, compressed or unavailable context. The ribbon's vertical position is a layout choice, not a score.
Small pane markers: circles identify extreme entries; red diamonds identify exhaustion candidates. Price-chart text and event paths are off by default.
Dashboard: Compact emphasizes location, state, pressure and the most recent event forecast. Detailed and Research expose additional diagnostics.
Curves deliberately break when their session/day reference changes or a valid estimate is unavailable. Connecting different opens would imply continuity that does not exist. The subtle daily boundary tint appears in the indicator pane.
2. What location measures
For each completed historical period, the engine stores percentage Open-to-High and Open-to-Low excursions separately. During an active period it compares the current close's displacement from that period's open with the appropriate historical distribution.
Upper location = 100 × fraction of matched historical upper excursions less than or equal to the current upward displacement.
Lower location = 100 × fraction of matched historical lower excursions less than or equal to the current downward displacement.
For example, an upper reading of 90 means the current upward displacement equals or exceeds 90% of sampled historical upper excursions. It does not mean a 90% chance of continuation or reversal. Finite-sample readings can reach 100 without imposing a price ceiling.
Movement matching uses weekday, session, completed-day volatility regime and previous completed-period state where supported, then relaxes conditioning when samples are sparse. The selected historical distributions are frozen at the start of the active period.
Default location regions
Below 25: Central.
25 to below 75: Normal.
75 to below 90: Stretch.
90 to below 95: Extreme.
95 and above: Tail.
The direction is reported separately as Upper or Lower. These are empirical descriptive regions, not fair-value estimates. Daily and session location use independent opens and distributions; a stretched session can coexist with a normal daily reading. Benchmarks are completed-period distributions, not same-minute-of-session distributions, so an early session can naturally look compressed.
3. Range, efficiency and pressure
Range percentile: ranks the active High-Low range against historical completed ranges. It measures total movement, not where the close sits.
Consumption: current range divided by historical Q50, Q75 or Q90 range. Consumption above 100% means that historical quantile has been exceeded; it does not mean price has exhausted a fixed allowance.
Directional efficiency: abs(Close-Open)/(High-Low). High values indicate net displacement accounts for much of the observed range.
Close Location Value: ((Close-Low)-(High-Close))/(High-Low). Its -1 to +1 scale identifies where the close sits inside the active range. A separate direction-adjusted close rank evaluates proximity to the movement's own extreme.
Marginal progress: over completed non-overlapping blocks, the engine divides signed close progress by incremental range, with a denominator floor of 0.05 × frozen Q50 by default. This limits instability when range barely grows. The value can exceed 1 and is not a probability.
Marginal progress is ranked against historical blocks from the same session and elapsed-age bucket. The direction must remain consistent across the block. Default blocks are 30 minutes.
Pressure categories
Strengthening: efficiency and direction-adjusted close ranks are at least the 75th percentile, marginal progress rank is at least the 50th percentile, signed progress is positive, and price extends the directional extreme.
Weakening: efficiency declines, price retreats from the directional extreme, and either marginal rank is at or below the 25th percentile or signed progress is negative.
Stable: a rated block meets neither condition.
Unrated: insufficient valid block history. This is not evidence of stable pressure.
Pressure reflects completed blocks and can remain unchanged between them. Efficiency and close ranks use completed-period benchmarks; they are descriptive comparisons, not calibrated future-outcome probabilities.
4. State and exhaustion logic
Compressed so far: range percentile is below the Central boundary. This does not predict that the completed session will remain compressed.
Directional expansion: range percentile reaches the Stretch threshold, while efficiency and directed-close ranks both reach 75.
Strong expansion: directional expansion plus strengthening pressure.
Two-sided volatility: range reaches the Stretch threshold while efficiency rank is 25 or lower.
Statistical extreme: location reaches the Extreme threshold when a higher-priority state does not apply.
Exhaustion candidate: the same direction previously expanded during this session, location remains extreme, range reaches the Stretch threshold, and pressure weakens.
Reversion in progress: after an exhaustion candidate, price crosses the session open in the opposing direction.
States follow an explicit precedence rather than displaying overlapping categories. Exhaustion requires deterioration after expansion. The separate toward-open event outcome below can occur before any cross of the session open.
5. Empirical first-touch outcomes
Eligible observations come from expansion, extreme-entry and post-expansion weakening states. Their forecasts and barriers are frozen at the confirmed entry close. Observation starts on the following candle.
With default settings, an event records which of these happens first:
Continuation first (C): price travels another 0.25 × frozen session Q50 in the event direction.
Toward-open first (R): price travels 0.35 × Q50 against that direction, capped at the distance back to the session open. R means a retracement toward the open, not necessarily a full trend reversal.
Timeout: neither barrier is reached within 120 minutes or before the source session ends, whichever comes first.
Ambiguous: both barriers are touched in the same candle and OHLC cannot establish their order. If the candle opens beyond a barrier, that known first observation is used; otherwise the event remains a separate ambiguous class.
Invalid/gapped observations can be censored and excluded from outcome training. There is one pending event across the engine at a time. Each session instance can admit each direction/family combination only once, with optional admission at completed-block checkpoints. This prevents repeatedly labeling every candle of one sustained condition.
The dashboard percentages belong to the timestamped last admitted event. They are not continuously recalculated predictions for the latest candle. Compact shows C and R; Detailed also shows Timeout and Ambiguous. The four classes sum to 100% before display rounding.
6. Samples, fallback and uncertainty
A forecast requires at least 40 resolved events in its selected bucket by default. Total learned events can be much larger than the number matching a particular state.
Core matching uses session, location and pressure, while always preserving direction, elapsed-age bucket and event family. Fallback progressively removes session, pressure and location. The optional broadest fallback also pools event families while retaining direction and age. Such estimates are explicitly labeled broad/pooled; they are not precise forecasts for one narrow state.
When at least 20 records exist in the broader parent group outside the selected bucket, estimates are shrunk toward that disjoint group's frequencies. The default prior weight is 20. Otherwise raw frequencies are used. Prior weight never increases the reported observed sample count.
Optional regime, weekday or previous-state refinement is selected only when supported by paired historical forecast errors: at least 60 evaluations and mean Brier improvement greater than 2.4 estimated standard errors. Only one additional feature is selected at a time. This is a practical screening rule, not proof that a feature will remain useful.
Reliability labels follow explicit rules:
Insufficient: fewer observations than Minimum outcome bucket n.
Low / broad fallback: location-only, family-base or pooled-family matching.
Moderate: a more specific bucket with at least 80 events and maximum raw class-wise Wilson interval width no greater than 22 percentage points.
Good (nominal): a more specific bucket with at least 160 events and maximum interval width no greater than 16 percentage points.
Low: other supported forecasts.
Research mode reports raw 95% Wilson intervals for C and R. These are nominal binomial intervals around unshrunk class frequencies, not posterior intervals around the displayed shrunk probabilities. Serial dependence and market change can make actual uncertainty larger.
7. Setup and daily/session timing
Use standard time-based candles on a positive-priced instrument. Start with 5-minute or 15-minute charts. The script accepts 1–30 minutes; pressure blocks and outcome horizons must be exact multiples of the selected timeframe.
Leave Daily reset reference at Symbol trading day to follow the data feed's daily-bar boundaries. Use Custom timezone boundary only when a different analytical day is intended. DAY START shows the active anchor and its timezone.
Configure sessions to match available trading hours. Session candles must not straddle configured boundaries. Each session's IANA timezone handles its own daylight-saving changes; changing the chart's display timezone does not redefine these sessions.
For 24/7 crypto, enable Include weekends. Defaults exclude weekends.
Wait for movement and event warm-up. Start with Compact, then use Detailed to inspect consumption and Research to inspect forecast evidence.
Default independent session windows:
Asia: 09:00–17:00, Asia/Tokyo.
London: 08:00–12:00, Europe/London.
London/NY overlap: 12:00–16:00, Europe/London.
New York: 09:00–15:00, America/New_York.
NY PM: 15:00–17:00, America/New_York; disabled by default.
These are configurable analytical windows, not universal exchange definitions. The overlap window is London-timed and does not automatically recalculate the true intersection of London and New York hours during differing DST transition weeks. Auto priority selects the highest-numbered enabled active session: NY PM, New York, overlap, London, then Asia. Independent session statistics continue to update, but event admission follows the focus session.
8. Parameter guide
Sampling: completed session/day/block caps default to 1200/500/2400. Minimum distribution n is 30. These caps bound retained records, not how much data TradingView loads. Completed-day regime mean length defaults to 10; the period-range data guard is 50%. Regime and previous-state movement conditioning are enabled.
Daily gap treatment: Observed feed permits maintenance closures inside daily aggregation. Strict contiguous rejects gaps. The default cannot distinguish planned closures from missing data; analytical sessions, pressure blocks and outcome labels still apply gap checks.
Location / pressure: Central/Stretch/Extreme/Tail boundaries default to 25/75/90/95. Pressure blocks default to 30 minutes; the marginal denominator floor is 0.05 × Q50. These thresholds are explicit model choices, not statistically optimized constants.
Outcome storage and support: retain up to 1200 resolved events; minimum bucket size 40; prior strength 20. Pooled-family fallback and completed-block checkpoint admission are enabled by default.
Outcome definition: horizon 120 minutes, continuation distance 0.25 × Q50, toward-open distance 0.35 × Q50, minimum entry displacement 0.10 × Q50. Changing these settings changes the question being estimated and rebuilds the historical labels.
Optional feature gate: enabled by default; paired evaluation window 200 and minimum evaluations 60. Turning it off uses the core/fallback model rather than forcing every optional feature into conditioning.
Probability alerts: default threshold 60%. These can fire only on a newly admitted event with sufficient empirical support.
Display: Compact, Detailed or Research; Light/Dark theme; Small/Normal/Large font. Dashboard, historical location and state ribbon are enabled by default. Price labels, nearest-level tags, active price zone and event paths are optional.
Label controls: text on price requires the master Research: allow text labels on price switch plus the relevant marker/path option. Marker cap defaults to 100; event-path retention defaults to 70. These affect drawing retention, not learning.
Historical research / audit: defaults to the last 300 eligible resolved observations. Entry-from and resolution-through timestamps filter audit inclusion, not the underlying training history. The audit table appears only in Research mode. Session-reset dots can be enabled independently.
9. Historical evaluation and alerts
Research mode compares forecasts frozen at entry with later first-touch outcomes. It reports model and broader-base Brier loss on the same supported events, Brier skill, most-likely-class accuracy, and mean predicted versus observed R frequency. Lower Brier loss is better. Zero skill means no improvement over the baseline; negative skill means worse performance. This is a forecast-quality audit, not a trading strategy backtest: it has no entries/exits, costs, slippage or portfolio P&L.
Supported historical entry forecasts, barrier prices and entry/result timestamps are available in the Data Window. Use the entry timestamp to associate an outcome with its original forecast. Unscored warm-up observations are not retroactively assigned predictions using later data.
Available alerts cover upper/lower extreme entry, strong expansion, weakening pressure, upper/lower exhaustion candidates, empirical C/R thresholds, and resolved C/R outcomes. Configure alerts for Once Per Bar Close. Statistical alerts describe observed conditions or empirical event forecasts; they are not order instructions.
10. Training and limitations
State changes use confirmed chart bars. Resolved outcomes enter training only on a later bar, never while their future outcome is unknown.
Training is reconstructed from the chart data available on each execution. There is no persistent external model, imported pretrained weights, or hidden additional intraday history.
A historical lookup buffer is different from the total number of executed chart bars. Increasing record caps cannot manufacture older candles or independent events.
Session coverage, symbol feed, chart timeframe and loaded start date affect samples and results. Some instruments cannot supply complete coverage for the default sessions.
Incomplete starting periods and invalid observations are excluded where applicable. Missing estimates remain unavailable instead of being filled with invented values.
No lower-timeframe reconstruction is used to resolve within-candle ordering. Ambiguous outcomes remain visible as their own class.
Changing parameters, chart history or feed data rebuilds the study and can change results. Confirmed-bar processing does not make the study invariant to those changes.
Adjacent events can remain dependent despite de-duplication. Small samples, feature selection and changing market structure limit inference. No predictive advantage or profitability is claimed.
Author and license
V1 is the first public release by uPaSKaL. Source code is distributed under the Mozilla Public License 2.0. Индикатор

Ichimoku 5 Rules BacktestICHIMOKU 5/5 BACKTEST STRATEGY
This strategy is a rule-based, long-only backtesting framework designed specifically for the 1-hour timeframe.
Its purpose is to evaluate the historical behavior of a five-condition Ichimoku-based setup under predefined risk, reward, and holding-time rules.
The strategy does not attempt to predict future prices. It is designed to test whether a clearly defined technical setup produces repeatable historical outcomes across a sufficiently large sample of trades.
HOW THE STRATEGY WORKS
A potential long setup requires all five conditions to be simultaneously satisfied and confirmed.
1. CHIKOU CONFIRMATION
Current price must be above the price from 26 bars ago.
This condition is used as a historical price-structure confirmation.
2. TENKAN / KIJUN STRUCTURE
Tenkan-sen must be above Kijun-sen.
This represents bullish short-term versus medium-term Ichimoku structure.
3. MACD MOMENTUM STRUCTURE
The strategy evaluates bullish MACD and/or Signal Line divergence or convergence using confirmed price pivot lows.
The pivot comparison can identify:
- Lower Low in price with Higher Low in momentum
- Higher Low in price with Higher Low in momentum
The MACD, Signal Line, or both can be selected through the strategy inputs.
Because pivots require right-side confirmation bars, this condition only becomes available after the relevant pivot has been confirmed.
4. KUMO BREAKOUT + PULLBACK CONDITION
Price must be above the relevant Kumo reference after having traded below or inside the cloud during the selected historical lookback period.
This condition is intended to identify a transition from weaker price structure into a confirmed position above the cloud.
5. BULLISH KUMO
Senkou Span A must be above Senkou Span B.
This represents bullish future-cloud structure.
ENTRY LOGIC
A trade is generated only when a NEW confirmed 5/5 setup appears.
If all five conditions remain true for several consecutive bars, the strategy does not repeatedly generate additional entries.
Pyramiding is disabled.
The setup is confirmed using completed bars.
Because process_orders_on_close is disabled, a confirmed signal is submitted after the signal bar closes and is normally filled according to TradingView's broker-emulator execution model on the following bar.
DEFAULT CAPITAL AND POSITION SETTINGS
Initial capital:
USD 3,000
Position size:
10% of current equity
Pyramiding:
0
The strategy is intended to simulate relatively small position exposure while separating position size from the maximum intended capital risk.
RISK MANAGEMENT
Default maximum intended risk per trade:
1% of current equity
Default target:
3.5R
The initial risk amount is calculated from current strategy equity.
The stop distance is then derived from:
Initial Risk Cash / Position Size
For a long trade:
Stop Price =
Entry Price - Risk Per Share
Target Price =
Entry Price + (Risk Per Share × Reward/Risk Multiple)
The default reward/risk multiple is 3.5R but can be modified through the strategy inputs.
TRADING COSTS
The strategy uses a fixed commission of:
USD 0.10 per executed order
Under the normal one-entry / one-exit structure:
Entry commission:
USD 0.10
Exit commission:
USD 0.10
Approximate total commission for a completed trade:
USD 0.20
The commission is fixed per order and does not vary with position value.
The TRIM marker is visual only and therefore does not generate an additional order or commission.
Slippage and bid/ask spread can vary substantially by instrument, liquidity, market conditions, and order type. They should be considered when interpreting historical results. Users should apply assumptions appropriate to the instrument being tested.
MAXIMUM HOLDING TIME
Default maximum holding period:
15 trading sessions
Default 1-hour bars per session:
7
Equivalent maximum:
105 one-hour bars
If neither the stop nor the target has been reached by the maximum holding period, the position is closed using a TIME EXIT.
Both values can be modified through the strategy inputs.
TRIM REFERENCE
The strategy includes an optional TRIM marker intended to identify when price has completed a selected percentage of the theoretical Entry-to-Target distance.
Default TRIM level:
75%
The percentage is configurable.
For example, with a 3.5R target:
75% × 3.5R = 2.625R
Therefore, under the default parameters, the TRIM reference corresponds to approximately +2.625R from the entry.
IMPORTANT:
TRIM is a visual reference only.
It does NOT:
- reduce the position
- execute a partial exit
- modify the stop
- change the profit target
- affect strategy performance
- generate additional commissions
TRIM GAP HANDLING
Two different situations are considered.
NORMAL PRICE MOVEMENT
If price trades normally through the calculated TRIM level, the TRIM label is placed at the theoretical TRIM price.
GAP ABOVE TRIM
If the market opens above the calculated TRIM level, the label is placed at the opening price of that bar.
This is intended to avoid visually marking an execution at a theoretical price that was skipped by the gap.
The marker remains informational only.
BACKTEST TABLE
The strategy includes an on-chart statistical table containing:
- Closed Trades
- Wins
- Losses
- Win Rate
- Profit Factor
- Expectancy
- Net P&L
- ROI
- Maximum Drawdown
- Average Holding Period
- Target Exits
- Stop Exits
- Time Exits
- Realized R Distribution
- Mean R
- Standard Deviation of R
REALIZED R DISTRIBUTION
Each completed trade is measured relative to its initial planned risk.
Realized R is calculated as:
Trade Profit / Initial Risk Cash
For visualization, outcomes are grouped into 0.5R distribution ranges.
The distribution includes:
<= -1.0R
-0.5R
0.0R
+0.5R
+1.0R
+1.5R
+2.0R
+2.5R
+3.0R
>= +3.5R
The distribution buckets are rounded for display purposes only.
Mean R and Standard Deviation are calculated from the actual realized R values rather than from the rounded distribution buckets.
EXPECTANCY
Mean R represents the average realized R-multiple produced by the completed trades in the historical sample.
It is displayed as the strategy's historical expectancy per trade.
A positive historical expectancy does not imply that future expectancy will remain positive.
STANDARD DEVIATION
Standard Deviation measures the dispersion of individual realized R outcomes around the historical Mean R.
It is included to provide additional context regarding the variability of strategy outcomes.
The calculation does not assume that future returns will follow a normal distribution.
SAMPLE SIZE
The strategy includes a visual sample-size classification.
LOW:
Fewer than 50 completed trades
PRELIM.:
50 to 99 completed trades
VALID:
100 or more completed trades
IMPORTANT:
The term VALID refers only to the strategy's predefined minimum sample-size threshold.
It does NOT mean that the strategy has been statistically validated, that its results are reliable in every market, or that future profitability is expected.
Sample size should always be interpreted together with timeframe, instrument, market regime, expectancy, drawdown, dispersion, and other statistical characteristics.
TIMEFRAME
This strategy is designed specifically for:
1-hour charts
The script validates the chart timeframe and is not intended to be used unchanged on other timeframes.
Testing the same logic on another timeframe may produce materially different results.
CHART TYPE
The strategy is intended for use on standard price candles.
Results obtained from synthetic or non-standard chart types may not represent executable market prices and should not be interpreted in the same way as results obtained from standard OHLC market data.
ORIGINAL PURPOSE OF THE SCRIPT
This script is not intended to reproduce a standard Ichimoku indicator.
Its purpose is to combine a specific five-condition decision framework with:
- confirmed Ichimoku structure
- pivot-based MACD momentum analysis
- explicit equity-based risk modeling
- fixed reward/risk targeting
- maximum holding-time rules
- gap-aware TRIM visualization
- realized R distribution
- expectancy analysis
- outcome dispersion
- exit-type classification
- sample-size monitoring
The strategy is primarily a research and backtesting tool for studying the historical behavior of this specific rules-based setup.
BACKTEST LIMITATIONS
Historical results are simulations and do not represent actual trading performance.
Real-world results can differ due to factors including:
- slippage
- bid/ask spread
- commissions
- liquidity
- market impact
- order type
- order priority
- partial fills
- trading halts
- gaps
- broker execution
- exchange rules
- data quality
- corporate actions
- symbol history
- market regime changes
Historical OHLC bars also do not always reveal the exact sequence in which prices moved inside each bar.
When multiple relevant price levels occur within the same historical bar, TradingView's broker emulator determines fills according to the information and execution assumptions available to the strategy.
For this reason, individual historical fills should not be interpreted as a reconstruction of actual tick-by-tick execution.
REPAINTING AND CONFIRMATION
Trade setups are based on confirmed bars.
The momentum component uses confirmed pivots. Because pivot detection requires bars to the right of the pivot, a pivot is recognized only after its confirmation period has elapsed.
This confirmation delay is part of the strategy logic and should be considered when interpreting signals.
INTERPRETING RESULTS
Historical performance should not be evaluated from a single symbol, isolated market period, or individual trade.
A more robust evaluation should consider:
- a sufficiently large trade sample
- different symbols
- different market environments
- trending and non-trending periods
- drawdown
- realized R distribution
- expectancy
- outcome dispersion
- transaction costs
- execution assumptions
Changing parameters can materially alter historical results and may introduce overfitting.
Parameters should therefore be selected based on a defined trading hypothesis rather than solely because they improve historical performance.
DISCLAIMER
This strategy is provided for educational, analytical, and research purposes only.
It is not financial advice.
It does not constitute an offer, solicitation, recommendation, or instruction to buy or sell any financial instrument.
Historical performance does not guarantee future results.
All trading and investment decisions, including position sizing and risk management, remain the sole responsibility of the user.
Стратегия

QRB - Quarterly Range BreakoutQRB — Quarterly Break Range is a market-structure indicator designed to help traders visualize how price interacts with the previous quarter’s range.
At the beginning of each new calendar quarter, QRB automatically identifies the completed previous quarter’s:
High
Low
50% midpoint
Those three levels are then projected across the current quarter, creating a simple structural map for price.
The indicator automatically updates when a new quarter begins, so there is no need to manually redraw the levels.
The Idea Behind QRB
The concept behind QRB comes from a simple observation:
Markets often react to important historical ranges.
Intraday traders commonly use concepts such as the Opening Range, previous-day high and low, session ranges, and other reference levels to understand where price is accepting, rejecting, or breaking away from prior value.
QRB applies that same thought process to a much larger timeframe.
Instead of asking:
“Where is price relative to today's opening range?”
QRB asks:
“Where is price relative to the previous quarter?”
The previous quarter becomes the reference range, while the current quarter shows how the market responds to that range.
This allows traders to study quarterly price behavior using only three objective levels.
Understanding the Three Levels
Previous Quarter High
The previous-quarter high represents the upper boundary of the completed quarterly range.
When price approaches this level, traders may watch for:
Rejection
Consolidation
Breakout attempts
Acceptance above the range
Retests after a breakout
A sustained move above the previous-quarter high may indicate that the market is beginning to expand beyond the prior quarter's range.
Previous Quarter Midpoint
The midpoint is calculated as:
(Previous Quarter High + Previous Quarter Low) ÷ 2
This represents the 50% level of the previous quarter's range.
The midpoint can be useful as a simple measure of where price is trading relative to the prior quarter.
Price holding above the midpoint places it in the upper half of the previous quarter's range.
Price holding below the midpoint places it in the lower half.
The midpoint may also act as an important area of balance, support, resistance, or transition.
Previous Quarter Low
The previous-quarter low represents the lower boundary of the completed quarterly range.
When price approaches this area, traders may watch for:
Support
Rejection
Consolidation
Breakdown attempts
Acceptance below the range
Retests following a breakdown
A sustained move below the previous-quarter low may indicate that the market is expanding beneath the previous quarter's range.
How to Use QRB
QRB is primarily designed as a market-structure framework, not a standalone buy or sell signal.
The three quarterly levels can help answer a few simple questions:
Where is price?
Above the previous quarter
Inside the previous quarter
Below the previous quarter
Which half of the prior range is price occupying?
Above the midpoint
Below the midpoint
How is price reacting to the boundaries?
Breaking
Rejecting
Retesting
Consolidating
Accepting beyond the range
That information can then be combined with a trader's existing approach to trend, momentum, price action, support and resistance, volume, or other forms of confirmation.
Example Market Behaviors
One possible bullish sequence could look like:
Previous-quarter high is tested
→ Price breaks above it
→ Price remains above the level
→ The level is retested
→ Buyers continue pushing price higher
A possible bearish sequence could look like:
Previous-quarter midpoint fails
→ Price moves into the lower half of the range
→ Previous-quarter low breaks
→ Price remains below the range
→ Selling pressure continues
Another possible scenario is simple rejection:
Price reaches the previous-quarter high
→ Fails to gain acceptance above it
→ Moves back inside the range
→ Rotates toward the midpoint
QRB does not attempt to predict which scenario will occur.
It simply provides the structural levels needed to observe what price actually does.
Why Quarterly Ranges?
Calendar quarters are natural market periods.
Each quarter contains roughly three months of price discovery and can represent a significant amount of accumulated positioning and market activity.
Rather than treating each daily candle independently, QRB allows traders to step back and see price within a broader structural framework.
The previous quarter essentially becomes a large reference range.
The current quarter then answers the question:
Will price remain inside that range, reject its boundaries, or expand beyond it?
That is the central idea behind QRB.
Best Use
QRB was designed primarily for higher-timeframe analysis, especially the Daily chart.
It may be useful across different markets, including:
Stocks
Forex
Futures
Indices
Cryptocurrencies
Because different markets behave differently, traders should evaluate the concept independently on the instruments they trade.
Customization
QRB allows users to customize the appearance of each level, including:
Previous Quarter High color
Previous Quarter High thickness
Midpoint color
Midpoint thickness
Previous Quarter Low color
Previous Quarter Low thickness
This allows the quarterly structure to remain visible without overwhelming the chart.
The Philosophy Behind QRB
QRB is intentionally simple.
There are no complicated calculations, predictive algorithms, or large collections of indicators.
The purpose is to create a clean structural map and allow price action to provide the information.
The core idea is:
Previous quarter = reference range
Current quarter = reaction to that range
From there, the trader observes whether price accepts, rejects, breaks, retests, or rotates around those levels.
"Sometimes three well-defined levels can tell you more about market structure than twenty indicators ever could."
Индикатор

Vortex Trend Crossover [RC Tools]RC Tools — Vortex Trend Crossover
────────────────────────────────────────────────────────────────────
█ OVERVIEW
Most directional-movement tools measure how far price has moved from a fixed baseline. The Vortex Indicator, developed by Etienne Botes and Douglas Siepman, asks a more specific question: how far did today's price action "reach" away from where it just was, in each direction? That reach, summed over a window and compared between up and down, is what drives this tool's crossover signal.
█ WHAT IT DOES
Computes two oscillating lines, VI+ and VI-, from how far each bar's high and low reach past the prior bar's opposite extreme, and classifies each confirmed bar as Bullish or Bearish based on which line is currently dominant. Colours the chart background accordingly, plots both the smoothed and raw VI+/VI- lines in a dedicated pane against the 1.0 baseline, and shows a table with the live (intrabar) and confirmed vote side by side, plus how long price has been in the current state.
█ THE THEORY BEHIND IT
Most directional tools compare price to itself over time (a moving average) or measure the net displacement of directional movement (DMI). Vortex instead asks how far each bar reaches beyond where the market just was, using the opposite extreme of the prior bar as the reference point: today's high against yesterday's low for upward reach, today's low against yesterday's high for downward reach. Normalising both by the true range and summing over a window produces two lines, VI+ and VI-, that oscillate around a baseline of 1.0. When VI+ is meaningfully above VI-, upward reach has been dominating; when VI- takes over, downward reach has. The crossover between the two lines is the signal.
█ HOW IT IS CALCULATED
1. VM+ = |high − low | (today's high vs. yesterday's low — upward reach). VM− = |low − high | (today's low vs. yesterday's high — downward reach).
2. TR = true range for the bar.
3. Sum VM+, VM−, and TR separately over the VI Length window, then divide: VI+ = ΣVM+ / ΣTR, VI− = ΣVM− / ΣTR.
4. Optionally smooth VI+ and VI− (the raw sums are noisy bar-to-bar by construction).
5. When smoothed VI+ crosses above smoothed VI−, the state flips to Bullish. When it crosses below, the state flips to Bearish. Between crossovers, the classification holds.
Classification occurs ONLY on confirmed bar close — the plotted VI+/VI-, the background colour and the table all update together, so nothing here can disagree mid-bar or flip back and forth as the current bar forms.
█ SETTINGS & CONFIGURATION
• VI Length (default 14) — the summation window for VI+ and VI-
• Smoothing Length and Type (default 5-period EMA) — reduces the raw VI+/VI- sums' bar-to-bar noise before the crossover check
• Table visibility, position and colours are fully configurable; the main-chart background painting can be toggled off if you only want the statistics pane
█ HOW TO USE IT
Use it as a directional-pressure filter alongside your existing tools, not as a standalone entry signal. Because it's a crossover system, it tends to behave like other crossover tools — reliable in trending conditions, prone to whipsaw when the two lines sit close together in a range. The Live row can still change until the bar closes; only the Confirmed row is safe to treat as settled.
Works on any asset and timeframe with sufficient history for the VI Length window.
█ LIMITATIONS
• Vortex is a DIRECTIONAL-PRESSURE oscillator, not a magnitude or overbought/oversold measure. Any use of it as a precision reversal forecast is a misuse.
• Like any crossover-based system, it can whipsaw when VI+ and VI- sit close together in choppy, range-bound conditions.
• The summation window resets its frame of reference every VI Length bars; a short length reacts fast but is noisier, a long length is smoother but slower to reflect a genuine change.
• Smoothing trades responsiveness for fewer false crossovers — there is no setting that eliminates whipsaw entirely.
• This script does NOT repaint. All classification updates on confirmed bar close only.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past behaviour of any directional state does not indicate future results. Trade at your own risk.
Индикатор

Price Action Support and resistanceShort description
A clean daily price-action indicator that identifies support/resistance-based Buy, Re-Buy, and Exit signals using repeated S/R reactions, candle confirmation, breakout/retests, and adaptive 10-day-low protection.
Full TradingView description
Price Action S/R – Buy, Re-Buy & Exit is a price-action indicator designed primarily for daily-chart swing and positional trading.
The goal is to keep the chart visually simple while allowing the underlying logic to evaluate repeated support/resistance interactions, candle confirmation, breakout/retest setups, exits, and re-entry opportunities.
Signals
B — Buy
A Buy can occur when a sufficiently established support/resistance setup produces one of the supported bullish confirmations, including:
• Support rejection
• Bullish engulfing at support
• Support reclaim
• Resistance breakout followed by a successful retest
By default, a support/resistance level requires at least 3 touches before it becomes eligible for a signal.
R-B — Re-Buy
After an Exit, the indicator remembers the original setup level for a limited period. If price makes a fresh reclaim of that level with bullish confirmation, an R-B signal can be generated.
This is intended to identify situations where an earlier position was protected by the exit logic but the original bullish setup subsequently recovers.
E — Exit
The indicator uses two stages of downside protection.
Before a qualifying resistance warning occurs, the protective level is based on the lowest low of the previous 10 completed candles at the time of entry. This level remains frozen.
A qualifying resistance warning does not automatically create an Exit. Instead, it activates rolling previous-10-day-low protection.
After that transition, a daily close below the rolling previous 10-day low can generate an E signal.
Clean chart design
Only three markers are displayed:
B = Buy
R-B = Re-Buy
E = Exit
Additional calculations remain hidden to avoid filling the chart with support/resistance labels and warning markers.
Hovering over a signal provides additional context such as the setup type, support/resistance touch count, candle type, daily volume, RVOL20, and signal price.
Support and resistance
Support and resistance are treated as zones rather than exact prices. ATR is used to provide tolerance around detected pivot levels.
Nearby pivot reactions can contribute to an existing level, while a minimum separation between reactions helps reduce repeated counting of nearby candles as independent touches.
Candle confirmation
The indicator recognizes price-action confirmations including:
• Bullish rejection
• Bearish rejection
• Bullish engulfing
• Bearish engulfing
• Support reclaim
• Failed breakout
• Breakout and retest
Volume information
Signal tooltips include the day's volume and RVOL20, which compares current volume with the 20-day average volume.
Volume is currently informational only. It is not a mandatory condition for generating a Buy signal.
Recommended use
The indicator was designed primarily around the 1-day timeframe for swing and positional analysis.
It should be used as one component of a broader analysis process rather than as a standalone prediction system. Market conditions, company fundamentals, liquidity, earnings, gaps, and risk tolerance can materially affect results.
Historical signals do not guarantee future performance.
This script is provided for educational and technical-analysis purposes only and is not financial advice.
Suggested TradingView tags
Use tags/categories around:
Support and Resistance, Price Action, Swing Trading, Breakout, Reversal, Volume, Relative Volume
Author's note
You can add this at the bottom:
Version 1.0
This is the first public release. The emphasis is intentionally on chart simplicity: B, R-B and E are displayed while the supporting calculations operate internally.
Future versions may refine support/resistance detection, confirmation quality, volume analysis and risk management based on testing and community feedback.
Code
Use the exact locked script we just finalized — the version titled:
Price Action S/R Master - B R-B E
I would only change its public-facing title:
//@version=6
indicator(
"Price Action S/R - Buy, Re-Buy & Exit ",
overlay=true,
max_labels_count=500)
Everything below that can remain exactly as in the locked version. Do not change the calculations before publishing V1.0.
What I would choose when publishing
For visibility, publish it as an open-source indicator if you're comfortable letting others inspect/copy the Pine code. If you want people to use it but don't want the source openly available, TradingView's available publication/access choices should be reviewed at publishing time.
For the chart screenshot, use a clean 1D chart showing at least one B → E → R-B sequence if you can find a good historical example. Keep the screenshot free of unrelated indicators so people immediately understand what your script does.
And don't market it with claims like “90% accurate,” “guaranteed profits,” “best buy/sell indicator,” etc. The strength of this script is that the rules can be explained transparently.
Before you click Publish
I would use this final package:
Title: Price Action S/R – Buy, Re-Buy & Exit
Visibility on chart: B / R-B / E
Timeframe: 1D primarily
Description: Use the full description above.
Screenshot: Clean daily chart demonstrating the signals.
Version: 1.0
Source: Open-source if you want this to be genuinely community-shared.
Disclaimer: Educational/technical-analysis purposes; not financial advice. Индикатор

Liquidity Heatmap & Sweep RadarLiquidity Heatmap & Sweep Radar — see where the stops are, and when they get hunted
Price is drawn to liquidity — the pools of stop orders resting above old highs and below old lows. This tool maps those pools as a colour-graded heatmap and, when price wicks through one and closes back, marks the stop-hunt in real time.
── WHAT IT DRAWS ──
• Liquidity pools — clusters of swing highs (buy-side liquidity, above price) and swing lows (sell-side liquidity, below price). Swings that sit close together merge into one pool — that's exactly how equal highs / equal lows stack stops into a bigger, more attractive target.
• Heatmap intensity — the more times a level has been touched, and the higher the volume when it formed, the hotter and more opaque its band. Faint band = minor pool; solid band = a magnet.
• Sweep Radar — when price wicks past a pool and closes back inside (a stop-hunt), an × marks it and the drained pool is cleared. Pools that price simply closes through are removed as consumed (toggle).
── READING THE DASHBOARD ──
• Buy-side above — the price of the nearest liquidity pool above current price (the next upside target/magnet).
• Sell-side below — the price of the nearest pool below current price.
• Strongest pool — the price of the single strongest pool on the chart, with its strength score in parentheses (touches + a volume bonus).
• Active pools — how many buy-side (▲) and sell-side (▼) pools are currently live.
• Distance up — how far the nearest pool above sits, in percent.
• Distance down — how far the nearest pool below sits, in percent.
── HOW TO USE IT ──
• Targets: in a move, the nearest hot band above/below is the natural draw — a logical objective, or a place price reaches before deciding.
• Sweeps: a sweep (×) marks the moment liquidity was taken — price wicked through a pool and closed back. Treat it as CONTEXT, not a standalone trade trigger: on its own a sweep is not a reliable reversal signal (see the note below). It earns its weight only in confluence with structure — e.g. a sweep that coincides with a Change of Character, or one into a higher-timeframe supply/demand zone.
• Context: stack it under a market-structure tool — the heatmap tells you where the fuel sits and when it gets taken; your structure read tells you whether that leads to a reversal or a continuation.
── ON THE SWEEP SIGNAL (tested honestly) ──
Across the top coins on 1H–1D (out-of-sample), a raw sweep — by itself, with no other filter — showed NO reliable reversal edge: after a sweep, forward returns were a coin-flip with a slight tendency to CONTINUE, not reverse. That held at every horizon tested (1–20 bars) and even for exhaustion sweeps at trend extremes and strong multi-touch pools. So this tool deliberately does not sell the sweep as a reversal signal. Its job is to map where liquidity rests and flag when it is taken — powerful CONTEXT for a discretionary or structure-based method, not an automated buy/sell trigger.
── HONEST DISCLOSURE ──
TradingView does not expose an aggregated exchange-liquidation or order-book feed to scripts, so this is a STRUCTURE + VOLUME proxy for resting liquidity — built from swing clusters and formation volume, not real liquidation data. It shows where stops most plausibly sit, not a live order book. Treated that way, it is a powerful map; treated as literal liquidation data, it is not.
── NON-REPAINTING ──
Sweeps are confirmed on bar close (barstate.isconfirmed) — an × does not appear and then vanish. Pools are anchored to confirmed swing pivots; the bands extend to the right and update their intensity on the live edge.
── SETTINGS ──
Swing length, cluster tolerance (how close swings must be to merge), max pools per side, band thickness, sweep marking, remove-on-close-through, dashboard position/size, and the buy-side / sell-side colours — all adjustable.
Free and open-source (Mozilla Public License 2.0) — the full logic is on the Pine tab.
This tool is for research and education. It is not financial advice and does not guarantee profit. Test on your own markets and manage your own risk.
Индикатор

Market Regime EngineKnow the market you're in before you trade it — adaptive k-means volatility + a trend/range read that tells you whether to trend-follow, fade, or stand aside.
The same setup that prints money in a trend gets chopped to pieces in a range. Market Regime Engine reads the environment first — is price TRENDING or RANGING, and is volatility LOW, NORMAL or HIGH — then tells you which playbook fits: trend-follow, fade the range, or stand aside in the chop.
── TWO HONEST, ADAPTIVE READS ──
• Volatility (self-learning) — a genuine k-means clustering (k = 3) of ATR over a rolling window. The model continually re-learns the market's own low / normal / high volatility buckets instead of using fixed thresholds, so it adapts to each symbol and timeframe. No black box, no "AI" hand-waving — just clustering you can read in the code.
• Behaviour — the Kaufman Efficiency Ratio: how much of the recent range was actual directional progress versus back-and-forth noise. Above your threshold = TRENDING, below = RANGING.
Direction (▲/▼) comes from price versus a bias EMA, so a trend is labelled TRENDING ▲ or TRENDING ▼.
── WHAT YOU SEE ──
The background (and optionally the candles) colour by regime — green up-trend, red down-trend, blue range. A label marks each regime change. Everything is confirmed on close.
── READING THE DASHBOARD ──
• Regime — the current state: TRENDING ▲, TRENDING ▼ or RANGING.
• Confidence — 0–100 conviction. For a trend it rises the further the efficiency ratio is above your threshold; for a range it rises the further below. It measures how cleanly price fits the state, not a win rate.
• Volatility — Low / Normal / High, from the k-means cluster the current ATR falls into.
• Efficiency — the raw efficiency ratio as a percent, with your threshold beside it.
• Bias — whether price is above or below the bias EMA.
• Play — the suggested approach for this regime: "Trend-follow pullbacks", "Fade the range", or "Stand aside — chop" (ranging + high volatility).
── HOW TO USE IT ──
Use it as a filter on top of your own system:
• TRENDING → take trend-following entries (pullbacks, breakouts); avoid fading.
• RANGING + Low/Normal vol → mean-reversion at the range edges works best.
• RANGING + High vol → the danger zone; expect whipsaw, size down or stand aside.
It pairs naturally with structure/SMC or momentum tools — let the regime decide which of your setups to trust right now.
── NON-REPAINTING ──
The efficiency ratio, the volatility cluster and the regime are all evaluated on closed bars (barstate.isconfirmed), so a regime label does not repaint after the fact.
── SETTINGS ──
Trend/range window, trend threshold, bias EMA, and the volatility training window (how many bars the k-means model learns from) are all adjustable, along with background/candle colouring, the regime-change labels, dashboard position/size and every colour. The defaults (efficiency window 20, trend threshold 0.35, bias EMA 100, training window 150) were chosen from out-of-sample testing across the major coins on 1H–1D — the settings where a TRENDING call carried the strongest forward directional edge.
── A NOTE ON HONESTY ──
"k-means" here is a real, transparent clustering of volatility — deliberately simple and readable, not a predictive machine-learning oracle. It classifies the current environment; it does not forecast price.
Free and open-source (Mozilla Public License 2.0) — the full logic is on the Pine tab.
This tool is for research and education. It is not financial advice and does not guarantee profit. Test on your own markets and manage your own risk.
Индикатор

PipSchool What it does
PipSchool marks the London and New York trading sessions on the chart and overlays three moving averages with a trend-bias reading, so a beginner can see when the market is active and which way it is leaning from a single script instead of loading four separate ones.
Sessions
London and New York toggle on and off independently.
Two display modes: background shading across the full session, or a filled box bounded by the session's high and low. Switch with the Activate High/Low View checkbox.
Session highs and lows build live — the first bar of a session resets the level, and every bar after that extends the running high or low. No repainting of closed bars.
Session times are editable. Defaults are 03:00–12:00 for London and 08:00–17:00 for New York, anchored to the America/New_York timezone, so they hold through daylight-saving shifts without manual adjustment.
Moving averages
EMA 9 and EMA 21 — short-term momentum and the faster of the two crossover signals.
SMA 200 — the longer-term trend filter.
Each has its own Length, Source and Offset inputs plus an on/off switch, and its own colour, width and line style in the Style tab.
Trend bias label
A small on-chart panel reads the moving averages and summarises the picture in plain language: price above or below the SMA 200, the current EMA 9 / EMA 21 relationship, and a combined structure read — Bullish structure, Bearish structure, or Mixed structure — coloured green, red or grey.
How to use it
Use the sessions to decide when you look for trades. The London and New York windows carry most of the day's volume, and a session high or low is a natural reference for a stop or a break level. Use the moving averages to decide which direction you look. The bias label is a summary of what the MAs already show — it is a structure read, not an entry signal, and there are deliberately no buy/sell arrows.
Notes
The SMA 200 needs 200 bars of history before it plots, so it will be blank at the left edge of short intraday charts. That is expected.
Индикатор

Support Resistance Confluence Zones [AxeAlgo]Support Resistance Confluence Zones
--
What it does
This indicator automatically builds support and resistance zones the way a discretionary trader draws them by hand, as a band of price rather than a single thin line, and only after at least two separate swing points agree that the level matters. Instead of plotting every pivot high and low on the chart, it waits for pivots to cluster together within a small ATR based tolerance before drawing a zone, which removes most of the single touch noise that clutters typical support and resistance tools and leaves only levels that price has actually reacted to more than once.
Each zone is scored from 0 to 100 based on four things: how many times price has respected it, whether it aligns with a higher timeframe swing point, whether it sits near a round psychological number, and whether it formed or was retested on unusually high volume. The score is not a simple pass or fail check, it uses a curve that keeps separating heavily tested zones from each other instead of letting every well tested level cap out at the same number, so a zone tested forty times still reads as stronger than one tested ten times. The single highest scoring zone currently visible on the chart is highlighted with a brighter, thicker border and a small marker so the strongest level is identifiable at a glance without needing to read every badge or open a settings panel.
How it works
Pivot highs and lows are detected once they are confirmed a fixed number of bars to the right of the swing, so nothing is plotted based on a pivot that has not actually finished forming. When two pivots on the same side land close enough together, measured as a fraction of the current ATR, they merge into a single zone rather than being drawn as two separate lines. Later pivots that land inside an existing zone extend and reinforce that zone instead of creating a duplicate next to it, and any zones that end up overlapping each other after independently forming are automatically merged into one.
When price closes through a zone, meaning the candle actually closes beyond it rather than just wicking into it, the zone flips role instead of simply disappearing. Broken resistance becomes new support and broken support becomes new resistance, and the indicator keeps a memory of how many times the zone was tested both before and after the flip, shown directly in the badge. Zones that price has since moved far away from fade out visually in stages and are eventually removed once they pass a configurable distance threshold, which keeps the chart focused on levels that are currently relevant rather than accumulating clutter over months of history. A separate de-cluttering setting limits how many resistance levels above price and support levels below price can be displayed at once, always keeping the ones actually nearest to price rather than whichever happened to form first.
An optional dashboard reports the total number of active zones, whether price is currently inside or testing a zone, the nearest zone above price and how many ATR away it is, the nearest zone below price, the single strongest zone on the entire chart with its score, and a plain language read of the overall market structure such as being between support and resistance, above every shelf, or below every shelf.
How to use it
Turn on Auto-Tune to have the pivot detection automatically scale to your chart's timeframe, or turn it off and set the pivot length manually if you want more control. The clustering tolerance, minimum and maximum zone height, and volume threshold all use ATR multiples rather than fixed pixel or point values, so the same default settings behave sensibly whether you are looking at a low priced forex pair or a high priced cryptocurrency. Raise the minimum confluence score to display in order to hide weaker, less established zones and show only the shelves that have proven themselves repeatedly. The higher timeframe alignment boost and the round number boost can each be turned off independently if you would rather see zones scored purely on how often price has reacted to them.
The confluence boosters section lets you decide how much weight to give higher timeframe structure versus simple price reaction. If you trade lower timeframes but want levels that matter on the daily or weekly chart to stand out, keep the higher timeframe boost on. If you would rather see a purely mechanical read of what price itself has done on the current chart, you can turn it off and rely on touch count alone.
This tool is meant to provide structural context for your own analysis and to save you the time of manually marking every level by hand. A high score reflects historical respect for a level, not a prediction that price will react the same way the next time it arrives there, and no zone should be treated as a standalone entry or exit signal.
Alerts
Alerts are provided for a new zone forming, an existing zone being retested, a zone flipping from resistance to support, a zone flipping from support to resistance, and a confirmed rejection off a high confluence zone where price wicks in and closes back outside on the same candle.
Non repainting
Pivots are only plotted once confirmed a fixed number of bars after the swing that created them and never move once drawn. Zone formation, merging, retest counting, breaks, and role flips are all evaluated on confirmed candle closes only, never on an intrabar wick or an unconfirmed pivot. The only elements that update before a bar closes are purely cosmetic, such as a zone's forward extension toward the right edge of the chart and its live distance based fade, neither of which changes the underlying top and bottom of any zone or the score attached to it.
Disclaimer
This script is provided for educational and informational purposes only. It visualizes historical price structure based on past pivots and past reactions, and it does not predict future price movement in any way. Nothing in this indicator constitutes financial advice or a recommendation to buy or sell any instrument. Always use proper risk management and combine this tool with your own independent analysis before making any trading decision.
Индикатор

PipSchoolWhat it does
PipSchool marks the London and New York trading sessions on the chart and overlays three moving averages with a trend-bias reading, so a beginner can see when the market is active and which way it is leaning from a single script instead of loading four separate ones.
Sessions
London and New York toggle on and off independently.
Two display modes: background shading across the full session, or a filled box bounded by the session's high and low. Switch with the Activate High/Low View checkbox.
Session highs and lows build live — the first bar of a session resets the level, and every bar after that extends the running high or low. No repainting of closed bars.
Session times are editable. Defaults are 03:00–12:00 for London and 08:00–17:00 for New York, anchored to the America/New_York timezone, so they hold through daylight-saving shifts without manual adjustment.
Moving averages
EMA 9 and EMA 21 — short-term momentum and the faster of the two crossover signals.
SMA 200 — the longer-term trend filter.
Each has its own Length, Source and Offset inputs plus an on/off switch, and its own colour, width and line style in the Style tab.
Trend bias label
A small on-chart panel reads the moving averages and summarises the picture in plain language: price above or below the SMA 200, the current EMA 9 / EMA 21 relationship, and a combined structure read — Bullish structure, Bearish structure, or Mixed structure — coloured green, red or grey.
How to use it
Use the sessions to decide when you look for trades. The London and New York windows carry most of the day's volume, and a session high or low is a natural reference for a stop or a break level. Use the moving averages to decide which direction you look. The bias label is a summary of what the MAs already show — it is a structure read, not an entry signal, and there are deliberately no buy/sell arrows.
Notes
The SMA 200 needs 200 bars of history before it plots, so it will be blank at the left edge of short intraday charts. That is expected.
Open-source. Read the code, change the defaults, build on it.
Индикатор

Индикатор

ICT Setup 05 [TradingFinder] Liquidity Sweep & OB Retest🔵 Introduction
Liquidity sweeps are one of those things traders see all the time, but they are easy to misread when viewed on their own. Price can run above a previous high or below a previous low, grab liquidity, and still continue in the same direction. What matters is what happens after the sweep. This indicator was built around that idea, using Liquidity Sweeps, CHoCH, Order Blocks, and OB Retests as parts of one complete setup instead of treating them as separate signals.
The setup starts from the New York Opening Range. Its high and low act as important liquidity references, and the indicator watches for price to sweep either Buy-Side Liquidity (BSL) or Sell-Side Liquidity (SSL).
After that sweep, it waits for a clear change in structure before considering the move valid. This helps separate a simple liquidity grab from a more meaningful shift in market direction.
Once a CHoCH is confirmed, the script identifies the relevant Demand or Supply Order Block and waits for price to come back into that area. The BUY or SELL signal does not appear just because an Order Block exists. Price first has to retest the zone and then show a directional reaction back out of it.
In practice, the full idea is simple :
Liquidity Sweep
CHoCH
Order Block
Retest
Reaction.
The indicator also marks Imbalance / Fair Value Gap (FVG) areas that appear after the structural shift. These zones are there to give more context to the move and make displacement easier to read, while the actual trading signal still comes from the Order Block retest and reaction. The result is a cleaner way to follow an ICT-style setup without having to manually connect every Liquidity Sweep, CHoCH, Order Block, Imbalance, and Retest on the chart.
🔵 How to Use
This indicator is designed to be read as a sequence, not as a collection of independent signals. The Liquidity Sweep, CHoCH, Order Block, Imbalance, and BUY/SELL marker are all showing different stages of the same setup. The main idea is to first see liquidity taken from one side of the New York Opening Range, then wait for price structure to shift, and only after that look for a reaction from the Order Block.
The indicator tracks the New York Opening Range from 08:00 to 09:30 New York time and then looks for setups during the 09:30 to 17:00 trading session. The Opening Range high acts as the Buy-Side Liquidity reference, while the Opening Range low acts as the Sell-Side Liquidity reference. A sweep by itself is not considered an entry. The setup only develops further if price confirms a structural change after that liquidity event.
🟣 Buy Setup
The bullish setup is the mirror image of the bearish sequence. It begins when price trades below the low of the New York Opening Range and takes Sell-Side Liquidity (SSL). The Opening Range low is treated as the liquidity reference, and when price moves below it, the SSL sweep is marked on the chart. Again, this sweep should not be read as a BUY signal by itself. It only tells the trader that liquidity below the range has been taken and that a potential bullish setup can now develop.
After the SSL sweep, the indicator starts looking for the opposite reaction in structure. It searches backward for a bullish candle body and uses the surrounding opening prices to define the bullish structural confirmation level. This level becomes the point price must reclaim before the liquidity sweep is treated as part of a valid bullish reversal sequence.
The bullish CHoCH is confirmed when price closes above that calculated structure level within the active life of the setup. Once this happens, the indicator marks the structural change on the chart. The important idea here is that the BUY setup does not assume that every move below the Opening Range low is a reversal. Price must first show that buyers have regained enough control to break the relevant structure.
After the bullish CHoCH, the indicator identifies and refines a Demand Order Block connected to the move. This becomes the main area to watch for the next stage of the setup. Instead of chasing price immediately after the structure break, the logic waits to see whether price returns to the Demand Order Block.
When price comes back into the Demand Order Block, the indicator records the retest. At this point, there is still no automatic BUY signal. A retest is only meaningful if price can actually respond from the zone.
The bullish confirmation requires price to print a bullish candle, close above the upper boundary of the Demand Order Block, and finish strongly enough within the candle's own range. This means the reaction needs to show that price has not simply touched the zone but has actually moved back out of it with bullish intent. As with the bearish side, Signal Mode controls how strict this confirmation needs to be.
The complete bullish sequence can therefore be read as :
SSL Sweep
Bullish CHoCH
Demand Order Block
OB Retest
Bullish Reaction
BUY
The Demand Order Block is invalidated if price closes below its lower boundary before the required reaction appears. The reaction also has a limited confirmation window after the first retest, so the script does not keep waiting indefinitely for a late bullish candle after price has already spent too much time around the zone.
A bullish Imbalance / FVG may also appear after the CHoCH when price creates sufficient displacement and leaves an inefficiency between candles. This can provide useful visual context for the strength of the bullish move, especially when the Imbalance and Demand Order Block are located close to each other. However, the Imbalance should be treated as additional context rather than a mandatory entry condition. The BUY signal itself is generated from the confirmed reaction after the Demand Order Block retest.
The easiest way to read the indicator is therefore to avoid starting from the BUY or SELL marker. Start from the liquidity event and follow the setup forward. When the Sweep, CHoCH, Order Block, Retest, and reaction all belong to the same sequence, the chart becomes much easier to understand and the final signal has clear structural context behind it.
🟣 Sell Setup
A bearish setup starts when price trades above the high of the New York Opening Range. This area is treated as Buy-Side Liquidity (BSL) because stops and breakout orders often accumulate above an established high. When price moves above this level, the indicator marks the BSL sweep on the chart. Importantly, the script is looking for the first side of the Opening Range to be taken. If both sides have already been swept, that event is not treated in the same way as the initial one-sided liquidity sweep.
The BSL sweep is only the beginning of the setup. Price moving above the Opening Range high does not automatically mean that a reversal is coming, and the indicator does not issue a SELL signal at this point. Instead, it starts looking for evidence that the bullish move has lost control and that bearish order flow is beginning to appear.
After the BSL sweep, the script searches backward through recent candles to locate the structural reference used for bearish confirmation. In the current logic, it looks for a bearish candle body and builds the confirmation level from the nearby opening prices around that structure. This level is then monitored as the point price must break to confirm the shift.
The next important event is the CHoCH. For the bearish setup, price must close below the calculated bearish structure level while the setup is still valid. When that happens, the indicator marks the CHoCH on the chart.
This is the point where the setup moves from a simple liquidity sweep into a confirmed bearish structural shift. If price does not confirm the break within the allowed life of the setup, the armed condition expires instead of remaining active indefinitely.
Once the bearish CHoCH is confirmed, the indicator identifies the relevant Supply Order Block associated with that move. The Order Block is refined before being displayed, so the highlighted zone represents the area the script considers most relevant for a potential bearish reaction rather than simply marking an entire candle without refinement.
From this point, the trader is no longer waiting for another structure break. The focus shifts to the Order Block Retest. The Supply Order Block remains active while price stays within its validity conditions. If price later returns into the block, the indicator records that first interaction as the retest.
A touch of the Order Block alone still does not produce a SELL signal. This distinction is important because price can enter an Order Block, remain inside it, or continue through it without producing a meaningful reaction. The script therefore waits for a bearish response after the retest.
For a bearish signal, price must produce a bearish candle and close back below the lower boundary of the Supply Order Block. The candle must also close sufficiently toward the lower portion of its own range. This additional close-location requirement is used to avoid treating weak or indecisive candles as confirmed bearish reactions. The exact strictness changes with the selected Signal Mode. When these conditions are satisfied, the indicator prints the SELL marker.
At that stage, the full bearish sequence has been completed :
BSL Sweep
Bearish CHoCH
Supply Order Block
OB Retest
Bearish Reaction
SELL
The Order Block can also become invalid before producing a signal. For a Supply Order Block, a close above the top of the zone invalidates it. The block also has a maximum lifetime of 1000 bars from its origin, so very old zones are not allowed to remain active indefinitely and generate late signals far away from the original setup.
The chart may also show a bearish Imbalance after the CHoCH. This happens when the move creates the required three-candle Fair Value Gap structure together with sufficient displacement. The Imbalance can help visually confirm that the structural shift was accompanied by aggressive price movement, but it is not required for the SELL marker itself. The actual signal is still based on the Supply Order Block retest and the bearish reaction from that zone.
🔵 Settings
Signal Mode : Controls how selective the setup is. More Signals uses wider confirmation windows and looser reaction requirements to capture more setups. Balanced provides a middle ground between signal frequency and confirmation quality. High Quality applies stricter confirmation conditions, shorter setup windows, stronger displacement requirements, and cancels an active setup when the opposite side of the Opening Range is swept.
Show Pattern : Shows or hides the structural elements of the setup, including the BSL/SSL liquidity levels and CHoCH markers. Turning it off keeps the underlying logic active while reducing visual information on the chart.
Show Signals : Shows or hides the BUY and SELL markers generated after a confirmed Order Block retest and reaction. The signal logic itself remains active even when the markers are hidden.
Order Block : Changes the colors used for bullish Demand Order Blocks and bearish Supply Order Blocks. These zones represent the refined areas monitored for a potential price retest and reaction.
Imbalance : Controls the colors of bullish and bearish Imbalance areas. These zones are displayed as additional context after the structural shift and do not directly control the BUY or SELL signal.
Show Opening Range : Displays the New York Opening Range high and low on the chart. These levels are calculated from the 08:00–09:30 New York session and are used as the main liquidity references for the setup.
Alert : Enables or disables automatic BUY and SELL alerts generated by the indicator. When enabled, the script can notify the trader when a confirmed bullish or bearish signal is completed.
🔵 Conclusion
The ICT Setup 05 Liquidity Sweep & OB Retest indicator is built to connect several ICT and Smart Money Concepts into one readable sequence. Instead of treating a Liquidity Sweep, CHoCH, Order Block, Imbalance, and Retest as separate events, it shows how they can develop together around the New York Opening Range and form a complete setup from liquidity grab to reaction.
Its main purpose is to make the structure behind BUY and SELL signals easier to read directly on the chart. By waiting for a Liquidity Sweep, structural confirmation, a refined Order Block, and then a valid retest and reaction, the indicator helps traders focus on context rather than isolated signals. Imbalance zones add another layer of visual information, while the final signal remains centered on the confirmed Order Block reaction.
Индикатор

Adaptive Market Acceptance ProfileAdaptive Market Acceptance Profile
The Adaptive Market Acceptance Profile is a price-behavior framework designed to visualize where the market has demonstrated sustained acceptance across a configurable historical window.
Rather than measuring activity only through raw volume concentration, the profile studies how consistently price occupies, revisits, and retains individual price regions. The result is a spatial map separating stronger acceptance areas from transitional and lower-retention regions.
At the center of the framework is the Acceptance Core — the price region carrying the strongest combined acceptance evidence within the active profile.
The engine also tracks whether this core structure is migrating higher, migrating lower, or remaining relatively stable.
🔶 MARKET ACCEPTANCE
Markets do not interact with every price equally.
Some regions are visited briefly before price moves away. Other regions repeatedly attract price, retain closes, and remain involved in market activity across the observation window.
The indicator organizes these differences into an adaptive horizontal profile.
Instead of asking only:
“Where did activity occur?”
the framework asks:
“Where has price demonstrated sustained acceptance?”
This distinction allows the profile to describe the structure of price acceptance rather than functioning as a conventional volume-at-price display.
🔹 Acceptance Profile
The visible horizontal profile divides the observed price range into adaptive price regions.
Each region is evaluated using multiple components of price behavior, including:
Occupancy — how consistently price interacts with the region.
Retention — the degree to which price remains associated with the region rather than immediately moving away.
Revisits — repeated interaction with previously occupied price areas.
These components are combined into a relative acceptance measurement.
Longer and more prominent profile rows represent areas carrying stronger acceptance evidence within the current observation window.
The profile is therefore comparative: it describes how acceptance is distributed across the analyzed range rather than assigning a probability to an individual level.
🔹 Acceptance Core
The Acceptance Core identifies the strongest acceptance concentration detected by the engine.
It acts as the principal structural reference of the profile and is highlighted separately from surrounding regions.
The Acceptance Core should not automatically be interpreted as support, resistance, a price target, or an expected reversal point.
Instead, it answers a different question:
Where has the strongest sustained price acceptance developed within the observed structure?
Current price can move significantly away from the Acceptance Core while the historical acceptance structure remains valid.
🔹 Acceptance Migration
Acceptance is not necessarily stationary.
As new market information enters the observation window, the dominant acceptance structure can gradually relocate.
The engine therefore monitors the evolution of the Acceptance Core and classifies its migration as:
MIGRATING HIGHER — acceptance structure is progressively developing at higher prices.
MIGRATING LOWER — acceptance structure is progressively developing at lower prices.
STABLE — displacement of the dominant acceptance structure is limited.
Migration describes the movement of observed acceptance. It is not a directional forecast.
🔹 Retention Context
The indicator evaluates how effectively price remains associated with its accepted regions.
Retention is summarized into contextual states such as:
HIGH
MODERATE
LOW
Higher retention indicates that price has demonstrated stronger persistence around the active acceptance structure.
Lower retention indicates weaker persistence or a more transitional environment.
These classifications describe observed market behavior and should not be interpreted as trade signals.
🔹 Revisit Evidence
Repeated interaction can provide additional information about whether a price region remains structurally relevant.
The Revisits measurement summarizes this behavior relative to the current profile environment.
A region repeatedly involved in price interaction can accumulate different acceptance characteristics from a region visited only briefly.
Revisit evidence is evaluated together with occupancy and retention rather than being treated as an independent signal.
🔶 ADAPTIVE VISUAL FRAMEWORK
The profile uses a controlled visual hierarchy designed to keep the underlying chart readable.
Stronger acceptance regions receive greater visual emphasis, while weaker or low-relevance regions are progressively reduced.
A relevance gate also suppresses distant regions when their evidence is insufficient to justify prominent display.
Strong historical acceptance can remain visible when its evidence remains meaningful.
This prevents the profile from simply following current price while also limiting unnecessary historical clutter.
The Acceptance Core remains the primary visual reference.
🔶 MARKET STATE DASHBOARD
The compact dashboard summarizes the active profile through five components:
STATE — current acceptance condition.
RETENTION — persistence of price within the active structure.
REVISITS — relative repeated interaction.
MIGRATION — movement of the dominant acceptance structure.
ACCEPTANCE CORE — price of the strongest detected acceptance concentration.
The dashboard is intended to summarize the profile—not replace interpretation of the underlying chart.
🔶 METHODOLOGY
The engine follows the analytical sequence:
Price Distribution → Occupancy → Retention → Revisit Evidence → Relative Acceptance → Acceptance Core → Core Migration
The observed price range is divided into multiple regions.
Historical price interaction is then evaluated within those regions and converted into relative acceptance evidence.
The strongest qualifying concentration becomes the active Acceptance Core.
As the observation window evolves, changes in that dominant region are used to evaluate Acceptance Migration.
Because the framework is adaptive, its profile can change as older observations leave the calculation window and new market behavior enters it.
🔶 HOW TO INTERPRET THE PROFILE
The indicator is designed for contextual analysis rather than mechanical entries.
For example, traders can study whether:
price is operating inside or outside its strongest accepted region;
acceptance is becoming concentrated or fragmented;
the dominant acceptance structure is migrating;
current price has separated significantly from the established Acceptance Core;
or a previously important acceptance region continues to retain structural relevance.
These observations can then be combined with independent market-structure, volatility, trend, execution, and risk-management analysis.
🔶 SETTINGS
Lookback / Observation Window
Controls how much historical price behavior contributes to the active acceptance structure.
Profile Rows
Controls the vertical resolution used to divide the analyzed price range.
More rows provide greater spatial granularity, while fewer rows create a broader structural representation.
Profile Width
Controls the maximum horizontal footprint of the acceptance profile.
Relevance Filtering
Controls how aggressively weaker or distant acceptance regions are visually suppressed.
Visual settings allow the profile, Acceptance Core, text, and dashboard to remain readable across different chart themes.
🔶 CONFIRMATION & LIMITATIONS
Adaptive Market Acceptance Profile is derived from historical chart information.
It does not display exchange order-book liquidity and should not be interpreted as a Level II/order-flow representation.
Acceptance is an internally calculated behavioral measurement rather than a probability of future price movement.
The Acceptance Core does not guarantee support, resistance, reversal, continuation, or future return to that price.
Migration describes changes in historical acceptance structure; it does not predict market direction.
Results can vary with instrument, timeframe, observation length, volatility regime, and available market data.
The indicator does not provide automated buy or sell recommendations.
🔶 ORIGINALITY
Adaptive Market Acceptance Profile was independently developed as a behavioral price-acceptance framework.
Its central objective is to measure and visualize persistent acceptance across price regions, rather than reproduce a conventional volume profile or represent exchange-level order flow.
The combination of occupancy, retention, revisit evidence, adaptive relevance filtering, Acceptance Core identification, and Acceptance Migration creates the indicator's analytical framework.
The visual profile is used as a spatial representation of that framework rather than as a conventional volume-at-price histogram.
Release Notes — v1.2
Initial public release
Adaptive acceptance distribution across price regions.
Occupancy, retention, and revisit-based acceptance framework.
Acceptance Core identification.
Higher / Lower / Stable Acceptance Migration.
Adaptive relevance filtering for distant low-information regions.
Controlled profile hierarchy for reduced chart clutter.
Compact market-state dashboard.
Cross-market visual validation performed across equities, metals, cryptocurrency, and FX. Индикатор

Индикатор
