Adaptive Hurst Cycle Engine [SpokoStocks]Adaptive Hurst Cycle Engine measures the cycles that are actually present in price, reads where the market sits inside each of them right now, projects the combined cycle forward, and scores its own cycle lows against real price lows so you can see on the chart how well it is doing. Nothing is drawn with hindsight and nothing moves once it is on the chart.
WHAT YOU SEE ON THE PRICE CHART
• A cycle-model line: price with the noise removed and the measured cycles kept. Where it hugs price, the cycles explain the movement; where it drifts, they do not.
• A dashed projected path continuing that model forward from the last bar, built from the current amplitude and phase of each cycle.
• Bars coloured by cycle position, from teal at a trough through violet to crimson at a peak.
• Composite lows scored after the fact: a teal triangle where the composite low landed on a real price low, a small grey triangle where it missed. The dashboard reports the hit rate on the chart you are looking at.
WHAT YOU SEE IN THE PANE
• The composite cycle, the sum of the measured components, with a two-tone fill.
• A diamond at each composite low, placed one bar after the turn and never moved.
• A dashed projection of the composite with the next projected low labelled.
• A background shade when two or more cycles are near a trough at the same time.
• The individual components can be switched on behind a toggle.
DASHBOARD
For each cycle: measured period, spectral power, whether it is rising or falling, and the bar count and date of its next low. Below that: the dominant period, how many cycles are synchronised near a trough, the projected composite low, and the low-accuracy score.
HOW IT WORKS
1. A roofing filter, a high-pass at the longest period and a super-smoother at the shortest, isolates the band in which cycles can exist. Both filters are from John Ehlers' published work.
2. An autocorrelation periodogram, also after Ehlers, measures spectral power for every period in the range on every bar and smooths it over time, so the spectrum reflects persistent cycles rather than single swings. Power is normalised so 100% is the strongest period seen recently.
3. The cycle set is either the strongest spectral peaks above your minimum power (Measured peaks) or Hurst's nominal model built from the dominant period in 2:1 ratios (Harmonic set). Periods are smoothed to prevent jitter. If no peak clears the threshold, the dominant period is used so the chart is never empty.
4. Each cycle is extracted with a band-pass filter tuned to its period. The output and its quadrature give the phase, which tells the script how many bars remain to the next low and peak, and the amplitude.
5. The composite is the sum of the components, Hurst's principle of summation. The projection extends each component as a cosine from its current phase and amplitude and adds them; on the price chart the same projection is placed on top of the trend with its recent slope.
6. Accuracy scoring: when the composite turns up, the previous bar is a composite low. Once the bars on both sides are known, that bar's low is compared with the lowest low of the surrounding window. A match within a quarter of an ATR is a hit. Hits and total are accumulated and shown as a percentage.
HOW TO USE IT
• Check the hit rate first. It tells you, on this symbol and timeframe, how often the composite lows have coincided with price lows.
• Read spectral power per cycle. Below about 50% a cycle is weak on this chart and its dates deserve less weight.
• The next-low column is the working forecast for each cycle; the composite low is where they combine, and the confluence shade marks the windows Hurst's model treats as the most important lows.
• Use the projected path as an expectation, and the bar colours to see at a glance which side of the cycle the market is on.
NON-REPAINTING AND LAG
All filters are recursive and use only closed bars. Composite-low diamonds are confirmed one bar after the turn and fixed. The projection is a forecast redrawn only forward of the current bar. Every causal cycle filter carries a delay of one to two bars; the phase readout and the projection exist to give notice of a low before it happens rather than to remove that delay. The hit and miss triangles are the one deliberately delayed element: they are a scorecard drawn once the surrounding window has closed, not a live signal.
LIMITATIONS
• The spectrum needs roughly twice the longest period of history to settle; the first bars on a chart are unreliable.
• Dates in the dashboard count chart bars and ignore weekends and closed sessions.
• Cycles change; a projection is only as good as the persistence of the cycles behind it.
• The hit rate is descriptive, not a guarantee, and depends on the accuracy window you set.
The roofing filter and autocorrelation periodogram follow John Ehlers, Cycle Analytics for Traders (2013). The cycle-set selection, phase-based low forecasts, composite projection on price, phase colouring and on-chart accuracy scoring are original to this script. Индикатор

Smart Money Concepts [AxeAlgo]Overview
- Smart Money Concepts is a clean, non-repainting indicator designed for traders who want to identify institutional market structure without clutter.
The indicator visualizes where smart money is likely to defend, attack, and accumulate positions by displaying order blocks, fair value gaps, liquidity pools, and premium/discount dealing ranges on your chart.
What It Shows
Market Structure (CHoCH and BOS)Identifies when the market changes direction (Change of Character) and when new directional commitment breaks prior structure (Break of Structure). Each signal confirms only after a specified number of bars, ensuring no repainting.
Order BlocksHighlights the price zones where the last aggressive institutional movement originated. These are areas where smart money entered positions and often acts as support or resistance on subsequent pullbacks.
Fair Value GapsDetects imbalances between candlesticks (gaps not filled by wicks). The indicator marks these zones because institutions often return to fill them as price moves away.
Liquidity PoolsAutomatically identifies clusters of equal highs and equal lows where retail traders typically set stop losses. The indicator marks when price breaks through these pools (institutional sweeps).
Premium and DiscountDisplays whether price is trading above (premium) or below (discount) the 50% equilibrium level between the most recent swing high and low. Extreme premium or discount often precedes reversals.
How to Use It
Enable individual components using the dashboard toggles: Show Structure, Show Order Blocks, Show Fair Value Gaps, Show Liquidity Pools, Show Premium/Discount.
Turn on the dashboard to see your current swing bias, internal structure direction, and range position at a glance.
Auto-Tune automatically scales all sensitivity parameters based on your chart timeframe. Turn it off if you prefer manual tuning.
Use Simple Mode to display only swing structure without internal noise for a cleaner chart.
Key Settings
Confirmation Bars: How many bars confirm a pivot before a structure signal fires. Higher values filter out false signals but add lag. Default is 2.
Min Displacement: The minimum price movement (in ATR multiples) required for a structure signal to register. Default is 1.0 ATR.
Zone Sizing: Controls the minimum and maximum height of order blocks and FVGs. Adjust to filter noise or capture smaller opportunities.
P/D Lookback: How many bars back to scan for the swing high and low that define your premium/discount range.
Dashboard Position and Size: Choose where the info table appears and how large you want it.
Colors: Customize bullish, bearish, and gap colors to match your chart theme.
What This Indicator Is For
Smart Money Concepts is intended for traders who want to visually identify institutional order flow patterns and understand where smart money accumulates and distributes. It helps you:
Spot areas where institutions likely accumulated or distributed (order blocks and FVGs)
Recognize when price is overextended and vulnerable to reversal (premium/discount extremes)
Distinguish real structural breaks from noise during choppy consolidation
Plan entries and stops around levels where smart money defends
How It Works
The indicator uses pivot-point analysis to identify swing highs and lows, then marks the price zones where directional movement originated (order blocks). Fair value gaps are detected using standard three-candle imbalance logic. Liquidity pools are identified by clustering equal price levels within a configurable tolerance.
All signals confirm only on closed bars. Zones never repaint, but they shrink or change state as price action develops.
Limitations
The indicator shows 5 active zones at a time to keep your chart clean. If multiple institutional structures are forming simultaneously, older zones will age out. This is by design to prioritize the most recent price action.
This indicator identifies structural levels and patterns. It does not predict price direction or guaranteed support/resistance. Use it as one component of a complete trading plan, not as a standalone signal.
Fair value gaps and order blocks are useful but not infallible. Price may skip through them or reverse before reaching them.
Important Disclaimer
This indicator is for educational and analytical purposes only. It does not provide financial advice, and past performance does not guarantee future results. Trading involves risk of loss. Always use proper risk management, stop losses, and position sizing. Never risk more than you can afford to lose.
The accuracy and effectiveness of this indicator depends on your market conditions, timeframe, and trading methodology. Results vary by trader and asset class.
Индикатор

Moving Average Crossover Signal
Moving Average Crossover Signal
This is a customizable multi-symbol, multi-timeframe indicator that provides a compact visual signal based on the relationship between two user-defined moving averages. It is designed to function as a simple “red light” or “green light” for the current trend, allowing moving average conditions to be monitored without displaying the moving averages themselves. The signal can also track a ticker different from the active chart symbol, making it possible to monitor another market without keeping that ticker’s chart open.
The indicator calculates two independently configurable moving averages on a selected ticker and timeframe, then displays a persistent signal icon in a user-selected area of the chart. Instead of plotting historical crossover markers or moving average lines, it provides a clean at-a-glance indication of whether the configured MA condition is currently active.
Signal Logic
Two signal modes are available:
Crossover Only — the signal is active while Moving Average 1 is above Moving Average 2.
Crossover + Both MAs Sloping Up — the signal is active only while Moving Average 1 is above Moving Average 2 and both moving averages are rising over the selected slope lookback period.
The signal icon uses independently configurable colors for active, inactive, and unavailable-data conditions.
Ticker and Timeframe Selection
The signal can be calculated from a ticker that is different from the symbol currently displayed on the chart. Leaving the ticker input blank uses the active chart symbol.
A separate Signal Timeframe input allows the moving averages and signal logic to be calculated using a timeframe independent of the chart timeframe. Leaving the timeframe set to the chart interval uses the current chart timeframe.
This makes it possible, for example, to monitor a daily moving average condition while viewing an intraday chart, or to monitor one symbol's higher timeframe trend while analyzing another symbol.
Moving Average Configuration
Both moving averages can be configured independently with:
SMA
EMA
WMA
RMA
HMA
The slope-filtered mode also includes a configurable lookback period that determines whether each moving average is considered to be rising.
Signal Display
The on-chart signal is designed to remain compact and unobtrusive. Display options include:
Multiple signal icon styles
Active, inactive, and no-data colors
Automatic display of the selected ticker
Custom text that can override the ticker label
Signal icon before or after the display text
Independent icon and text sizes
Nine standard chart locations
Additional spacer rows above or below the signal for finer vertical positioning
Customizable panel background, including full transparency
The indicator does not plot the moving averages themselves, keeping the chart free of additional lines.
Alerts
A TradingView alert condition is included for the actual bullish moving average crossover event.
When Crossover + Both MAs Sloping Up is selected, the crossover must also occur while both moving averages satisfy the selected upward-slope condition.
This keeps the persistent visual signal separate from the crossover event: the icon shows the current state of the configured condition, while the alert identifies the point at which a qualifying crossover occurs.
Usage and Limitations
For the most reliable results, use a Signal Timeframe that is the same as or higher than the chart timeframe.
Lower timeframe selections may not capture every crossover that occurs between chart bars, so signals can be missed.
Higher timeframe signals may also change while that candle is still forming, so they should be considered provisional until the selected timeframe closes. Индикатор

