Edo Swing StateEdo Swing State — Labels Every Swing as HH, HL, LH or LL and Resolves Market Structure into a Single State
Market structure is the skeleton beneath almost every method of technical analysis: an uptrend is a run of higher highs and higher lows, a downtrend a run of lower highs and lower lows, and the moment that sequence breaks is the moment a trend starts to change. Edo Swing State makes that skeleton explicit. It detects each price swing, labels it with its structural role — higher high (HH), higher low (HL), lower high (LH) or lower low (LL) — and combines the last high and last low into one readable market state.
It draws a swing line that connects the confirmed pivots, marks each swing with a coloured HH/HL/LH/LL label, and reads the whole into Bullish, Bearish or Ranging in a compact panel — all validated on closed bars so the indicator does not repaint. It is a self-contained structure reader: the swings, their roles and the resulting state are all derived from the price series on the chart alone, with no dependency on any other tool.
THE HH / HL / LH / LL CLASSIFICATION
The indicator compares each new swing with the previous one of the same type. A swing high above the previous high is a Higher High (HH); below it, a Lower High (LH). A swing low above the previous low is a Higher Low (HL); below it, a Lower Low (LL). Each label is written at the pivot and does not move. Rising highs and rising lows are the signature of buying strength; falling highs and falling lows, the signature of weakness. High labels are drawn above the swing, low labels below it, colour-coded green for the bullish roles and red for the bearish ones.
SWING PROFILES
The sensitivity of the swings is set by a single Swing Profile input: Scalper (5 bars each side) for fast intraday swings on low timeframes, Swing (10 bars, the default) for the balanced 4H and daily read, and Long Term (21 bars) for the major swings on weekly and higher horizons. The larger the length, the more significant a turn has to be, and the fewer but more important the swings that are marked.
THE MARKET STATE
Above the individual labels, Edo Swing State resolves one overall state by combining the role of the last high with that of the last low. Bullish requires a last high of HH and a last low of HL — rising highs and lows. Bearish requires a last high of LH and a last low of LL — falling highs and lows. Any mixed combination is treated as Ranging. Requiring both sides to agree is deliberate: if price makes a higher high but then loses the previous low, the structure is no longer cleanly bullish, and the state turns to Ranging — precisely the transition zone where a trend starts to fail before the full turn is confirmed. The first LH after a run of HHs, or the first HL after a run of LLs, is the earliest crack in a trend, labelled the moment it is confirmed.
THE SWING LINE
The swing line connects the confirmed pivots in a continuous zigzag, tracing only the legs that run from one swing to the next and filtering out the intermediate noise. It reveals the real skeleton of the move — where price accelerates and where it loses momentum. The line and the labels can each be toggled independently, for a cleaner or a more informative chart.
INFORMATION PANEL
The panel condenses the read into a compact table under the indicator header: the overall market state (Bullish / Bearish / Ranging), the role of the most recent confirmed swing, and the role of the last high and the last low, in the same green/red colour code. The state row is the underlying read; the last-high and last-low rows explain why the state is what it is. The panel sits in any of the four chart corners (Top Right by default), comes in three sizes (Tiny / Small / Normal) and two themes (Dark / Light), and can be hidden entirely. To keep the calculation light, it is drawn only on the last bar.
NO REPAINTING
Swings are built on confirmed pivots and the state change is validated on closed bars, so a label never appears or disappears intrabar. There are no higher-timeframe functions: all logic runs on the current chart timeframe, which keeps the indicator lightweight and repaint-free. For a multi-timeframe read, apply it on several charts at once and look for the confluence of states.
CONFIGURATION
The inputs are grouped by block. Structure sets the swing profile and toggles the HH/HL/LH/LL labels and the swing line, listed in the settings as Show structure line (zigzag). Style exposes the bullish and bearish colours, the line colour and width, the label size and the Dark/Light theme. Panel controls panel visibility, position and size. The defaults are calibrated to work without adjustment on stocks, crypto, forex, indices and futures, on any timeframe — the input most users touch is the Swing Profile, to match the swings' sensitivity to their trading horizon.
ALERTS
Six predefined alerts cover the structure read. Four swing alerts — New Higher High, New Higher Low, New Lower High and New Lower Low — fire when each new pivot is confirmed with its role. Two structure alerts — Structure Bullish and Structure Bearish — fire only on the phase turn, when the overall state flips. All alerts fire on bar close, consistent with the indicator's anti-repaint validation.
HOW TO READ IT
Use the state as a context filter: look for longs while structure is Bullish and shorts while it is Bearish, and treat Ranging as caution — the zone where trends run out and false moves cluster. Use the change labels as an early warning: the first LH after a series of HHs, or the first HL after a series of LLs, flags a fading trend before the overall state fully turns. And read it in confluence: a Bullish state on the trading timeframe that sits inside a Bullish state on a higher one is a far more solid trend than an isolated read. Read on its own terms, the sequence of labels is the whole method: the roles say what the market is doing, and the state says whether it is doing it cleanly.
OPEN SOURCE
Edo Swing State is published as a free open source indicator. The full Pine Script is publicly accessible on TradingView for study, adaptation and integration into any workflow. Part of the Edolab Markets free tools ecosystem, all available on TradingView.
This indicator is a technical analysis tool for educational and informational purposes only. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading financial markets involves significant risk of capital loss. Past performance does not guarantee future results. Always use proper risk management.
指标

指标

Cost-to-Range Gauge [BSL]Before asking whether a method works on this chart, there is an earlier
question that almost nobody asks: can a result exist here at all?
Cost-to-Range Gauge answers it with one drawing. A twenty-cell bar
represents the typical range of the last 500 confirmed bars. The filled part
of it is your round-trip cost. If the fill takes up a quarter of the bar, the
typical bar is four round trips wide. If it fills the whole thing, the typical
bar cannot pay for a single trade.
Under the drawing sits the number that goes with it: how many bars in the
window could not have covered one round turn at all.
WHY THE COST IS DRAWN AND NOT DESCRIBED
"Your cost is 3 ticks and the typical range is 12.6 ticks" is a sentence you
have to do arithmetic on. A bar with a quarter of it filled is a picture you
have already understood.
The ratio is printed as well, and it goes range divided by cost: above 1, the
typical bar covers a round turn. At or below 1 the drawing fills completely
and turns red, and the panel adds that the cost exceeds the typical range,
because a full bar on its own could be read as the drawing running out of room
rather than as the answer.
A bar whose entire range is smaller than the cost could not have paid for a
trade taken inside it, whichever direction that trade went. That is what the
count underneath is counting.
BOTH INPUTS ARE IN TICKS, ON PURPOSE
Every instrument on TradingView has a tick size, so ticks convert to price
everywhere. Not every instrument has a currency value per point. That figure
is missing for whole classes of symbol.
If the commission were entered in currency, the entire gauge would go dark on
any symbol without one. Taking both inputs in ticks means the price-space
reading always works, and the currency line is the only thing ever withheld.
It is withheld rather than guessed, and the panel says so where it would
otherwise have appeared.
If you have a figure in currency, divide it by the currency value of one tick.
The commission field is the WHOLE ROUND TURN, not one side. Enter one side and
you have halved your own cost; the script cannot detect it and will faithfully
report a flattering number.
The cost is your declaration. Nothing here can verify it.
A total cost of zero is refused. A ratio against zero is not a large number,
it is not a number, and the panel asks for a cost instead of printing
infinity.
WHAT THE RATIO LOOKS LIKE ON A DAILY CHART
Large. A daily bar is worth many round trips on any liquid instrument, so the
drawing fills a sliver and the ratio runs into the hundreds or thousands. That
is the correct answer to the question, and it is the answer you want before
committing to a timeframe. The gauge earns its keep further down, on the
intraday charts where a bar and a round trip are comparable and the fill is no
longer a sliver.
WHAT IS IN THE WINDOW
Confirmed bars only. The bar still forming is left out and named as pending.
Every reading on this panel is complete the moment a bar closes: a bar's range
is finished at its close, and none of these numbers is waiting on an outcome.
That means all rows share one cutoff, the last confirmed bar, and the only
unfinished observation on the whole chart is the bar still open.
That is the simplest possible case of a rule this family applies everywhere,
and it is stated rather than skipped. A rule mentioned only when it bites is a
rule you cannot check.
Below 100 bars the whole gauge is faded and prints its own sample size, so a
reading taken over 40 bars never looks as solid as one taken over 500.
WHAT YOU ENTER
- Spread: 2.0 ticks
- Commission per round turn: 1.0 ticks
- Window: 500 confirmed bars
- Panel position: Bottom center
Six positions are available and the gauge begins at the bottom center. Both
left corners are spoken for by the platform, the legend above and the
TradingView logo below, and the right is where the price scale and most other
panels crowd.
A BRICK'S RANGE IS A SETTING, NOT A FACT
A Renko brick has the range you told it to have. Its size is a setting, not a
market fact, so a cost-to-range ratio measured against it is a ratio against
your own configuration. The same applies to Heikin Ashi, Kagi, Point & Figure
and Range charts.
On those chart types the drawing, the ratio and the published values all stop.
THREE VALUES FOR OTHER SCRIPTS
Three values are published for other indicators to pick up in their Source
setting: the range-to-cost ratio, the share of bars under cost, and the sample
size. All three are descriptions, not events. They change gradually and mean
something on every bar, rather than firing at a moment. Before the gauge has
an opinion they carry no value at all, which is not the same as a value of
zero.
The alert condition is listed beside them and is not a reading. The gauge
draws only its table, which cannot be selected, so these three are the whole
readable surface.
WHAT IT WILL NOT TELL YOU
No verdict. Not "tradeable", not "avoid", not a traffic light. The single
colour change on the panel, the drawing turning red, restates the number
beside it and adds no judgement to it, because the judgement depends on a
method this script has never seen.
It issues no events and stamps nothing at an event bar. It is a screen you run
before a method, and calling any of its readings a signal would be the exact
overreach it exists to argue against.
It contains no equity curve, no fill model and no slippage simulation. What
costs do to a result under realistic fills belongs to Execution-Aware Trend
; how a hit rate responds to a cost belongs to Signal Audit Lab .
This answers only whether a result can exist at all, and that is asked before
either of them.
This tool compares a cost you declare against typical bar size. It does not
predict price, guarantee performance or provide trading advice. Validate the
behaviour on your own symbols, timeframes and execution assumptions before
making decisions.
Open-source Pine Script® v6. Educational use only. 指标

RTH 1st Presented FVGPlots the first Fair Value Gap of the Regular Trading Hours session and keeps those levels on the chart.
First presented FVG
Detects the first 3-candle wick-and-body FVG after the cash open. The middle candle cannot be the 09:30 bar, so the earliest valid gap starts at 09:31. By default the gap is measured on 1-minute data and drawn on any chart up to the Max Timeframe. Turn on “Use Chart Timeframe for 1st Presented” to measure it on the chart’s own timeframe instead.
Gradient Levels
Each gap can show high/low, equilibrium, quartiles, and optional eighths. One label sits at the midpoint. Boxes and lines can extend right with a bar buffer.
History
Choose how many daily first-FVGs to keep. Optionally keep a separate count of Monday and Friday gaps so those days stay visible longer.
Premium / Discount
Builds a range from recent first-FVG highs and lows. A table shows premium or discount versus equilibrium, with optional gradient lines at high, low, mid, quartiles, and eighths.
Overlapping FVGs
Optionally highlight later FVGs that trade through a stored first-FVG level. Can limit that to the first overlap of the session.
Session hours, timezone, colors, line styles, and Max Timeframe are all user-controlled. 指标

