Multi Trend FilterOverview
Multi Trend Filter shows the market's underlying trend with a single, clean line. It uses the Daily timeframe as the base, then layers 4H and 30m confirmation on top, coloring the trend in three intuitive states: green / yellow / red. No matter which chart timeframe you view it on (15m, 1h, 4h, etc.), it stays consistent on the Daily basis, and a two-pass smoothing keeps the line smooth on any chart.
WHAT THE COLORS MEAN
Green (UPTREND): Uptrend confirmed.
Yellow (TRANSITION): Trend is shifting — awaiting confirmation.
Red (DOWNTREND): Downtrend confirmed.
HOW IT WORKS — 3-STAGE MULTI-TIMEFRAME CONFIRMATION
Set the broad direction with higher timeframes first, then confirm the entry with the lower timeframe last.
Daily (Base / Reference line) — the line drawn on the chart; the anchor of the larger trend.
4H (Primary confirmation) — when both the close and the 4H flow align above/below the Daily line, the base direction is set.
30m (Final confirmation) — in that base direction, once the candle body closes across the 30m line, the color is finalized:
Close closes ABOVE the 30m line → Green
Close closes BELOW the 30m line → Red
Yellow (Transition) is the period before both stages confirm — the 4H hasn't committed yet, or it has but the close hasn't cleared the 30m line. Once green/red is confirmed, the color ignores minor noise while the base holds (latch), so it won't flicker.
HOW TO READ IT
Green: uptrend intact. Look for pullback entries.
Red: downtrend intact. Look for bounce exits / stay aside.
Yellow: direction unclear; safer to wait until it confirms green/red.
Yellow to Green = bullish shift. Yellow to Red = bearish shift.
KEY SETTINGS
Trend Line — First / Second Smoothing Length: line smoothness and responsiveness.
Display Smoothing — Smooth Line, Smooth Strength: keeps the line smooth on any timeframe (higher = smoother, slightly more lag).
Confirmation Lines — Show 30m Line (Signal) / Show 4H Line (Base): reveal the lines used for confirmation.
Style — up/down/transition colors, line width, fill and transparency, trend label.
TIPS
Use it as a trend direction and shift filter, not a standalone trade signal.
Reliability increases when the trend color agrees with your own setup (support/resistance, volume, etc.).
If the line looks choppy, raise Smooth Strength.
DISCLAIMER
This indicator is a reference tool to help judge trend direction. It does not guarantee trading profits. All trading decisions and responsibility rest solely with the user. Indicator

Indicator

Indicator

Takhtupuria Sniper Pro: All-in-OneUltimate Sniper Pro: All-in-One
This is an advanced, comprehensive scalping tool designed to consolidate essential trading indicators into a single, user-friendly workspace. It is built to help traders analyze market trends, volatility, and institutional price levels efficiently.
Core Features included in this script:
EMA Settings: Includes both 21 EMA and 200 EMA to provide clear trend direction and support/resistance confirmation.
Alligator Indicator: A powerful tool for identifying market consolidation and catching the start of a trend burst.
Bollinger Bands (BB): Used to measure volatility and identify potential mean reversion opportunities in fast-moving markets.
VWAP: A critical tool for tracking institutional-level price averages.
Customization & Control:
Flexibility: Users can toggle each component (EMA, Alligator, BB, VWAP) on or off from the Inputs tab to suit their specific trading style.
Full Customization: All colors, line thicknesses, and styles are fully editable in the Style tab, allowing you to customize the tool to match your preferred chart setup.
This indicator is designed for traders seeking a clean, "All-in-One" solution to eliminate chart clutter and improve decision-making speed. Indicator

Aura Trend & Candlestick Oracle [Pineify]Aura Trend & Candlestick Oracle
This indicator layers EMA-based trend detection with candlestick pattern recognition, then gates the pattern signals through the prevailing trend direction. The idea: candlestick reversals are far more reliable when they fire in alignment with the macro trend rather than against it. A hammer in a downtrend is noise; the same hammer in an uptrend is a potential continuation entry after a pullback.
Key Features
EMA cloud (fast/slow) with dynamic color fill that shifts between bullish, bearish, and neutral states
Five candlestick patterns: Bullish Engulfing, Bearish Engulfing, Hammer, Shooting Star, Inverted Hammer / Hanging Man
Signals filtered by trend — bullish patterns only fire in uptrends, bearish patterns only in downtrends
Background shading highlights trend zones for quick chart-reading
Dashboard panel showing live trend status and current EMA values
Four alert conditions: BUY signal, SELL signal, EMA bullish crossover, EMA bearish crossunder
How It Works
Trend detection uses two exponential moving averages — a fast EMA (default 50) and a slow EMA (default 200). When the fast EMA is above the slow EMA, the script treats the market as an uptrend; when below, a downtrend. This classic crossover relationship provides the filtering layer for all pattern signals.
Candlestick pattern detection evaluates each bar's body size, wick lengths, and direction, then checks the previous bar's properties for multi-bar patterns:
Engulfing patterns — the current candle's body fully wraps the prior candle's body in the opposite direction. Bullish Engulfing requires a red prior bar followed by a green bar that opens below the prior body low and closes above the prior body high.
Hammer — lower wick exceeds 2× the body size, upper wick is less than half the body. No directional restriction on the body itself.
Shooting Star / Inverted Hammer / Hanging Man — upper wick exceeds 2× body, lower wick less than half the body. The body color separates these: Inverted Hammer is green (treated as bullish), Hanging Man is red (treated as bearish). Shooting Star is the upper-wick pattern used for bearish signals.
How the Components Work Together
The EMA trend state acts as a regime filter, not just a visual layer. A bullish candlestick pattern (Engulfing, Hammer, Inverted Hammer) only triggers a BUY signal when fastEma > slowEma — the pattern fires into the trend, not against it. Similarly, bearish patterns only produce SELL signals when the fast EMA is below the slow EMA.
This prevents the common trap of fading reversals in strong trends. A hammer below the 200 EMA might signal a brief bounce, but it is not a high-probability long in a downtrend. By requiring trend alignment, the indicator reduces false positives from countertrend noise. The tradeoff is that signals at the beginning of a trend reversal — when the fast EMA has not yet crossed — will be missed. This is by design.
Trading Ideas and Insights
On higher timeframes (daily, weekly), use the EMA cloud crossover alert to identify macro trend shifts, then drop to a lower timeframe to look for BUY/SELL pattern signals for entry timing.
After a pullback to or near the fast EMA in an uptrend, a Hammer or Bullish Engulfing signal at that level adds confluence — price has retested the trend structure and showed rejection. Consider these setups stronger than patterns firing far from either EMA.
The Hanging Man (red candle with extended upper wick in an uptrend) triggers a SELL signal when the market is in a downtrend. In practice, watch for this pattern forming near prior resistance or the slow EMA during a counter-rally in a downtrend.
Use the dashboard panel to confirm trend state without scrolling back. On faster timeframes, the 50/200 EMA spread updates frequently; on crypto or forex pairs, consider adjusting the slow EMA to 100 to reduce lag.
Past candlestick patterns do not guarantee future price movement. All signals should be treated as areas of potential interest, not definitive entry triggers.
Unique Aspects
Trend-gating is the core differentiator here. Many candlestick indicators plot patterns on every bar regardless of context; this one explicitly suppresses countertrend signals at the calculation level, so the chart stays clean.
The Inverted Hammer is classified as bullish and the Hanging Man as bearish based on body color, using the upper-wick geometry. Some implementations treat these as the same pattern with identical signals; here they are split by color to reflect their different interpretations in technical analysis.
The EMA cloud uses transparency-adjusted fills that match the trend color, so the visual relationship between the two EMAs immediately communicates regime state without requiring a separate panel.
How to Use
Add the indicator to any chart and timeframe. The EMA cloud and background shading appear immediately, showing the current trend regime.
Watch for BUY labels (green) below bars during uptrend zones (green background) — these mark bars where a bullish pattern fired with trend confirmation.
Watch for SELL labels (red) above bars during downtrend zones (red background).
Set up alerts via the Alerts panel: choose "Aura BUY Signal" or "Aura SELL Signal" for pattern-filtered signals, or "Trend Shift to Uptrend/Downtrend" for EMA crossover notifications.
Check the dashboard (top-right corner) for live trend status and EMA values on the current bar.
Customization
Fast EMA Length (default: 50) — Controls the short-term trend line. Lower values increase sensitivity and produce more cloud crossovers; higher values smooth out the regime filter.
Slow EMA Length (default: 200) — The long-term trend anchor. The 50/200 combination is a widely watched institutional reference; on shorter timeframes, consider 20/50 or 9/21.
Color Candles by Trend — When enabled, all candles recolor to match the current trend state. Disable if you prefer standard OHLC coloring or are using another candle-coloring indicator.
Bullish / Bearish / Neutral Colors — All visual elements (cloud, candles, background, EMAs) derive from these three color inputs, so changing them updates the entire indicator at once.
Conclusion
Aura Trend & Candlestick Oracle combines two well-understood techniques — EMA trend detection and candlestick pattern recognition — with a regime filter that suppresses countertrend noise. It works best on trending markets where the EMA structure is well-defined; in choppy, sideways conditions, expect frequent EMA crossovers and fewer valid pattern signals. Traders who already use candlestick patterns and want an automatic trend-alignment layer without managing multiple indicators will find this a practical consolidation.
Indicator