Trend Pullback GuardTrend Pullback Guard
A trend has started. Does its next pullback stabilize — or lose its structure?
Trend Pullback Guard follows pullbacks through a defined sequence: detection, stabilization, continuation confirmation, or invalidation. It combines an EMA trend regime with frozen structure levels, volatility-normalized pullback depth and candle-overlap measurements.
The same rules work in both directions. Everything is included in one overlay indicator.
QUICK VISUAL GUIDE
• Blue line: Fast EMA; gray line: Slow EMA.
• Small blue dot: A pullback has been detected.
• Subtle green/red zone: The developing long/short pullback range.
• Red level: Frozen structure boundary.
• Amber level: Confirmation threshold after stabilization.
• Green upward/red downward triangle: Long/short continuation conditions confirmed.
• Red cross: A close broke the frozen structure boundary.
• Gray square: The trend regime was lost or the observation window ended.
The dashboard distinguishes an active episode's LAST CLOSE from frozen LAST EPISODE values. The structure and confirmation levels describe the rules; they are not suggested order prices.
1 — ESTABLISH THE TREND
Default settings use a 21-period EMA and a 55-period EMA.
For a long regime, the fast EMA must be above the slow EMA and the slow EMA must be above its value three bars earlier. Short conditions are reversed.
Before a pullback can begin, a confirmed impulse bar must lie entirely beyond the fast EMA's 0.25 ATR touch band and close in the trend direction relative to the previous close. This arms the monitor. A new episode requires a new qualifying impulse after the previous episode ends.
2 — DETECT AND FREEZE THE REFERENCE
A long pullback begins when a later bar reaches the fast EMA's upper touch band and closes below the previous close. Short detection uses the lower band and a higher close.
At detection, the script freezes:
• ATR from the previous bar, using a 14-period ATR by default.
• The lowest low of the preceding 10 bars minus 0.1 frozen ATR for long structure; the highest high plus that buffer for short structure.
• The preceding 10-bar high for long pullback depth, or low for short depth.
The detection bar is excluded from these historical reference windows. No pivot that needs future bars is used. The structure boundary remains fixed throughout the episode.
3 — WAIT FOR STABILIZATION
By default, two consecutive bars must avoid lowering the previous bar's low for a long setup, or raising its high for a short setup.
The confirmation level is then frozen at the highest high of those two stabilization bars plus 0.1 frozen ATR for longs. Shorts use their lowest low minus the buffer.
A new adverse extreme of the monitored pullback resets stabilization and removes the old trigger. The script must establish a new one. A bar that makes a new adverse extreme cannot also confirm continuation.
4 — APPLY THE GUARD
Confirmation requires a LATER bar to close strictly beyond the frozen trigger and on the trend side of the fast EMA. The original trend regime must still hold, and both guard limits must pass:
• Maximum pullback depth: 3.0 frozen ATR by default. Depth measures the move from the pre-detection reference extreme to the worst pullback extreme observed so far.
• Maximum mean candle overlap: 70% by default. Each sample is the intersection of two consecutive high-low ranges divided by the smaller range. Samples are averaged from detection through the current bar; a zero-range candle counts as 100% overlap.
TOO DEEP and HIGH OVERLAP explain why confirmation is blocked. These are rule thresholds, not estimated probabilities. High overlap can later decline; the maximum observed depth cannot shrink within an episode.
HOW AN EPISODE ENDS
• STRUCTURE BROKEN: The close moves strictly beyond the frozen structure boundary against the setup. A wick alone is insufficient.
• TREND LOST: The EMA regime no longer supports the monitored direction.
• CONTINUATION CONFIRMED: A later close passes the trigger, trend and guard requirements.
• WINDOW ENDED: No confirmation within 12 bars after detection by default.
Structure failure takes priority over other outcomes, followed by loss of the trend regime. An otherwise valid confirmation on the final allowed bar takes priority over timeout. Only one episode is active at a time.
ILLUSTRATIVE LONG EXAMPLE
Suppose the pre-pullback high is 104 and the frozen ATR is 2. A pullback low at 100 represents a depth of 2 ATR.
After two qualifying stabilization bars, their highest high is 102.50. With the default buffer, the confirmation level is 102.70.
A later close above 102.70 confirms only if the EMA regime remains bullish, the close is above the fast EMA, and the depth and overlap limits still pass. A wick above 102.70 does not confirm. A new pullback low on that bar resets the trigger instead.
This example illustrates the rules; it is not a historical trade or a return claim.
DASHBOARD AND ALERTS
The compact dashboard shows status, direction, bars since detection, depth in frozen ATR units, mean overlap, guard status, structure and confirmation levels.
The Confirmed / broken / other counters describe events in the loaded chart history. Other combines trend loss and timeout. These counts are not trading win rates; confirmed events are not followed to a profit target or stop.
Seven alert conditions are provided: pullback detected, stabilization, long confirmation, short confirmation, structure broken, trend lost and observation window ended. Stabilization can alert again if a new adverse extreme resets the setup. Create the desired alerts separately in TradingView.
USAGE AND LIMITATIONS
Use standard candles with a fast EMA length smaller than the slow EMA length. Long-only, short-only and both-direction modes are available. All calculations use the chart's symbol and timeframe; there is no external indicator dependency or higher-timeframe data request.
Event states and markers update only at confirmed bar closes and are never shifted backward. EMA lines can move while a live bar is forming. Changes to settings, available history or historical prices can change the resulting events.
This is a descriptive technical-analysis tool, not an automated trading strategy. Confirmation describes the specified conditions at that close; it does not guarantee that the trend will continue. No profitability or superior performance has been established. Индикатор

FIA Trend + Momentum 20/50/200## FIA Trend + Momentum 20/50/200
The **FIA Trend + Momentum 20/50/200** indicator combines long-term trend structure with momentum analysis and multi-timeframe confirmation.
It is designed to make market direction easier to identify visually while also filtering potential setups through RSI, MACD and Higher Timeframe confirmation.
### EMA Trend Structure
The indicator uses three Exponential Moving Averages:
EMA 20 for the short-term trend
EMA 50 for the medium-term trend
EMA 200 for the long-term trend
The background changes automatically depending on the EMA structure.
**Green**
EMA 20 > EMA 50 > EMA 200
Clearly bullish trend structure.
**Blue**
EMA 20 < EMA 50 while EMA 50 > EMA 200
Short-term weakness within a broader bullish trend.
**Orange**
EMA 20 > EMA 50 while EMA 50 < EMA 200
Short-term strength while the broader trend has not yet turned fully bullish.
**Red**
EMA 20 < EMA 50 < EMA 200
Clearly bearish trend structure.
The background colors are based only on the EMA structure. RSI, MACD and Higher Timeframe confirmation do not change the background color.
### RSI
The indicator uses a classic RSI calculation with a default length of 14.
RSI above 50 supports bullish momentum.
RSI below 50 supports bearish momentum.
The indicator also checks whether RSI is currently rising or falling, which is used as additional confirmation for pullback setups.
### MACD
The indicator uses the classic MACD settings:
Fast Length: 12
Slow Length: 26
Signal Length: 9
The MACD is used to evaluate:
Bullish or bearish momentum
MACD signal-line crossovers
Increasing or decreasing histogram momentum
### Higher Timeframe Confirmation
A selectable Higher Timeframe filter is included.
The indicator calculates the EMA 20/50/200 structure on the selected Higher Timeframe and checks whether the broader trend confirms the current setup.
This filter can be enabled or disabled in the settings.
### Setup Score
The indicator uses a scoring system with a maximum of 6 points.
EMA trend structure: 2 points
RSI confirmation: 1 point
MACD confirmation: 1 point
MACD momentum: 1 point
Higher Timeframe trend: 1 point
The minimum score required for a valid setup can be adjusted in the settings.
The default minimum score is 5 out of 6.
### Pullback Logic
The indicator also searches for potential pullbacks within established trends.
A bullish pullback requires a bullish EMA structure, a retracement toward the EMA 20, a close back above the EMA 20, rising RSI and bullish MACD confirmation.
The bearish logic works in the opposite direction.
### BUY and SELL Signals
A BUY or SELL label is only generated when several conditions align.
A **BUY signal** requires a sufficiently strong bullish setup score and either:
a confirmed bullish pullback
or
a bullish MACD crossover.
A **SELL signal** requires a sufficiently strong bearish setup score and either:
a confirmed bearish pullback
or
a bearish MACD crossover.
Signals are only marked when the condition appears for the first time, helping to avoid repeated labels on consecutive candles.
The signals are intended as confirmation tools and should not be interpreted as automatic trading instructions.
### Alerts
Built-in alerts are available for:
EMA 20/50 bullish crossover
EMA 20/50 bearish crossover
EMA 50/200 Golden Cross
EMA 50/200 Death Cross
FIA BUY setup
FIA SELL setup
### Important
This indicator is designed as a **trend and momentum analysis tool**.
It combines:
**EMA = trend direction**
**RSI = momentum strength**
**MACD = momentum direction and change**
**Higher Timeframe = broader trend confirmation**
It should not be used as a standalone trading system.
Always consider price action, support and resistance levels, volatility, market structure and appropriate risk management before making trading decisions.
For educational purposes only.
**Not financial advice.**
Индикатор

Swing Liquidity Targets (BSL/SSL)Swing Liquidity Targets (BSL/SSL) marks confirmed swing highs as buy-side liquidity (BSL) and swing lows as sell-side liquidity (SSL), each as a line extending forward from the swing.
HOW IT WORKS:
A target is marked swept the moment price wicks through it. The line freezes there and turns gray. Rather than leaving every old swing on the chart forever, unswept targets expire after a set number of calendar days, so the same setting behaves the same whether you're on a 5 minute chart or a daily one, and when two same-side targets land close together, only the one nearer to price is kept instead of stacking duplicate lines on top of each other.
NON-REPAINTING:
pivots confirm after the bars set in Right Bars, and lines don't move once drawn.
USAGE:
treat the lines as context for where price may be drawn to next, not as a standalone entry signal. Combine with your own structure and confirmation.
LIMITATIONS:
like any pivot-based tool, the most recent swing won't show a target until Right Bars bars have closed after it, so very recent price action may look "missing" for a short while. That's what keeps it non-repainting rather than a bug.
WHAT YOU CAN CHANGE:
-> Left/Right Bars, pivot sensitivity for swing detection
-> Max Target Length (days), how long an unswept target stays active before it stops extending
-> Cluster Tolerance (x ATR), how close two same-side targets need to be before the weaker one is dropped
-> Show BSL / Show SSL, turn either side off completely
-> Line Style, dotted, dashed, or solid
-> Line Width
-> BSL / SSL / Swept colors
-> Show BSL/SSL Labels toggle
I hope this is of use to you! Let me know if you like it. Индикатор