RSI with Bollinger BandsRSI with Bollinger Bands combines the Relative Strength Index with Bollinger Bands calculated directly on the RSI itself.
This indicator is designed to help identify periods when RSI momentum becomes unusually stretched relative to its recent behavior, instead of relying only on the traditional fixed 30 and 70 RSI levels.
The RSI is displayed together with a Bollinger Band basis, upper band, and lower band. When RSI moves outside the bands, the indicator can display overbought or oversold breach signals and highlight the background.
Features
RSI oscillator
Standard RSI calculation
Default RSI Length: 14
Adjustable price source
Bollinger Bands on RSI
Bollinger Bands are calculated from the RSI value
Default BB Length: 20
Default Upper Multiplier: 2.0
Default Lower Multiplier: 2.0
Upper and lower multipliers can be adjusted independently
Overbought Breach Signals
Displays an OB signal when RSI moves above the upper Bollinger Band
Red background highlighting can appear during the condition
Oversold Breach Signals
Displays an OS signal when RSI moves below the lower Bollinger Band
Green background highlighting can appear during the condition
Traditional RSI Reference Levels
70 level
50 level
30 level
These levels can be shown or hidden
Customizable Display
Show or hide breach signals
Show or hide the Bollinger Band fill
Show or hide the 30 / 50 / 70 RSI levels
Settings
Length
Controls the RSI calculation period.
Default: 14
BB Length
Controls the lookback period used to calculate the Bollinger Band basis and standard deviation on RSI.
Default: 20
BB Up
Controls the standard-deviation multiplier for the upper Bollinger Band.
Default: 2.0
BB Down
Controls the standard-deviation multiplier for the lower Bollinger Band.
Default: 2.0
Price Source
Selects the price source used for the RSI calculation.
Default: Close
Show Breach Signals
Turns the OB and OS markers on or off.
Fill Bands
Turns the shaded area between the upper and lower Bollinger Bands on or off.
Show RSI 30/50/70 Levels
Turns the traditional RSI reference levels on or off.
How to Read the Indicator
When RSI moves above the upper Bollinger Band, it means RSI is unusually strong relative to its recent range. This can indicate elevated bullish momentum or a potentially overextended condition.
When RSI moves below the lower Bollinger Band, it means RSI is unusually weak relative to its recent range. This can indicate elevated bearish momentum or a potentially oversold condition.
The traditional 30 and 70 RSI levels remain available as additional reference points.
Alerts
The indicator includes built-in alert conditions for:
RSI Above Upper Band
RSI Below Lower Band
These alerts can be used to notify you when RSI breaches either Bollinger Band.
Important
A breach of the upper or lower band should not automatically be treated as a reversal signal. Strong trends can keep RSI extended for a significant period.
This indicator is best used together with price action, trend analysis, support and resistance, volume, or other forms of confirmation.
For educational and informational purposes only. This indicator does not constitute financial advice. 指标

指标

TheStrat Command Center v1.5TheStrat Command Center
TheStrat Command Center is a chart-based decision-support tool built for traders who use "The Strat" methodology created by Rob Smith (R.I.P.)
Its purpose is to organize several pieces of TheStrat information that normally have to be monitored separately — current candle structure, possible next directional setups, Full Time Frame Continuity (FTFC), entry and invalidation levels, nearby objectives, and risk-based targets — into one live dashboard.
It is not intended to predict the market or replace the trader's own interpretation of price action. The goal is to make the current Strat structure easier to read and manage.
Strat Structure
The indicator classifies price bars using the standard Strat framework:
1 - Inside bar
2U - Breaks the previous high without breaking the previous low
2D - Breaks the previous low without breaking the previous high
3 - Outside bar that breaks both sides
The prior closed candle is treated as the current setup candle. The developing candle is then evaluated against that completed setup.
The Command Center uses that relationship to identify possible structures such as:
2-2 reversals
2U or 2D continuation
2-1-2 structures
3-to-2 directional resolution
Failed 2 reversals
Both the upside and downside possibilities remain visible so the trader can see what price would need to do in either direction.
Failed 2 Recognition
Failed 2 candles are handled separately from ordinary 2 bars.
A Failed 2U must first be a true 2U and then close below its own open.
A Failed 2D must first be a true 2D and then close above its own open.
If the candle breaks both the previous high and previous low, it is classified as a "3", which overrides the Failed 2 condition.
Failed 2 markers are placed on the actual failed candle after it closes.
Full Time Frame Continuity
The indicator monitors up to six user-selected timeframes for Full Time Frame Continuity.
Each timeframe is evaluated by comparing its current price with its timeframe open:
Green = above the timeframe open
Red = below the timeframe open
Flat = at the timeframe open
Users can choose which of the six timeframes are required for FTFC.
Full bullish FTFC exists only when every required timeframe is bullish. Full bearish FTFC exists only when every required timeframe is bearish. A majority or directional lean is not treated as Full Time Frame Continuity.
An optional setting can restrict new suggested trades to setups that agree with Full FTFC. Timeframes that are displayed but not marked as required remain informational and do not block a setup.
Command Center Dashboard
The dashboard is intended to answer, at a glance:
* What is happening now?
* What was the last completed Strat candle?
* Is a reversal currently available?
* Is Full Time Frame Continuity present?
* What is the best structural play under the selected FTFC rules?
* What are the possible upside and downside plays?
* Where are the applicable entry and stop levels?
* How far is price from the next trigger?
* Where are nearby structural objectives?
* Where is price relative to the trading-session open?
The indicator includes separate Desktop and Mobile layouts. The Desktop dashboard can also hide its lower detail section to conserve chart space.
Entry, Stop and R-Based Target
For standard Strat setups, the indicator calculates a potential entry beyond the setup candle high or low using a user-selected tick offset.
The opposite side of the setup candle is used as the invalidation/stop reference.
Failed 2 reversals use a fixed rule:
* Failed 2D long: entry one minimum tick above the Failed 2D high and stop one tick below its low.
* Failed 2U short: entry one minimum tick below the Failed 2U low and stop one tick above its high.
Once the entry-to-stop distance is known, the indicator calculates a user-selected reward target from 0.5R through 5R, where 1R equals the initial entry-to-stop risk.
These levels are informational chart references and are not brokerage orders.
Waiting and Active Trade Lines
Before a setup triggers, optional dashed entry stubs show the available directional trigger levels.
If one side triggers, the opposite waiting setup is removed and the chart can display:
* Entry
* Stop
* Selected R target
The lines remain while that setup is active.
When the target or stop is reached, the active trade lines are removed automatically. A user may also manually dismiss a waiting setup or cancel the indicator's monitoring of an active setup without recording it as a target or stop result.
If both sides of the setup candle are broken by the same developing bar, the condition is treated structurally as an outside/3 bar rather than assuming a directional entry.
Session Levels and Objectives
The indicator can also display contextual price levels.
For futures, the reference trading session begins at 6:00 PM Eastern Time .
For equities, indexes and other non-futures instruments, the reference session begins at 9:30 AM Eastern Time .
The dashboard can show:
* Reference session open
* Previous session high
* Previous session low
* Recent range high and low
* Distance to the next upside or downside trigger
* Nearby prior-high or prior-low objectives
The recent-range lookback is user-adjustable.
These objective levels are contextual references. They are not predictions that price will reach those levels.
Alerts
Alert conditions are included for:
* Confirmed Failed 2U
* Confirmed Failed 2D
* Confirmed upside trigger
* Confirmed downside trigger
* Target reached
* Stop reached
Developing vs. Confirmed Information
The Command Center intentionally contains both closed-bar structural information and live developing information.
The setup itself is based on the prior completed candle. Failed 2 identification is confirmed on candle close.
The current developing candle type can change before that candle closes as new highs or lows are made.
FTFC also uses the current state of the selected higher-timeframe candles. Because those candles remain open until their respective timeframes close, their green/red state — and therefore live FTFC — can change intrabar.
Users should distinguish these live contextual readings from closed-bar confirmations.
Limitations
This is an indicator, not a TradingView strategy or backtest . It does not provide historical profitability statistics or claim that a displayed setup will be successful.
The indicator does not know the exact sequence of every price movement inside a completed historical candle. If multiple relevant levels are touched within the same bar, OHLC chart data may not reveal which price traded first.
Results and displayed structures can also vary depending on symbol, chart timeframe, market session, selected FTFC timeframes, tick offset, R target, and available chart data.
The tool is designed for standard price charts and should be interpreted alongside the trader's own analysis and risk-management process.
What Makes the Script Different
The Command Center is designed as an integrated Strat workflow rather than simply placing candle numbers on a chart.
It combines the prior closed-bar setup, live directional resolution, exact Failed 2 handling, user-defined FTFC requirements, two-sided structural possibilities, trigger/invalidation levels, R-based trade planning, session context, nearby objectives, active-setup management, alerts, and desktop/mobile presentation into a single decision hierarchy.
Its purpose is to reduce the amount of separate chart information a Strat trader has to mentally assemble while preserving the underlying price-action structure.
指标