Body Length Bias================================================================
BODY LENGTH BIAS — INDICATOR DESCRIPTION
================================================================
🇬🇧 ENGLISH
----------------------------------------------------------------
Body Length Bias is a directional pressure indicator that measures
the accumulated percentage movement of bullish and bearish candles
over a defined lookback period, revealing which side — buyers or
sellers — has exerted more real force on price.
WHAT IT CALCULATES
------------------
For each candle in the last X bars, the indicator calculates the
body movement as a percentage relative to the open price:
|close - open| / open * 100
It accumulates that percentage separately for bullish candles
(close >= open) and bearish candles (close < open). The side with
the higher total percentage is considered the dominant force.
WHAT IT SHOWS
-------------
A fixed label in the bottom-right corner of the chart displays:
- Current bias: BULLISH or BEARISH
- Accumulated percentage for each side
- Number of candles being analyzed
Background and text colors are fully customizable.
HOW TO USE IT
-------------
Trend filter:
Only look for long setups when bullish % > bearish %, and short
setups when bearish % > bullish %. Avoid trading against the
dominant side.
Range detection:
When both values are nearly equal (e.g. 50/50), the market is in
consolidation. No directional bias is present — wait for a breakout.
Exhaustion reading:
If one side has dominated for many candles but the gap is closing,
directional pressure is fading — a reversal may be forming.
Multi-timeframe confluence:
Apply the indicator on H4, H1, and 15m simultaneously. When all
three align in the same direction, confluence is at its highest.
WHAT IT DOES NOT DO
-------------------
This indicator does not generate entry signals. It is a contextual
bias tool designed to be used alongside structural analysis, key
levels, and volume. It works best in trending conditions and loses
reliability in tight sideways ranges.
================================================================
🇪🇸 ESPAÑOL
----------------------------------------------------------------
Body Length Bias es un indicador de presión direccional que mide
el movimiento porcentual acumulado de las velas alcistas y bajistas
durante un período definido, revelando qué lado — compradores o
vendedores — ha ejercido mayor fuerza real sobre el precio.
QUÉ CALCULA
-----------
Por cada vela de las últimas X barras, el indicador calcula el
movimiento del cuerpo como porcentaje respecto al precio de apertura:
|close - open| / open * 100
Ese porcentaje se acumula por separado para las velas alcistas
(close >= open) y las bajistas (close < open). El lado con mayor
porcentaje total es considerado la fuerza dominante.
QUÉ MUESTRA
-----------
Un cartel fijo en la esquina inferior derecha del gráfico muestra:
- Sesgo actual: BULLISH o BEARISH
- Porcentaje acumulado de cada lado
- Número de velas analizadas
El color de fondo y el color del texto son completamente configurables.
CÓMO USARLO
-----------
Filtro de dirección:
Busca solo largos cuando alcista % > bajista %, y solo cortos cuando
bajista % > alcista %. Evita operar contra el lado dominante.
Detección de rango:
Cuando ambos valores están casi igualados (ej. 50/50), el mercado
está en consolidación. No hay sesgo direccional — espera una ruptura.
Lectura de agotamiento:
Si un lado ha dominado durante muchas velas pero la diferencia se
está cerrando, la presión direccional se está agotando — puede estar
formándose un giro.
Confluencia multi-timeframe:
Aplica el indicador en H4, H1 y 15m simultáneamente. Cuando los
tres apuntan en la misma dirección, la confluencia es máxima.
QUÉ NO HACE
-----------
Este indicador no genera señales de entrada. Es una herramienta de
sesgo contextual diseñada para usarse junto con análisis estructural,
niveles clave y volumen. Funciona mejor en condiciones de tendencia
y pierde fiabilidad en rangos laterales ajustados.
================================================================ Indicator

Dual MA Gradient [Gabremoku]Dual MA Gradient is a clean dual moving average overlay designed to highlight not only MA direction and crossover, but also the degree of separation between the two averages through a dynamic gradient ribbon.
The script uses two configurable moving averages and transforms their relationship into a visual ribbon that reacts to:
bullish alignment
bearish alignment
neutral compression
Instead of relying only on a simple crossover, the indicator helps show whether the two averages are:
crossing,
compressing,
or expanding apart
That makes it useful as a compact trend-structure tool for traders who want an at-a-glance read on direction and relative momentum.
What it shows
📈 Two configurable moving averages — each MA can be set independently using:
EMA or SMA
custom length
custom source
🌈 Directional gradient ribbon — the space between the two averages is divided into layered fills that create a smooth visual ribbon.
🟦 Bullish separation — when the fast MA is above the slow MA, the ribbon shifts to bullish color.
🟨 Bearish separation — when the fast MA is below the slow MA, the ribbon shifts to bearish color.
⚪ Compression state — when the spread between the two MAs becomes small enough, the ribbon fades into a neutral state to signal contraction.
🏷️ Status label — optional live label shows the active state:
Compression
Bullish Separation
Bearish Separation
⭕ Cross markers — optional markers can be shown when bullish or bearish MA crosses occur.
Core logic
The indicator is built around three simple but useful ideas:
Which MA is on top
How far apart the two MAs are
Whether the spread is strong enough to be directional or too tight and neutral
A moving average crossover occurs when a shorter-period average crosses a longer-period average, and it is commonly used to identify trend shifts or signal changes in directional bias.
This script goes a step further by emphasizing the spread between the averages. That matters because ribbon spacing is often used as a visual clue for trend structure: when averages are compressed, the market may be in transition or contraction, while a wider directional ribbon can reflect stronger alignment.
How to read it
A practical reading method is:
Compression = the two averages are close together, market may be transitioning or losing directional clarity
Bullish separation = the fast MA is above the slow MA and the ribbon is opening upward
Bearish separation = the fast MA is below the slow MA and the ribbon is opening downward
In many moving-average frameworks:
the cross helps identify the directional shift
the spacing helps evaluate whether that shift is weak or established
a tight ribbon often suggests indecision or a developing transition
Features
✅ Dual moving average framework
✅ SMA or EMA selection for both lines
✅ Fully customizable lengths
✅ Dynamic layered ribbon between MAs
✅ Bullish / bearish / neutral compression states
✅ Optional MA line display
✅ Optional live status label
✅ Optional crossover markers
✅ Built-in bullish and bearish crossover alerts
Notes
This indicator is designed as a trend-visualization tool rather than a complete standalone strategy. Like all moving-average systems, it is inherently lagging, so it is generally more useful for confirming structure and directional bias than for predicting reversals in isolation.
Author: Gabremoku
Pine Script v6 Indicator