$ - Boxes +$ – Boxes +
A higher timeframe candle tool that outlines each HTF candle directly on your lower timeframe chart. Instead of flipping between timeframes, you can see the range, body and midpoint of the 1H, 4H or daily candle while executing on the 1m or 5m. The previous candle's high and low can also be carried forward as live levels, making it easy to frame reversals and continuations off the last HTF range.
HTF Candle Boxes
Time Interval – choose any higher timeframe to outline (1H by default).
Number of Boxes – show the last 1, 2 or 3 completed HTF candles, or Show All for the full chart history.
Box styling – adjustable border width, style (solid / dashed / dotted) and colour.
Current HTF Candle
The HTF candle still in progress is projected across its full time period, so you can see exactly where it will close. The box expands in real time as new highs and lows print, and the body updates with the live close.
Body & Midline
Include Body – draws the open-to-close body inside each box, coloured bullish or bearish, so each HTF candle reads the same as it would on its own timeframe.
Show MidLine – marks the 50% level of each candle's range, useful for framing premium and discount within the candle.
Line Settings
Hide Side Lines – removes the vertical edges, leaving the high and low as clean horizontal levels. Required for the options below.
Extend Lines to Current Candle – carries the previous HTF candle's high and low forward to price, stopping each line at the candle that closes through it.
Extend Lines 10 Candles Ahead – projects the previous high and low 10 bars past the current candle, keeping the levels visible in the space ahead of price. Takes priority over Extend to Current.
Draw Lines from Exact Candle – starts each high and low line from the exact lower timeframe bar that printed it, rather than the start of the HTF candle.
Range Labels
Show H/L Range Pips – displays each HTF candle's high-to-low range above its box.
Show O/C Pips – adds the body size and the percentage of the range the body makes up, e.g. 12.4 / 30.1 = 41%.
Values are measured in pips on forex pairs and in price points on all other markets.
Box Fill Colours
Separate fill colours for bullish and bearish HTF candles. Fills are transparent by default, so boxes show as outlines only until a colour is chosen.
How to Use
Apply to a chart on a lower timeframe than the one set in Time Interval. For example, set the interval to 1H and view a 5m chart to see each hourly candle outlined over its 5m bars. Индикатор

Entry TerminalEntry Terminal — Market Structure, FVG & Liquidity Suite
Entry Terminal is a multi-component market structure and execution framework. It combines confirmed structure shifts, liquidity levels, rejected blocks, FVG/IFVG zones, Fibonacci projections, ATR boundaries, higher-timeframe reference levels, and contextual momentum data.
Main Features
Confirmed CHoCH and directional BOS structure detection.
Live BLVL candidates classified as Trend Continuation or Potential CHoCH.
Bullish and bearish Rejected Block detection using wick percentage and ATR filters.
Rejected Block retest tracking.
FVG, Breaker and IFVG detection with configurable mitigation rules.
FVG overlap filtering, midpoint visualization, raids, and directional filtering.
Structured execution sequence:
CHoCH → Rejected Block → RB Retest → BOS/FVG → Final FVG Retest
Optional BUY/SELL labels after the complete sequence.
Previous-regime HH/LL liquidity targets.
Optional 0.5 ATR target zones above HH and below LL.
Two-pivot liquidity trend lines with confirmed break markers.
CHoCH-based ATR High/Low boundaries.
ATR boundary breaks classified as MATCH or COUNTER relative to the CHoCH direction.
CHoCH-based one-way ATR trailing line.
Fibonacci Entry Box, reaction zones, and dynamic expansion zones.
Selected higher-timeframe Opening Price.
Previous HTF High/Low lines originating from their exact wick candles.
HTF levels freeze when first touched.
Dashboard with:
USDT Dominance correlation and structure
Risk-On/Risk-Off context
DI+ and DI−
ADX
Momentum
Elder Force Index
Optional VWAP, SMA, EMA, and WMA overlays.
Individual and combined alerts for major events.
Suggested Entry Workflow
Long Setup
Wait for a confirmed bullish CHoCH.
Observe whether the ATR High breaks with a MATCH result.
Wait for a bullish Rejected Block to form and receive a valid retest.
Require a bullish BOS and bullish FVG association.
Consider entry when price returns to the final bullish FVG and the indicator prints BUY.
Use the Entry Box, HTF opening price, USDT.D context, and dashboard readings as additional context—not mandatory signals.
Short Setup
Wait for a confirmed bearish CHoCH.
Observe whether the ATR Low breaks with a MATCH result.
Wait for a bearish Rejected Block to form and receive a valid retest.
Require a bearish BOS and bearish FVG association.
Consider entry when price returns to the final bearish FVG and the indicator prints SELL.
Evaluate the HTF opening price, PH/PL levels, USDT.D structure, and dashboard conditions before execution.
Risk and Target Framework
Potential invalidation may be placed beyond the Rejected Block, final FVG, or relevant swing.
Potential targets include HH/LL liquidity, ATR target boxes, HTF previous levels, and Fibonacci reaction zones.
Position size should be calculated from the invalidation distance.
Avoid risking a fixed position size without accounting for volatility.
Dashboard values are contextual and should not be treated as mandatory filters.
Important Behavior
Pivot-based structures require right-side confirmation and therefore appear after the pivot is confirmed.
Primary structural events and execution signals are confirmed on closed bars.
This is an indicator, not an automated strategy, and it does not place or manage orders.
Users should independently test all settings for their symbol, timeframe, fees, and execution conditions.
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. No indicator can predict market movements or eliminate the risk of loss. Even high-quality setups may fail or be stopped out. Always perform your own research, use appropriate risk management, and consult a qualified financial professional where necessary. The author assumes no responsibility for trading decisions, losses, or damages resulting from the use of this script. Индикатор

Market Stress RadarMarket Stress Radar
Which assets withstand a market selloff — and which recover first?
Market Stress Radar compares an asset with a selected benchmark during defined market stress episodes. It tracks their losses from a shared reference date, their recovery times, and whether initial relative strength turns into weakness.
READING THE CHART
• Green line: Asset return from its own pre-stress closing price.
• Blue line: Benchmark return from its own pre-stress closing price.
• Zero line: Each instrument’s respective reference price.
• Orange shading: Stress detection day.
• Green triangle: First asset recovery after detection.
• Orange triangle: Delayed relative weakness.
• Gray square: Observation window ended.
Both return lines use the same reference date. They appear during monitored episodes and remain blank between episodes.
HOW STRESS IS DETECTED
By default, the radar examines the benchmark’s three-day return.
A stress episode starts when the decline reaches the larger of:
• A minimum drop of 3%.
• 1.5 × pre-window ATR percentage × √3, using a 20-day ATR.
The volatility measurement comes from before the decline window. This is a scaling rule, not a statistical confidence level.
Detection requires a fresh transition into stress and a confirmed daily close. Only one episode is monitored at a time; additional triggers during that episode are ignored.
RECOVERY: FIRST TOUCH AND EPISODE COMPLETION
The reference prices are frozen at the closing prices immediately before the measured decline window.
D0 is the detection day. An instrument first recovers when it closes at or above its own frozen reference price. A value already above that price on D0 is recorded as D+0.
First recovery does not mean permanent recovery. An asset can recover and subsequently fall back below its reference.
The episode ends when:
• Both instruments close at or above their respective reference prices on the same day; or
• The observation limit is reached — 30 daily bars after detection by default.
Missing or misaligned data ends the episode separately. Elapsed days refer to daily chart bars, which are trading sessions for stocks.
ILLUSTRATIVE EXAMPLE
Suppose BTC falls 8% over the detection window while the chart coin falls 3%.
The coin initially leads BTC by 5 percentage points.
If the coin returns to its own reference price four daily bars after detection, its first recovery is recorded as D+4. If BTC remains below its reference, monitoring continues.
If either instrument never recovers within the observation window, that recovery remains NOT OBSERVED. A timeout is not counted as a successful recovery.
This is a hypothetical example, not a backtest result.
DELAYED RELATIVE WEAKNESS
An initially resilient asset can lose its advantage.
With the default settings, the radar issues one warning per episode when:
• The asset initially leads its benchmark by at least 0.5 percentage points; and
• Its lead later falls to −0.5 percentage points or below.
WEAKNESS OBSERVED records that this happened during the episode. It does not necessarily mean the asset is still underperforming; the latest returns and relative lead show the current relationship.
COMPACT DASHBOARD
The dashboard shows:
• Episode status.
• Asset and benchmark returns.
• First recovery day, or OPEN / NOT OBSERVED.
• Initial and latest relative lead.
• Detection date, elapsed daily bars and reference date.
• Counts of jointly recovered episodes, timeouts and data gaps.
After an episode ends, LAST EPISODE identifies the frozen final values. These are not current returns or trading win rates.
The dashboard can be placed in five positions.
SETUP
Use standard 1D candles.
Automatic benchmark selection:
• Crypto: BINANCE:BTCUSDT.
• USD stocks: AMEX:SPY.
A custom benchmark can also be selected. Use instruments with matching daily sessions and comparable quote currencies. No currency conversion is performed.
ALERTS
Six alert conditions are available:
• New market stress.
• First asset recovery.
• Late relative weakness.
• Both instruments recovered.
• Observation window ended.
• Data gap stopped the episode.
Configure alerts separately in TradingView.
METHOD AND LIMITATIONS
Calculations and event signals use confirmed daily closes. Markers are not backdated to the earlier reference date.
Results depend on the selected instruments, settings and available history. Historical data corrections can change results. Price returns account for splits but exclude dividend income.
Market Stress Radar is a descriptive analysis tool. It does not place trades, predict guaranteed recoveries or establish a profitable trading strategy. Индикатор