Streak Reality Check - was that losing run actually unusual?Most people abandon a working strategy during a losing run rather than because of anything in the numbers. The run feels like new information. Usually it is not, and roughly how long a run you should expect is calculable before it happens.
For n trades at a win rate w, the expected longest run of losses is about:
log(n × w) / log(1 / (1 − w))
That is the standard result for the longest run of failures in n Bernoulli trials. It has one property worth sitting with: n is inside it. More trades means more chances for a long run, so the run you should expect grows as you collect data. Slowly, because it is logarithmic, but it grows.
Which is why a fixed limit — "abandon anything with a run above 10" — gets stricter the more data you have. The same strategy passes early and fails later, having done nothing different in between. This script reports the ratio of observed to expected instead, because that is the number which means the same thing at every sample size.
What the table shows
Trades (non-overlapping). How many complete trades the sample produced, and how many timed out rather than resolving.
Win rate. Measured, not assumed. The expected run depends on it heavily.
Worst losing run. The longest consecutive run of losses in the sequence.
Expected at this sample. What that trade count and win rate should produce by chance.
Observed / expected. The number you came for. Around 1.0 means the worst thing that happened was typical. Below about 1.3 a long run is a long run and not a signal. Well above it, something in that stretch is worth understanding.
Sample covers. The period measured. A run length with no period attached invites more confidence than it has earned — 3,000 bars is six weeks on a 15m chart and twelve years on a daily one.
Non-overlapping trades, and why that matters
This measures differently from its two companions, deliberately.
Edge Reality Check and Filter Reality Check resolve from every bar. That is correct for measuring a hit rate: it uses the whole sample, and the overlap does not bias an average.
It would wreck a streak measurement. Samples opened on consecutive bars share almost all of their holding window, so their outcomes are strongly correlated, and one bad stretch of price would show up as a single enormous run of losses. Compared against a formula that assumes independent trades, that returns a ratio of three or four and a verdict of catastrophe on perfectly ordinary history.
So this one opens a trade, resolves it, and only then looks for the next entry. Fewer trades from the same history, and a sequence whose runs mean something. Expect a much lower trade count than the other two give on the same chart — that is the rule working, and the table labels the row so the difference is visible rather than mysterious.
Method, and its limits
A bar spanning both stop and target counts as a loss. There is no way to know which came first from bar data, and being wrong pessimistically is the only honest resolution. It matters more here than in the companion scripts: resolving those ties optimistically would break up runs and flatter every streak on the chart.
Distances can scale with each historical bar's own ATR, so the test uses the volatility of the time rather than today's.
Trades reaching neither level within the holding window are reported as timed out, not counted as losses. Counting them as losses would manufacture runs that never happened.
Fifty resolved trades is the floor. Below that the script refuses to compare, and says so. A streak is a tail statistic and needs more sample than an average does — a hit rate stabilises long before the longest run does.
The formula assumes independent trades. If your own trades overlap in time, or fire on correlated instruments, your effective sample is smaller than your trade count, the expected run is correspondingly smaller, and your real run is worse than the ratio suggests. The non-overlapping rule handles this inside the script; it cannot handle it for the strategy you are comparing against.
It is an expectation, not a bound. Runs longer than it are ordinary. The distribution has a tail on both sides, and a single measurement on one window settles nothing — run it across several.
What it is not
It places no trades, gives no signals and predicts nothing. It cannot tell you a strategy is broken. It tells you whether a losing run is evidence of anything, which is a smaller and more useful question, and the answer is usually no.
Open source. Companion to Edge Reality Check, which measures the hit rate entering at random would have produced at your reward-to-risk, and Filter Reality Check, which tells you whether a condition you are using beats that baseline. 指标

Equalhigh True FVG Scanner# Equalhigh — True FVG Scanner
### User Guide · Version 5.2
Equalhigh True FVG Scanner combines filtered Fair Value Gaps, confirmed swing levels and classic two-candle gaps from a lower timeframe.
Its purpose is to organize potential reaction areas into a readable price map. It is an indicator, not an automated trading strategy.
## 1. Three Different Types of Levels
**Fair Value Gaps — turquoise and pink**
FVGs are detected on the chart timeframe using three consecutive candles:
* Bullish: the third candle’s low is above the first candle’s high.
* Bearish: the third candle’s high is below the first candle’s low.
The rectangle marks the space between those prices. The middle line represents the 50% level, also called Consequent Encroachment.
**Confirmed swing levels — gold**
These horizontal lines mark confirmed pivot highs and lows. By default, a pivot requires five candles on each side.
The line starts when the pivot is confirmed, five candles after the turning point. A closing break above a swing high or below a swing low removes that level. A wick alone does not remove it.
These levels do not contribute to the FVG score.
**Classic lower-timeframe gaps — blue/violet**
These use two consecutive candles on the selected lower timeframe:
* Gap up: the current low is above the previous high.
* Gap down: the current high is below the previous low.
These are complete gaps between candle ranges, not simply differences between the previous close and the next open. They are tracked independently of FVGs.
## 2. How FVGs Are Selected
Every displayed FVG must meet the minimum gap-size requirement and the middle-candle displacement requirements.
With the default settings:
* Minimum FVG size: 0.10 ATR.
* Minimum middle-candle body: 0.80 ATR.
* Minimum body-to-range ratio: 65%.
* Structure break required: enabled.
* Minimum score: 70/100.
The structure-break check requires the middle candle to close beyond the highest high or lowest low of the preceding lookback window. The default lookback is ten candles.
This is a rolling-range break definition, not a full BOS/CHoCH classification system.
## 3. Understanding the Score
The creation score combines:
* Displacement: 25 points.
* Structure break: 25 points.
* Liquidity sweep: 20 points.
* Premium/discount location: 10 points.
* Freshness at creation: 10 points.
* Session criterion: 5 points.
* Opposite-coloured candle before displacement: 5 points.
The sweep check uses the first candle of the three-candle pattern: it must exceed a previous extreme and close back inside.
Premium/discount compares the FVG midpoint with the midpoint of the preceding rolling range, using 50 candles by default.
The opposite-coloured candle criterion is a simple proxy. It does not establish a validated Order Block.
When session scoring is disabled, both directions receive its five points.
**The score is a rule-based ranking, not a win probability.** It remains fixed after creation, including the initial freshness points. Subsequent mitigation is shown separately.
There is no higher-timeframe EMA or trend filter in this version.
## 4. Reading FVG States
**FRESH**
The zone has not been touched by a subsequent candle. Its border is solid.
**TOUCHED**
Price has reached the zone without reaching its midpoint. The border becomes dashed and the fill more transparent.
**MITIGATED 50%**
Price has reached or crossed the midpoint. The border becomes dotted and the median line becomes thicker and solid.
These states are confirmed at chart-candle close and retain the deepest penetration recorded.
With “Remove fully filled FVG” enabled, reaching the opposite boundary removes the zone, even with a wick. This removal rule operates independently of the closing-invalidation setting.
If full-fill removal is disabled, a filled zone is retained as a grey, frozen archive unless invalidated. Focused nearest-zone mode hides these archives.
## 5. Keeping the Chart Readable
“Show nearest active FVG only” displays two zones above and two below the last confirmed close by default.
Zones containing that price are also displayed, so the total can exceed four.
Distance is measured to the nearest zone boundary. Hidden zones continue to be tracked within the storage limit and can reappear as price approaches them.
FVG price cards show the upper boundary, midpoint and lower boundary.
Historical creation triangles are optional and disabled by default. They mark FVG creation, not confirmed trade entries.
## 6. Configuring Classic Gaps
Open section **“5. Classic two-candle gaps (lower timeframe)”**.
Automatic timeframe selection chooses a supported timeframe approximately one-quarter of the chart timeframe. Disable it to select a lower timeframe manually.
Both initial size filters apply:
* Minimum gap in ticks: 2 by default.
* Minimum gap relative to lower-timeframe ATR: 0.05 by default.
Set the ATR threshold to zero to use only the tick filter.
The script processes available lower-timeframe candles chronologically. Overlapping candle ranges reduce the remaining open gap. A complete overlap removes it.
A jump entirely across a gap does not count as a fill. A candle contained inside a gap can leave two separate open portions.
By default, the module stores up to 40 open portions and displays the nearest two per side, plus portions containing the reference price.
## 7. GAP Prices on the Right Scale
Enable **“GAP prices on the price scale”** to display the remaining upper and lower boundaries directly on the price scale.
Up to ten nearest visible gap portions receive native scale markers.
Also enable **“Labels on price scale”** in the indicator’s **Style** tab. TradingView’s chart settings must permit indicator value labels.
Native scale markers show boundary prices. Optional floating GAP cards additionally show direction and timeframe.
The floating cards use a bar-based offset. They are not fixed to the screen edge.
## 8. Updates and Alerts
FVG creation, mitigation and swing confirmation use closed chart candles.
Classic gaps are also committed at chart-candle close. On a daily chart, their displayed state therefore updates when the daily candle closes.
Available alerts cover:
* New qualifying bullish FVG.
* New qualifying bearish FVG.
* New classic bullish lower-timeframe gap.
* New classic bearish lower-timeframe gap.
Alerts are independent of proximity visibility. A classic-gap creation alert can occur even if that gap was subsequently filled within the same chart candle.
Use “Once Per Bar Close” when configuring alerts.
## 9. Practical Limits
Lower-timeframe history depends on TradingView’s available data and your plan. The coverage panel shows the first processed date and latest update; older gaps may be outside coverage.
Storage limits can discard older zones or gap portions. Missing lower-timeframe data can also limit tracking.
Gap filling is inferred from candle high/low ranges, not transaction-by-transaction data.
Use standard time-based candlestick charts for interpretation. Synthetic candles can produce different patterns.
These levels are areas to observe, not guaranteed support, resistance or future targets. Neither a high score nor an open gap guarantees a reversal or eventual fill.
指标

指标