Phase Exhaustion Reversal [BullByte]Phase Exhaustion Reversal (PXR) is an intraday reversal engine that measures one specific market phenomenon: the moment a short-horizon directional burst exhausts itself against a broader structural gradient. It is built on a single mathematical primitive - directional efficiency - applied at two horizons, and turns the gap between them into an exhaustion-detection framework.
This is not a mashup of existing indicators. The entire engine is derived from one calculation family: how cleanly price travels over a window. The regime classifier, the signal trigger, the risk engine, and the dashboard are all layers of that single concept rather than separate components.
---
Why This Indicator Exists
Most reversal tools fire on oscillator extremes or candlestick patterns. They answer the question "is price stretched?" but not "has the energy actually run out? " A market can stay stretched for a long time before reverting. PXR was built to answer a more precise question: when has a short-horizon momentum burst exhausted its energy against the prevailing structural direction? That moment - the exhaustion-and-recede - is what PXR isolates.
The phenomenon being studied can be observed on historical price data.
When price moves with high short-horizon efficiency in a direction that contradicts the medium-horizon efficiency gradient, that move is consuming energy faster than structure supports. Such bursts can appear to exhaust and then realign with the broader gradient on historical data. PXR visualizes that potential realignment as an observation worth studying.
---
Why a Trader Might Use It
Intraday traders on 5-minute and 15-minute charts frequently face counter-trend bursts that look like reversals but are actually just temporary dislocations. PXR offers a structured way to read those bursts: it waits for the burst to peak, confirms the peak has begun receding, and only then marks the realignment as armed. The next-bar open execution model means the entry price on the chart matches what a real-time observer could actually have achieved.
PXR is designed for traders who want a single coherent reading of market state - regime, bias, setup progression, and signal - rather than juggling multiple unrelated indicators.
---
The Concept
Imagine price as a hiker walking through terrain. Two things can be measured about that hiker over any window of time:
One - how far they ended up from where they started. This is transport.
Two - how much total ground they covered while getting there. This is agitation.
The ratio of transport to agitation is efficiency. If a hiker walked 100 meters in a straight line, transport equals agitation, and efficiency is 1.0 - perfectly directional. If a hiker zigzagged 500 meters total but ended up only 100 meters away, efficiency is 0.2 - most of the energy was wasted on the zigzag.
PXR computes this efficiency at two horizons simultaneously. The short horizon (around 35 minutes of bars, regardless of timeframe, by default) captures reactive bursts. The medium horizon (around 2 hours of bars by default) captures the structural gradient - the broader direction price is actually flowing in.
When the short-horizon efficiency spikes far from the medium-horizon efficiency, the two have dislocated. PXR normalizes this dislocation into a value called the Phase Gap. When the Phase Gap stretches to an extreme and then begins to recede, the short-horizon burst is exhausting. If the medium-horizon gradient points the opposite direction at that moment, PXR marks a realignment signal - the observed behavior is a possible realignment with the structural gradient.
---
What Makes This Different From a Standard Momentum Tool
Three architectural choices separate PXR from typical oscillator-based reversal tools.
First, the use of two-horizon efficiency phase-gap normalization. The raw difference between two efficiency readings is rescaled by its own rolling maximum so the threshold stays meaningful across all volatility regimes. A 0.6 reading means the same thing on a quiet day as on a volatile one.
Second, regime-conditional adaptive thresholds. The signal threshold is not a fixed constant. It adapts based on whether the market is currently classified as Extended (clean trend), Compressed (range), Transitioning (regime shifting), or Neutral. Each regime gets a different sensitivity, and each timeframe gets its own scaling on top of that.
Third, an exhaustion-and-recede state machine gated by structural gradient sign. The signal does not fire when the Phase Gap simply crosses a level. It fires only when the gap has first reached a qualified peak and then receded by a meaningful fraction of that peak - confirming exhaustion has begun - and only when that exhaustion direction opposes the sign of the medium-horizon efficiency. This is a directional fade of short-horizon energy against the prevailing structural gradient.
---
Mathematical Foundation
The script is built from three primitive calculations. All other logic flows from these.
Transport over n bars equals close minus close n bars ago. This measures net displacement.
Agitation over n bars equals the sum of absolute bar-to-bar price changes across that window. This measures total path length.
Efficiency over n bars equals transport divided by agitation. This produces a signed value bounded between -1 and +1. Positive values indicate net upward directional purity, negative values indicate net downward directional purity, and values near zero indicate chop.
The Phase Gap is the short-horizon efficiency minus the medium-horizon efficiency, divided by the rolling maximum of the absolute raw gap. This normalization keeps the Phase Gap roughly within plus or minus one regardless of market conditions.
A realignment signal fires when the Phase Gap has peaked beyond a regime-adjusted threshold and then receded by a meaningful fraction of that peak, AND the sign of the medium-horizon efficiency points in the direction opposite to the burst that just exhausted.
This calculation family is conceptually related to efficiency-ratio style measurements. PXR's originality lies in the multi-horizon phase-gap construction, the regime-adaptive thresholding, and the exhaustion-and-recede state machine.
---
Recommended Timeframes and Markets
PXR is built for intraday operation. The timeframe-adaptive logic is tuned for 1-minute through 15-minute charts. The default Auto-Scale setting recalibrates the horizons so the same physical time window of analysis is used regardless of timeframe.
The phenomenon PXR studies appears most cleanly on liquid intraday instruments. Crypto majors such as BTCUSDT and ETHUSDT on 5-minute and 15-minute charts work well because crypto exhibits meaningful path tortuosity - the agitation-to-transport ratio carries real information. Index futures such as NQ and ES on 5-minute and 15-minute charts also work, though session boundaries can affect the normalization window on overnight sessions.
PXR is built for intraday use. Higher timeframes such as 1H, 4H, or daily may behave differently because the regime thresholds and recede fractions are tuned for intraday energy cycles rather than multi-day structural shifts.
---
Chart Examples
The two examples below are illustrative historical signals chosen to show the engine's mechanics and visual elements. They are not representative of typical or expected outcomes. Many signals fail and reach the INVALIDATION level instead. These examples are educational only.
1. Example - Bull Realignment on BTCUSDT 15m
The annotated chart shows a complete PXR realignment cycle.
Price experienced a sharp short-horizon bearish burst from roughly 77,650 down to 76,150. During this drop, the medium-horizon efficiency gradient remained bullish - the slower 24-bar window still carried the structural upward bias from earlier hours. The yellow diagonal line traces this bullish medium-horizon gradient that the bearish burst was working against.
At the bottom of the move, the Phase Gap reached its negative peak . The bearish burst's energy was fully spent. The yellow rectangle marks the exhaustion zone where two indecision candles stalled the fall.
Beginning shortly after, the Phase Gap began receding from its negative peak. Once it had receded by the configured fraction, the exhaustion-and-recede condition was satisfied. The medium-horizon efficiency was still positive, so the structural gradient gate qualified the direction. The state machine flipped upward and the signal armed on the close of the trigger bar.
On the next bar, the entry executed at the open at 76,410. The four rails drew automatically - INVALIDATION at 75,982, TARGET 1 at 76,923, TARGET 2 at 77,351.
In this illustrative example, the price moved upward after the signal and later reached TARGET 1 and TARGET 2. This is one historical instance only. Outcomes vary, and many signals reach the INVALIDATION level instead.
2. Example - Bear Realignment and Engine
This chart illustrates three aspects of PXR that complement the phenomenon view.
First, the engine is bidirectional. The red downward callout marks a BEAR realignment signal. A short-horizon bullish burst pushed price upward over several hours. When that burst exhausted near 77,400, the Phase Gap reached its positive peak . As the gap began receding and the medium-horizon gradient pointed bearish, the exhaustion-and-recede condition triggered a BEAR signal . The four rails drew at INVALIDATION 77,465, ENTRY 76,765, TARGET 1 75,925, and TARGET 2 75,226.
Second, the regime ribbon is visible across the background. Subtle orange tints mark COMPRESSED periods where both efficiencies are low and the market is consolidating. Subtle cyan tints mark TRANSITIONING periods where the Phase Gap has stretched far and a regime shift is underway. These background colors give an at-a-glance read of market state without requiring a glance at the dashboard.
Third, the live dashboard in the top-right shows engine state in real time. State, Setup, Bias, Phase Gap, and Last all update on every bar. The five-line legend overlay explains what each field represents. At the moment of this screenshot, the BEAR signal was Triggered, the regime was COMPRESSED , and the Phase Gap reading was -0.07 - a sign the dislocation had largely normalized after the signal fired.
Together with the dashboard and regime ribbon, the engine provides a continuous reading of market state - not just point-in-time signals, but a live framework that contextualizes each signal as it forms.
---
How to Read the Chart
PXR draws several elements. Each one represents something specific.
The PHASE EXHAUSTION label, marked with an upward or downward arrow, appears at the bar where the signal arms. An upward arrow with the text " Realign Up " means a short-horizon bearish burst has exhausted against a bullish gradient , and the studied behavior is upward realignment. A downward arrow means the opposite. The label is anchored outside the bar's price extreme so it does not clash with other chart elements.
The ENTRY rail is a dashed line drawn at the open of the bar immediately after the signal armed. This is the reference entry level. The script does not place orders - it visualizes the reference level a real-time user could have acted on.
The INVALIDATION rail is a solid red line. If price reaches this level, the realignment thesis is rejected. This level is calculated as the worse of two values: a structural swing high or low with an ATR buffer, or a minimum ATR-floored distance from entry. Whichever is further from entry is used. This guarantees the invalidation level is never crammed inside short-term noise.
The TARGET 1 and TARGET 2 rails are teal solid lines placed at user-configurable R-multiples of the invalidation distance. These represent profit objectives. The defaults are 1.2R and 2.2R, which can be modified in the Risk Settings group.
All four rails extend forward bar by bar while the trade is conceptually active, and their labels trail slightly ahead of the live bar so they remain visible at the right edge of the chart.
The regime ribbon is a subtle background tint. Red indicates an Extended regime, orange indicates Compressed, cyan indicates Transitioning, and faint grey indicates Neutral. The ribbon helps users see at a glance which regime the engine currently classifies the market in.
The active tint colors bars green during an active long observation and red during an active short observation. This is purely visual and can be toggled off.
---
How to Read the Dashboard
The dashboard sits in the top-right of the chart and shows six live readings.
State shows the current regime classification. Extended means the medium-horizon efficiency is high - the market has a clean directional gradient. Compressed means both efficiencies are low - the market is ranging. Transitioning means the Phase Gap has stretched far - a regime change is in progress. Neutral means none of the above.
Setup shows the realignment setup progress. No Setup means nothing is forming. Forming means the Phase Gap has reached 60 percent of the threshold. Watching means the Phase Gap has reached 85 percent of the threshold - a setup is building but no signal has fired yet. Armed means a confirmed signal has fired and is awaiting next-bar execution. Triggered means a trade observation is currently active.
Bias shows the direction of the medium-horizon efficiency gradient. BULL means the structural gradient points up. BEAR means it points down. A dash means it is neutral.
Phase Gap shows the live normalized Phase Gap value, roughly bounded within plus or minus one. The color brightens when the absolute value exceeds the threshold.
Last shows the direction of the most recently triggered realignment.
---
Settings Explained
Core Settings.
Auto-Scale Horizons: when on, the Short and Medium horizons are automatically recomputed per timeframe so the analysis covers similar physical time on every chart. When off, the manually entered horizon lengths are used. Recommended on for users who switch between timeframes.
Short Horizon: bars used to measure short-horizon efficiency. Lower values are more reactive but noisier. Default 7. Ignored when Auto-Scale is on.
Medium Horizon: bars used to measure the structural efficiency gradient. Should span one meaningful intraday cycle. Default 24. Ignored when Auto-Scale is on.
Phase Gap Threshold: the normalized Phase Gap level required for a peak to qualify as exhaustion-grade. Higher values yield fewer but stronger signals. Default 0.58.
Cooldown Bars: minimum bars between two consecutive signals. Prevents clustering during noisy regimes. Default 3.
Risk Settings.
ATR Length: the ATR window used for the volatility-based stop floor. Default 14.
ATR Floor Multiplier: minimum stop distance expressed as a multiple of ATR. Ensures the stop is never inside short-term noise. Default 1.0.
TP1 R-Multiple: first profit target expressed as a multiple of the invalidation distance. Default 1.2.
TP2 R-Multiple: final profit target expressed as a multiple of the invalidation distance. Default 2.2.
Visuals.
Show Regime Ribbon: toggles the background regime tint.
Show Active Tint: toggles the green or red bar coloring during an active observation.
Show Dashboard: toggles the top-right state dashboard.
---
Execution Model - Why This Is Honest
PXR uses a strict two-bar workflow. The signal arms only on the close of a confirmed bar - this is enforced by a barstate-confirmed gate inside the engine. The entry then executes at the open of the next bar. This means the entry price shown on the chart matches what a real-time user could have achieved by placing a market order the moment the signal arms.
This workflow prevents the most common form of repaint illusion. The script does not use lookahead data. It does not use future bars. It does not modify past signal positions. Historical signals on the chart represent the same logic that fires in real time.
---
What the Indicator Does Not Do
PXR does not predict future price. It identifies a measurable energy state and labels the observation. It does not place trades. It does not guarantee outcomes. It does not work on all markets in all conditions. It is not a substitute for risk management, position sizing, or contextual judgment.
The realignment behavior is an observed tendency on historical data, not a certainty or guarantee.
The invalidation rail exists precisely because failure is expected and must be bounded.
---
Limitations You Should Know
Session boundaries on instruments such as NQ and ES can compress the rolling normalization window during overnight low-liquidity periods. This can make the Phase Gap appear weaker than it would on a continuous session.
The engine is intentionally reversal-focused. It does not generate continuation signals. In strong trending markets, reversal signals may underperform compared to a continuation tool because the structural gradient is not exhausting - it is reinforcing itself.
Auto-Scale produces horizon values that may differ substantially from the manual input defaults. If a user toggles Auto-Scale off after operating with it on, the manual values will be used immediately and behavior will shift.
On very long historical lookbacks at 1-minute resolution, the efficiency calculation may require additional processing time due to the bar-by-bar path-length computation. If performance is a concern, reducing the Medium Horizon input or enabling Auto-Scale on faster timeframes will reduce the load.
---
Disclaimer
This script is provided for educational and analytical use only. It does not provide financial, investment, or trading advice. It does not guarantee any specific outcome. Past behavior of the indicator on historical data does not imply future results. Markets carry risk. Use independent judgment, sound risk control, and full market context before acting on any signal or observation produced by this tool. The author is not responsible for any decisions made on the basis of this script.
Indicator