PDH PDL + Key Levels# PDH PDL + Key Levels
A single indicator for the horizontal levels that actually matter intraday: previous day, week and month extremes, custom session highs and lows, and the New York open — with lines that stop where price consumed them instead of running across the whole chart.
## What it plots
**Previous period extremes**
PDH / PDL, PWH / PWL, PMH / PML. Each line is anchored at the bar that printed the extreme and extends to the right, so you see both where the level was made and how far it has travelled untouched.
**Session highs and lows**
Three independent, fully configurable sessions (defaults: New York, Asia, London). While a session is open its high and low develop live and are never cut. Once the session closes they freeze and become eligible for consumption like any other level.
**NY Open**
A fixed reference at 09:30 America/New_York. The price used is the close of the 09:29 one-minute candle, requested from a 1-minute context with lookahead off — it appears only once that candle has closed, so the level never repaints. The timezone is IANA, so daylight saving is handled automatically. Intraday timeframes only.
## Cut when consumed
The core behaviour. A level stops being drawn the moment price reaches it:
- A high acts as resistance and is consumed by any candle whose **high** reaches it — gaps up included.
- A low acts as support and is consumed by any candle whose **low** reaches it — gaps down included.
- The NY Open can be approached from either side, so it is consumed by a candle that straddles it or by a gap that jumps clean through it.
The result is a chart where a long horizontal line means genuinely untested, and a short stub means the level was taken out early. Consumption checks only start after the level's own period begins, so a fresh PDH is never cut by the day that created it. Turn the behaviour off and every line simply extends to the current bar.
## Coincident levels merge
When two or more levels land on the same price — within one tick — they fold into a single line with a combined label, for example `PDH + NY-H`. Hierarchy runs monthly, weekly, daily, sessions, NY open, and the surviving line keeps the **latest** endpoint of the group, so a level that is still alive never inherits an older level's cut.
## Settings
**General** — toggle cut-on-touch, toggle merging, show or hide all labels, label size.
**Line style** — style and width for the previous-period extremes.
**Colors** — separate colors for highs and lows, plus a master override that paints everything one color without erasing your palette underneath. Switch it off and your own colors come straight back.
**Levels** — individual toggles for PDH, PDL, PWH, PWL, PMH, PML. Monthly extremes are off by default.
**NY Open** — enable, label text, color, style, width. The time is not configurable by design.
**Session 1 / 2 / 3** — enable, label prefix, hours, timezone, color, style, width. Timezones accept GMT notation (`GMT-5`) or an IANA name (`America/New_York`); IANA is recommended because it survives daylight saving.
## How to use it
Mark your session before the open: untouched PDH and PDL are the most obvious draws on liquidity for the day, and the ones still extended after several sessions tend to be the ones price eventually goes to fetch. Session extremes give you the boundaries of the Asian and London ranges going into New York. The NY Open acts as the intraday mean many algorithmic systems reference — price reclaiming or rejecting it in the first hour is frequently the cleanest read of the session's direction.
Because a consumed level disappears, what remains on screen is the set of unresolved objectives, which keeps the chart readable without manual cleanup.
## Notes and limitations
- Levels are redrawn on the last bar only. The indicator shows the current state of the chart, not a historical record of every level that ever existed. It is a live map, not a backtest.
- The NY Open needs a 09:29 one-minute candle to exist. On a chart restricted to regular trading hours that begins at 09:30, that candle is absent and the level will not print. Use an extended-hours chart for futures.
- Sessions are evaluated on the chart's own bars, so a window narrower than your timeframe may never trigger. Keep session ranges wider than a single bar.
- Line and label counts are capped at 500 each, which is well above anything this indicator produces.
No alerts, no signals, no repainting. Just the levels. Индикатор

Quantum Trend Runtime - MTF Price Action [TrendRuntime]Quantum Trend Runtime — MTF Price Action
A multi-timeframe price-action engine built around percentage movement, impulse, rejection, volatility, market activity and confirmed structure.
Quantum Trend Runtime (QTR) was created around the way I personally analyze crypto markets.
Instead of depending primarily on traditional oscillators such as RSI or MACD, QTR focuses directly on price behavior:
How much has price moved?
Is that move significant for this market?
Is momentum continuing?
Is price rejecting the move?
Are multiple timeframes confirming the same idea?
Is the market active enough to trade at all?
QTR combines those questions into one visual runtime.
Recommended Timeframe
QTR is designed primarily around the:
2H chart
With the default configuration, the indicator analyzes three confirmed timeframes:
2H — Fast runtime
3H — Core runtime
4H — Slow runtime
The 3H timeframe receives the strongest weighting inside the QTR directional model.
Why Percentage Movement Matters
A market moving 0.30% is not behaving the same way as a market that has already moved 5%, 10%, 15% or more.
QTR therefore gives percentage expansion a central role.
For example, after a substantial bullish move, a strong bearish reaction can carry much more information than the same bearish candle appearing inside a flat market.
QTR measures both:
the latest confirmed candle movement;
the directional move that happened before it.
This allows the engine to identify both continuation and rejection environments.
QTR Market States
Each analyzed timeframe can display one of the following states:
BULL IMPULSE — Strong bullish expansion with continuation characteristics.
BEAR IMPULSE — Strong bearish expansion with continuation characteristics.
BULL REJECTION — Bullish reaction following meaningful downside movement.
BEAR REJECTION — Bearish reaction following meaningful upside movement.
NEUTRAL — The market is active, but no strong directional event is confirmed.
QUIET — Current movement is below QTR's activity requirements.
QTR is intentionally not designed to produce signals constantly.
Sometimes the most useful output is:
QUIET MARKET
In that environment, the indicator is effectively saying that the current contract may not offer enough movement to justify attention.
Adaptive Impulse Engine
QTR does not use one fixed percentage to decide whether a candle is significant.
Instead, it measures the normal absolute candle movement of the market and creates an adaptive impulse threshold.
Conceptually:
Adaptive Impulse =
max(
Minimum Impulse %,
Average Absolute Candle Body %
+ Multiplier × Body Dispersion
)
This allows QTR to adapt to markets with very different volatility profiles.
The dashboard displays this relationship through the IMPULSE multiple.
Examples:
0.70x = below the adaptive impulse threshold
1.00x = reaches the current impulse threshold
1.50x = 1.5 times the adaptive threshold
2.00x = approximately twice the normal impulse requirement
Prior Move
The dashboard's PRIOR% value measures the directional movement that occurred before the latest confirmed reaction.
This matters because context changes the meaning of a candle.
A bearish reaction after a +1% move is not necessarily equivalent to a bearish reaction after a +15% expansion.
Trend%
TREND% measures confirmed directional movement across the selected trend lookback.
It provides broader context around the immediate impulse or rejection signal.
Multi-Timeframe Direction
QTR combines the default timeframes using the following weighting:
2H = 25%
3H = 50%
4H = 25%
The core 3H runtime intentionally receives the greatest influence.
A normal opportunity generally requires agreement between multiple timeframes.
A strong confirmed rejection can optionally qualify independently when the remaining timeframes are not opposing it.
QTR Score
The directional score ranges approximately from:
-100 = strong bearish runtime
0 = neutral
+100 = strong bullish runtime
The score incorporates factors such as:
percentage candle movement;
adaptive impulse magnitude;
body efficiency;
directional closing strength;
rejection structure.
The QTR Score is a model output.
It is not a guaranteed probability of a successful trade.
Setup Quality
QTR also displays a quality grade.
The quality model considers:
directional score strength;
agreement between the 2H, 3H and 4H runtimes;
how many timeframes are currently active.
Possible grades include:
A+
A
B
C
LOW
Higher quality means the internal QTR components are agreeing more strongly.
It does not represent a guaranteed win rate.
Long and Short Opportunities
The main runtime can identify:
LONG OPPORTUNITY
or
SHORT OPPORTUNITY
These states mean that QTR has identified a directional environment worth evaluating.
They should not be interpreted as blind market orders.
The trader should still evaluate execution, liquidity, position sizing and personal risk tolerance.
QTR Projection
QTR includes a forward scenario engine.
When sufficient directional information is available, the indicator projects a potential price path across the next three core-timeframe intervals.
With the default 3H core timeframe:
T+1 ≈ 3 hours
T+2 ≈ 6 hours
T+3 ≈ 9 hours
The projection combines:
QTR directional score;
confirmed multi-timeframe trend;
recent percentage movement;
adaptive impulse magnitude;
impulse / rejection state;
momentum persistence.
Important: The QTR Projection is not an entry price.
If QTR displays:
SHORT OPPORTUNITY
QTR PROJECTION: -5.4%
this means the current runtime favors a bearish continuation scenario approximately toward that projected movement.
It does not mean that the trader should wait until the projected level is reached and then enter short.
The intended interpretation is:
OPPORTUNITY
↓
TRADE DECISION / EXECUTION
↓
RISK MANAGEMENT
↓
TARGET / QTR PROJECTION
Projection Corridor
The violet projection lines around the main QTR path represent a wider movement scenario.
The corridor responds to current volatility and QTR directional strength.
These levels are visual scenario estimates.
They are not statistically certified confidence intervals.
Trade Planning
When QTR identifies an opportunity, the indicator can display several planning references:
REF PRICE — Current price used as the planning reference.
INVALID — Structural invalidation beyond the confirmed core-timeframe candle.
1.25R — Reference target calculated from the selected reward/risk multiple.
RISK% — Distance between the reference price and invalidation.
TYPE — Whether the opportunity is primarily impulse- or rejection-driven.
The default reference reward/risk is:
1.25R
This value can be changed in the indicator settings.
REF PRICE is not an automatic entry signal.
It is provided to make the current risk structure easier to evaluate visually.
Percent Levels
QTR also includes customizable percentage levels around a confirmed anchor price.
Default levels are:
±4%
±7%
±15%
±25%
These levels reflect the percentage-based philosophy behind QTR and help visualize how far price has expanded from a known reference.
They should not be interpreted as guaranteed support or resistance.
Dashboard
The QTR dashboard is designed to summarize the market without requiring the trader to interpret multiple separate indicators.
For each timeframe it displays:
STATE — Current impulse, rejection, neutral or quiet classification.
CH% — Confirmed candle-body percentage change.
PRIOR% — Directional movement preceding the analyzed candle.
TREND% — Broader confirmed directional movement.
IMPULSE — Candle magnitude relative to its adaptive impulse threshold.
The lower part of the dashboard displays:
QTR projected direction;
T+1 / T+2 / T+3 projected prices;
projected percentage move;
current market activity;
trade-planning references;
current QTR action.
Market Activity
QTR also evaluates whether the market is currently worth watching.
Possible environments include:
QUIET
MODERATE
ACTIVE
HIGH
EXTREME
The objective is simple:
avoid forcing trades when the market is barely moving.
Confirmed Higher-Timeframe Data
QTR's multi-timeframe classifications are built from completed higher-timeframe candles.
The indicator intentionally avoids using unfinished future higher-timeframe candles for historical classifications.
This means confirmed signals can appear later than systems that use developing HTF candles, but the goal is to provide more consistent historical and live behavior.
The QTR Projection itself is a live scenario and can therefore change as current market price changes.
Alerts
QTR includes alert conditions for:
QTR Long Opportunity
QTR Short Opportunity
QTR High-Quality Long
QTR High-Quality Short
QTR Quiet Market
These alerts can help traders monitor multiple markets without keeping every chart open continuously.
How I Use QTR
My own workflow is focused on markets that are actually moving.
I generally look for:
Meaningful percentage expansion.
An active market rather than low-volatility price action.
Strong impulse or rejection behavior.
Agreement between the 2H, 3H and 4H runtimes.
A trade structure with acceptable reward relative to risk.
When the market is quiet, I would rather scan another contract than force a setup.
What QTR Is Not
QTR is not:
a guaranteed trading system;
a guaranteed price predictor;
a replacement for risk management;
a promise of future profitability;
a quantum-computing model.
Quantum Trend Runtime is the name of the TrendRuntime methodology and indicator.
The word "Quantum" is branding and does not imply that the Pine Script performs quantum computation.
Risk Disclaimer
Trading cryptocurrencies, perpetual futures and leveraged products involves substantial risk.
QTR provides quantitative price-action analysis, market classification and visual decision support only.
Any signal, projected path, target, score or market classification can fail.
Past performance does not guarantee future results.
Always determine position size, leverage, invalidation and maximum acceptable loss independently.
Built by Rudy — TrendRuntime
TrendRuntime
trendruntime.app
TradingView
www.tradingview.com
Индикатор