52 Week High/Low Offset ScreenerTitle:
52 Week High/Low Offset Screener
Visibility: Open (recommended) or Protected
Category: Indicator (not overlay)
Companion script: 52 Week High/Low (Current & Offset)
→ After the indicator is published, paste its script URL here in the description
(English NOTES / German HINWEISE).
----- Description (paste below; English first) -----
█ OVERVIEW
This is a Pine Screener companion to “52 Week High/Low (Current & Offset)”.
It scans a watchlist for where price sits relative to a lagged 52-week high/low (default offset: 52 weeks). You can constrain those distances in the script settings and/or with column filters in the Pine Screener.
Same calculation as the chart indicator. This script does not overlay on price; it outputs columns and a Hit flag.
This is a scan helper, not a buy or sell signal.
█ HOW TO RUN THE SCAN
1. Add this script to your Favorites (star). It will not appear in Pine Screener otherwise.
2. Open Products → Screeners → Pine (or tradingview.com/pine-screener/).
3. Choose a watchlist (keep it under 1,000 symbols).
4. Select “52 Week High/Low Offset Screener”.
5. Set the timeframe (daily is typical) and optional distance filters in the script settings.
6. Click Scan.
7. To apply the built-in distance filters, add a column filter: Hit = 1.
Only one Pine script can be used per scan.
█ COLUMNS
• Hit — 1 if all enabled script filters match, otherwise 0
• Distance % nearer offset — distance to the closer of the two offset levels
• Nearer to (1=High, −1=Low)
• Distance % offset high / offset low
• Offset high / Offset low — lagged 52-week levels
• Current 52W high / Current 52W low
• Close
Distance formula:
(close − offset level) / close × 100
Positive = price above that level, negative = below.
█ DISTANCE FILTERS (SCRIPT SETTINGS)
Disabled filters are ignored. All enabled filters must pass for Hit = 1.
• Side: All / only nearer to offset high / only nearer to offset low
• Constrain nearer distance (from % / to %)
• Constrain distance to offset high
• Constrain distance to offset low (DCA-style example: −15 to +8)
• Only below offset low
• Only above offset high
You can also filter on the columns themselves. Numeric filters are literal:
• Distance % offset low < 1 includes +0.08 (slightly above the low) and −16 (below the low)
• Below the offset low only: Distance % offset low < 0
• At least 1% below the low: Distance % offset low < −1
• Within 1% of the low: between −1 and 1
█ ALERT
Alert condition “52W Offset Hit” fires when a symbol matches the script’s distance filters.
█ NOTES
• Uses 52 weekly bars and a weekly offset; the current 52-week high/low includes the developing week.
• Chart companion: “52 Week High/Low (Current & Offset)”.
(Add the published indicator URL here after step 1 of the publishing sequence.)
This script does not generate trading signals and is not investment advice.
--------------------------------------------------------------------------------
DEUTSCH
█ ÜBERBLICK
Das ist der Pine-Screener zum Indikator „52 Week High/Low (Current & Offset)“.
Er scannt eine Watchlist danach, wo der Kurs relativ zu einem zeitversetzten 52-Wochen-Hoch/-Tief steht (Standard-Offset: 52 Wochen). Diese Abstände kannst du in den Skript-Einstellungen und/oder über Spaltenfilter im Pine Screener eingrenzen.
Dieselbe Berechnung wie der Chart-Indikator. Dieses Skript liegt nicht über dem Kurs; es liefert Spalten und ein Hit-Flag.
Das ist eine Scan-Hilfe, kein Kauf- oder Verkaufssignal.
█ SCAN AUSFÜHREN
1. Dieses Skript zu den Favoriten hinzufügen (Stern). Sonst erscheint es nicht im Pine Screener.
2. Products → Screeners → Pine öffnen (oder tradingview.com/pine-screener/).
3. Eine Watchlist wählen (unter 1.000 Symbole halten).
4. „52 Week High/Low Offset Screener“ auswählen.
5. Timeframe setzen (typisch Tageschart) und optional die Abstandsfilter in den Skript-Einstellungen.
6. Scan klicken.
7. Um die eingebauten Abstandsfilter anzuwenden, Spaltenfilter setzen: Hit = 1.
Pro Scan kann nur ein Pine-Skript verwendet werden.
█ SPALTEN
• Hit — 1, wenn alle aktivierten Skript-Filter zutreffen, sonst 0
• Distance % nearer offset — Abstand zum näheren der beiden Offset-Niveaus
• Nearer to (1=High, −1=Low)
• Distance % offset high / offset low
• Offset high / Offset low — zeitversetzte 52-Wochen-Niveaus
• Current 52W high / Current 52W low
• Close
Abstandsformel:
(Schlusskurs − Offset-Niveau) / Schlusskurs × 100
Positiv = Kurs über diesem Niveau, negativ = darunter.
█ ABSTANDSFILTER (SKRIPT-EINSTELLUNGEN)
Deaktivierte Filter werden ignoriert. Alle aktivierten Filter müssen für Hit = 1 gleichzeitig erfüllt sein.
• Side: All / only nearer to offset high / only nearer to offset low
• Constrain nearer distance (from % / to %)
• Constrain distance to offset high
• Constrain distance to offset low (DCA-Beispiel: −15 bis +8)
• Only below offset low
• Only above offset high
Du kannst auch direkt über die Spalten filtern. Numerische Filter gelten wörtlich:
• Distance % offset low < 1 enthält +0,08 (knapp über dem Tief) und −16 (unter dem Tief)
• Nur unter dem Offset-Tief: Distance % offset low < 0
• Mindestens 1 % unter dem Tief: Distance % offset low < −1
• Höchstens 1 % vom Tief entfernt: zwischen −1 und 1
█ ALERT
Die Alert-Bedingung „52W Offset Hit“ löst aus, wenn ein Symbol die Abstandsfilter des Skripts erfüllt.
█ HINWEISE
• Nutzt 52 Wochenkerzen und einen Wochen-Offset; das aktuelle 52-Wochen-Hoch/-Tief bezieht die laufende Woche ein.
• Chart-Begleiter: „52 Week High/Low (Current & Offset)“.
(Nach der Indikator-Veröffentlichung hier die Skript-URL einfügen.)
Dieses Skript erzeugt keine Handelssignale und ist keine Anlageberatung.
指标

52 Week High/Low (Current & Offset)Title:
52 Week High/Low (Current & Offset)
Visibility: Open (recommended) or Protected
Category: Overlay / indicator
Companion script: 52 Week High/Low Offset Screener
----- Description (paste below; English first) -----
█ OVERVIEW
This indicator plots two 52-week ranges at once:
• Current 52-week high/low, including today’s price, as two horizontal lines.
• Historical 52-week high/low, lagged by a user-defined number of weeks, as a full history.
The current range always moves with price. After a sharp rally or sell-off that can make the live 52-week band less useful for context (for example dollar-cost averaging). The offset range shows where the 52-week high and low stood N weeks ago, before the latest move fully rewrote those extremes.
A distance label shows how far the close is from the nearer offset level, in percent of the current price. Positive = price is above that level, negative = below.
This is a positioning tool, not a buy or sell signal.
█ HOW IT WORKS
Current 52-week high/low
Calculated on the weekly timeframe over 52 weeks and combined with the developing week’s high/low on the chart timeframe, so today’s price is included.
Historical 52-week high/low (offset)
The same 52-week calculation, shifted by N weekly bars (default: 52). The offset is applied on the weekly timeframe, not in chart bars, so “52 weeks” remains 52 weeks on a daily chart.
Distance %
(close − offset level) / close × 100
The label is attached to whichever offset level is closer in price:
• Orange = nearer the offset high
• Teal = nearer the offset low
If the current 52-week high and the offset high print as the same price, they are merged into one label: “52W High = Offset”. The same logic applies independently to the low.
█ HOW TO USE
1. Add the script to a chart (daily is a typical timeframe).
2. Set Historical offset (weeks). Default is 52 (about one year); 13 ≈ one quarter, 4 ≈ one month.
3. Read price against the white historical path, not only against the green/red current lines.
4. Use the distance label and the table (Current vs −Nw) for a quick readout.
Reading for DCA-style context (not advice):
• Near the offset low, slightly negative or slightly positive → closer to the older low.
• Near the offset high, small negative → still below the older high, relatively expensive vs that band.
• Near the offset high, positive → price has left the older high.
█ SETTINGS
52-week setup
• Basis for 52-week values: Highs/Lows (default) or Close
• Historical offset (weeks)
Current 52W High/Low
• Horizontal lines, colors, width, style (solid / dashed / dotted), price labels
Historical 52W High/Low (Offset)
• History on/off, colors, fill, fill color
• In the Style tab, historical lines default to dashed and can be switched to solid or dotted
Info panel
• Table on/off, position, distance label
█ NOTES AND LIMITS
• 52 weeks means 52 weekly bars, not exactly 365 calendar days.
• The current 52-week high/low updates with the developing week.
• The offset uses closed weekly values (no lookahead inside the forming week).
• Companion screener: “52 Week High/Low Offset Screener” (add to Favorites, then Products → Screeners → Pine).
This script does not generate trading signals and is not investment advice.
--------------------------------------------------------------------------------
DEUTSCH
█ ÜBERBLICK
Der Indikator zeigt zwei 52-Wochen-Spannen gleichzeitig:
• Das aktuelle 52-Wochen-Hoch/-Tief inklusive heutigem Kurs, als zwei horizontale Linien.
• Das historische 52-Wochen-Hoch/-Tief, um eine wählbare Anzahl Wochen versetzt, als vollständigen Verlauf.
Die aktuelle Range wandert immer mit dem Kurs. Nach einer starken Rally oder einem Ausverkauf ist das live 52-Wochen-Band für den Kontext oft weniger nützlich (zum Beispiel beim Averagen / DCA). Die Offset-Range zeigt, wo Hoch und Tief vor N Wochen standen, bevor die jüngste Bewegung diese Extreme überschrieben hat.
Das Abstands-Label zeigt, wie weit der Schlusskurs vom näheren Offset-Niveau entfernt ist (in % vom aktuellen Kurs). Positiv = Kurs liegt darüber, negativ = darunter.
Das ist eine Lagehilfe, kein Kauf- oder Verkaufssignal.
█ BERECHNUNG
Aktuelles 52-Wochen-Hoch/-Tief
Berechnung auf dem Wochen-Timeframe über 52 Wochen, kombiniert mit dem laufenden Wochenhoch/-tief auf dem Chart-Timeframe, damit der heutige Kurs einbezogen wird.
Historisches 52-Wochen-Hoch/-Tief (Offset)
Dieselbe 52-Wochen-Berechnung, um N Wochenkerzen verschoben (Standard: 52). Der Versatz greift auf dem Wochen-Chart, nicht in Chart-Balken. „52 Wochen“ bleiben also auch auf dem Tageschart 52 Wochen.
Abstand %
(Schlusskurs − Offset-Niveau) / Schlusskurs × 100
Das Label hängt an dem Offset-Niveau, das preislich näher liegt:
• Orange = näher am Offset-Hoch
• Türkis = näher am Offset-Tief
Sind aktuelles 52W-Hoch und Offset-Hoch als derselbe Preis dargestellt, werden sie in einem Label zusammengefasst: „52W High = Offset“. Dieselbe Logik gilt unabhängig fürs Tief.
█ NUTZUNG
1. Skript auf einen Chart legen (Tageschart ist ein üblicher Timeframe).
2. Historical offset (weeks) einstellen. Standard ist 52 (ca. ein Jahr); 13 ≈ ein Quartal, 4 ≈ ein Monat.
3. Den Kurs gegen den weißen historischen Verlauf lesen, nicht nur gegen die grünen/roten aktuellen Linien.
4. Abstands-Label und Tabelle (Current vs. −Nw) für die schnelle Ablesung nutzen.
Lesart für DCA-Kontext (keine Empfehlung):
• Nah am Offset-Tief, leicht negativ oder leicht positiv → näher am älteren Tief.
• Nah am Offset-Hoch, leicht negativ → noch unter dem älteren Hoch, relativ teuer zu diesem Band.
• Nah am Offset-Hoch, positiv → der Kurs hat das ältere Hoch verlassen.
█ EINSTELLUNGEN
52-week setup
• Basis for 52-week values: Highs/Lows (Standard) oder Close
• Historical offset (weeks)
Current 52W High/Low
• Horizontale Linien, Farben, Stärke, Stil (solid / dashed / dotted), Preis-Labels
Historical 52W High/Low (Offset)
• Verlauf an/aus, Farben, Füllung, Füllfarbe
• Im Tab Style sind die historischen Linien standardmäßig gestrichelt und können auf durchgezogen oder gepunktet gestellt werden
Info panel
• Tabelle an/aus, Position, Abstands-Label
█ HINWEISE UND GRENZEN
• 52 Wochen bedeutet 52 Wochenkerzen, nicht exakt 365 Kalendertage.
• Das aktuelle 52-Wochen-Hoch/-Tief aktualisiert sich mit der laufenden Woche.
• Der Offset verwendet geschlossene Wochenwerte (kein Vorgriff innerhalb der entstehenden Woche).
• Begleit-Screener: „52 Week High/Low Offset Screener“ (zu den Favoriten, dann Products → Screeners → Pine).
Dieses Skript erzeugt keine Handelssignale und ist keine Anlageberatung. 指标