Polar Auto Fibonacci Pro - [Rehan Khanani]Polar AutoFib Pro
Polar AutoFib Pro is a professional all-in-one trading indicator that combines two powerful systems into a single clean overlay—a trend-following buy/sell signal engine and an automatic Fibonacci retracement tool. No need to juggle multiple indicators; everything you need is right here on the chart.
─────────────────────────────
HOW IT WORKS
─────────────────────────────
This indicator runs two engines simultaneously:
Engine 1 — PolarEdge Signal System
Generates high-probability Buy and Sell signals by combining three confirmations:
1. EMA 200 — The primary trend filter. When the price is above the EMA, the system looks for Buy setups. When the price is below, it looks for Sell setups. This keeps you trading with the dominant trend at all times.
2. Supertrend — A dynamic volatility-based band that confirms trend direction. The green band confirms bullish momentum; the red band confirms bearish momentum.
3. RSI (Relative Strength Index) — Used as a momentum trigger. A BUY signal fires when RSI crosses up from the oversold zone (default 30). A SELL signal fires when RSI crosses down from the overbought zone (default 70).
All three conditions must align simultaneously—this triple-confirmation logic filters out weak and false signals.
Engine 2 — Auto Fibonacci Retracement
Automatically detects the most recent swing high and swing low using pivot point calculations, then draws the complete Fibonacci retracement grid in real time — no manual drawing required.
The indicator identifies whether the last major pivot was a high or a low, determines the swing direction, and plots all key levels accordingly. When a new swing forms, the levels update automatically.
─────────────────────────────
FIBONACCI LEVELS INCLUDED
─────────────────────────────
0 / 0.236 / 0.382 / 0.5 / 0.618 / 0.786 / 1
1.618 / 2.618 / 3.618 / 4.236
Each level is independently toggleable with its own color control. You can show values as decimals or as percentages. Labels can be positioned on the left or right side of the chart. Line extension can be set to Left, Right, or Both directions.
─────────────────────────────
KEY FEATURES
─────────────────────────────
- Triple-confirmation Buy/Sell signals (EMA + Supertrend + RSI)
- Automatic Fibonacci retracement — no manual drawing needed
- Real-time swing detection using pivot high/low logic
- Dynamic trend background (subtle green/red shading behind candles)
- 11 fully customizable Fibonacci levels with individual color pickers
- Toggle each Fib level on/off independently
- Show prices and/or level values on labels
- Labels position: Left or Right
- Line extension: Left, Right, or Both
- Reverse Fib direction toggle
- Works on all assets: Forex, Crypto, Commodities, Indices, Stocks
- Works on all timeframes
- 6 built-in alert conditions (see Alerts section below)
─────────────────────────────
SETTINGS GUIDE
─────────────────────────────
Group 1 — PolarEdge Signal Settings
- Trend Baseline EMA: Period for the main trend filter (default 200)
- RSI Length: RSI calculation period (default 14)
- RSI Overbought Level: Sell trigger threshold (default 70)
- RSI Oversold Level: Buy trigger threshold (default 30)
- Show EMA 200: Toggle the EMA line on/off
- Show Supertrend Bands: Toggle the Supertrend lines on/off
Group 2 — Auto Fibonacci Settings
- Pivot Depth: Number of bars to look back for swing detection (default 10). Lower = more sensitive, Higher = fewer but stronger pivots
- Reverse Fib Direction: Flips the Fib measurement direction
- Extend Left / Right: Controls how far Fib lines extend on the chart
- Show Prices: Displays exact price on each level label
- Show Level Values: Displays the Fib ratio on each level label
- Level Format: Choose between decimal values or percentage display
- Labels Position: Place labels on the Left or Right side
Group 3 — Fibonacci Levels
- Toggle each of the 11 levels individually
- Customize the value and color of every level
─────────────────────────────
ALERT CONDITIONS (6 Total)
─────────────────────────────
1. BUY Alert — fires on every confirmed Buy signal
2. SELL Alert — fires on every confirmed Sell signal
3. Any Signal — fires on either Buy or Sell
4. Fib 0.618 Cross — price crosses the Golden Ratio level
5. Fib 0.5 Cross — price crosses the midpoint level
6. Fib 0.382 Cross — price crosses the key retracement level
To activate: click the alarm clock icon on the indicator, select your desired condition, and set your notification method.
─────────────────────────────
HOW TO USE
─────────────────────────────
Step 1 — Identify trend direction using the EMA 200 and the background color. Green background means bullish bias; red background means bearish bias.
Step 2 — Watch for a BUY or SELL label to appear. This confirms all three conditions (EMA, Supertrend, RSI) have aligned.
Step 3 — Use the automatically drawn Fibonacci levels to plan your entry, stop loss, and take profit targets. Common setups: enter near the 0.382 or 0.5 retracement, target the 0 or -0.236 extension, stop below the 0.618 or 0.786 level.
Step 4 — Set alerts on your preferred Fibonacci levels to be notified when price reaches key zones.
─────────────────────────────
RECOMMENDED TIMEFRAMES
─────────────────────────────
- Scalping: 1m, 5m, 15m
- Intraday: 30m, 1H
- Swing Trading: 4H, Daily
- Position Trading: Weekly
The indicator adapts to any timeframe automatically.
─────────────────────────────
DISCLAIMER
─────────────────────────────
This indicator is a technical analysis tool designed to assist in identifying potential trading opportunities. It does not guarantee future results. Always apply proper risk management and conduct your own analysis before entering any trade. Past signal performance is not indicative of future results. Indicator

Ichimoku Adaptive [Gabremoku]Ichimoku Adaptive is a full Ichimoku Cloud framework that combines the traditional Classic settings with an optional Adaptive mode that automatically scales the core Ichimoku periods according to market volatility.
The script keeps the original logic of the Ichimoku system — Tenkan, Kijun, Senkou Span A, Senkou Span B, Chikou, and Kumo structure — while adding a volatility-based adjustment engine that can make the framework more reactive or more stable depending on current conditions. The classical Ichimoku model is designed to show trend direction, momentum, and dynamic support/resistance in a single view.
What it shows
☁️ Full Ichimoku structure — Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, optional Chikou Span, and forward Kumo projection.
🧠 Classic or Adaptive mode — use standard Ichimoku parameters or let the indicator adjust its internal lengths according to ATR-based volatility behavior. Adaptive indicators are commonly designed to become more responsive or more conservative depending on changing volatility conditions.
🌈 Dynamic Kumo gradient — the cloud color and fill intensity vary based on bullish/bearish structure and cloud thickness.
🏷️ TK Cross signals — optional LONG and SHORT labels appear when Tenkan crosses above or below Kijun. Tenkan/Kijun crosses are widely used as Ichimoku signals and are often considered stronger when aligned with price position relative to the cloud.
🪧 Dashboard — displays mode, trend state, price vs Kumo location, Tenkan/Kijun relationship, active parameters, and ATR percentage.
📍 Last value labels — optional labels for Tenkan, Kijun, Span A, and Span B.
Core logic
This script is built around the classic Ichimoku reading process:
price vs cloud
Tenkan vs Kijun
future cloud structure
optional Chikou confirmation
In standard Ichimoku interpretation:
price above the cloud suggests bullish structure
price below the cloud suggests bearish structure
price inside the cloud suggests transition or indecision
This indicator keeps that framework intact, then extends it with an adaptive period engine.
Adaptive mode
In Classic mode, the script uses the traditional fixed settings:
Tenkan
Kijun
Senkou B
displacement
In Adaptive mode, those core lengths are scaled according to an ATR-based volatility ratio.
The idea is straightforward:
when volatility changes, fixed settings may become less efficient
adaptive scaling can make the Ichimoku framework more flexible across different environments
higher or changing volatility can justify a different sensitivity profile than calm market conditions
This does not replace classic Ichimoku logic — it simply changes the speed of the framework while keeping the same structural interpretation.
How to read it
A practical reading sequence is:
Check whether price is above, below, or inside the cloud.
Check whether Tenkan is above or below Kijun.
Observe whether the cloud is bullish or bearish.
Use TK crosses as triggers only after checking context.
In Adaptive mode, monitor how the active parameters shift as volatility changes.
In general:
Above Kumo + Tenkan > Kijun supports bullish trend logic.
Below Kumo + Tenkan < Kijun supports bearish trend logic.
Inside Kumo usually suggests weaker trend clarity or transition.
Features
✅ Full Ichimoku Cloud framework
✅ Classic fixed-parameter mode
✅ Adaptive ATR-based mode
✅ Configurable Tenkan / Kijun / Senkou B / displacement
✅ Dynamic Kumo gradient visualization
✅ Optional Tenkan, Kijun, Senkou A, Senkou B, and Chikou display
✅ TK cross signal labels
✅ Dashboard with live state information
✅ Last-value labels for key lines
✅ Built-in alert conditions for bullish and bearish TK crosses
Notes
This indicator is best used as a context and structure tool, not just as a crossover script. Ichimoku signals are generally stronger when multiple elements align, especially price position relative to the cloud, Tenkan/Kijun direction, and overall Kumo structure.
Author: Gabremoku
Pine Script v6 Indicator

Multi MA Framework [Gabremoku]Multi MA Framework is a flexible multi-moving-average overlay built for traders who want a clean and fully customizable MA workspace directly on the chart.
The indicator lets you plot up to four independent moving averages, each with its own:
visibility toggle
length
MA type
color
This makes it useful for traders who want to combine fast and slow averages, compare SMA vs EMA behavior, or build a personalized trend framework without loading multiple separate indicators.
What it shows
📈 Up to 4 Moving Averages — each line can be configured independently and displayed only when needed.
⚙️ SMA or EMA per line — choose the moving average type separately for each MA. SMA gives equal weight to all values in the period, while EMA gives more weight to recent prices and typically reacts faster to change.
🏷️ End Labels — optional right-side labels show each MA name, type, and length.
☁️ Cloud Fills — optional fills between:
MA 1 / MA 2
MA 3 / MA 4
These clouds help visualize alignment and separation between faster and slower averages.
Core idea
This script is designed as a moving average framework, not a rigid strategy.
Moving averages are commonly used to:
identify trend direction
smooth noisy price action
monitor dynamic support and resistance
compare short-term and long-term market structure
By allowing different lengths and SMA/EMA choices on every line, the script makes it easy to create your own structure, for example:
fast trend stack
swing trend map
long-term bias model
crossover-based workflow
How to use
A practical way to use the framework is to combine shorter and longer averages.
For example:
a shorter MA can track immediate momentum
a medium MA can define swing direction
a longer MA can define higher-level trend bias
When multiple moving averages align in the same direction, traders often interpret that as stronger trend structure. Crossovers between faster and slower averages are also widely used to monitor possible trend shifts, although they are lagging by nature.
Example setups
Here are some common ways this framework can be configured:
Trend stack: 10 EMA / 20 EMA / 50 EMA / 200 SMA
Swing trader view: 20 EMA / 50 SMA / 100 SMA / 200 SMA
Minimal structure: show only 2 lines and enable one cloud
Cross comparison: use SMA on one line and EMA on another with the same or similar length to compare responsiveness
Because EMA reacts faster and SMA is smoother, combining both can help balance responsiveness and stability.
Features
✅ Up to 4 fully independent moving averages
✅ SMA or EMA selection for each line
✅ Custom length for each MA
✅ Custom color for each MA
✅ Visibility toggle for every line
✅ Adjustable line width
✅ Optional right-side end labels
✅ Optional MA1/MA2 cloud fill
✅ Optional MA3/MA4 cloud fill
✅ Clean chart overlay design
Notes
This indicator is best used as a custom trend structure tool rather than a standalone signal engine. Moving averages are inherently lagging indicators, so they are most effective when used to define context and trend bias rather than predict reversals on their own.
Author: Gabremoku
Pine Script v6 Indicator