Double U Strategy with Webhook AlertsDouble U Strategy with Webhook Alerts
Double U Strategy is a trend-following strategy built around two independent ATR-based engines, one for long entries and one for short entries. The idea comes from the ATR trailing-stop approach commonly associated with UT Bot, but Double U uses a different implementation and trading structure. The reason for separating the two sides is simple: bullish and bearish moves often behave differently, so forcing both directions to use exactly the same ATR settings is not always useful.
The long and short engines each have their own sensitivity and ATR period. A long entry can occur when price crosses above the long ATR trail while remaining above the trend EMA, while a short entry can occur when price crosses below the short ATR trail while remaining below the same EMA. The EMA is therefore used as a regime filter rather than as an entry signal by itself.
The strategy also supports pyramiding. If another valid signal appears while a position in the same direction is already open, the strategy can add to that position until the pyramiding limit is reached. The default limit is three entries, but this can be changed from the Strategy Properties.
Exits use a separate mechanism instead of simply waiting for the ATR engine to reverse. The script compares the current close with the close a configurable number of bars earlier and counts consecutive moves in the same direction. Once the required sequence is reached, the current position is closed. This keeps entry and exit logic independent: ATR behavior decides when to enter, while the sequence logic decides when an extended move has progressed far enough to exit.
The default configuration was selected as a practical starting point for testing rather than as a claim of universal optimization. The current setup uses a long-term EMA filter together with different ATR settings for long and short trades, reflecting the asymmetric design of the strategy. Results can change significantly between instruments and timeframes, so the parameters should be tested rather than treated as fixed recommendations.
Webhook alerts
Webhook support is built directly into the strategy. Entry and exit orders generate structured alert messages automatically, so there is no need to manually create separate JSON messages for buys, sells, or closes.
When creating a TradingView strategy alert, the Message field should contain only:
{{strategy.order.alert_message}}
The strategy includes a platform selector and an optional symbol override. If the symbol field is left empty, the chart ticker is sent in the webhook message. If an external execution system requires a different symbol, the required ticker can be entered directly. This is useful not only for crypto, but also for futures, forex, indices, metals, or any case where the TradingView symbol differs from the execution symbol.
For example, a strategy can run on a continuous futures chart while the webhook sends the currently tradable contract instead. The trading logic remains attached to the chart, while the execution symbol can be changed without modifying the Pine code.
Statistics
A compact statistics table is displayed on the chart to make parameter testing faster. It shows net profit, number of closed trades, win rate, profit factor, test period, pessimistic profit factor, maximum intratrade drawdown, and Sharpe ratio.
The drawdown value in this table is intentionally different from TradingView's portfolio-level maximum drawdown. It shows the largest adverse movement experienced inside any closed trade, which makes it useful when comparing parameter combinations and estimating how much floating loss a trade may have experienced before closing.
The Sharpe ratio is calculated from monthly equity returns using a 2% annual risk-free rate and is annualized from monthly observations.
Backtesting notes
The strategy uses 10% of equity as the default order size, allows up to three pyramided entries, processes orders on bar close, and includes 15 ticks of slippage by default. Commission is not hard-coded because the script can be tested on instruments with very different pricing models. Users should set commission, margin, slippage, and other Strategy Properties according to the broker, exchange, and instrument they actually intend to trade.
Historical results are hypothetical and depend on the selected market, timeframe, data source, execution assumptions, and parameters. The purpose of Double U Strategy is to provide a transparent strategy that can be backtested, adjusted, and connected to webhook-based execution, not to predict future performance. Стратегия

Индикатор

Rejection Radar PRO Hariss 369Detect potential price rejection before a trend move loses momentum.
Rejection Radar PRO is a price-action based indicator designed to identify potential exit and reversal zones by combining confirmed support/resistance pivots, rejection candles, ATR-based rejection zones, and a higher-timeframe KAMA trend filter.
Instead of reacting to every candle, the indicator focuses on where price is being rejected.
🔥 Key Features
• HTF KAMA Trend Filter
Uses a higher-timeframe KAMA to provide directional context and help filter rejection signals against the broader trend.
• Confirmed Support & Resistance
Uses confirmed pivot highs and pivot lows to establish important potential rejection areas.
• Dynamic Rejection Zones
ATR-based zones create a flexible area around support and resistance rather than relying on a single exact price.
• Wick-Based Rejection Detection
Detects candles showing significant upper or lower wick rejection relative to candle body size.
• Optional Engulfing Rejection
Can additionally recognize bullish and bearish engulfing structures as rejection signals.
• Candle-Close Confirmation
Optional close confirmation helps reduce signals from candles that have not yet completed.
• Visual Rejection Markers
Clear rejection markers identify potential bearish rejection at resistance and bullish rejection at support.
• Exit Signals
Designed primarily as an exit/profit-protection tool:
Bearish rejection near resistance → potential LONG exit warning
Bullish rejection near support → potential SHORT exit warning
• Alerts
Create TradingView alerts when confirmed rejection conditions occur.
🧠 How It Works
The indicator combines:
HTF Trend → Confirmed Pivot → Rejection Zone → Candle Structure → Rejection Signal
A rejection signal is not simply generated because price touches support or resistance. Price must also demonstrate a rejection structure through the candle's wick/body relationship or optional engulfing pattern.
📊 Best Use
This indicator can be used alongside a separate trend-following entry system.
For example:
LONG
→ Enter using your primary trend-following system
→ Hold while the trend remains intact
→ Watch resistance/rejection zones
→ Bearish rejection can act as an early profit-protection or exit warning
SHORT
→ Enter using your primary trend-following system
→ Hold while the trend remains intact
→ Watch support/rejection zones
→ Bullish rejection can act as an early profit-protection or exit warning
It is particularly useful for traders who want to avoid exiting solely because of a small pullback or a single opposite candle.
⚙️ Customization
The indicator allows customization of:
• HTF timeframe
• KAMA length, fast and slow parameters
• Pivot sensitivity
• ATR zone width
• Wick/body rejection ratio
• Candle close-location threshold
• Engulfing rejection
• Candle-close confirmation
• Zone and pivot visibility
• Rejection markers
• Exit labels
⚠️ Important
This is a decision-support indicator, not a standalone trading system.
A rejection signal does not guarantee a reversal. Price can temporarily reject a level and subsequently break through it. Always consider market structure, volatility, liquidity, position size, and your predefined risk-management rules.
Backtest and forward-test the indicator on your specific instrument and timeframe before using it with real capital.
**DISCLAIMER**
Rejection Radar PRO is provided for educational and informational purposes only. It is not financial, investment, or trading advice and does not constitute a recommendation to buy or sell any security, futures contract, option, cryptocurrency, or other financial instrument.
Trading involves substantial risk, and past performance or historical signals do not guarantee future results. Rejection signals may fail, particularly during strong breakouts, high-volatility events, news releases, or rapidly changing market conditions.
Users are solely responsible for their trading decisions, risk management, position sizing, and financial outcomes.
Always conduct your own research, backtesting, and forward testing before using this indicator with real money.
Индикатор