Squaring The RangeSquaring The Range (STR Pro)
Squaring The Range is a comprehensive geometric and time-cycle analysis tool engineered to calculate the mathematical relationship between price and time. Built on the foundational principles of W.D. Gann and esoteric market geometry, this indicator dynamically detects structural market legs and projects a master geometric square to forecast future support, resistance, and cyclical turning points.
Instead of relying on lagging moving averages or standard oscillators, this tool treats price and time as equal, unified vectors, allowing you to visualize the harmonic grid underlying market movements.
Why It Works
Financial markets do not move randomly; they expand and contract in proportional, geometric ratios. When a market establishes a significant high and a significant low, the space between them forms a "master square."
According to the law of vibration and Gann theory, the original energy that created the initial price range will dictate the future rhythm of the market. By subdividing this range into specific musical and mathematical octaves (eighths) and harmonic thirds, we expose the natural barriers where price action is mathematically forced to react. When the time it took to form the range is duplicated or fractionally divided, time and price "square out," resulting in high-probability trend reversals or accelerations.
How It Works
The STR Pro engine operates by identifying the most mathematically significant price swing within a defined window.
Swing Detection Engine: The script uses a lag-aware pivot detection system to identify structural highs and lows. It does not repaint. A swing is only confirmed after a set number of lower highs or higher lows form on both sides.
The Geometric Box: Once the high and low are confirmed, the indicator draws a foundational box connecting the two points, establishing the base price range and time vector (bar count).
Subdivisions: The price range is automatically sliced into 1/8 and 1/3 fractions. The time vector is divided into identical proportional fractions.
Vector Angles: Gann angles (1x1, 2x1, 1x2, 1x4, 4x1) are cast outward from the primary pivots. The 1x1 angle represents a perfectly balanced market moving one unit of price per one unit of time.
How To Use
1. Finding Confluence (Nodes)
The highest probability trade setups occur at "Major Nodes." These are coordinates on the chart where a horizontal price fraction (e.g., the 4/8 or 50% midline) perfectly intersects with a vertical time division (e.g., the 1/2 cycle mark). Watch for price action to consolidate or sharply reverse when it strikes a Major Node (marked in Gold) or Minor Node (marked in Silver).
2. Trading the Anniversary Cycles
The indicator projects 1x, 2x, and 3x "Anniversary" lines forward in time. If a market took 45 bars to form the initial range, the 1x Anniversary will plot exactly 45 bars later. Trend exhaustion and aggressive reversals frequently occur precisely on these vertical time boundaries.
3. Utilizing Gann Angles
Monitor price interaction with the ascending and descending angles.
If price is holding above an ascending 1x1 angle from the low, the trend is incredibly strong.
If price breaks below the 1x1, it mathematically targets the 1x2 angle next, signaling a deceleration in market velocity.
Settings Tutorial
► Pivot Selection & Auto-Detect
Use Auto-Detection: Toggle between the algorithm finding the pivots or you entering exact timestamps manually.
Auto-Detect Mode:
Macro Swing Extremes: Finds the highest structural high and lowest structural low in the window.
Latest Swing Leg: Squares only the most recent completed move.
Raw Extremes: Finds the absolute high/low regardless of swing structure.
Swing Strength: The number of bars required on each side of a candle to confirm a pivot. Higher numbers equal major structural swings; lower numbers catch micro swings.
Auto Lookback Window: The maximum number of bars the engine searches to find the swings.
Manual Pivot Times: If Auto-Detection is off, enter the exact date and time of the high and low you wish to square.
► Master Overlays & Fractions
Geometric Box / Nodes: Toggle the visibility of the primary bounding box and the intersection nodes.
Price Fractions: Choose whether to display the 1/8 octaves, the 1/3 thirds, or both.
Label Every Other Fraction: Cleans up the chart UI by hiding half the text labels while keeping the geometric lines visible.
► Gann Angles & Time Cycles
Gann Angles: Toggle individual angles (1x1, 1x2, 2x1, 1x4, 4x1).
Forward Projections: Controls how far into the future the angles cast (measured in multiples of the original time vector).
Division Cycles: How many times the original time vector is duplicated and sub-divided forward on the chart.
Anniversary Count: Controls how many vertical Anniversary cycle lines are projected.
► Alerts
STR Pro uses a unified alert system. You only need to create ONE alert in TradingView for this script (Condition: "Any alert() function call").
Use the toggles in this section to choose which specific events (price crossing a 1/8 level, hitting a time division, or striking an angle) will trigger that master alert.
► Visuals & Dashboard
Show Dashboard (HUD): Displays a live data panel showing the exact coordinates of the active pivots, the point value of the price range, the bar count of the time vector, and the active 1x1 scale ratio. Position and size can be adjusted to fit your layout. 指标

CISD Order Block+ (M1D)CISD Order Block+ finds the candle that changed the state of delivery and turns it into the order block you deal from. A run of down candles delivers lower; price then closes back above the highest body edge of that run. That reclaim is the change in the state of delivery, and the candle it reclaimed is a bullish order block — its body is the array, its midpoint is the entry, and the range it delivered through projects the targets. Bearish mirrors it exactly. Nothing engages until liquidity has been swept, and one raid produces one setup. It maps structure. It does not fire trades.
The sequence it looks for
Bullish below; bearish mirrors.
Liquidity is taken. Price wicks through a swing low and closes back above it — sellside raided and rejected. With no sweep there is no setup, and the swing that was taken is consumed, so the same low cannot be raided twice.
Delivery runs down. Two or more consecutive down candles print. This is the leg that did the raiding.
The run is reclaimed. Within a set window of bars, a candle CLOSES back above the run's highest body edge. That close is the change in the state of delivery.
The origin candle becomes the order block. The highest-bodied candle of the run, the one price just closed back over, which is usually but not always the run's first candle. Its body high is the level, its body midpoint is the entry, and its own body low is the distal edge.
The targets project. The run's body-to-body range, cast forward past the level in standard deviations.
The anchor is the point of the whole thing. Most implementations mark the last down candle before the up move, or measure the midpoint across the entire displacement leg. This one anchors on the run's extreme body — the level whose reclaim actually reverses the delivery — and takes its 0.5 from that single candle's own body, not from the leg. Those produce different prices, and the difference is where you get filled.
These are established Inner Circle Trader concepts — the change in the state of delivery, the order block, the liquidity raid, consequent encroachment and standard deviation projections. This script is an original implementation of them.
One raid, one setup
A down leg is rarely a single run. It is more often three down, a pause, two down, a pause, two more — each with its own body high sitting at a different price. A rally back through that leg closes above each of those levels in turn, on different bars, which is how a CISD tool ends up printing four or five setups off one raid.
This script treats that as one event. When a setup confirms, every other pending run in that leg is discarded and the sweep that produced it is marked as used; the next setup on that side requires a new sweep. The one that survives is the FIRST close that reverses the delivery, not the highest level, because the run nearest the low is the one that actually delivered into the raid. The higher runs further back up the leg are old delivery, and a close through those comes after the move has already gone.
What it draws
The CISD level. A solid line at the origin candle's body high, anchored at the candle that formed it and tagged CISD at its right end. This is the trigger — the price whose reclaim made the setup, and the price whose loss ends it.
The 0.5. A dotted line at the consequent encroachment of that candle's body, tagged 0.5. The entry level: the discount half of the block on a bullish setup, the premium half on a bearish one. Both the line and its tag can be turned off independently.
The swept level. A dotted line at the raided level, running from the swing that formed it to the candle that took it, with a small x centred on the line. It shows the liquidity the whole setup was built on, and it belongs to the setup — when the block fails, the mark goes with it.
The distal edge. The far side of the origin candle's body, dotted, off by default. Turn it on for the full three-level block.
Standard deviations. The unit is the run's body-to-body range — the highest body edge to the lowest body edge across every candle in the run, so a three-candle run measures all three — projected past the CISD level at 1, 2, 2.5 and 4 by default, the multiples editable as a list. They draw as short stubs numbered on their left rather than as extended levels, and they are carried by the latest setup only: four multiples on four live setups is thirty-two objects and reads as a grid, and targets only matter for the setup you are in. Off by default, since projections sit far from price and stretch the price scale.
The block as a zone. Available behind an input, off by default. The levels are the thing; the box is optional.
Why the chart stays clean
Five things retire drawings, so nothing accumulates.
Failure erases. A set is deleted the moment price closes back through its CISD level. Delivery has reverted, the block is spent, and it leaves — lines, tags, sweep mark and all.
One price, one level. A new set whose level lands within half a body of a live one replaces it, on either side. They are one level re-detected as price chops around it, and two tags at one price is two names for one thing.
Age retires. A level price never closed back through would otherwise stay live forever. Sets older than a configurable age are dropped.
Live sets are capped. Oldest first, past a set limit.
Bodyless origins never qualify. An origin candle with almost no body is rejected outright. It is not an array, and its level and its 0.5 would print on top of each other.
A setting keeps failed sets on the chart, redrawn dotted and stripped of their projections, for anyone who wants the record instead of the read.
Everything is drawn black by default so the chart reads as one system rather than a colour code. State is carried by line style instead: solid means the level is live, dotted means it is reference. Every colour is an input if you want direction back in the hues.
Reversals
When a block fails it is not merely deleted, it arms the other side. The level that just failed IS the liquidity that was taken, so the opposite setup can confirm on the bar the failure happens rather than waiting for a fresh swing to form and confirm. Pivot confirmation is inherently late — a swing is only known once the bars either side of it exist — and on a sharp turn that lateness is the difference between marking the reversal and missing it. The behaviour is a setting, and turning it off restores strict pivot-only raids.
Reading it in practice
The CISD line is the trigger, not the entry. The setup is confirmed the moment price closes back through it; what you want next is the retrace into the 0.5, which is the half of the block delivering at a discount on a long. Stop beyond the distal edge — the far side of the origin candle's body — and let the standard deviation stubs frame where the leg is projecting toward. The sweep mark tells you which pool funded the move, which is usually the first thing to check when deciding whether the setup has a story behind it.
The setup ends when price closes back through the CISD level. That is the same line that confirmed it, and the script treats it as the invalidation, which is why a failed set erases itself.
Method and repainting
All detection evaluates on closed bars. The run, the reclaiming close, the sweep and the invalidation are confirmed on candle close, never intrabar — an in-progress candle, wick included, never creates or removes a set. Swing points come from a standard pivot and confirm the configured number of bars after they print, which is inherent to pivot detection: a swing is only known once the bars either side of it exist. Levels anchor to the candle that formed them and are drawn a fixed number of bars past the reclaim.
Alerts fire once per bar close on a confirmed setup.
Settings
Sweep gate: whether a sweep is required at all, pivot length, whether a sweep means a wick through with a close back inside or a close through, how far a raid may precede the run, whether the swept level is marked, one setup per sweep, whether a failed setup counts as a raid, and a minimum bar gap between setups on a side that applies only when the sweep gate is off.
Detection: minimum and maximum candles in the run, the earliest and latest bar of the reclaim window, a minimum origin body as a multiple of ATR, and which side to detect — both, bullish only or bearish only.
Drawing: the 0.5 line and its label, the distal edge, zone mode, bars drawn past the reclaim, the cap on live sets, whether failed sets are kept, merging sets at the same price, and the age at which a set retires.
Standard deviations: on or off, latest set only, the multiples list, whether the unit measures the whole run or the origin candle alone, stub length and stub offset.
Style: a colour per element and one label size for everything.
Analytics only
This is a decision-support tool for discretionary ICT study. It maps a structural sequence — a raid, a delivery leg, and the close that reverses it — and marks the levels that sequence produces. It contains no buy or sell signals and it does not tell you when to enter or exit. Its alerts announce that the pattern completed; they are notifications, not trade instructions.
Disclaimer
This is a decision-support tool for discretionary ICT trading. It is not financial advice, and no market's past behaviour is indicative of future results. 指标