Structural Inefficiency Radar [JOAT]Structural Inefficiency Radar
Introduction
Structural Inefficiency Radar measures regression fair value, residual z-score, path asymmetry, volatility clustering, and repair/extension force.
This open-source indicator is designed as a context tool, not a standalone trading system. It focuses on explaining the current market state with restrained visuals and confirmed-bar logic where signals are used.
Core Concepts
1. Regression Fair Value
A linear regression spine represents statistical fair value.
2. Residual Z-Score
Distance from fair value is normalized by residual standard deviation.
3. Path Asymmetry
Upward and downward path movement are compared to detect directional distortion.
4. Repair and Extension Force
Deviation, slope, asymmetry, and clustering determine whether price is extending or repairing.
z = (close - fairValue) / residualDeviation
Features
Fair-value spine
Inner and outer inefficiency bands
Residual z-score
Repair and extension scoring
E+ and E- labels plus repair markers
Input Parameters
Regression and residual windows
Deviation gate
Repair quality gate
Cooldown
Bands, candles, and HUD toggles
How to Use This Script
Use the spine and bands to frame structural stretch. Extension labels indicate directional inefficiency; gold markers indicate fair-value repair.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
SIR is original in combining regression residuals, path asymmetry, clustering, repair force, and extension force.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades
Indicator

Bollinger Bands Gradient [Gabremoku]Bollinger Bands Gradient is an enhanced Bollinger Band overlay designed to turn classic volatility bands into a richer visual and signal-based trading framework.
The indicator keeps the core structure of Bollinger Bands — Upper Band, Basis, and Lower Band — but adds a dynamic gradient fill, squeeze detection, state-based bar coloring, strategy-side signal logic, and an optional dashboard for fast chart interpretation. Bollinger Bands are widely used to read volatility compression, expansion, and breakout behavior, especially when traders want more context than a standard three-line display can offer.
This script is built for traders who want Bollinger Bands to feel more alive: clearer transitions, better volatility awareness, and cleaner breakout mapping directly on price.
What it shows
🌈 Dynamic Gradient Fill — the area between Upper/Basis and Basis/Lower is filled with adaptive color intensity that changes according to price distance from the basis.
🗜️ Squeeze Detection — the script monitors Bollinger Band compression and flags low-volatility states when band width contracts relative to its recent range. Bollinger squeezes are commonly used to identify volatility contraction before a possible breakout.
🎨 State-Based Coloring — basis line, bands, bars, and optional background can all shift visually depending on whether the market is bullish, bearish, neutral, or in squeeze mode.
📍 Breakout Signals — optional labels for:
BUY / SELL in Long mode
SHORT / CLOSE in Short mode
🪧 Dashboard — a compact panel showing current state, strategy mode, sequence status, band width, range position, and squeeze condition.
🏷️ Last Value Labels — optional live labels for Upper, Basis, and Lower band values.
Core logic
This script combines volatility structure and signal sequence control.
At the core, Bollinger Bands define the dynamic range around a moving average using standard deviation, which helps visualize whether price is relatively stretched or compressed versus its recent behavior. Narrow bands usually reflect low volatility, while wide bands reflect expansion.
On top of that, this version introduces:
a basis color gradient tied to price position inside the band structure,
a fill intensity model tied to distance from the basis,
and a state machine that prevents repeated entry signals in the same sequence.
That makes the indicator more structured than a plain breakout marker, especially for traders who want cleaner signal flow.
Signal logic
The indicator supports two operating modes:
Long Mode
BUY = breakout above the Upper Band
SELL = breakdown below the Lower Band
Short Mode
SHORT = breakdown below the Lower Band
CLOSE = breakout above the Upper Band
This logic reflects one of the most common ways traders use Bollinger Bands: watching for volatility compression, then responding to expansion outside the bands. At the same time, Bollinger-based strategies can also be used for mean reversion, which is why breakout signals generally work best when confirmed by price structure, momentum, or volume.
Features
✅ Classic Bollinger Bands with selectable basis type
✅ Dynamic gradient fill above and below the basis
✅ Adaptive basis coloring based on price position
✅ Squeeze detection using band-width normalization
✅ Optional squeeze background highlighting
✅ Optional bar coloring by state
✅ Strategy-side selector: Long or Short
✅ Breakout signal state machine
✅ BUY / SELL / SHORT / CLOSE labels
✅ On-chart dashboard
✅ Optional last-value labels
✅ Fully customizable colors and style inputs
How to use
A practical reading flow is:
Watch for band contraction and squeeze conditions.
Treat that as a volatility compression phase.
Monitor for price expansion outside the bands.
Use the selected strategy mode to interpret the resulting signal sequence.
In practice:
tight bands + squeeze on = market compression
break above upper band = bullish expansion candidate
break below lower band = bearish expansion candidate
That said, Bollinger breakouts can fail in choppy environments, so many traders confirm them with momentum, volume, or higher timeframe structure rather than using them in isolation.
Notes
This indicator is designed as an enhanced Bollinger workflow tool, not as a complete trading system with full risk management. Bollinger Bands can support both breakout and mean-reversion approaches, so the best interpretation depends on market regime and confirmation methods.
Author: Gabremoku
Pine Script v6 Indicator

Indicator

Squeeze Momentum IQ Trade Management SimplifiedSqueeze Momentum IQ Trade Management Simplified
A trade management and position conviction engine designed to help determine whether to continue holding, manage cautiously, take profits, or avoid new entries.
Most indicators focus on finding entries.
Squeeze Momentum Nexus Conviction focuses on a different question:
"Does the trade still deserve my conviction?"
Rather than generating simple buy and sell signals, Conviction continuously evaluates trend quality, momentum behavior, efficiency, and confirmation conditions to determine whether current market conditions still support remaining in a trade.
The objective is to help traders avoid two common mistakes:
• Exiting strong trends too early
• Holding weakening trades too long
Core Concept
Conviction transforms multiple market variables into a simplified trade management framework:
HOLD
Strong trend quality and confirmation
Momentum remains healthy
Higher timeframe and trend conditions supportive
HOLD CAUTIOUSLY
Trend remains intact, but signs of weakening or conflict begin to appear
Increased probability of pullback or slower continuation
TAKE PROFIT / DO NOT ENTER
Trade quality deteriorating
Momentum weakening significantly
Choppy or conflicting conditions increasing
Features
Trade Quality Engine
Evaluates market conditions through a weighted scoring model using:
• Momentum behavior
• Trend confirmation
• Higher timeframe agreement
• Efficiency ratio
• Volatility state
• Expansion quality
Conviction State Engine
Converts raw calculations into actionable states:
HOLD
Strong continuation conditions
Trend quality remains elevated
HOLD CAUTIOUSLY
Moderate quality conditions
Continuation possible but with increasing caution
TAKE PROFIT / DO NOT ENTER
Weak conditions
Elevated risk of deterioration, pullback, or lower probability continuation
Visual Hold Zones
Vertical highlighted chart regions visually display current conviction states:
Green
HOLD
Orange
HOLD CAUTIOUSLY
Red
TAKE PROFIT / DO NOT ENTER
Designed to allow immediate interpretation directly from price action without requiring constant dashboard monitoring.
Simple Decision Dashboard
Displays only the essential information:
Action
HOLD
HOLD CAUTIOUSLY
TAKE PROFIT / DO NOT ENTER
Trade Quality
Current trade-grade evaluation
Score
Weighted confidence reading
Suggested Uses
Can be used for:
• Managing existing positions
• Scaling out of trades
• Holding trend positions longer
• Filtering poor continuation conditions
• Preventing emotional exits
• Avoiding lower quality entries
Works well alongside:
• Market structure
• Trend systems
• Volume Profile / POC analysis
• Supply and demand zones
• Higher timeframe bias
• Risk management systems
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

Indicator

Indicator