Trend Deviation Channel (Zeiierman)█ Overview
Trend Deviation Channel (Zeiierman) is an adaptive trend channel designed to measure the prevailing trend and how far price is displaced from its expected trend path.
The channel is built around five main components:
• Trend Baseline = the expected price path derived from the regression trend
• Deviation Rails = +1D, +2D, +3D and -1D, -2D, -3D levels around the trend
• Trend State = bullish, bearish, or neutral classification of the center trendline
• Deviation Profile = a rolling distribution showing where price has historically spent time relative to the trend
• Deviation Events = confirmed 2D and 3D Expansion and Re-entry events highlighting significant movement through the outer channel structure
A reading of -2D means price is approximately two normalized downside deviations below trend.
A reading beyond +3D or -3D represents a major displacement from the expected trend path and is classified as Dislocated .
█ How It Works
⚪ Trend Model
The indicator builds a regression trend from completed historical bars and projects that structure forward.
The current candle does not pull the trend toward itself while its deviation is being measured, helping preserve a cleaner reading of how far price has moved from the established trend.
re = ta.linreg(src , len, 0)
rp = ta.linreg(src , len, 1)
slope = re - rp
⚪ Trend State
The center 0 TREND line identifies the current environment as:
• Up Trend
• Down Trend
• Neutral
Trend direction is based on regression slope strength relative to ATR.
Separate Trend Enter Strength and Trend Exit Strength thresholds help prevent the trend state from constantly switching during borderline conditions.
⚪ Deviation Structure
Price displacement is measured relative to the projected trend rather than a horizontal average.
• ±1D = Stretch
• ±2D = Extreme
• ±3D = Dislocated
residual = price - trend
deviation = residual >= 0 ? residual / upperDev : residual / lowerDev
Price near 0D is trading close to trend equilibrium.
As price reaches 1D, 2D, and 3D , displacement from the expected trend path becomes progressively more significant.
⚪ Deviation Profile
The profile beside the channel shows where price has historically spent the most time in deviation space , rather than price space.
For example, readings such as +0.4D, +1.2D, -0.7D, and -2.1D are grouped together to reveal the distribution of trend-relative displacement.
Wider areas show deviation zones visited more often, while thinner areas show less common displacement.
⚪ Expansion & Re-entry
Expansion events identify confirmed transitions into more extended deviation regions.
exp2 = barstate.isconfirmed and ta.crossover(z, d2)
exp3 = barstate.isconfirmed and ta.crossover(z, d3)
2D Expansion indicates price has moved into an extreme displacement.
3D Expansion indicates price has moved into the outer Dislocated region.
A Re-entry occurs when price later crosses back inside the corresponding deviation boundary.
These events can help identify:
• accelerating extension
• sustained displacement
• failed expansion
• movement back toward trend equilibrium
█ How to Use
Trend Deviation Channel can be used for Trend Identification, Trend Pullbacks, Dislocation Analysis, Mean Reversion, and Deviation Profile Analysis.
⚪ Trend Identification
The centerline provides the directional framework of the indicator.
• Bullish centerline = active uptrend
• Bearish centerline = active downtrend
• Neutral centerline = insufficient directional strength
⚪ Trend Pullbacks
During an established uptrend, price can be evaluated by how deeply it pulls below the center trendline.
• 0D to -1D = normal movement around trend
• -1D to -2D = meaningful pullback from trend
• -2D to -3D = extreme downside displacement
• Below -3D = dislocation from the prevailing trend structure
The opposite interpretation can be applied during downtrends.
A deviation level should not automatically be treated as support, resistance, or a reversal point. Instead, it provides a standardized measurement of how far price has moved from its expected trend path.
⚪ Dislocation Analysis
A 3D move marks an unusually large deviation from the existing trend.
When price reaches 3D against a prolonged trend , it can signal that momentum has shifted strongly enough for a larger trend change to be developing.
The key is not the 3D touch itself, but whether price can hold the displacement or continue through it .
⚪ Mean Reversion
Price often reacts or temporarily bounces when reaching the outer 2D and 3D deviation bands .
These areas represent strong extension, so traders can watch for temporary pullbacks or mean-reversion moves when price reaches them.
A touch alone is not a reversal signal, but it highlights an area where a reaction may become more likely.
⚪ Deviation Profile Analysis
The Deviation Profile shows where price has spent the most time relative to the trend .
Wider areas represent deviation zones visited more frequently, while thinner areas represent less common displacement.
• A profile weighted toward the lower deviation bands can suggest persistent downside pressure and stronger seller control.
• A profile weighted toward the upper deviation bands can suggest persistent upside pressure and stronger buyer control.
A balanced profile around 0D suggests price is spending more time near trend equilibrium.
█ Settings
Source: Selects the price series used to construct the trend model and calculate deviation. Close is used by default.
Trend Length: Controls how much historical data is used to estimate the regression trend. Higher values create a smoother, slower channel. Lower values react faster.
Trend Enter Strength: Controls how much directional strength is required before the center trendline enters an Up or Down state.
Trend Exit Strength: Controls how weak an established trend must become before returning to Neutral.
Deviation Shape: Asymmetric estimates separate upside and downside deviation scales. Symmetric uses one shared scale for both sides.
Residual Shock Cap (ATR): Limits how much an unusually large historical movement can influence the deviation width.
Minimum Deviation Width (ATR): Prevents the deviation rails from becoming too narrow during low-volatility conditions.
Minimum One-Side Samples: Controls how many observations are required before an independent upside or downside deviation estimate is used.
Deviation 1: Controls the first deviation rail and separates the Core region from Stretch behavior.
Deviation 2: Controls the second deviation rail and the threshold used for 2D Expansion and Re-entry events.
Deviation 3: Controls the outer deviation rail and the threshold used for 3D Expansion and Re-entry events.
Stretch Memory: Controls how slowly persistent displacement beyond the first deviation rail fades from the internal stretch state.
Show Rail Labels: Shows or hides the +1D, +2D, +3D, 0 TREND, -1D, -2D, and -3D labels.
Show Current Deviation: Shows or hides the live label displaying the current normalized deviation and displacement zone.
Show 2D Expansion: Shows or hides confirmed 2D Expansion markers.
Show 2D Re-entry: Shows or hides confirmed 2D Re-entry markers.
Show 3D Expansion: Shows or hides confirmed 3D Expansion markers.
Show 3D Re-entry: Shows or hides confirmed 3D Re-entry markers.
Up Trend: Controls the center trendline color during an active uptrend.
Down Trend: Controls the center trendline color during an active downtrend.
Neutral Trend: Controls the center trendline color when no active directional trend is detected.
Upper Deviation: Controls the color of positive deviation rails, upper channel areas, profile bins, and upside events.
Lower Deviation: Controls the color of negative deviation rails, lower channel areas, profile bins, and downside events.
Show Deviation Profile: Shows or hides the rolling trend-relative Deviation Profile.
Bins: Controls the number of buckets used to construct the Deviation Profile.
Profile Range (D): Controls the positive and negative deviation range displayed by the profile.
Profile Gap: Controls the horizontal distance between the projected channel and the Deviation Profile.
Profile Max Width: Controls the maximum width of the most populated profile area.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Индикатор

Индикатор

Earnings Drift RadarEarnings Drift Radar
Does a stock keep its lead after earnings?
Earnings Drift Radar follows a stock's performance relative to a market benchmark and a selected sector benchmark from an earnings reaction day. It separates the initial relative reaction from the subsequent change in that lead.
READING THE RADAR
• Green line: stock return minus sector return, in percentage points.
• Blue line: stock return minus market return, in percentage points.
• Zero line: equal performance since the same starting point.
• Blue shading and a green dot: the selected reaction day.
• Orange downward marker: a previously positive sector lead crosses to zero or below.
The dashboard describes the sector lead as growing, holding, fading, lost, or underperforming. These states describe relative price behavior; they are not buy or sell instructions.
A SIMPLE EXAMPLE
Stock A rises 6% while its sector rises 5%: its sector lead is +1 percentage point.
Stock B rises 2% while its sector falls 4%: its sector lead is +6 percentage points.
The smaller absolute gain can represent stronger relative performance.
If the initial sector lead is +4 pp and later falls to +2 pp, the radar shows 50% of the initial lead retained. This ratio is available only for sufficiently positive initial reactions. It may exceed 100% or turn negative.
HISTORICAL CONTEXT
The table summarizes sector excess returns at D+5, D+10 and D+20, where D0 is the reaction day. Each horizon includes only completed valid observations from the selected recent event window. It displays sample count, mean, median and percentage of positive excess returns. The positive percentage is not a trading win rate.
SETUP
Use a standard 1D chart of a USD stock and matching US-session USD benchmarks. SPY is the default market benchmark. XLK is a technology-sector example: choose the appropriate sector ETF yourself.
Choose Feed event bar, Next trading bar, or Manual date. TradingView earnings data does not reliably resolve every release time. Verify D0 against the actual announcement; shifting to the next bar applies to all reports. Manual mode studies one chosen event.
METHOD AND LIMITS
The reference prices are the split-adjusted regular-session closes immediately before D0. Calculations use simple price-return differences, without beta modeling, dividend returns or currency conversion. Missing or misaligned benchmark data invalidates the remainder of that event. New earnings events replace unfinished observation windows.
Updates and alert conditions use confirmed daily closes. Historical feed corrections and setting changes can change results. Relative performance does not prove that earnings caused a move. Small samples should be interpreted cautiously. This is an analytical indicator, not a validated trading strategy or a profitability claim.
ALERTS
New earnings reaction; sector lead lost; sector lead recovered; sector lead starts fading. Configure alerts separately in TradingView.
Индикатор

Adaptive Supertrend MA Crossover StrategyAdaptive Supertrend MA Crossover
Overview
This strategy trades the crossover between a Moving Average and a Supertrend line - a classic trend-following combination - but with two design choices that set it apart from the standard version of this idea already published elsewhere:
1. The Supertrend and the Moving Average each take their own independently selectable price source (Open, High, Low, Close, HL2, HLC3, OHLC4, or HLCC4), rather than both being locked to Close.
2. A new Moving Average source option: "EMA of Supertrend." Instead of feeding the MA a raw price series, this applies an EMA directly to the Supertrend line itself, and then runs your chosen MA type (SMA/EMA/HMA/WMA) on top of that smoothed line. The result is a crossover between two different "views" of the same underlying trend structure, rather than a crossover between price and trend.
Why "EMA of Supertrend" matters
A standard Supertrend line is deliberately steppy - it holds a level and jumps, rather than moving smoothly, which is what makes it useful as a stop/trend marker but also means a plain price-vs-Supertrend crossover can be noisy on choppy days (price whipsaws across a flat Supertrend step repeatedly).
Applying an EMA to the Supertrend line first produces a smoothed trend proxy that still reacts to genuine Supertrend flips, but rounds off the sharp step edges. Running your chosen Moving Average on top of that, rather than on top of price, means the crossover signal is comparing two related measures of trend, not fighting against Supertrend's inherent steppiness. This tends to produce fewer false flips in sideways conditions while still catching genuine trend changes, without adding a second unrelated indicator to the chart.
This source option is exposed directly in the settings (MA Source = "EMA of Supertrend"), with its own dedicated smoothing period, so it's a toggle away from the standard price-source approach for direct comparison on your own charts.
Caption: Chart example on GOLDPETAL, 15-min: long & short entry on the MA-Supertrend crossover.
How it works
Supertrend: calculated from your selected source (default HL2, the traditional Supertrend basis) with a configurable ATR Period and ATR Factor. Unlike TradingView's built-in Supertrend function (which is hard-coded to HL2), this version lets the basis price and the trend-flip check both use whichever source you select.
Moving Average: choose SMA, EMA, HMA (Hull), or WMA, computed on your selected source, including the "EMA of Supertrend" option described above.
Entry signal: long when the Moving Average crosses above the Supertrend line, short on the opposite cross.
Reverse Trading Mode: a single toggle that inverts the signal (useful for quickly testing whether the opposite side of a crossover performs better on a given instrument/timeframe, without rebuilding the logic).
Stop Loss / Take Profit: both optional and independently toggleable, with a shared basis switch between Percentage (of entry price) and Points, so the same settings panel works whether you're trading a low-priced or high-priced instrument.
Settings guide
(select this whole list after pasting and click the bullet-list button)
Supertrend Source - price series used for the Supertrend basis and trend-flip check
ATR Period / ATR Factor - standard Supertrend volatility inputs
MA Type - SMA / EMA / HMA / WMA
MA Source - price source, or "EMA of Supertrend"
EMA of Supertrend Period - smoothing period applied to the Supertrend line (only active when MA Source = EMA of Supertrend)
Reverse Trading Mode - inverts long/short signals
Use SL / Use TP, Basis, Values - optional exit management, Percentage or Points
Caption: Strategy Tester summary, GOLDPETAL futures, 15-min, , default settings.
Disclaimer:
This script is a technical trading tool for educational and informational purposes. It does not constitute financial advice, and past performance in backtesting does not guarantee future results. Always test thoroughly on your own instruments and timeframes, and use appropriate risk management, before considering live use. Стратегия