Closed-Bar Anatomy Percentile Panel [BSL]A candle with a small body and a long upper wick has a name. Learning the name
does not tell you whether the body is small FOR THIS CHART, or whether the
wick is long compared to the last five hundred bars.
Closed-Bar Anatomy Percentile Panel replaces the name with four numbers
and a rank for each:
BODY 18.0% PCTL 26 · SMALLER THAN 74% OF THEM · n=500
UPPER WICK 61.0% PCTL 93 · LARGER THAN 93% OF THEM · n=500
LOWER WICK 21.0% PCTL 44 · n=500
CLOSE POSITION 12.0% PCTL 08 · n=500
Plus the bar's whole range against its own median: 1.4 times.
FOUR SHARES OF ONE BAR
Body, upper wick and lower wick are shares of the bar's OWN range, and the
three of them always add to 100. A large body on a small bar and a large body
on a huge bar produce the same number, which is the point: the shape is
separated from the size, and the size gets its own line.
Close position is where the close sits inside the range, from bottom to top.
It is a LOCATION, not a direction. An up bar and a down bar with identical
geometry produce identical body and wick shares; only the close position
separates them, and that is a fact about where the bar closed, not a verdict
about what it means.
RANKED AGAINST WHAT, EXACTLY
Against the previous 500 bars of this same chart. Not against a textbook, not
against another instrument, and not against the bar itself: the bar being
described is excluded from its own comparison window, which is what makes
"thinner than 74% of the last 500 bars" mean the last 500 OTHER bars.
Change the window and the percentiles change, because you have changed the
question.
NO NAME, NO BULL COLOUR, NO BEAR COLOUR
There is no pattern name anywhere in this script: not in the title, an input
label, a tooltip, a panel cell or an alert.
There is also no bullish colour and no bearish colour anywhere in the source.
A green body would put back the verdict this panel exists to remove, and it
would arrive through the palette, where nobody argues with it. The numbers are
printed in one neutral colour and left alone.
WHEN A NUMBER IS WITHHELD
A bar with no range at all has no shares. Every share would be a division by
zero, so the panel prints a dash rather than a fabricated figure.
A bar with no range ANYWHERE in the window withholds all four ranks, rather
than quietly ranking against 499 bars while the panel still says 500. A small
misstatement about a denominator compounds into a large one about a
percentile.
An absent rank is not a rank of zero, and the drawing keeps them apart: an
absent rank draws as dots, an actual zero draws as an empty bar. They look
different because they mean different things.
The bar still forming gets its own row, separate from the four, with its live
shares and no percentile at all. Its shape can still change.
WHY ALL FOUR ROWS SHOW THE SAME n
Because they must. All four use the same window, the same warm-up, and none of
them waits on an outcome, a bar's geometry is finished the moment it closes.
So all four become available and unavailable together, and the only unfinished
observation on the chart is the bar still open, which is why it sits in a row
of its own.
Four equal sample sizes here are a fact you can rely on, not a default value
nobody filled in.
SETTINGS
- Window: 500 bars
- Panel position: Bottom center
Six positions, and the panel opens at the bottom center. Six rows is a lot of
panel, so it needs a strip nothing else draws in: the legend and the trading
buttons take the top left, the platform's own logo sits in the bottom left, and
the price scale owns the right.
RANKING A SMOOTHING AGAINST ITSELF
The body share of a Heikin Ashi candle is a property of the averaging, not of
the session. Ranking it would rank one smoothing setting against itself.
Renko, Kagi, Point & Figure and Range have the same problem in their own way.
On those chart types the panel freezes and publishes nothing.
FOUR PERCENTILES, PUBLISHED
Four values are published for other indicators to pick up in their Source
setting: the four percentiles. On any bar where a rank is unavailable they
carry no value at all, which is not the same as a percentile of zero, and the
difference matters to anything consuming them, because zero is the lowest
possible rank and "no value" is not a rank.
These four are the only entries this panel puts in that dropdown. It draws no
series on the chart and offers no alerts, so there is nothing else to pick by
mistake.
THERE ARE NO ALERTS
There is no event here to alert on. An alert on a percentile crossing would be
a signal wearing a description's clothes, so the script offers none.
WHAT IT WILL NOT TELL YOU
It has no direction, no bias, no score and no signal, and it emits no events.
A description is not a signal, and presenting one as the other is the exact
overreach this panel exists to argue against.
It measures nothing that happens afterwards. It names no pattern, uses no
support or resistance level, and every number it prints describes a single
bar. There is no multi-bar shape anywhere in it.
Where outcomes are measured is elsewhere: Signal Audit Lab takes any
event series and reports what followed.
This tool describes the geometry of one closed bar. It does not predict price,
guarantee performance or provide trading advice. Validate the behaviour on
your own symbols, timeframes and execution assumptions before making
decisions.
Open-source Pine Script® v6. Educational use only. 指标