Renko Heatmap Pro [MarkitTick]💡 Multi-faceted trend analysis and price action visualization system engineered to filter out time-based market noise and strictly highlight price momentum. By computing synthetic Renko bricks directly on your traditional time-based chart, this tool overlays a completely volatility-adjusted perspective of the market. It seamlessly integrates a streak-based momentum heatmap, dynamic support and resistance tracking, and a comprehensive risk-management dashboard into a single, cohesive interface. This allows analysts to visualize trend maturity, identify precise structural shifts, and monitor key risk metrics without relying on lagging, time-dependent oscillators.
✨ Originality and Utility
Standard charting relies on fixed time intervals, which often introduces "noise"—price fluctuations that occur simply because time is passing, not because structural momentum is shifting. The utility of this indicator lies in its ability to reconstruct the market using Average True Range (ATR) based Renko methodology natively over standard candlesticks.
What sets this script apart is its Streak Engine and Gradient Color framework. Instead of merely showing bullish or bearish states, the indicator quantifies trend depth. It tracks consecutive directional blocks and dynamically adjusts the visual weighting (heatmap) based on the longevity of the trend. This is further hybridized with an automated risk-management engine that calculates dynamic Stop Loss (SL) and Take Profit (TP) levels, alongside trailing stops and historical support/resistance levels that visually "fade" as they age. This creates an all-in-one suite for trend-following and structural analysis.
🔬 Methodology and Concepts
● Renko Ticker Construction
The script bypasses standard open, high, low, close (OHLC) bar data for its core signals, instead utilizing a secondary data request to construct ATR-based Renko blocks. A Renko brick is only formed when price moves a specified distance, completely disregarding the time it takes to make that move. In this system, the brick size is defined by the ATR, ensuring the threshold adapts to current market volatility.
● The Streak Engine
Every time a new Renko brick is formed in the same direction as the previous one, the internal streak counter increases. If a bullish brick follows a bullish brick, the count iterates upward. If a bearish brick prints, the bullish streak breaks, resetting the count and initiating a bearish streak. This creates a quantitative measure of trend duration and exhaustion.
● Dynamic Risk Management Engine
Using the confirmed close of the previous Renko block, the system calculates algorithmic risk parameters. Stop Loss and Take Profit levels are calculated as distinct ATR multiples extending outward from the confirmed entry price. A trailing stop is also maintained, dynamically tightening behind the trend (higher in a bull trend, lower in a bear trend) and only resetting when the Renko structure reverses.
● Historical S/R Decay Logic
When a reversal occurs, the open price of that reversal block is recorded as a structural pivot. The indicator logs this price point and tracks its age (in bars). As time progresses, the visual representation of this level fades out, acknowledging the market theory that older, untested levels gradually lose their structural relevance compared to fresh pivots.
🎨 Visual Guide
● Heatmap Candles
Trend Maturation (Gradients): The candlestick bodies are overridden with a heatmap gradient. A new bullish trend starts with a deep blue color and transitions toward a bright cyan as the streak extends. A bearish trend starts deep red and transitions to a bright orange/yellow as it matures.
Stagnation: If a bar does not generate a new Renko block, it is colored a muted gray, signaling a period of consolidation where the volatility threshold hasn't been met.
● Structural Plot Lines
OC Core Zone: A semi-transparent filled channel on the chart representing the upper and lower boundaries of the current active Renko block.
Renko Midline: A dotted line tracking the exact mathematical center of the active block.
Reversal Close Circles: Prominent circular plots that appear exclusively when a structural trend reversal is confirmed, marking a potential entry or exit node.
Trailing Stop: A dashed line trailing behind the current price action, colored dynamically based on the active trend (cyan for bullish support, orange for bearish resistance).
Support/Resistance (S/R) Lines: Dotted horizontal lines extending from past reversal points. Their opacity visually fades the longer they remain on the chart.
● On-Chart Shapes and Labels
Signal Triangles: Distinct ▲ BUY (below bar) and ▼ SELL (above bar) shapes accompanied by text, printed precisely when the Renko direction shifts.
Box Count Label: A small, dynamic text label appearing at reversals to indicate exactly how many consecutive boxes the previous structural leg lasted.
● The Dashboard Panel
Located in the top right corner, this heads-up display provides real-time quantitative metrics:
Trend Bias: Text readout of the current structural direction (Bull/Bear).
Streak Depth: A 10-block visual bar (e.g., ████░░░░░░) showing how far along the current trend is relative to the user-defined maximum gradient depth.
R:R Quality: A visual score rating the current Reward-to-Risk ratio based on the dynamic SL/TP levels.
Actionable Prices: Exact price readouts for Entry, Stop Loss, Take Profit, and the Trailing Stop.
📌 Important note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Trend Identification and Exhaustion
Traders can monitor the Heatmap Candles to gauge both direction and maturity. When the candles transition from their starting colors (dark blue / deep red) to their terminal colors (bright cyan / bright orange), it indicates that the trend streak is becoming highly extended. An extended streak does not automatically imply a reversal, but it suggests momentum has been sustained for an extended period, which may precede a consolidation or pullback.
● Entry and Execution
A primary use case is waiting for a confirmed trend shift. When a reversal is validated, the indicator plots the Reversal Close Circle and the ▲ BUY / ▼ SELL shape. Traders can use the Dashboard Panel to immediately read the calculated Entry, SL, and TP prices.
● Managing Risk In-Trade
Once a position is active, the Trailing Stop dashed line provides a dynamic, structural level to trail a stop-loss. Additionally, traders can monitor price action as it approaches the historical dotted S/R lines. If price approaches a sharply colored (recent) S/R line, higher friction is expected. If it approaches a heavily faded (old) line, the level may carry less structural weight.
Note on Data Resolution: Because this tool queries secondary Renko data using the current chart's resolution and employs lookahead functionality on historical data, real-time current-bar fluctuations may briefly cross thresholds before closing. Decisions should strictly be made on confirmed bar closes, as indicated by the script's internal logic.
⚙️ Inputs and Settings
● ◈ Renko
ATR Length: The lookback period used to calculate the Average True Range, determining the size of the underlying Renko bricks.
ATR Resolution ×: A multiplier to scale the resolution up for higher-timeframe smoothing.
● ◈ Visuals
Bull/Bear Colors (Start & End): Customization for the heatmap gradients. You can define the exact color of a fresh trend and an exhausted trend.
Gradient Streak Depth: The number of consecutive bricks required to reach the "End" color. A higher number stretches the gradient over a longer trend.
● ◈ Risk Management
Dynamic SL/TP in Alerts: Toggles whether the SL and TP values are dynamically injected into the outgoing Webhook alert JSON.
SL / TP ATR Multiplier: Defines the distance (in ATR units) from the entry point to calculate the Stop Loss and Take Profit levels.
Show Trailing Stop Line: Toggles the visibility of the dynamic trailing stop boundary.
● ◈ Structure Analysis
Show S/R Levels & Max Levels: Toggles the historical reversal lines and sets a hard limit on how many previous levels are maintained on the chart to prevent clutter.
S/R Fade Age (bars): Determines how quickly the S/R lines lose their opacity as time passes.
● ◈ Webhook Actions
Configurable string inputs to match your specific execution bot commands (e.g., "long", "short", "closelong"). These are embedded into the JSON payload triggered by the indicator's alerts.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Market Noise and the Random Walk
In quantitative finance, high-frequency price data is often modeled with components of a Brownian motion or a Random Walk, where short-term movements contain significant "noise" (stochastic variation) independent of the underlying drift (trend). Standard time-based sampling captures all of this variance. By utilizing a Renko construction, this indicator applies a discrete filtration mechanism. It mathematically suppresses localized stochastic volatility by requiring price to traverse a minimum Euclidean distance (the ATR block size) before registering a state change.
● Volatility Clustering and Adaptive Thresholds
Mandelbrot and subsequent econometricians noted that market volatility clusters—periods of high variance are followed by high variance. Using a static brick size in Renko fails to account for leptokurtic market distributions. By anchoring the block size to the Average True Range, the indicator's filtration threshold becomes adaptive. During periods of volatility expansion, the required threshold widens, preventing the streak engine from being whipsawed by natural variance expansion.
● Momentum Decay and Mean Reversion Probability
The Gradient Streak Depth concept relies on the statistical premise of mean reversion following extended standard deviations from a mean. While trends can persist, the probability of a structural pullback increases as the streak count grows. The heatmap visually represents this probability density—translating a quantitative sequential count into a qualitative visual exhaustion metric, aiding in the assessment of asymmetric risk distribution.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Volume Profile Enhanced PeriodicVolume Profile Enhanced Periodic
Volume Profile Enhanced Periodic is an advanced profile framework designed to analyze and visualize how volume is distributed across price levels over repeating time periods such as days, weeks, months, quarters, and years.
Unlike traditional fixed-range profiles that focus on a single visible section of the chart, this indicator automatically generates separate volume profiles for each selected historical period, allowing traders to study how price acceptance, value migration, and high participation areas evolve over time.
The objective is to identify where market participants historically concentrated activity and monitor how these areas shift as market structure develops.
By combining period-based volume profiles, Point of Control tracking, Value Area analysis, extending POC levels, and profile projection tools, the indicator is designed to provide additional context for support/resistance behavior, market acceptance, and evolving market structure.
Features
• Automatic Day / Week / Month / Quarter / Year profiles
• Historical profile generation across multiple periods
• Solid histogram profile display
• Profile direction toggle (Left or Right facing)
• Point of Control (POC) detection
• Previous POC tracking
• Value Area High (VAH) and Value Area Low (VAL) calculations
• Extend POC levels until price interaction
• Extend Value Area fields into future periods
• Adjustable Value Area extension brightness
• Custom profile width controls
• Historical profile management controls
• Lightweight performance optimization
• Naked labels without background flags
• Dynamic labels for:
• POC
• Previous POC
• VAH
• VAL
Alerts Included
• Price Crossed POC
• Price Crossed VAH
• Price Crossed VAL
• POC Shifted Higher
• POC Shifted Lower
• Price Entered Value Area
• Price Exited Value Area
Potential Use Cases
• Identify historical high participation zones
• Locate support and resistance areas
• Monitor value migration over time
• Track changing market acceptance
• Identify developing imbalance areas
• Observe POC movement between periods
• Use extended POC levels as potential reaction zones
• Add confluence to existing systems
• Study auction behavior and market structure
Interpretation
POC (Point of Control)
Represents the price level where the highest concentration of volume occurred during the selected period.
VAH (Value Area High)
Represents the upper boundary of the selected value area where the majority of trading activity occurred.
VAL (Value Area Low)
Represents the lower boundary of the selected value area.
Previous POC
Displays prior dominant participation levels for historical context.
Extended POC
Extends POC levels forward until price revisits or crosses through them, potentially highlighting important market interaction zones.
Extended Value Area Field
Projects the previous period's value area into future price action for additional context regarding acceptance and rejection zones.
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

Kinetic Inertia Field [JOAT]Kinetic Inertia Field
Introduction
Kinetic Inertia Field models price like a noisy particle using velocity, acceleration, jerk, kinetic energy, potential displacement, and equilibrium deviation.
This open-source indicator is designed as a context tool, not a standalone trading system. It focuses on explaining the current market state with restrained visuals and confirmed-bar logic where signals are used.
Core Concepts
1. Velocity and Acceleration
Log returns are normalized by volatility to create velocity, then differentiated into acceleration and jerk.
2. Kinetic Energy
Inverse volatility acts as a mass proxy and squared velocity creates energy context.
3. Equilibrium Displacement
A regression/VWAP blend creates a fair path and ATR-normalized displacement.
4. Inertia Field
Energy, acceleration, and displacement combine into inertial up, inertial down, or elastic state.
kineticEnergy = 0.5 * mass * velocity * velocity
Features
Velocity, acceleration, and jerk model
Kinetic and potential energy scoring
Regression/VWAP equilibrium
Energy rails and impulse trace
K+ and K- labels plus snapback markers
Input Parameters
Velocity smoothing
Volatility memory
Equilibrium horizon
Energy and inertia gates
Cooldown and display toggles
How to Use This Script
Use K+ and K- as confirmed high-energy state changes. Gold markers show elastic snapback conditions.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
KIF is original in applying kinetic energy, potential displacement, and inertia scoring to price-state analysis.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades
Indicator