Mirror BiasSee the market from the other side.
Mirror Bias is a visual context indicator designed to challenge directional bias by displaying price action as a true vertical reflection of the underlying chart.
Instead of trying to predict whether the market is bullish or bearish, Mirror Bias asks a different question:
"Would this chart look the same to me if I couldn't rely on the usual visual direction of price?"
How it works
Mirror Bias mathematically reflects the OHLC data across a horizontal axis, i.e.,:
Mirrored Price = -Price
Because the transformation is applied to the actual OHLC values, the candles retain their original proportions, structure, gaps, wicks, and relationships. Time remains unchanged; only the vertical orientation is reversed.
This is a true geometric mirror of price action.
Why Mirror Bias is different
Some indicators described as "inverted candles" use a reciprocal transformation such as:
1 / Price
That is a nonlinear inverse-price transformation and is useful for certain comparative applications, but it is not a geometric reflection of the chart. TradingView seems to be lacking a true mirror of price action so I am adding this for public use.
Mirror Bias takes a different approach: the shape of the market is preserved while its visual orientation is reversed.
Use it as a bias-checking tool
Markets can be surprisingly difficult to evaluate objectively when our brains are conditioned to associate:
Rising charts with bullishness
Falling charts with bearishness
Green candles with opportunity
Red candles with danger
Mirror Bias provides an alternate visual perspective that can make familiar structures feel unfamiliar again.
Try analyzing the mirrored chart before looking back at the original chart. You may notice:
Trend structure you hadn't consciously recognized
Support and resistance relationships from a different perspective
Pullbacks that look different when the visual direction is reversed
How strongly candle colors influence your interpretation
Whether your market view is based on structure or simply visual habit
Optional contextual tools
Mirror Bias can remain completely clean and minimal, or additional context can be enabled when needed:
Swing Structure : Displays confirmed HH, HL, LH, and LL labels from the original price action.
Daily Open : Mirrors the current session's daily open.
Previous Day High / Low : Mirrors the prior day's key levels.
VWAP : Mirrors session VWAP on intraday charts.
20 / 50 / 200 EMA : Adds mirrored moving-average context.
Original Direction : Optionally reveals the underlying market's relationship to a selected EMA.
Candle Color Modes : Preserve the original colors, invert them, or use neutral candles.
All contextual elements are transformed into the same mirrored coordinate system so they remain consistent with the visual perspective.
A note on interpretation
The Mirror Bias script's purpose is perspective.
Use it to step outside an established narrative, question your assumptions, and compare your first impression with what you see when the same market is presented from the opposite visual direction.
Does your interpretation change simply because the chart was facing the other way?
Индикатор

Breakout Failure RadarBreakout Failure Radar
Follow the breakout. Keep the original level. Recognize when the structure fails.
Breakout Failure Radar tracks what happens after a price-channel breakout. It freezes the original breakout level and volatility reference, then monitors whether price holds a retest or closes back through the failure threshold.
READ THE COLORS
Blue B+ / B− — Breakout detected
A new upward or downward breakout enters observation.
Green R+ / R− — Retest held
Price touches the frozen retest zone and closes back on the breakout side. Monitoring continues.
Orange F+ / F− — Breakout failed
Price closes beyond the failure threshold on the opposite side of the original level.
Gray square — Window complete
The observation window ends without a defined failure. This does not indicate a profitable trade.
The + and − signs always refer to the original breakout direction. F+ identifies a failed upward breakout; F− identifies a failed downward breakout.
HOW A BREAKOUT IS DETECTED
The default channel uses the highest high and lowest low of the previous 20 completed candles. The current candle is excluded.
An upward breakout requires:
• A close more than 0.10 ATR14 above the upper channel.
• The previous close to have been at or below its own previous upper channel.
Downward breakouts use the opposite conditions.
The channel boundary and ATR are frozen when the breakout is confirmed. Later price movements do not move these reference values.
RETEST OR FAILURE?
The default observation window covers the next five candles, excluding the breakout candle.
The retest zone extends 0.25 frozen ATR on either side of the original level. A held retest requires the candle’s range to intersect this zone and its close to finish more than 0.10 frozen ATR on the original breakout side.
A failure occurs when price closes more than 0.10 frozen ATR on the opposite side of the original level.
A held retest does not end the observation. The same breakout can hold a retest and still fail later.
WORKED EXAMPLE
Hypothetical prices using the default settings.
An upward breakout freezes a level of 100 and an ATR of 4. Price closes at 102, satisfying the breakout conditions.
• Retest zone: 99 to 101.
• Held retest: The candle touches this zone and closes above 100.40.
• Failure: A subsequent candle closes below 99.60 within the observation window.
• Still unresolved: A close at 99.80 is below the original level but has not crossed the failure threshold.
The buffers distinguish a small move around the level from a confirmed condition. They do not guarantee that price will continue or reverse.
MONITORING RULES
• Only one breakout is monitored at a time. Additional breakouts during an active observation are ignored.
• A held retest is reported only once per setup.
• A gap that skips the entire retest zone does not count as a touch.
• Failure takes priority over window completion on the final observation candle.
• A first held retest and window completion can occur on the same final candle.
• A new observation can start no earlier than the candle after the previous observation ends.
• A rejected crossing is not automatically activated later; a fresh channel crossing is required.
DISPLAY AND ALERTS
The frozen level and retest zone are displayed through the observation’s final candle. Historical markers remain on the candles where their conditions were confirmed.
The status panel shows:
• Original breakout direction and latest status.
• Frozen breakout level.
• Number of candles monitored.
• Distance from the latest confirmed close to the frozen level, measured in frozen ATR. Positive values indicate the original breakout side.
• Whether a held retest occurred during the observation.
Five alert conditions are available:
1. New breakout under observation.
2. Retest held.
3. Upward breakout failed.
4. Downward breakout failed.
5. Monitoring window complete.
Choose Once Per Bar Close when creating alerts.
CONFIRMED-CANDLE BEHAVIOR
State changes and event markers are confirmed at candle close. The script does not use future candles, backdated signals or lookahead requests.
Historical data corrections, changes to chart history and different input settings can still change historical results. Use standard candles for interpreting the price-based rules.
RESEARCH AND LIMITATIONS
The default rules were examined on daily BTC, ETH, SOL, BNB and XRP USD histories from January 2021 through September 10, 2026.
The proportion of completed observations meeting the failure definition was:
• 2021–2023: 44.93% across 276 observations.
• 2024–2025: 46.63% across 178 observations.
• 2026: 55.38% across 65 observations.
These figures describe how frequently the chosen failure condition occurred. They are not prediction accuracy or trading win rates.
Average price movement after a warning changed direction between the examined periods. The study therefore did not establish a stable advantage from automatically trading against failed breakouts.
The analysis does not model portfolio exposure, execution costs, funding, stop-losses or actual fills. The five cryptocurrencies are a selected and correlated sample.
The indicator can calculate on stocks and other timeframes, but this research covers cryptocurrency daily candles with the default settings only.
WHAT MAKES THIS TOOL DISTINCT
The implementation combines a Donchian-style channel and Wilder ATR with frozen reference levels, a defined observation window and continued monitoring after a held retest. Each component serves the specific purpose of tracking how an individual breakout develops.
It operates independently of Crypto Breakout Compass and does not import that indicator’s signals.
Breakout Failure Radar is a market-structure monitoring tool. A failure warning identifies a condition that has already occurred; it is not an automatic instruction to enter the opposite trade. Индикатор

Crypto Breakout CompassCRYPTO BREAKOUT COMPASS
A clear framework for reading crypto breakouts — from market context to confirmed signals.
Crypto Breakout Compass highlights price-channel breaks that also meet trend, volatility and candle-strength conditions. Its purpose is to make breakout selection visible and explainable. It is a chart-analysis indicator, not an automated trading strategy.
THE SIGNAL PATH
Price-channel break → Trend alignment → Volatility & candle checks → Confirmed close → B+ or B−
Each filter has a specific job: the channel identifies a break, the EMAs establish direction, ATR limits volatility and extension, and candle location checks whether the move held into the close. A shared cooldown limits repeated alerts.
1. READ THE CHART
• Teal channel: highest high of the previous 20 completed candles.
• Red channel: lowest low of the previous 20 completed candles.
• Orange line: EMA50. Blue line: EMA200.
• Teal / red background: confirmed bullish / bearish trend alignment.
• B+: confirmed bullish breakout. B−: confirmed bearish breakout.
• Status panel: last confirmed trend, ATR percentage and current gate status.
The current candle is excluded from the channel calculation. A colored background alone is not a breakout signal.
2. WHAT QUALIFIES AS A SIGNAL?
Bullish — B+
The close moves above the upper channel, while the preceding close was at or below its own upper channel. Price must close above EMA50, EMA50 must be above EMA200, and EMA200 must be higher than five bars earlier. The close must finish in the top 30% of the candle.
Bearish — B−
The close moves below the lower channel, while the preceding close was at or above its own lower channel. Price must close below EMA50, EMA50 must be below EMA200, and EMA200 must be lower than five bars earlier. The close must finish in the bottom 30% of the candle.
Shared checks
• ATR14 must be positive and no more than 12% of the closing price.
• The close must extend no more than 1 ATR beyond the broken channel.
• At least 10 bars must separate signals, across both directions.
• The candle must be closed and the warmup complete.
A rejected breakout is not automatically accepted later. A fresh channel crossing is required. Zero-range candles receive a neutral close location and cannot meet the default candle-strength threshold.
3. WORKED EXAMPLES
Hypothetical prices, using the default settings. These illustrate the rules, not actual trades or forecast returns.
Example A — bullish qualification
Upper channel = 100 | ATR = 4
Candle: high 103, low 98, close 102
EMA50 = 99 | EMA200 = 95 and rising
The close is 2 points above the channel: 2 ÷ 4 = 0.5 ATR. Its location within the candle is (102 − 98) ÷ (103 − 98) = 80%, inside the top 30%. ATR is approximately 3.92% of close, below the 12% cap. If the previous-close crossing condition, warmup and cooldown are also satisfied, B+ appears at candle close.
Example B — bearish qualification
Lower channel = 100 | ATR = 4
Candle: high 102, low 97, close 98
EMA50 = 105 | EMA200 = 110 and falling
The close is 0.5 ATR below the channel and sits 20% of the way up the candle, inside the bottom 30%. ATR is approximately 4.08% of close. If the remaining conditions are satisfied, B− appears at candle close.
Example C — an extended move is rejected
Upper channel = 100 | ATR = 4 | Close = 106
The extension is 6 ÷ 4 = 1.5 ATR, exceeding the default 1 ATR limit. No B+ is printed, even if the trend is bullish. This illustrates the extension filter; it does not imply the price cannot continue higher.
4. QUICK START & ALERTS
Start with regular 1D cryptocurrency candles and the default inputs. The default warmup requires at least 205 previous bars. Separate alert conditions are available for bullish and bearish breakouts; choose “Once Per Bar Close” when creating an alert.
The research covers daily candles only. Other intervals display “Unvalidated timeframe”. Changing inputs also moves beyond the tested defaults. Bearish markers describe price direction; they do not imply that short selling is available on a spot market.
5. CONFIRMATION & DATA BEHAVIOR
Markers and saved status update only on confirmed candle closes. Channel lines and EMAs can move while a candle is open. The script uses no future bars, pivot backdating or lookahead requests. Historical data corrections, feed changes, available history and input changes can still affect historical signals.
The indicator runs entirely on TradingView chart data and requires no API key. Prices and day boundaries can differ between exchanges and USD/USDT pairs.
6. WHAT THE RESEARCH DOES — AND DOES NOT — SHOW
Fixed default rules were examined on historical daily BTC, ETH, SOL, BNB and XRP USD series from January 2021 through September 10, 2026. No parameter search was performed for this study.
The event study measures directional price change from the next daily open after a signal to the close of the tenth following candle. A simple 0.30 percentage-point round-trip cost deduction was also examined. This is not a portfolio backtest: it does not model funding, leverage, actual fills, stops or compounding.
In the 2024–2025 validation window, 67 filtered events had a mean directional change of +1.114% and a median of −1.236%. The unfiltered channel baseline, with the same cooldown, averaged +1.240% across 159 events. The worst filtered adverse excursion within an observation window was −34.744%.
The later 2026 window contained only 15 filtered events, of which 14 were bearish. This small, directionally concentrated sample does not establish a general trading edge. The five coins are also a selected, correlated sample. The evidence is mixed, and positive average event returns should not be interpreted as verified strategy profitability.
SCOPE & ORIGINALITY
This implementation combines a prior-bar Donchian-style channel, standard EMAs and Wilder ATR with directional candle location, extension limits and a shared signal cooldown. The code was written independently for this tool. Its contribution is the explicit qualification process and closed-bar status display, not a claim to have invented the underlying indicators.
Crypto Breakout Compass does not place orders or prescribe position sizes, stop-losses or exits. Use it to inspect market structure and test hypotheses; a marker is not a guarantee of follow-through. Индикатор