AMD Po3 with Live Edge Stats WillyAlgoTrader Version OrGa## English
### AMD Po3 with Live Edge Stats — OrGa
The **OrGa version** is an enhanced New York Session-focused adaptation of the original AMD Po3 concept by WillyAlgoTrader.
The indicator is designed to identify **Power of Three / AMD market cycles**:
**Accumulation → Manipulation → Distribution**
Instead of treating every liquidity grab as a trade signal, the script first detects a statistically compressed accumulation range. A valid manipulation requires price to sweep one side of the range and subsequently **close back inside the range**. Only after this confirmation is the Distribution phase activated.
### Core Logic
**Accumulation**
* Detects compressed ranges using a Donchian-based volatility percentile model
* Default range boundaries are derived from confirmed pivot highs and lows
* Minimum range maturity prevents very young consolidations from generating premature sweep signals
**Manipulation**
* Detects liquidity sweeps above or below the accumulation range
* A sweep alone is not sufficient
* Price must return and close back inside the range within the configured number of bars
* If price fails to return, the event is classified as a breakout rather than a manipulation
**Distribution**
* A confirmed sweep below the range projects an upward distribution
* A confirmed sweep above the range projects a downward distribution
* The confirmed Distribution candle acts as the reference entry candle
### 🐊 Entry Signals
Confirmed Distribution entries are displayed directly on the chart:
**🐊 D ▲ = Long setup**
**🐊 D ▼ = Short setup**
The signal is generated only after candle close.
The entry emoji can be changed in the indicator settings.
### Reference Trade Model
For every confirmed setup the indicator calculates:
* Reference Entry
* Stop Loss
* Distribution Target
* Risk-to-Reward Ratio
* Risk distance in %
* Trade outcome statistics
The Stop is placed beyond the full manipulation extreme with an ATR-based safety buffer.
The Distribution target is calculated using a configurable Fibonacci extension.
**OrGa default: 1.618**
The Fib extension remains fully adjustable, allowing values such as:
* 1.272
* 1.5
* 1.618
* 2.0
The target should be interpreted as an expected distribution objective rather than a mandatory take-profit level.
### OrGa Liquidity & Confluence Model
The OrGa version adds contextual liquidity levels to help evaluate the quality of each AMD setup.
Available confluences include:
* Previous Day High / Previous Day Low
* London High / London Low
* Daily Open
* New York Session VWAP
Each confirmed Distribution setup receives a **Confluence Score**.
Example:
**🐊 D ▲ 3/4**
The score helps distinguish a random range sweep from a sweep occurring at meaningful market liquidity.
By default, the confluence score is informational and does **not** block signals.
An optional minimum score filter can be enabled if only higher-confluence setups should be traded.
### New York Session Optimisation
The OrGa configuration is primarily designed around the **15-minute chart** and the New York trading session.
Default workflow:
**4H Trend Bias → 15M AMD Setup → optional 5M Execution**
The default New York manipulation window is:
**09:30–12:00 America/New_York**
Using the native New York timezone automatically accounts for US daylight-saving changes. Traders using European chart time therefore do not need to manually adjust the session throughout the year.
### Higher-Timeframe Bias
The OrGa default HTF filter is:
**4H Close vs EMA 50**
* Above EMA50 → Long distributions preferred
* Below EMA50 → Short distributions preferred
The HTF data uses the previous confirmed higher-timeframe candle to avoid future-data leakage.
If a manipulation is rejected by the HTF bias, the range can optionally re-arm and wait for a sweep of the opposite side.
### Alerts
TradingView alerts are available for confirmed entries.
Separate conditions are provided for:
**🐊 OrGa LONG Entry**
**🐊 OrGa SHORT Entry**
Entry signals are confirmed on candle close.
The script also supports dynamic alerts for:
* Liquidity Sweep
* Confirmed Distribution
* Target reached
* Stop hit
* Timeout
Webhook JSON formatting is available for external integrations.
### Repainting
The core AMD signal logic is evaluated on **confirmed candles only**.
The higher-timeframe bias uses confirmed HTF data.
Pivot-based range boundaries require confirmation bars, which introduces normal pivot confirmation lag, but this is not future leakage.
The script is therefore designed for live use without intentional future-data leakage or classic signal repainting.
### Recommended Usage
The indicator should not be used as a blind Buy/Sell system.
Higher-quality setups typically combine:
* Valid accumulation
* Liquidity sweep
* Return inside the range
* 4H directional bias
* PDH / PDL or London liquidity
* Daily Open positioning
* Session VWAP alignment
* Strong New York timing
For refined execution, a confirmed 15M Distribution signal can be followed by a 5M market-structure confirmation such as CHOCH, FVG retest or liquidity reclaim.
The objective of the OrGa version is not to generate more signals, but to identify **cleaner and more contextual AMD setups with transparent risk, targets and live statistics**.
---
## Deutsch
### AMD Po3 with Live Edge Stats — OrGa
Die **OrGa-Version** ist eine auf die New-York-Session ausgerichtete Weiterentwicklung des ursprünglichen AMD-Po3-Konzepts von WillyAlgoTrader.
Der Indikator sucht nach **Power-of-Three- bzw. AMD-Marktzyklen**:
**Accumulation → Manipulation → Distribution**
Dabei wird nicht jeder Liquidity Grab automatisch als Trading-Signal interpretiert. Zuerst muss eine statistisch komprimierte Accumulation Range entstehen. Danach muss eine Range-Grenze gesweept werden und der Kurs anschliessend **wieder innerhalb der Range schliessen**. Erst dann wird die Distribution bestätigt.
### Kernlogik
**Accumulation**
* Erkennt enge Ranges über ein Donchian-basiertes Volatilitäts-Perzentil
* Die Range-Grenzen werden standardmässig aus bestätigten Pivot Highs und Pivot Lows gebildet
* Eine Mindest-Reifezeit verhindert Signale aus sehr jungen und instabilen Ranges
**Manipulation**
* Erkennt Liquidity Sweeps oberhalb oder unterhalb der Accumulation Range
* Ein Sweep alleine ist noch kein Signal
* Der Kurs muss innerhalb der definierten Anzahl Kerzen wieder in die Range zurückkehren und dort schliessen
* Erfolgt keine Rückkehr, wird die Bewegung als Breakout und nicht als Manipulation gewertet
**Distribution**
* Sweep unterhalb der Range → erwartete Distribution nach oben
* Sweep oberhalb der Range → erwartete Distribution nach unten
* Die bestätigte Distribution-Kerze bildet den Referenz-Entry
### 🐊 Entry-Signale
Bestätigte Distribution-Setups werden direkt im Chart dargestellt:
**🐊 D ▲ = Long-Setup**
**🐊 D ▼ = Short-Setup**
Das Signal entsteht erst nach dem Schluss der Kerze.
Das Entry-Emoji kann in den Einstellungen geändert werden.
### Referenz-Trade-Modell
Für jedes bestätigte Setup berechnet der Indikator:
* Referenz-Entry
* Stop Loss
* Distribution Target
* Risk-to-Reward
* Risikoabstand in %
* Ergebnisstatistiken
Der Stop liegt hinter dem vollständigen Manipulations-Extrem und erhält zusätzlich einen ATR-basierten Sicherheitsabstand.
Das Distribution Target basiert auf einer frei einstellbaren Fibonacci Extension.
**OrGa-Standard: 1.618**
Der Wert kann jederzeit beispielsweise auf folgende Werte geändert werden:
* 1.272
* 1.5
* 1.618
* 2.0
Das Ziel ist als erwartete Distribution-Reichweite zu verstehen und nicht zwingend als fixer Take Profit.
### OrGa Liquidity- und Confluence-Modell
Die OrGa-Version ergänzt zusätzliche Marktlevels, damit die Qualität eines AMD-Setups besser beurteilt werden kann.
Berücksichtigte Confluences:
* Previous Day High / Previous Day Low
* London High / London Low
* Daily Open
* New York Session VWAP
Jedes bestätigte Distribution-Setup erhält einen **Confluence Score**.
Beispiel:
**🐊 D ▲ 3/4**
Dadurch lässt sich unterscheiden, ob lediglich irgendeine Range-Grenze gesweept wurde oder ob der Sweep gleichzeitig an relevanter Marktliquidität stattgefunden hat.
Standardmässig dient der Score nur als Zusatzinformation und blockiert keine Signale.
Optional kann ein Mindestscore aktiviert werden, wenn nur Setups mit höherer Confluence gehandelt werden sollen.
### Optimierung für die New-York-Session
Die OrGa-Konfiguration ist primär für den **15-Minuten-Chart** und die New-York-Session ausgelegt.
Empfohlener Workflow:
**4H Trend Bias → 15M AMD Setup → optional 5M Execution**
Das standardmässige Manipulationsfenster für New York lautet:
**09:30–12:00 America/New_York**
Durch die Verwendung der echten New-York-Zeitzone werden Sommer- und Winterzeit automatisch berücksichtigt. Bei einem europäischen TradingView-Chart muss die Session deshalb nicht laufend manuell angepasst werden.
### Higher-Timeframe Bias
Der OrGa-Standard verwendet:
**4H Close gegenüber EMA50**
* Über EMA50 → Long-Distributionen bevorzugt
* Unter EMA50 → Short-Distributionen bevorzugt
Für den HTF-Bias wird ausschliesslich die vorherige bestätigte 4H-Kerze verwendet.
Wird eine Manipulation vom HTF-Bias abgelehnt, kann die bestehende Range optional re-armed werden und auf einen Sweep der gegenüberliegenden Seite warten.
### TradingView-Alarme
Für bestätigte Entries stehen separate TradingView-Alarmbedingungen zur Verfügung:
**🐊 OrGa LONG Entry**
**🐊 OrGa SHORT Entry**
Die Entry-Alarme werden erst nach bestätigtem Candle Close ausgelöst.
Zusätzlich unterstützt der Indikator dynamische Alarme für:
* Liquidity Sweep
* bestätigte Distribution
* Target erreicht
* Stop getroffen
* Timeout
Für externe Integrationen kann eine Webhook-JSON-Ausgabe aktiviert werden.
### Repainting
Die eigentliche AMD-Signallogik wird ausschliesslich auf **bestätigten Kerzen** ausgewertet.
Auch der Higher-Timeframe Bias basiert auf bestätigten HTF-Daten.
Die Pivot-Grenzen benötigen einige Kerzen zur Bestätigung. Dadurch entsteht ein normaler Pivot-Bestätigungs-Lag, jedoch kein Future Leak.
Der Indikator ist damit für den Live-Einsatz ausgelegt und verwendet keine absichtliche zukünftige Kursinformation.
### Empfohlene Anwendung
Der Indikator sollte nicht als blindes Buy-/Sell-System verwendet werden.
Hochwertige Setups kombinieren idealerweise:
* saubere Accumulation
* Liquidity Sweep
* Rückkehr innerhalb der Range
* passenden 4H Bias
* PDH / PDL oder London Liquidity
* passende Position gegenüber dem Daily Open
* Session-VWAP-Bestätigung
* gutes Timing innerhalb der New-York-Session
Für einen präziseren Entry kann nach einem bestätigten 15M-Distribution-Signal auf dem 5M-Chart beispielsweise auf CHOCH, FVG-Retest oder Liquidity Reclaim gewartet werden.
Das Ziel der OrGa-Version ist nicht, möglichst viele Signale zu erzeugen, sondern **sauberere und besser kontextualisierte AMD-Setups mit transparentem Risiko, Zielprojektion und Live-Statistik zu liefern**.
指标

Reversal Radar PRO | Market Tops & Bottoms
↺ Reversal Radar PRO — Tops & Bottoms
Most “reversal” tools fire one arrow and disappear. This one runs three layers: a heads-up while the bar is still forming, a confirmed print after the swing is locked, and a live status on whether that reversal is still valid.
The point is not to catch every wick. It is to grade the turn, map the zone, and tell you when the chase is already late.
① Early-warning
Live-bar gauge. It can repaint — that is stated on purpose. Use it as danger / opportunity forming, not as an entry.
② Confirmed
Pivot-locked after the right-side bars. Does not repaint. Weighted 0–100 confidence with a grade, a vote floor, and a cooldown. Factors that can vote: RSI extreme, RSI divergence (quality-scored), volume climax, Bollinger pierce, over-extension from the mean, Stoch-RSI, wick rejection, engulfing, higher-TF RSI, liquidity sweep. Regime can boost or cut the score. Hidden divergence trims it — that is continuation, not a turn.'
③ Follow-through
Once a confirmed top or bottom is on, the radar tracks:
Active / late / soft invalid / hard invalid / target hit
Soft and hard invalidation distances
Chase quality (good → poor) vs progress to target
Mapped target and R:R
🗺 On the chart
Confirmed labels (confidence + grade) or simple arrows
Tiny diamonds for early-warning
Reversal zone boxes at the pivot
Clustered S/R that merge nearby swings, count touches, and flip when broken
📟 Dashboard
Regime and “best play” (fade the trend, or both sides). Trend efficiency. Volatility state. RSI / HTF RSI / Stoch-RSI. Bollinger position. Extension. Volume vs average. Divergence quality. Early-warn reading. Active signal, status, chase, target. Nearest S/R. Last print and how many bars ago.
🎯 How to use it
Wait for confirmed unless you accept that early-warning will flicker. In a strong uptrend, bottoms are the preferred fade — not every red wick. If chase already reads late, you missed the turn; do not market-order the remainder. Hard invalidation ends the idea. Soft invalidation is a warning, not a rewrite of history. 指标

ZigZag Break - Phase 3 Toggle Sync V6 (Display Only)### Overview
"ZigZag Break - Phase 3 Toggle Sync V6" is an analytical tool designed to visualize market structure transitions based on Dow Theory and multi-timeframe Moving Average (MA) dynamics.
It automatically detects key structural swing points (labeled 1 to 6), tracks horizontal breakout levels, and monitors multi-timeframe MA alignments to provide structured, multi-step signal conditions.
### Key Features
1. **Dow Theory & Vertex Tracking (1-2-3 Patterns):**
- Identifies trend reversal origin points (Vertex 1) upon confirmed price breaks.
- Plots sequential market structure vertices (1, 2, 3, 4, 5, 6) based on strict price action criteria.
- Automatically draws persistent horizontal levels for key even/odd structural highs and lows.
2. **Multi-Timeframe MA Alignment & Sorting:**
- Evaluates MA directions across higher timeframes.
- Displays a real-time sorted panel showing the hierarchical order of current price relative to MTF MAs.
3. **Sequential Step-Alert System:**
- Evaluates multi-stage technical events (e.g., Convergence -> Divergence -> Structural Peak/Valley or Dow Break).
- Fires unified alerts when a custom sequence of technical conditions is fully met.
### Technical & Repainting Notice
- **Use of `lookahead_on`:**
This indicator utilizes `lookahead=barmerge.lookahead_on` inside multi-timeframe `request.security` functions. This design explicitly references confirmed historical higher-timeframe bar closes (`close `) to calculate higher-timeframe market structure levels without referencing unconfirmed real-time higher-timeframe data.
- **Historical Consistency:**
Historical line/label positions correspond strictly to completed higher-timeframe bar boundaries. Current real-time bars process ongoing price updates dynamically until bar close.
■ 概要
「ZigZag Break - Phase 3 Toggle Sync V6」は、ダウ理論に基づく波形・構造変化と、マルチタイムフレーム(MTF)における移動平均線(MA)の方向性を可視化・分析するためのテクニカル指標です。
過去の高値・安値に対する終値ブレイクを起点とした構造転換(頂点1〜6)の全自動検出、重要な水平線の自動描画、および複数段階のテクニカル条件を組み合わせたステップアラート機能を搭載しています。
■ 主な機能
1. ダウ理論 & 頂点追跡(1-2-3パターン):
- 終値での高値/安値ブレイクを検知し、構造の転換点(頂点1)およびその後の波形(1, 2, 3, 4, 5, 6)を自動ナンバリング。
- 直近の偶数頂点(2, 4, 6)や奇数頂点(3, 5)、ブレイク起点となる最重要水平線を追跡・描画。
2. マルチタイムフレーム(MTF)MA方向 & リアルタイムソート:
- 各時間足のMAの傾き・位置関係を判定。
- 現在価格と上位足MAの階層構造をリアルタイムで並び替えて一覧表示するソートテーブル機能。
3. 段階的ステップアラート(Step Alert System):
- 「MAの収束」→「MAの拡散」→「山谷形成 / ダウブレイク」といった複数のテクニカルイベントの順次達成をトリガーとするアラート機能。
■ テクニカル仕様および「lookahead_on」に関する注記
・`lookahead_on` の使用について:
本インジケーターでは、マルチタイムフレームのデータ取得処理(`request.security`)において `lookahead=barmerge.lookahead_on` を使用しています。これは、未確定の上位足リアルタイムデータによるシグナル変化を避け、確定済みの過去足終値(`close `)に基づいた正確な構造計算・描画を行うための仕様設計です。
・ヒストリカルデータとリアルタイムデータの挙動:
過去チャート上のラインやラベルの表示位置は、確定した上位足のバー境界に基づいて正確に描画されます。進行中のリアルタイム足においては、足確定まで価格変化に応じて動的に計算が更新されます。
指标