Synapse Trail Pro [WillyAlgoTrader]◆ SYNAPSE TRAIL PRO — FREE & OPEN-SOURCE
Synapse Trail Pro is an overlay indicator that fuses a ratcheted ATR trail, a 3-factor market regime engine, a 5-factor signal quality score, and a complete risk-management layer (SL + TP1/TP2/TP3 + automatic break-even) into one decision-support system. Every signal arrives pre-graded (A / B / C), pre-leveled (SL and three targets drawn on the chart), and pre-contextualized (regime, HTF bias, volume, RSI, ATR percentile — all in one dashboard).
The core problem it solves: classic SuperTrend-style trails fire too many signals in choppy markets, and the trader is left guessing which ones to trust. Synapse Trail Pro keeps the clean visual of an ATR trail but scores each signal 0–100 using multi-factor confluence and tells you the market regime in plain language — so you know at a glance whether the chart wants a trend signal taken or skipped.
This is fully free, open-source Pine v6 — no paywall, no invite, no DM required. Use it, study it, adapt it.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A trail line alone tells you direction. A quality score alone tells you confidence. A regime filter alone tells you environment. None of these are useful in isolation — a high-confidence signal in a choppy regime is still a coin flip, and a clean trail flip in a strong trend with no volume confirmation can still fail.
Synapse Trail Pro fuses them into a single pipeline:
ATR Trail (with optional ratchet) → Direction Flip Detection → Regime Score (ADX + Choppiness + R²) → Quality Score (HTF + Volume + RSI + Regime + Break Strength) → Grade A/B/C → Risk Levels (preset SL + TP1/TP2/TP3) → Break-Even after TP1 → Lifecycle Stats
The trail produces the raw signal. The regime engine tells you whether the market is even capable of trending right now. The quality score weighs five independent confluence factors against that regime. The grade compresses the score into a single letter you can act on. The risk layer then drops your SL, three TPs, and break-even logic onto the chart automatically — so the moment the signal fires, you already see the trade plan.
Without the regime engine, you'd take signals in chop. Without the quality score, you'd treat every flip equally. Without the risk levels, you'd still be calculating SL and TPs manually after the signal. Each component covers a blind spot of the others.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Ratcheted ATR Trail with Adaptive Volatility Multiplier.
The trail center is an EMA (default 21) of close, with bands at ±ATR × multiplier (default base 1.618 — the golden ratio). When the Ratchet option is on (recommended), the lower band only moves up in a long position and the upper band only moves down in a short — never loosens, only tightens. On a direction flip, the band resets to its raw value.
When the Adaptive Volatility Multiplier is on, the base multiplier auto-scales based on the 100-bar ATR percentile rank:
— Low vol (rank < 30) → multiplier × 0.8 (narrower band, catch the move earlier)
— Mid vol (30–70) → multiplier × 1.0 (default)
— High vol (rank > 70) → multiplier × 1.25 (wider band, avoid noise wicks)
Why this matters: a fixed multiplier overreacts in calm markets and gets whipsawed in volatile ones. Percentile-rank scaling keeps the trail behavior consistent across market conditions.
2️⃣ Composite Market Regime Score (0–100) — three-factor blend.
Each bar, three independent measurements vote on whether the market is trending or choppy:
— ADX (weight 40%) : standard Directional Movement ADX, length 14. Score = min(ADX / 50 × 100, 100). High ADX = strong directional pressure.
— Choppiness Index (weight 35%) : ChopIdx = 100 × log10(sum(TR, N) / (highest(high, N) − lowest(low, N))) / log10(N), then inverted to a trend score: chopScore = 100 − ChopIdx. Length 14. Low choppiness = clean directional movement.
— R² Linearity (weight 25%) : R² = correlation(close, bar_index, 50)². Measures how linearly price is moving. R² near 1 = clean trend, R² near 0 = pure noise.
Final regime score = ADX × 0.40 + chopScore × 0.35 + R² × 100 × 0.25.
Thresholds:
— Score ≥ 60 → Trending (green)
— Score < 35 → Choppy (red) — signals flagged with ⚠ or hard-skipped
— Between → Mixed (yellow)
Why three indicators instead of one: ADX measures strength but lags. Choppiness measures range expansion but can spike on news. R² measures linearity but is noisy on short windows. Combined and weighted, they cover each other's failure modes.
3️⃣ 5-Factor Quality Score (0–100) with letter grading.
When a trail-flip signal fires, it's scored on five confluence factors:
— HTF Bias (max 30 points) : higher-timeframe (4× current TF by default) EMA-50 bias. Match = 30, against = 0, HTF data missing or filter off = 15 (neutral credit).
— Volume Confirmation (max 20 points) : volume > 20-bar SMA × 1.3 (configurable). Auto-bypassed and given full credit on volume-less instruments (FX).
— RSI Momentum (max 20 points) : bullish signal needs RSI > 50, bearish needs RSI < 50.
— Regime Score (max 20 points) : regimeScore × 0.20.
— Break Strength (max 10 points) : how far past the band close pierced, capped at 3 × ATR. breakStrength = min(|breakDist| / ATR, 3) / 3 × 100, then × 0.10.
Grades:
— Score ≥ 75 → A (high-quality, all factors aligned)
— Score ≥ 55 → B (acceptable, most factors aligned)
— Score < 55 → C (weak — most factors against, consider skipping)
A "Min Quality Score" input lets you hide everything below a threshold (e.g., set to 55 to show only A and B grades).
4️⃣ Risk Presets with Per-Trade Snapshot Locking.
Four risk presets (plus Custom) auto-set SL × ATR and TP1/TP2/TP3 as R-multiples:
— Conservative : SL 2.5 × ATR, TP 1R / 2R / 4R
— Balanced (default): SL 1.5 × ATR, TP 1R / 2R / 3R
— Aggressive : SL 1.0 × ATR, TP 1.5R / 2.5R / 4R
— Scalping : SL 0.8 × ATR, TP 0.8R / 1.5R / 2R
— Custom : full manual control
Critical detail: SL and TP multipliers are snapshotted at entry . If you change the preset mid-trade, the open position keeps its original levels — and the Avg R statistic stays accurate (each closed trade contributes its own-time R values).
5️⃣ Break-Even Logic with Diagnostic BE-Save Counter.
When Break-Even After TP1 is on (recommended), reaching TP1 automatically moves the stop-loss to entry price. From the next bar onward, any wick at entry stops out at break-even instead of original SL — letting winners run risk-free to TP2/TP3.
A dedicated BE Saves counter on the dashboard tracks wins that closed because BE-stop fired (TP1 reached but TP3 didn't). A high BE-save ratio is a diagnostic signal that your TP3 may be too far — consider tightening.
6️⃣ Same-Bar Hit Guard + Realistic Closure Logic.
Two guards prevent unrealistic results:
— Entry-bar hold : SL/TP hits are ignored on the entry bar itself. A hairpin wick can't instantly stop out a fresh position.
— Same-bar SL+TP1 : if both SL and TP1 are hit on the same bar, the trade closes as a LOSS (conservative — mirrors realistic broker behavior on a single wick).
Closures are routed through a single classifier function so flip-closures, SL-closures, and TP3-closures are all tallied identically.
7️⃣ Flip Detection + Dedicated Flip Alert.
A "flip" is when an opposite signal fires while a position is still active. The old trade is classified and counted (its TP-reached state determines W/L and R-multiple), THEN the new position opens. A dedicated POSITION FLIP alert fires in addition to the new buy/sell alert, with from-direction, to-direction, prior entry, and new entry — useful for closing managed positions externally.
8️⃣ Unified Dashboard with Three Toggleable Sections.
One positioned table with three sections you can switch on/off individually:
— Trade section : Direction (with grade), SL (with BE marker), TP1/TP2/TP3 (with ✓ on hit), Risk % / R:R with unicode gauge, Bars in Trade.
— Market section : Regime (with 0–100 gauge), HTF bias, Volume status, RSI, ATR | Volatility-rank with adaptive multiplier.
— Statistics section : Total signals + grade breakdown (A:N B:N C:N), Buy/Sell split, Closed trades, W/L, Win rate, Avg R-multiple, BE Saves, Flips.
Dynamic section headers carry live context (e.g., "─── Trade · LONG · 23 bars ───") so the divider itself summarizes state.
9️⃣ Three Trail Visual Schemes for Different Aesthetics.
— Adaptive (Bull/Bear) : classic bright green/red — high visibility.
— Premium Indigo (recommended): muted indigo (long) and earth-brown (short) — financial-terminal aesthetic, never competes with green TP lines.
— Monochrome : neutral grey for ultra-minimal charts.
Optional Double Trail Line adds a dashed secondary line offset by a fraction of ATR (configurable 0.05–1.0 × ATR), creating a "channel" visual. The dashed segments are drawn via a ring-buffer of line.new(... line.style_dashed) instead of plot() — this produces PulseWire's native dashed look that plot() can't render natively.
🔟 Theme Auto-Detection + Premium Color Palette.
The indicator detects whether your chart background is dark or light (using color.r(chart.bg_color) < 128) and adapts every palette element accordingly. Theme can also be force-set to Dark or Light. Light-theme variants use deeper, more saturated colors to maintain contrast (e.g., deep crimson SL on white, dark amber for BE).
All label text colors are calibrated for ≥4.5:1 contrast against their background (e.g., dark green text on bright green long labels = 7.8:1 ratio).
1️⃣1️⃣ Webhook-Ready JSON Alerts with Full Payload.
Every buy/sell/flip/SL-hit/TP-hit/BE-activation event can fire as plain text OR structured JSON. The JSON payload includes action, ticker, timeframe, price, SL, TP1/TP2/TP3, R:R, grade, quality score, regime, choppy flag, and flip flag — ready for any webhook automation.
🧠 HOW IT WORKS — STEP BY STEP
Step 1 — ATR + Trail Center: ATR(13) and EMA(21) of close are computed. Raw bands = EMA ± ATR × multiplier (base 1.618).
Step 2 — Adaptive Multiplier (optional): If on, the multiplier scales by 100-bar ATR percentile (×0.8 / ×1.0 / ×1.25).
Step 3 — Ratchet Logic (optional): In a long, the lower band can only move up. In a short, the upper band can only move down. On a direction flip, the band resets to raw.
Step 4 — Direction Flip Detection: Close > prev upper band → direction = 1 (long). Close < prev lower band → direction = −1 (short). A change in direction is the raw signal.
Step 5 — Regime Score: ADX × 0.40 + ChopScore × 0.35 + R² × 100 × 0.25. Trending ≥ 60, Choppy < 35.
Step 6 — Quality Score: HTF (0/15/30) + Volume (0 or 20) + RSI (0 or 20) + Regime × 0.20 + BreakStrength × 0.10. Grade A ≥ 75, B ≥ 55, C < 55.
Step 7 — Filtering: Min Quality threshold, choppy-skip toggle, barstate.isconfirmed gating.
Step 8 — Risk Levels: SL = entry ± ATR × slMult. TP1/TP2/TP3 = entry ± slDistance × tpMult. All snapshotted to the trade.
Step 9 — Lifecycle: On TP1 first-touch → BE activates (SL → entry). On SL or TP3 → trade closes, classified by tp1Reached (WIN if true, LOSS if false), R-multiple credited (1/3 per TP partition), state reset.
Step 10 — Visuals + Alerts: SL/TP lines drawn forward, labels updated on hit (✓ + cyan), alerts fired with full payload, dashboard updated.
📖 HOW TO USE — BEGINNER GUIDE
🎯 Quick start (5 steps):
1. Add Synapse Trail Pro to your chart on any timeframe.
2. Open Settings. Leave defaults for the first session — they are tuned for general use (Balanced preset, Premium Indigo trail, HTF filter on, BE on).
3. Wait for the first signal to fire (▲ Long or ▼ Short marker). The marker shows the grade (A/B/C) and a ⚠ flag if in choppy regime.
4. Read the dashboard (top-right by default). Note the Direction , Grade , Regime , and the SL/TP1/TP2/TP3 levels — these are your full trade plan.
5. Execute the trade in your broker using the SL and TPs from the dashboard. Optionally partition position 1/3 at each TP.
👁️ Reading the chart:
— 🟢 ▲ Long Grade-letter below a bar = Buy signal. Color matches grade quality.
— 🔴 ▼ Short Grade-letter above a bar = Sell signal.
— ⚠ next to the grade = signal fired in choppy regime (be cautious or skip).
— Trail line = current direction context. Indigo = long bias, terracotta = short bias (in Premium scheme).
— Dashed secondary line = soft/hard limit zone, offset by a fraction of ATR.
— ENTRY line (dotted blue) = your entry reference price.
— SL line (solid red) = your stop-loss.
— TP1 / TP2 / TP3 lines (dashed green) = your take-profit targets. Turn solid teal with ✓ on hit.
— Entry → SL (BE) label in amber = break-even is active (TP1 was reached, SL is now at entry).
📊 Dashboard fields (Trade section):
— Direction : LONG / SHORT / FLAT + Grade letter.
— SL : stop-loss price. Shows "BE @" prefix when break-even is active.
— TP1 / TP2 / TP3 : target prices. ✓ prefix once reached.
— Risk / R:R : distance % from entry to SL + current R:R + visual gauge.
— Bars in Trade : how many bars since entry.
📊 Dashboard fields (Market section):
— Regime : Trending / Mixed / Choppy + 0–100 gauge.
— HTF : higher-timeframe bias (Bullish / Bearish / Flat / off).
— Volume : Confirmed / Weak / no data / off.
— RSI : current 14-period RSI value, color-coded.
— ATR | Vol : ATR value, 100-bar volatility percentile, and current adaptive multiplier.
📊 Dashboard fields (Statistics section):
— Signals : total fired + breakdown (A:N B:N C:N).
— Buy / Sell : directional split.
— Closed : total wins + losses (flip, SL, and TP3 closures all counted).
— W / L : wins / losses.
— Win Rate : TP1-reached = WIN. Color-coded ≥ 55% green, ≥ 45% yellow, else red.
— Avg R : average realized R-multiple per closed trade.
— BE Saves : wins that closed because BE-stop fired (diagnostic).
— Flips : trades closed by opposite signal mid-position.
💡 Beginner trading workflow:
1. Start with the Balanced preset and HTF Bias Filter ON .
2. Only take A-grade or B-grade signals — set Min Quality Score to 55.
3. Skip every signal flagged with ⚠ (choppy regime) until you understand the regime engine — or enable Hard-skip Choppy .
4. Use the Premium Indigo trail scheme — the muted colors keep your focus on the SL/TP levels, not the trail itself.
5. Always partition position 1/3 at each TP — that's what the R-multiple math assumes.
6. After 30–50 trades, review the Statistics section: if Avg R is positive, the setup works. If BE Saves > 30% of wins, consider tightening TP3.
🔧 Tuning guide:
— Too many signals: increase Min Quality Score to 75 (A-grade only), enable Hard-skip Choppy.
— Too few signals: lower Min Quality to 0, turn off HTF filter, switch from Balanced to Aggressive preset.
— Stops too tight: switch to Conservative preset (SL 2.5 × ATR).
— Stops too wide: switch to Scalping preset (SL 0.8 × ATR).
— BE stopping you out too often: disable Break-Even After TP1.
— Trail too jumpy: increase Trail EMA Length from 21 to 34, enable Ratchet.
— Trail too sluggish: decrease Trail EMA Length to 13, decrease ATR Length to 8.
— Chart too busy: turn off Double Trail Line and Regime Background, set Trail History Bars to 50.
⚙️ KEY SETTINGS REFERENCE
⚙️ Main Settings:
— ATR Length (default 13): ATR period for volatility band.
— Base ATR Multiplier (default 1.618 — golden ratio): base band width.
— Trail EMA Length (default 21): EMA period for trail center.
— Adaptive Volatility Multiplier (default off): auto-scale multiplier by 100-bar ATR percentile.
— Ratchet Trail (default on): trail only tightens in position direction.
🔍 Signal Filters:
— Min Quality Score (default 0): hide signals below threshold (0 = all, 55 = B+, 75 = A only).
— Hard-skip Choppy Signals (default off): fully suppress signals in choppy regime.
— Use HTF Bias Filter (default on): Quality Score bonus for HTF-aligned signals.
— HTF for Bias (default empty = auto 4×): higher timeframe for bias check.
— Use Volume Confirmation (default off): bonus when volume > 20-SMA × threshold.
— Volume Threshold (default 1.3): volume × SMA20 to count as confirmation.
🌊 Market Regime:
— ADX Length (default 14)
— Choppiness Length (default 14)
— R² Regression Length (default 50)
🛡️ Risk Management:
— Risk Preset (default Balanced): Conservative / Balanced / Aggressive / Scalping / Custom.
— Custom SL × ATR (default 1.5)
— Custom TP1/TP2/TP3 × Risk (default 1.0 / 2.0 / 3.0)
— Break-Even After TP1 (default on): move SL to entry on TP1.
— Show SL/TP Lines / Labels / % Distance : all on by default.
— Entry / SL / TP Line Styles : Dotted / Solid / Dashed defaults.
🎨 Visual:
— Theme (default Auto)
— Trail Color Scheme (default Adaptive Bull/Bear) — try Premium Indigo for a financial-terminal look.
— Trail Line Width (default 2)
— Trail History Bars (default 0 = all)
— Double Trail Line (default on)
— Double Trail Offset × ATR (default 0.25)
— Show Buy/Sell Labels / Grade / Regime Background / Watermark
📊 Dashboard:
— Show Dashboard (default on) — master toggle
— Position (default Top Right) — 6 positions available
— Trade / Market / Statistics Section toggles
🔔 Alerts:
— Webhook JSON Format (default off): plain text or structured JSON.
— Alert on TP Hits (default off)
— Alert on SL Hit (default on)
— Alert on Position Flip (default on)
🔔 ALERTS
— 🟢 BUY — ticker, TF, price, SL, TP1/TP2/TP3, R:R, grade, quality score, regime, choppy flag, flip flag
— 🔴 SELL — same payload
— 🔄 POSITION FLIP — from-direction, to-direction, prior entry, new entry
— 🛑 SL HIT — entry, SL price, time
— 🛡️ BE STOP-OUT — fires instead of regular SL when break-even was active
— 🎯 TP1 / TP2 / TP3 HIT — first-touch only, no duplicate fires
— 🛡️ BREAK-EVEN — fires the bar TP1 is reached and SL moves to entry
All alerts support plain text and JSON webhook format. All fire bar-close confirmed (alert.freq_once_per_bar_close).
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals require barstate.isconfirmed. Alerts fire once per bar close. The HTF security() call uses the canonical non-repaint pattern (close + ema with lookahead_on), reading the closed HTF bar without future leakage.
— 📐 The trail flip is the raw signal source; quality score and filters only suppress, never invent signals. Same-bar SL+TP1 always resolves as a LOSS (conservative bias toward stop).
— 📐 Statistics counters are session-scoped — they reset on script reload, input change, or by incrementing the "Reset Stats Counter" input. The Stats section is descriptive, not predictive: past behavior on a chart does not guarantee future behavior on the same chart.
— ⚖️ Win = TP1 reached (regardless of how the trade ultimately closed). Avg R assumes 1/3 position partitioned at each TP. These are conventions; your live execution may differ.
— 🛠️ This is an analysis tool, not an automated trading bot. It detects trail flips, scores quality, projects SL/TP zones, and tracks outcomes — trade decisions and execution remain yours.
— 🌐 Works on all markets and timeframes. Volume-based filters auto-bypass on instruments without volume data (FX). Adaptive multiplier and regime engine scale naturally across symbols.
— 📜 Fully open-source Pine v6. Read the code, fork it, adapt it. Feedback and forks welcome. Indicator

Indicator

Orion Regression Field [JOAT]Orion Regression Field
Introduction
Orion Regression Field builds a weighted regression valuation field with standard error bands, curvature options, compression detection, and reprice signals.
This open-source indicator is designed as a context tool, not a standalone trading system. It focuses on explaining the current market state with restrained visuals and confirmed-bar logic where signals are used.
Core Concepts
1. Weighted Regression
Recent bars can receive more influence while still preserving a full model window.
2. Standard Error Bands
Inner and outer bands show statistical distance from the modeled path.
3. Curvature and Confidence
Optional curvature and R2-style confidence control when the field is considered reliable.
4. Pinch and Reprice
Compression and outer-band reactions create filtered reprice events.
mid = weightedRegression(close, len); band = standardError * multiplier
Features
Weighted regression midline
Inner and outer SEE bands
Optional curvature
Pinch shading and projection field
Filtered reprice labels
Input Parameters
Regression window and projection bars
Curvature toggle and weight floor
Minimum R2 confidence
Inner and outer band multipliers
Pinch ratio and cooldown
How to Use This Script
Use the field as statistical fair-value context. Outer band interaction means stretch, not automatic reversal.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
Orion is original in combining weighted regression, curvature, standard error fields, compression context, and filtered reprice logic.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades
Indicator