FVG Precision | Exact Labels | 2R | WebhookFVG Precision | Exact Labels | 2R | Webhook is a Fair Value Gap (FVG) trading indicator designed to identify structured bullish and bearish FVG setups, wait for price to return into the imbalance, confirm rejection, and then display a complete trade setup with entry, stop loss, take profit, and trade direction.
HOW THE INDICATOR WORKS
The indicator looks for bullish and bearish Fair Value Gaps created by strong price displacement.
A bullish FVG is detected when price creates an upside imbalance between candles.
A bearish FVG is detected when price creates a downside imbalance between candles.
The script uses ATR-based filters to reduce very small or weak gaps and also checks for displacement strength before accepting an FVG.
After an FVG is identified, the indicator waits for price to return and fully fill the qualifying area.
When rejection confirmation is enabled, a trade signal is not generated simply because price touches the FVG. Price must fill the zone and then show confirmation back in the expected direction.
For bullish setups, the script looks for bullish rejection and a close back through the required portion of the FVG.
For bearish setups, the script looks for bearish rejection and a close back through the required portion of the FVG.
This helps filter out many simple touches that do not produce a confirmed reaction.
ENTRY
Once all conditions are satisfied, the indicator creates either a BUY or SELL signal.
The official entry price is based on the closing price of the candle that confirms the setup.
The indicator displays:
• BUY or SELL direction
• Exact entry price
• Signal time in Eastern Time
• Active entry FVG
• Stop Loss
• Take Profit
• Current trade status
STOP LOSS
Stops are structure-based rather than using an arbitrary fixed distance.
For BUY setups, the stop is placed below the most recently confirmed swing low, including the selected stop buffer.
For SELL setups, the stop is placed above the most recently confirmed swing high.
This allows the risk level to adapt to the current market structure.
TAKE PROFIT
The default take-profit target uses a 1:2 risk-to-reward ratio.
This means:
Risk = 1R
Target = 2R
For example:
If the distance between entry and stop loss is 5 points, the take-profit target is positioned approximately 10 points from the entry in the profitable direction.
The 2R level is automatically calculated for every qualifying setup.
ONE ACTIVE TRADE AT A TIME
The indicator is intentionally designed to manage only one active signal at a time.
While a BUY or SELL setup is active, the indicator will not issue another new trade signal.
A new setup becomes eligible after the current trade ends through:
• Take Profit
• Stop Loss
• FVG invalidation
• Weekend reset
This design helps prevent conflicting BUY and SELL signals from being active simultaneously.
ACTIVE FVG INVALIDATION
The original FVG remains part of the trade-management logic.
If price closes through the active FVG in the invalid direction before the trade completes, the indicator can classify the setup as:
FVG BROKEN
The active setup is then cancelled.
TRADING SESSION
Signals are restricted to the futures trading window used by this indicator:
Sunday 6:00 PM ET
through
Friday 4:00 PM ET
Saturday is disabled.
A weekend reset occurs Friday at 4:00 PM Eastern Time.
SUPPORTED CHART TIMEFRAMES
The indicator can visually operate on:
• 1 Minute
• 5 Minute
• 15 Minute
• 30 Minute
RECOMMENDED / PRIMARY TIMEFRAME: 15 MINUTES
The 15-minute timeframe is the primary timeframe this version is designed to be used with.
Compared with the lower timeframes, the 15-minute chart generally provides a cleaner view of market structure and reduces the amount of short-term price noise seen on very small candles.
IMPORTANT WEBHOOK RULE:
Only signals generated on the 15-minute timeframe are permitted to send trade-copier webhook events.
1 Minute:
Indicator can display setups, but website webhook transmission is OFF.
5 Minute:
Indicator can display setups, but website webhook transmission is OFF.
15 Minute:
Indicator displays setups AND webhook transmission is ON.
30 Minute:
Indicator can display setups, but website webhook transmission is OFF.
This restriction was intentionally added so an external trade copier or automation system receives only the selected 15-minute signals rather than signals from multiple chart timeframes.
WEBHOOK / AUTOMATION SUPPORT
The indicator contains machine-readable webhook functionality for integration with an external trade-management or trade-copying application.
Supported webhook lifecycle events include:
• ENTRY
• TP_HIT
• SL_HIT
• FVG_BROKEN
• WEEKEND_RESET
Every new trade receives a unique signal ID.
That same signal ID follows the trade throughout its lifecycle so an external application can associate subsequent events with the correct original signal.
ENTRY webhook data can include:
• Unique Signal ID
• Symbol
• TradingView Symbol
• BUY / SELL direction
• Timeframe
• Signal timestamp
• Entry price
• Stop Loss
• Take Profit
• Risk/Reward
This provides a structured foundation for webhook-based alerts and external automation.
BENEFITS
The purpose of FVG Precision is to make Fair Value Gap trading more structured and easier to interpret.
Key benefits include:
• Automatically identifies qualifying bullish and bearish FVGs
• Uses displacement and ATR filters to reduce weak setups
• Waits for FVG interaction instead of signaling immediately
• Optional rejection confirmation helps filter simple touches
• Automatically identifies BUY and SELL opportunities
• Displays exact entry prices
• Automatically calculates structure-based stop losses
• Automatically calculates a 2R profit target
• Displays the active FVG visually
• Prevents multiple active signals at the same time
• Provides FVG invalidation logic
• Restricts signals to the selected trading session
• Provides BUY, SELL, TP, SL and FVG Broken alerts
• Supports structured webhook integration
• Restricts automated webhook transmission to the preferred 15-minute timeframe
IMPORTANT
This indicator is a decision-support and automation tool. Signals are based on predefined technical conditions and do not guarantee profitable trades.
Historical or visually successful setups do not guarantee future results. Slippage, liquidity, market volatility, news events, execution quality, commissions, and other market conditions can materially affect actual results.
Users should test the indicator thoroughly and use appropriate risk management before using any signal for live trading. Индикатор

Previous Day Levels & BOS (v4.0.0)Indicator Overview
This custom Pine Script v6 trading indicator combines Previous Day High/Low (PDH/PDL) boundary tracking, multi-trigger Break Signals, and Break of Structure (BOS) logic into a unified, clean charting tool. Designed for precision execution, the script tracks session boundaries strictly using calendar days to prevent Sunday and Monday session combining, while enforcing structural constraints on market structure breaks.
Core Functional Components
Previous Day Levels: Plots dynamic lines representing the high and low of the previous calendar day, adapting automatically as sessions roll over.
Break Signals: Evaluates multi-trigger crosses against PDH and PDL bounds, printing designated arrows whenever price breaks these key liquidity thresholds.
Structure Breaks (BOS): Identifies swing highs and lows post-PD break, restricting BOS prints strictly within the boundaries of the Previous Day High and Low levels.
Alert System: Fully equipped with built-in native alerts for bullish, bearish, and any combined BOS events.
Complete Revision History
v1.0.0: Established initial session logic and PDH/PDL level plotting.
v1.1.0: Transitioned to strict calendar day tracking to fix Sunday and Monday session combining issues.
v1.2.0: Introduced built-in alert conditions for Bullish, Bearish, and Any BOS configurations.
v1.3.0: Enforced sequence rules requiring a PD break before evaluating BOS structures.
v1.4.0: Removed price boundary filters on post-PD break swings to capture broader structural setups.
v1.5.0: Explicitly anchored version 6 header at line 1 to resolve compiler issues.
v1.6.0: Upgraded the BOS engine to utilize array tracking, preventing swing point overwriting.
v1.7.0: Added automated removal for BOS lines and labels upon level mitigation.
v1.8.0: Resolved loop execution errors by computing crossover logic outside array loops.
v1.9.0: Reverted mitigation deletion rules so BOS elements remain visible post-PD break.
v2.0.0: Overhauled the BOS engine to active single-level tracking to minimize chart clutter.
v2.1.0: Enforced strict boundary filtering to ensure BOS markers print exclusively inside PDH and PDL channels.
v2.2.0: Enabled multi-trigger tracking so every unique cross above PDH or below PDL prints an arrow signal.
v3.1.0 - v3.2.0: Experimental Fair Value Gap (FVG) and mitigation engines introduced and tested.
v4.0.0: Cleaned and streamlined the script by completely removing experimental FVG features, finalizing the layout down to core PD levels, break arrows, and precision BOS tracking. Индикатор