Volume Profile - Pivot Anchored Pro [JPT]🔷 OVERVIEW
Volume Profile – Pivot Anchored Pro is an educational volume analysis indicator that automatically creates volume profiles between confirmed swing highs and swing lows. It helps traders visualize where significant trading activity occurred throughout each market swing.
The indicator displays important volume-based levels including the Point of Control (POC) and Value Area High/Low (VAH/VAL), allowing traders to study areas where price may have experienced strong acceptance or rejection.
The indicator is designed to help traders analyze market structure, volume distribution, and key price areas. It does not predict future price movement or guarantee profitable trades.
🔷 FEATURES
• Automatic pivot high and pivot low detection
• Pivot-to-pivot volume profile generation
• Bullish and bearish volume visualization
• POC (Point of Control) level
• VAH (Value Area High) level
• VAL (Value Area Low) level
• High and Low labels for each profile
• Multiple historical volume profiles
• Customizable profile rows
• Adjustable Value Area percentage
• Adjustable profile width
• Customizable colors and display settings
• Clean chart layout with minimal clutter
🔷 HOW IT WORKS
• Detects confirmed swing highs and swing lows.
• Identifies completed price swings between pivot points.
• Calculates the volume distribution across different price levels within each swing.
• Identifies the POC, representing the price level with the highest traded volume.
• Calculates the Value Area, based on the selected Value Area percentage.
• Displays VAH and VAL to define the upper and lower boundaries of the Value Area.
• Draws the volume profile directly on the chart for easy market analysis.
🔷 HOW TO USE
Look for newly completed pivot-to-pivot volume profiles.
Use the POC to identify important high-volume price levels that may act as areas of support, resistance, or price acceptance.
Use VAH and VAL to understand the boundaries of the Value Area and observe how price reacts around these levels.
Compare multiple profiles to study how volume distribution changes from one market swing to another.
Consider combining the indicator with your own price action, market structure, support/resistance, liquidity, and risk management techniques.
🔷 IMPORTANT NOTE
This indicator is intended for educational and analytical purposes only. Volume Profile levels should be treated as reference areas rather than guaranteed support or resistance.
Always perform your own analysis and use appropriate risk management before making any trading decisions.
Volume Profile – Pivot Anchored Pro helps you see not only where price moved, but also where the market traded the most volume during each major swing. 指标

Smart Buy Sell Indicator V1This indicator is designed to identify **potential trend reversals and momentum-based trading opportunities** using a combination of **two EMAs and RSI**.
#### 📊 Indicators Used
Fast EMA (Default: 9 EMA): Tracks short-term price movement.
Slow EMA (Default: 21 EMA): Identifies the broader short-term trend.
RSI (Default: 14): Confirms the strength and momentum of the move.
### 🟢 BUY Signal
A BUY signal is generated when:
The 9 EMA crosses above the 21 EMA, indicating a possible upward trend reversal.
RSI is 50 or above, confirming positive momentum.
How to use: Consider the BUY signal as an indication of bullish momentum. It can be used for a fresh entry or to identify a possible continuation of an upward move.
### 🔴 SELL Signal
A SELL signal is generated when:
The 9 EMA crosses below the 21 EMA, indicating a possible downward trend reversal.
RSI is 50 or below, confirming negative momentum.
How to use: Consider the SELL signal as an indication of weakening momentum or a potential bearish trend. It can be used to exit a long position or, depending on your trading strategy, identify a potential short-selling opportunity.
### ⚠️ Important Usage Tips
* Best used on **liquid stocks and indices.
* The indicator works better when the market is trending.
* Avoid relying solely on signals during **sideways or highly volatile markets**, where EMA crossovers may generate false signals.
* Always consider **support/resistance, price action, volume and the overall market trend** before taking a trade.
* Use an appropriate **stop-loss**, preferably based on the recent swing low for BUY trades and recent swing high for SELL trades.
### In Simple Terms
>EMA crossover identifies the change in trend, while RSI confirms whether momentum supports that direction.
This makes the indicator useful for traders looking for simple, rule-based BUY and SELL signals rather than relying on EMA crossovers alone.
指标

Global Net Liquidity (5-Bank)Global Net Liquidity (5-Bank)
A USD proxy for usable global liquidity:
Fed assets + ECB + BoJ + PBoC + BoE
− US Treasury General Account (TGA)
− Fed overnight reverse repo (RRP)
This is not M2 and not Fed-only net liquidity. It is the standard 5-bank reconstruction used on public charts. It will not match a 16-bank internal series exactly, but the level and shape should rhyme: ~31T peak in 2021–22, ~25T now.
How to read
• Rising and within ~8% of the last cycle peak → liquidity tailwind for BTC; alts can work.
• Flat and still well below that peak → grind. BTC over alts. Do not treat a price squeeze as proof liquidity turned.
• Falling → headwind. Cash rules dominate.
• US row: RRP is no longer the drain. TGA is. A TGA spend adds liquidity; a TGA refill removes it.
Units
FRED and TradingView do not share one scale (WALCL/TGA in millions, RRP in billions or raw dollars, JPNASSETS in 100 million yen or yen). The script auto-detects and clamps each component so a single bad print cannot send the axis to −20,000T. If Level is not roughly 25–27T, a feed changed — do not use the panel.
Use
Add to a separate pane on BTCUSD or SPX, weekly preferred. The table is the decision layer. The gold line is the history. This is a regime overlay, not a buy/sell signal.
Not financial advice. Central-bank data is lagged, FX-translated, and revised. 指标

Phoenix Ascending 2.6Overview
This is a modernized Pine Script v6 update of the original "Phoenix Ascending 2.201" indicator, originally published by WyckoffMode (with script contributions from LazyBear, xSilas, and Ni6HTH4wK). Since the original script appears to no longer be actively maintained, I have updated the code to the latest Pine Script version to ensure it continues running efficiently, while keeping the original mathematical logic exactly the same.
What is Phoenix Ascending?
Phoenix Ascending is a comprehensive, multi-component momentum and money-flow oscillator. Rather than relying on a single metric, it aggregates several popular momentum indicators to create a smoothed, high-conviction market gauge.
At its core, the script calculates two main averages:
The "Tradition" Index: An average of TCI (Trade Channel Index), Money Flow (MF), and the Relative Strength Index (RSI).
The "Phoenix" Index: An average of TCI, CSI, Money Flow, and a Williams %R derivative (Willy).
By blending these components, the indicator filters out market noise and provides a clearer view of underlying buying and selling pressure.
How to Read the Indicator
The indicator plots several distinct visual elements on the oscillator panel:
Green Line (Tradition): Acts as the primary fast signal line tracking current price momentum.
Red Line (Smoothed RSI): A slower moving average of the Green Line.
LSMA (Least Squares Moving Average): A regression line that helps identify the true underlying trend direction.
Energy (Area/Histogram): A shaded region that visualizes the spread and momentum intensity between the fast and slow signal lines.
Pressure Dots (Circles): These appear at the extreme bands (below 20 or above 80) to signal extreme overbought or oversold conditions where a reversal is highly probable.
How to Use It in Trading
Trend Reversals: Watch for the Green Line to cross over the Red Line and LSMA from below 20 (oversold) for a bullish entry signal. Conversely, a cross downward from above 80 (overbought) signals a bearish reversal.
Momentum Strength: Use the shaded "Energy" area to gauge the strength of a move. Expanding energy confirms the trend, while contracting energy warns of consolidation or a fading move.
Extreme Zones: Pay close attention to the "Pressure" dots. When these populate at the top or bottom of the oscillator, it suggests the current move is exhausted and a mean-reversion setup is forming.
Credits
All credit for the original concept, mathematics, and logic goes to WyckoffMode , along with the original open-source contributors ( LazyBear , xSilas , Ni6HTH4wK ). You can view the legacy version of this script here: Phoenix Ascending 2.201 by WyckoffMode .
You can also find some helpful videos on how to use the script there. 指标

Eaglizer RSI CloudMost RSI indicators plot one line that whips around and tells you very little on its own. This plots two moving averages of the RSI instead, and fills the space between them, so you can see the momentum regime rather than the momentum noise.
WHAT IT DOES
It takes RSI 14, then builds two moving averages on top of it. A fast one at 9 and a slow one at 50. The space between them is filled as a cloud.
When the fast average is above the slow one, the cloud is green and momentum is in a bullish regime.
When the fast average is below the slow one, the cloud is red and momentum is in a bearish regime.
A small triangle marks the bar where the cloud flips.
WHY AVERAGE THE RSI AT ALL
Raw RSI reacts to every bar. That is useful for spotting an extreme reading, and useless for telling you what the underlying momentum is actually doing. Averaging the RSI strips out the single bar reactions and leaves the shape of the move.
The 9 and the 50 do different jobs. The fast average is what momentum is doing right now. The slow average is the regime you are trading inside. The gap between them is the part that matters: a wide cloud means momentum is running, a narrow one means it is stalling, and a flip means the regime changed.
HOW I USE IT
I use this as a filter, not as a trigger. I want the cloud on my side before I take a setup in that direction. If I am looking for longs and the cloud is red, I wait.
I trade this mostly on the 4 hour and the daily. On very low timeframes the slow average becomes slow enough to be behind the move.
A flip on its own is not an entry. It is a reason to go look at the chart.
SETTINGS
RSI length, default 14. Fast RSI MA, default 9. Slow RSI MA, default 50. Both averages can be set to SMA or EMA, and SMA is the default because it is steadier.
You can turn on the raw RSI line if you want to see it underneath the cloud. It is off by default because the whole point is to stop staring at it.
Reference levels sit at 70, 50, and 30.
ALERTS
Two alert conditions are included, one for the cloud flipping bullish and one for it flipping bearish. Both carry the ticker and the close price.
WHAT THIS IS NOT
This is not a complete trading system and I am not presenting it as one. It has no entry price, no stop, and no target. It tells you what momentum regime you are in. Everything after that is on you.
The full system I trade adds pivot breakout boxes, an EMA 89, a higher timeframe EMA 34, a volume filter, and defined stop and target rules. If you want it, the link is on my profile.
DISCLAIMER
This is a technical analysis tool for education and research. It is not financial advice, it is not a recommendation to buy or sell anything, and past behavior of any indicator does not predict future results. Trading involves risk of loss. Size your positions accordingly and do your own work. 指标
