Currency Strength - Manual Biases Currency Strength — Manual Biases
Most currency strength meters calculate strength from price change over X bars. This one works the other way around: you provide the input. It turns your own directional biases per pair into a ranked currency strength table.
How it works
Each pair bias is a pairwise comparison between two currencies:
EUR/NZD short → NZD is stronger than EUR
GBP/USD short → USD is stronger than GBP
For every bias you set, the stronger currency gets +1 and the weaker one −1. The table (top right of your chart) ranks all currencies from strongest to weakest, showing each currency's net score and the number of pairs it was compared in.
Usage
Open the settings and set a bias per pair: "Long" (base currency stronger), "Short" (quote currency stronger), or "—" (pair not included). All 28 major and cross pairs of the 8 major currencies (EUR, GBP, AUD, NZD, USD, CAD, CHF, JPY) are available. The more pairs you assess, the more reliable the ranking — with only a few biases, one wrong assessment can flip the order.
Why manual instead of automatic?
If your methodology is built on your own top-down analysis, an automatic strength meter measures something different from what you actually trade. This tool doesn't replace your analysis — it organizes it. It shows you the ranking that logically follows from your own pair assessments, so you can spot which pairs combine your strongest and weakest currencies, and check whether your biases are internally consistent.
Note: the ranking is only as good as the biases you feed it. This is an organizational tool, not a signal generator — always validate any pair against your own trading plan before taking a setup. אינדיקטור

אינדיקטור

Edo Smart Money MapEdo Smart Money Map — Market Structure Mapping with BOS / CHoCH Classification, Order Blocks and a Structural Bias Panel
Price does not move at random. It leaves behind a sequence of highs and lows that tells you who is in control: while it prints higher highs and higher lows the structure is bullish, and when that sequence breaks the other way, something has changed. That is the core idea of the Smart Money Concepts approach, and it is exactly what Edo Smart Money Map maps automatically — without oscillators, without moving averages, reading nothing but the structure of the price itself.
The indicator does not flood the chart with signals. It answers three concrete questions and leaves the rest to the trader: where does structure break, was that break a continuation or a reversal, and which origin zones — order blocks — are still alive as references of supply and demand. Everything is condensed into clean marks on price and a four-line panel.
MARKET STRUCTURE: SWINGS AND PROFILES
Everything starts with the swings — the relevant highs and lows whose break defines the structure. A swing high is confirmed when a candle has the highest high of its surroundings; a swing low, the lowest low. The size of that surrounding window is set by the Structure Profile: Scalper (5 bars each side) detects fast swings for intraday work, Swing (10 bars, the default) is the balanced setting for 4H and daily, and Long Term (21 bars) marks only the major swings for weekly and higher horizons. An optional layer labels each confirmed swing as HH, HL, LH or LL directly on price; it is off by default to keep the chart clean.
BOS — BREAK OF STRUCTURE (CONTINUATION)
A BOS confirms that the prevailing trend continues. It fires when the close pushes beyond the last relevant swing in the direction of the structural bias: in a bullish structure, the close clears the last relevant high; in a bearish one, it loses the last relevant low. The indicator draws a horizontal line at the broken level and a BOS label in the bullish or bearish colour, and keeps the panel bias unchanged — a BOS reaffirms the control of whoever already held it.
CHoCH — CHANGE OF CHARACTER (REVERSAL)
A CHoCH is the first sign that control may be changing hands. It fires when price breaks structure against the prevailing bias: in a bullish structure, the close loses the last relevant low; in a bearish one, it reclaims the last relevant high. The distinction from a BOS is purely contextual — the same level break is a BOS if it goes with the previous bias and a CHoCH if it goes against it — so the indicator keeps the structural direction in memory and decides the label on each break. After a CHoCH the panel bias flips. It is not an entry by itself, but the cue to reassess the bias and watch the order block the impulse leaves behind.
ORDER BLOCKS AND THEIR STATE
Every confirmed structure break triggers the search for the order block that originated it: the last opposite candle before the impulse that broke the level — the last bearish candle before an up move, or the last bullish candle before a down move. The indicator looks back a configurable number of bars (Impulse Lookback, 20 by default), draws a box between that candle's high and low with a Bull OB or Bear OB label, and extends it to the right while it stays alive. To avoid clutter, only the most recent order blocks per side are kept, up to Max Order Blocks (8 by default).
Each order block lives in one of two states, evaluated on every closed bar. Active: an intact zone price has not touched since it was created — a solid box extending to the right. Mitigated: a zone price has reached — its border turns dashed, its shading fades and it stops extending. The Mitigation input decides when a zone counts as touched: Wick (default) marks it as soon as a wick reaches the zone, while Close requires a candle to close inside it. A Bull OB is evaluated by its upper edge, a Bear OB by its lower edge, and the moment of mitigation fires the corresponding alert. Only Active order blocks are counted in the panel.
INFORMATION PANEL
The panel condenses the structural state into four readings under a header. Structure shows the prevailing bias — ▲ BULLISH, ▼ BEARISH or • NEUTRAL — in its colour. Last Event shows the latest confirmed event — Bull or Bear, BOS or CHoCH. Bull OB (active) and Bear OB (active) count the order blocks still alive on each side. The panel sits in any of the four chart corners (Top Right by default), comes in three sizes (Tiny / Small / Normal) and two themes (Dark / Light), and can be hidden entirely.
NO REPAINTING
Every structure break is validated on closed bars only. A wick that pierces a level intrabar but closes back inside generates nothing — the indicator waits for the close. This removes the false breaks that clutter tools which mark instantly, at the cost of confirming events once the move has already happened. There are no higher-timeframe functions: all logic runs on the current chart timeframe, which keeps it light and repaint-free.
CONFIGURATION
The inputs are grouped by block. Structure sets the profile and toggles BOS, CHoCH and the HH/HL/LH/LL swing labels. Order Blocks toggles the zones, sets the maximum per side, the mitigation mode (Wick / Close) and the impulse lookback. Style exposes the bullish and bearish colours, the order block colours, the zone opacity, the label size and the Dark/Light theme. Panel controls panel visibility, position and size. The defaults are calibrated to work without adjustment on stocks, crypto, forex, indices and futures, on any timeframe — the Swing profile on 4H and daily is the most common starting point.
ALERTS
Six predefined alerts cover every meaningful event: Bullish BOS and Bearish BOS confirm trend continuation up or down; Bullish CHoCH and Bearish CHoCH flag a possible change of character; and Bull OB Mitigated and Bear OB Mitigated fire when price returns to an origin zone of demand or supply. The CHoCH alerts are the most useful for catching potential reversals, the BOS alerts confirm a trend is still alive, and the mitigation alerts fire exactly when a reference zone is being tested. All alerts fire on bar close, consistent with the indicator's anti-repaint validation.
HOW TO READ IT
A clean reading chains the layers into common patterns. Healthy trend: while the panel holds its bias and successive events are BOS in the same direction, the structure is sound and each break leaves a fresh order block to watch on the next pullback. Reversal warning: a CHoCH after a run of BOS is the first cue that control may be shifting — not an entry, but the moment to lower conviction in the prior direction and watch the order block the change leaves behind. Pullback into an active order block: after a BOS price often retraces into an active zone of the correct side, where the Active-to-Mitigated transition marks the exact moment price enters the reference. Confluence: an order block that overlaps a prior liquidity zone, a key level or a higher-timeframe support gains weight over an isolated one.
OPEN SOURCE
Edo Smart Money Map is published as a free open source indicator. The full Pine Script is publicly accessible on TradingView for study, adaptation and integration into any workflow. Part of the Edolab Markets free tools ecosystem alongside Edo Liquidity Zones, Edo ZigZag Auto Fib SR, Edo EMA Core Cross, Edo Multi Stoch and more available on TradingView.
This indicator is a technical analysis tool for educational and informational purposes only. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading financial markets involves significant risk of capital loss. Past performance does not guarantee future results. Always use proper risk management. אינדיקטור

CQ_(L)_Squeeze Momentum Suite Overlay================================================================================
CQ_(L)_SQUEEZE MOMENTUM SUITE OVERLAY
Description and User Manual
================================================================================
--------------------------------------------------------------------------------
1. OVERVIEW
--------------------------------------------------------------------------------
CQ Squeeze Momentum Suite Overlay is an all-in-one price-chart overlay that
combines several classic sub-pane oscillators (Squeeze Momentum, ADX/DMI, an
Expert Trend Locator, a Hull Moving Average, and Momentum divergence
detection) into a single indicator that draws directly on the price chart
instead of a separate panel below it.
Every oscillator-scale value (Momentum, Momentum Strength, Signal, ADX, Key
Level) is mapped onto real price coordinates using a shared "baseline"
reference. This baseline is the single zero-point anchor for all of the
above: when an oscillator crosses zero, its line will touch the baseline
exactly, and the whole visible window of oscillator history is drawn flush
against that same flat, straight reference line.
--------------------------------------------------------------------------------
2. HOW THE OVERLAY MAPPING WORKS
--------------------------------------------------------------------------------
- The script looks back over "Display Length (bars)" candles and finds the
highest high / lowest low in that window.
- Depending on "Placement" (Top or Bottom), the baseline is anchored either
just above the recent highs or just below the recent lows, with some
breathing room controlled by "Vertical Position Adjustment."
- "Height" controls how much vertical price-space the oscillators are
allowed to occupy above/below the baseline.
- All oscillator values are rescaled into that price-space and drawn as
lines/boxes anchored to the baseline, so the whole panel effectively
"floats" over the candles without needing a separate sub-chart.
- Because one single baseline value is used across the entire redrawn
window, the zero-line and every series are always shown as a flat,
straight reference instead of a value that drifts bar-to-bar.
- The redraw happens once per bar-close (snapshot pattern), which keeps the
indicator inside TradingView's per-indicator line/box drawing limits.
--------------------------------------------------------------------------------
3. FEATURE LIST
--------------------------------------------------------------------------------
A) SQUEEZE MOMENTUM
- Momentum oscillator (linear-regression based), selectable moving-average
engine (SMA, EMA, WMA, HMA, DEMA, TEMA, VWMA, ALMA, KAMA, JMA, Zero Lag,
Tillson T3, VIDYA, and more).
- Four render styles: Columns, Histogram, Line, Area.
- Optional Momentum Strength cloud (Momentum minus its own moving-average
Signal line).
- Optional Signal(Momentum) line.
- Multiple color palettes (5 built-in color schemes) reflecting whether
Momentum is positive/negative and rising/falling.
- Optional background tint reflecting the current Momentum color state,
plus a separate "dark mode" gray background option.
B) SQUEEZE PRO DOTS
- Circular markers above price flag when a Bollinger Band / Keltner
Channel squeeze is active, using three intensity levels (Low/Mid/High
squeeze) with distinct colors.
- Only rendered within the "Display Length (bars)" window (see Section 5).
C) ADX WITH KEY LEVEL
- ADX (Average Directional Index) rescaled to sit on the same baseline as
Momentum, so trend strength can be read directly against price.
- A "Key Level" reference line (ADX's neutral/trigger threshold, offset by
the "Distance" input) drawn alongside it.
- Colored Directional Movement Index (DMI): triangle markers below price
mark whether +DI is above or below -DI, colored by trend strength/slope.
- A DMI status label anchored at the baseline explaining, in plain text,
the current trend state (Bullish/Bearish/Weak/No Trend), the ADX value,
whether it is growing or falling, and how many bars since the last DI
cross.
- Bullish/Bearish DMI trend-change alert conditions.
D) EXPERT TREND LOCATOR (XTL)
- A CCI-style trend classifier (traditional or non-traditional formula)
that can recolor the candlesticks themselves (Bull / Bear / Neutral)
based on a configurable threshold.
E) HULL MOVING AVERAGE (HMA)
- Selectable Hull variant: HMA, EHMA, THMA, or Adaptive HMA (AHMA).
- Long/short cross markers (triangle up/down) when the Hull average
changes direction.
- Optional background tint reflecting the Hull trend direction.
F) MOMENTUM DIVERGENCE ENGINE
- Automatic detection of regular and hidden bullish/hidden bearish
divergence between price and the Momentum oscillator.
- Configurable pivot lookback, "2 pivots back" comparison, and a
repaint-safe "delay until candle closes" option.
- Connector lines and "R"/"H" labels drawn at the correct baseline-mapped
price level.
- Alert conditions for all four divergence types.
G) OVERLAY LAYOUT (shared baseline settings)
- Display Length (bars): how many recent bars the baseline / oscillator
mapping and the Squeeze Dots / DMI triangles are drawn across.
- Placement: Top or Bottom of the visible price range.
- Height: how much vertical price-space the oscillators occupy.
- Vertical Position Adjustment: padding between the baseline and the
actual candle range.
--------------------------------------------------------------------------------
4. INPUT REFERENCE (BY GROUP)
--------------------------------------------------------------------------------
SQUEEZE MOMENTUM
Show Momentum - toggles the Momentum plot.
Color Format - selects one of 5 color palettes (1-5).
Background Off - disables the Momentum-colored background tint.
Momentum Style - Area / Columns / Histogram / Line.
Show Signal - toggles the Signal(Momentum) line.
Show Strength (MOM) - toggles the Momentum Strength cloud/line.
Draw Divergence - master toggle for the divergence engine.
Gray Background for Dark Mode - alternate gray background tint.
Show Squeeze PRO - toggles the Squeeze dots.
Show SQZ Zero Line - draws the flat baseline/zero reference line.
ADX
Show ADX with KeyLevel - toggles ADX + Key Level lines.
Scale for ADX - divisor used to rescale ADX into Momentum units.
Positive/Negative slope colors - ADX line color when rising/falling.
KeyLevel with color - colors the Key Level line by DMI trend instead
of the ADX slope color.
Distance between KeyLevel and 0 - offsets the Key Level line from zero.
Display the colored DMI triangles - toggles the +DI/-DI triangle markers.
Hide DMI Label - hides the plain-text DMI status label.
DMI Label Text Size - Auto/Tiny/Small/Normal/Large/Huge.
(unnamed group, XTL bar coloring)
Use XTL Bars Color - recolors candles per the XTL trend state.
XTL: Trend Up / Neutral / Trend Down - colors for each XTL state.
HULL MOVING AVERAGE
Show (Hull Moving Average) Signal - toggles Hull cross markers.
Background - toggles the Hull-trend background tint.
OVERLAY LAYOUT
Display Length (bars) - lookback window for the baseline mapping AND
the Squeeze Dots / DMI triangle visibility.
Placement - Top or Bottom anchor for the baseline.
Height - vertical space (in "notches") given to the
oscillators.
Vertical Position Adjustment - padding between the baseline and the
recent price range.
SQUEEZE MOMENTUM INDICATOR PARAMETERS (SQZMOM)
MOM Length / Source / Type - Momentum calculation length, price source,
and moving-average engine.
Signal Length - smoothing length for Signal(Momentum).
Squeeze Length / Source - length and source used for the Bollinger Band
/ Keltner Channel squeeze detection.
BB Calculation Type / MultFactor - Bollinger Band moving-average type and
standard-deviation multiplier.
Keltner Channel Calculation Type / Use TrueRange - Keltner Channel
moving-average type and range source.
DIRECTIONAL MOVEMENT INDEX (Colored DMI)
Alert: Bullish/Bearish Trend - enable/disable DMI trend-change alerts.
ADX Smoothing / DI Length - standard ADX/DMI calculation lengths.
Key level for ADX - the ADX threshold considered "trending."
Weak Trend Threshold - the ADX threshold below which trend is
considered absent.
Historical Label Readings - shows the DMI label's reading from N bars
back instead of the current bar.
EXPERT TREND LOCATOR (XTL)
Length / Type / Source - CCI-style calculation length, moving-average
type, and price source.
Threshold Level - the +/- CCI threshold that defines Bull/Bear.
Use the traditional CCI formula - switches between the classic and
non-traditional CCI denominator.
HULL MOVING AVERAGE (HMA)
Length / Type / Source - Hull average length, variant, and price
source.
DIVERGENCES FOR MOMENTUM
Plot Bullish / Hidden Bullish / Bearish / Hidden Bearish - toggle each
divergence type independently.
Delay plot until candle is closed - avoids repainting divergence signals.
Lookback 2 Pivots? - also compares against the pivot two bars back.
Pivot Lookback Right/Left - pivot-detection window.
Min/Max of Lookback Range - how far back (in bars) a divergence pair may
span to still be considered valid.
--------------------------------------------------------------------------------
5. NOTES ON THE "DISPLAY LENGTH (BARS)" SETTING
--------------------------------------------------------------------------------
"Display Length (bars)" (in the Overlay Layout group) controls THREE things
at once:
1. How many historical bars the baseline/oscillator snapshot engine
redraws (Momentum, Strength, Signal, ADX, Key Level, Zero Line).
2. How many recent bars show Squeeze PRO dots above price.
3. How many recent bars show the colored DMI triangles below price.
Anything older than this window is simply not drawn, keeping the chart
readable and staying within TradingView's per-indicator object limits
(500 lines / 500 boxes / 50 labels). Increasing this value shows more
history but uses more of that budget; the input is capped at 100 bars to
leave headroom for all series that can be active simultaneously.
--------------------------------------------------------------------------------
6. ALERTS
--------------------------------------------------------------------------------
- DMI Bullish Trend / DMI Bearish Trend (on trend-state change)
- Regular Bull Divergence / Hidden Bull Divergence
- Regular Bear Divergence / Hidden Bear Divergence
--------------------------------------------------------------------------------
7. QUICK START
--------------------------------------------------------------------------------
1. Add the indicator to a price chart (it renders as an overlay, not a
separate pane).
2. In "Overlay Layout," set Display Length to match how much recent price
history you want the oscillators plotted against, and adjust
Placement/Height/Vertical Position Adjustment until the oscillator
band sits where you want it relative to candles.
3. Enable/disable Momentum, Strength, Signal, ADX, Squeeze Dots, DMI
triangles, and Divergences as needed under their respective groups.
4. Use "Show SQZ Zero Line" if you want an explicit flat reference line
at the baseline.
5. Set up alerts from the DMI or Divergence alert conditions if you want
notifications outside of TradingView.
================================================================================
End of manual.
================================================================================ אינדיקטור

Seasonality: Soft Commodities [invincible3]Seasonality: Soft Commodities
Seasonality: Soft Commodities is a professional mini-chart seasonality dashboard designed for traders and analysts who want to study recurring yearly patterns in major soft commodities.
The indicator displays 365-day seasonal curves directly on the chart for Cocoa, Coffee, Cotton, Orange Juice, and Sugar. Each commodity is shown in its own compact panel, making it easy to compare seasonal strength, weakness, turning points, and recurring periods of historical tendency throughout the calendar year.
Two seasonal views are available:
Blue Line — All Years Average
Shows the long-term historical seasonal path using the full available dataset.
Yellow Line — Weighted Average
Shows a weighted seasonal curve designed to emphasize more relevant recent behavior while still preserving the broader historical pattern.
The dashboard includes flexible layout controls, allowing users to adjust widget width, distance from price candles, panel height, row spacing, and placement. Individual commodities can be enabled or disabled, and users can choose whether to display the All Years curve, the Weighted Average curve, or both.
Key Features:
• Seasonality curves for Cocoa, Coffee, Cotton, Orange Juice, and Sugar
• Separate mini-panel for each commodity
• Blue All Years seasonal average
• Yellow Weighted Average seasonal curve
• Monthly grid and labels for easy calendar interpretation
• Right-side dashboard placement option
• Adjustable chart width, spacing, and panel height
• Auto-theme colors with manual style customization
• Lightweight visual design built for quick seasonal comparison
This tool is useful for identifying periods where soft commodities have historically shown stronger or weaker seasonal tendencies. It can help traders prepare trade ideas, compare current market behavior against historical patterns, and add a seasonal context layer to technical or macro analysis.
This indicator does not generate direct buy or sell signals. Seasonality should be used as a supporting research tool together with price action, trend analysis, volume, fundamentals, and proper risk management.
אינדיקטור

Coil & Fire - Ashish*Updated version of Momentum Scanner*
Finds stocks that had a strong explosive move (EP candle), are now coiling quietly near their EMAs, and marks the exact entry and stop-loss levels based on the most recent low-volume healthy-dip candle.
How it works:
Screens for stocks with a recent 8%+ single-day move that are outperforming their benchmark since that move, holding above the EMA9/21 cloud with the trend structure intact, and showing genuinely quiet volume on the pullback. When all conditions align, it marks a teal bar — a low-volume healthy-dip candle sitting within 5% above EMA9. The high of that bar is your entry. The low is your stop-loss. Purple dots show the entry level. Red dots show the stop.
Orange background = price has crossed the entry level. Yellow background = setup is valid, waiting for the trigger.
What's different from Momentum Scanner:
Entry and stop-loss are now anchored to the most recent teal bar rather than a historical coil-high level, so levels are always close to current price. Volume comparison for the teal bar now uses a 10-day average instead of 50-day, making it more responsive to recent trading activity rather than a long historical baseline.
Note: Indicators are tools, not oracles — every signal still requires human judgment, risk management, and context before any trade is taken. אינדיקטור

אינדיקטור

SMC + HTF LevelsSMC + HTF Levels — an overlay indicator that combines Smart Money liquidity (BSL/SSL, EQH/EQL) with previous higher-timeframe levels (D, 4H, W, M, Q, Y H/L). Auto-merges overlapping SMC and HTF levels, tracks sweeps (wick/close), shows developing week/month highs and lows (CWH/CWL, CMH/CML), includes a nearby-levels dashboard and alerts. Fully customizable: colors, tolerance, fade, dedupe, and scale filter. Built for forex, indices, crypto, and commodities. אינדיקטור

Quantile Threshold Bands | NickJoanQuantile Threshold Bands | NickJoan
Core Idea
Quantile Threshold Bands measures the position of price within a lookback window and uses that information to define adaptive upper and lower threshold bands. The script calculates two percentile levels from a user-defined lookback window and uses them to classify the current source value as bullish or bearish.
When the price moves above the upper quantile, the indicator turns bullish. When the price moves below the lower quantile, it turns bearish. When it returns inside the band area, the script keeps the last active state until the opposite threshold is crossed again. This gives the indicator a persistent regime structure.
Calculation Logic
The indicator works through three steps:
Source selection.
- The user chooses the price series to analyze.
Quantile calculation.
- The script looks back over a chosen number of bars.
- From that window, it calculates a lower quantile band and an upper quantile band.
- These values are obtained with a nearest-rank percentile calculation.
State assignment.
- If the source is above the upper band, the state becomes bullish.
- If the source is below the lower band, the state becomes bearish.
- If the source is between the bands, the previous state remains active.
What the Bands Mean
The lower and upper bands represent the selected percentile levels inside the recent price window.
The lower band marks a lower threshold within recent price behavior.
The upper band marks a higher threshold within recent price behavior.
The area between them defines the central zone where price is neither breaking upward nor downward.
Because the levels are recalculated on every bar, they adjust as the market changes. The result is a dynamic set of thresholds that follow the market’s own recent distribution.
Chart Output
The script displays four visual elements on the chart:
Lower Quantile line.
Upper Quantile line.
Filled zone between the two bands.
Colored candles showing the active state.
The color logic is:
Aqua when the regime is bullish.
Olive when the regime is bearish.
No color yet before the first valid state is established.
The output is designed to make the current state readable at a glance.
Inputs
The indicator has four primary inputs:
Source - The series used in the quantile calculation.
Lookback - The number of bars used to build the rolling window.
Lower Quantile % - The percentile used for the lower band.
Upper Quantile % - The percentile used for the upper band.
The lower percentile must be smaller than the upper percentile.
Alerts
The script includes alerts for regime changes:
Long Signal - Triggers when the state turns bullish.
Short Signal - Triggers when the state turns bearish.
These alerts are designed to notify the trader when price breaks into a new regime.
How to Use It
This indicator can be used as a regime filter or market bias tool.
Typical use cases include:
Directional bias filter. Use the bullish state when price is above the upper quantile and the bearish state when price is below the lower quantile.
Threshold-based alerts. Use the long and short alerts to notify you when price breaks into a new percentile regime.
Range / compression read. The distance between the two bands can help show whether recent price action has been compressed or expanded. A narrow band zone suggests tighter recent movement, while a wider band zone suggests broader recent movement.
Trade filtering. Use it to decide whether to allow only long setups, only short setups, or no directional trades depending on regime.
אינדיקטור

Price Action Breakout Trend [QuantAlgo]🟢 Overview
Price Action Breakout Trend is a trend-following indicator built on structural range breakouts rather than moving average crossovers or oscillator thresholds. It tracks the highest high and lowest low of a defined lookback window to establish the levels price must decisively clear to confirm a directional shift, anchoring a trailing stop that ratchets in the trend's direction and reverses only when price breaks through it, helping traders distinguish genuine trend continuation from the shallow pullbacks that punctuate every sustained move across all timeframes and markets.
🟢 How It Works
The foundation of the indicator is the range defined by recent price extremes. On each bar it references the highest high and lowest low of the prior lookback window, excluding the current bar so the reference range is locked in before price interacts with it:
prior_high = ta.highest(high, lookback)
prior_low = ta.lowest(low, lookback)
These two levels frame the breakout boundaries. Rather than reacting to every marginal touch, the indicator lets you define what qualifies as a genuine break through the confirmation setting, which determines whether the closing price or the full bar extreme is tested against the trailing stop:
test_down = confirmation == 'Close' ? close : low
test_up = confirmation == 'Close' ? close : high
From these, a single trailing stop is maintained on the active side of the trend. While the trend holds bullish the stop ratchets upward, advancing to track the rising lookback low and never loosening, and the trend reverses the moment the tested price breaks below it:
if trend == 1
trail := math.max(trail, prior_low)
if test_down < trail
trend := -1
trail := prior_high
On that reversal the stop immediately re-anchors to the opposite extreme, flipping above price to begin trailing the new downtrend, where the mirror of this same logic ratchets the stop lower and flips the trend back to bullish once price breaks above it. Because the reversal is triggered by the same stop price has been trailing, the line is not a passive overlay but the actual decision boundary, with no separate signal calculation sitting behind it. This makes the indicator a continuous stop-and-reverse system that always holds a committed direction, retaining its bullish or bearish reading through every pullback contained within the range until price clears the trailing level.
🟢 Signal Interpretation
▶ Bullish Trend (Green): When price breaks above the trailing stop and the trend flips up, the indicator enters bullish mode with green coloring applied across the stop, gradient fill, and breakout levels. The stop sits below price and ratchets higher as the trend develops, and the reading holds through pullbacks that stay above it. The flip into green, marked by an up triangle beneath the bar, identifies a potential long/buy opportunity, with subsequent pullbacks toward the rising stop offering potential continuation entries while the trend remains intact.
▶ Bearish Trend (Red): When price breaks below the trailing stop and the trend flips down, the indicator enters bearish mode with red coloring across all visual elements. The stop sits above price and ratchets lower as the decline extends, holding bearish through rallies that fail to reclaim it. The flip into red, marked by a down triangle above the bar, identifies a potential short/sell opportunity, with rallies back toward the falling stop offering potential continuation entries on the downside.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover different trading approaches. "Default" targets swing trading on 4-hour and daily charts with a 10-bar lookback and close-based confirmation, filtering marginal breaks while staying responsive to genuine shifts. "Fast Response" shortens the lookback to 5 bars and switches to wick-based confirmation for intraday charts, where the trend needs to flip as soon as price trades beyond a recent extreme. "Smooth Trend" extends the lookback to 25 bars with close confirmation for position trading on daily and weekly timeframes, where the cost of a false flip exceeds the cost of a delayed one. Selecting a preset overrides the individual lookback and confirmation inputs.
▶ Built-in Alerts: Three alert conditions cover all directional states. "Bullish Breakout Signal" fires on the bar where the trend confirms bullish. "Bearish Breakout Signal" fires on the bar where it confirms bearish. "Any Breakout Signal" combines both into a single condition for traders who want a unified notification regardless of direction.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) apply coordinated bullish and bearish schemes across the trailing stop, gradient fill, breakout levels, markers, and optional bar and background coloring. Independent toggles control each visual layer, so the trailing stop line, the gradient fill that ramps from the stop toward price, the triangle markers printed on each flip, and the underlying breakout levels that frame the active range can each be shown or hidden without affecting the others. Bar coloring tints price candles with the active trend color at a configurable transparency, and background coloring extends the directional tint across the full chart pane. Both are disabled by default and controlled independently.
*Tips: Layer the Price Action Breakout Trend with complementary analysis rather than treating it as a standalone trading tool. Breakouts hold most reliably when backed by participation, so combine each flip with volume context, since a break on expanding volume is far more likely to sustain than one on thin flow, and read the level being cleared against market structure, as a breakout through a well-established swing high or low carries more significance than one in open space. Pairing this script with volume, open interest, CVD, market structure, and mean reversion indicators from our QuantAlgo toolkit can further validate a breakout before entry. אינדיקטור

אינדיקטור

RSL - Relative Strength Level (Levy)RSL steht für Relative Strength Level nach Levy (Robert A. Levy, 1960er Jahre) – nicht zu verwechseln mit Wilders RSI.
Grundidee:
RSL = Aktueller Kurs / Gleitender Durchschnitt (SMA) über n Perioden
Levy hat ursprünglich einen 27-Wochen-SMA (also ca. 130 Handelstage) verwendet. Der Indikator zeigt, wie weit der aktuelle Kurs relativ zu seinem eigenen historischen Durchschnitt steht – also eine Form von "Preis-Momentum relativ zu sich selbst", nicht relativ zu einem Index oder anderen Titeln (das wäre dann RS im Sinne von IBD/O'Neil).
Kernpunkte:
RSL > 1 → Kurs liegt über seinem gleitenden Durchschnitt → relative Stärke
RSL < 1 → Kurs liegt unter dem Durchschnitt → relative Schwäche
Levy nutzte es ursprünglich zum Ranking eines Aktienuniversums: Titel mit den höchsten RSL-Werten wurden gekauft (Momentum-Strategie), unterste wurden gemieden/verkauft
Unterschied zu RSI:
RSI (Wilder) misst Auf-/Abwärtsbewegungen innerhalb eines Zeitraums (Overbought/Oversold, 0–100 skaliert). RSL misst die Distanz des Kurses zu seinem eigenen gleitenden Durchschnitt – eher ein Trendfolge-/Momentum-Filter als ein Oszillator.
Dieses Script ist auch für den Pine Screener verwendbar, d.h. ihr könnt alle eure Watchlisten damit durchscreenen und nur die Stärksten oder schwächsten Assests daraus handeln.
Viel vergnügen damit
RSL stands for Relative Strength Level according to Levy (Robert A. Levy, 1960s) – not to be confused with Wilder's RSI.
Basic idea:
RSL = Current Price / Moving Average (SMA) over n periods
Levy originally used a 27-week SMA (approximately 130 trading days). The indicator shows how far the current price stands relative to its own historical average – i.e., a form of "price momentum relative to itself," not relative to an index or other securities (that would be RS in the IBD/O'Neil sense).
Key points:
RSL > 1 → Price is above its moving average → relative strength
RSL < 1 → Price is below its moving average → relative weakness
Levy originally used it to rank a universe of stocks: securities with the highest RSL values were bought (momentum strategy), the lowest were avoided/sold
Difference from RSI:
RSI (Wilder) measures up/down movements within a time period (overbought/oversold, scaled 0–100). RSL measures the distance of the price from its own moving average – more of a trend-following/momentum filter than an oscillator.
This script is also usable in the Pine Screener, meaning you can screen through all your watchlists with it and trade only the strongest or weakest assets from the results.
Enjoy using it!
אינדיקטור

Zero-Lag GARCH Bands | NAL1. Overview
Zero-Lag GARCH Bands | NAL is an adaptive volatility band indicator built from a Zero-Lag EMA baseline and an optimized GARCH-style volatility engine.
The indicator does not use a standard fixed-width channel. Instead, it estimates market variance through a recursive GARCH framework, smooths that volatility with a Zero-Lag EMA, and uses the result to create dynamic upper and lower bands around price structure.
The purpose of the indicator is to identify when price escapes a volatility-adjusted regime boundary, while allowing the band width to adapt to the underlying variance environment.
2. Calculation
The indicator starts by estimating volatility from lagged log returns. These returns are squared to create a variance component, which becomes the foundation of the GARCH model.
GARCH_LogReturn = math.log(close / close )
GARCH_SquaredLogReturn = math.pow(GARCH_LogReturn, 2.0)
GARCH_RealizedVariance = ta.sma(GARCH_SquaredLogReturn, GARCH_Lookback)
The script then searches through possible coefficient weights to find a beta/lambda value that better fits recent realized variance behavior. A second optimization loop is used to estimate gamma, which controls the long-run variance contribution.
These optimized coefficients are combined into a GARCH-style variance model using three components: long-run variance, recent shock variance, and lagged variance.
GARCH_Variance =
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_SquaredLogReturn +
GARCH_Beta * GARCH_LaggedVariance
After the variance estimate is created, it is smoothed using a Zero-Lag EMA. This gives the volatility engine a faster response while still reducing noise.
GARCH_ProjectedVariance = f_zlema(GARCH_Variance, GARCH_SmoothLen)
GARCH_Volatility = math.sqrt(math.max(GARCH_ProjectedVariance, 0.0))
The baseline is also built with a Zero-Lag EMA, applied after a light EMA pre-smoothing step. This creates the central reference line for the band structure.
The final bands are created by scaling the Zero-Lag GARCH volatility against the selected source and band pressure setting. Higher band pressure creates a tighter band, while lower pressure allows the band structure to expand.
upperBand = baseline + (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
lowerBand = baseline - (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous regime is held.
3. Key Features
Zero-Lag EMA baseline for reduced-lag price structure.
Optimized GARCH-style volatility engine.
Adaptive variance model using shock, lagged, and long-run components.
Zero-Lag smoothing applied to projected volatility.
Dynamic upper and lower volatility bands.
Band pressure control for adjusting channel tightness.
State-based candle coloring, band coloring, glow effect, and directional fills.
4. Use
Zero-Lag GARCH Bands is designed to identify when price begins escaping its volatility-adjusted structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The GARCH engine gives the indicator a deeper volatility layer than a standard ATR or deviation channel. Instead of only measuring recent range, it models variance behavior and projects that into the band structure.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate volatility-adjusted regime expansion, where price is evaluated against a dynamic variance boundary rather than a static channel. The full value comes from how this volatility regime signal is integrated into a broader process for timing, structure, and execution.
אינדיקטור

אינדיקטור

Cumulative Rejection Heatmap [MarkitTick]💡 This advanced visual analytics tool is designed to track, aggregate, and display price rejection zones over a rolling historical window. By focusing entirely on market wicks—the footprints of supply and demand absorption—this script constructs a dynamic heatmap that highlights where price has repeatedly struggled to close. Instead of simply looking at volume or closing prices, it isolates the exact microscopic levels where buyers and sellers have historically stepped in to reverse the momentum, providing a crystal-clear map of underlying market mechanics.
● ✨ Originality and Utility
Traditional technical analysis often relies on closing prices or volume-at-price concepts like the Volume Profile. While valuable, these standard tools can sometimes obscure the specific price extremes where true order absorption occurs. This tool takes an entirely original approach by creating a "Rejection Profile."
It systematically scans every single bar within a defined historical window, mathematically measures the length of the upper and lower wicks, and compares them against the total range of the bar. When a wick meets a stringent, user-defined threshold, it is classified as a valid rejection. Over time, these individual rejection events are accumulated into specific price bins, forming a dense, visual heatmap.
The utility here is unparalleled for traders who rely on price action and liquidity concepts. By rendering a visual concentration of wicks, the chart immediately reveals hidden support and resistance walls that might not be evident through standard line-drawing techniques. It removes subjectivity from the process, mathematically proving where the market is consistently refusing to allow price to travel.
● 🔬 Methodology and Concepts
The core engine of this script relies on a rolling matrix computation combined with strict volatility filtering. The methodology can be broken down into several distinct logical phases:
Volatility Filtering: Before any rejection is considered, the script measures the current bar's true range against a fraction of the Average True Range (ATR). If the bar's range is too small, it is deemed market noise or chop, and is entirely ignored. This prevents tight, low-volatility consolidation from falsely inflating the rejection heatmap.
Wick Ratio Calculation: For valid bars, the script calculates the exact length of the upper wick (High minus the maximum of Open/Close) and the lower wick (minimum of Open/Close minus Low). This value is divided by the total bar range. If this ratio exceeds the minimum wick ratio threshold, a rejection event is triggered.
Price Discretization (Binning): The script continuously tracks the highest high and lowest low of the entire lookback window. It divides this total vertical price space into a user-defined number of equal-sized bins.
Rolling Matrix Accumulation: Using an advanced matrix data structure, the script logs each rejection event into its corresponding price bin. As the lookback window rolls forward in time, the oldest data is systematically overwritten by the newest data. This ensures the heatmap is constantly adapting to current market conditions without retaining stale historical data that is no longer relevant.
● 🎨 Visual Guide
The script overlays multiple layers of visual intelligence directly onto the main price chart, designed to be quickly readable without cluttering the workspace.
• The Rejection Heatmap
Projected forward from current price action, a series of horizontal boxes forms the heatmap. The vertical height of each box represents a specific price bin, while the color intensity indicates the density of rejections within that bin. Colors transition dynamically using a custom gradient. Areas with little to no rejection remain dark and transparent, while areas of extreme rejection light up in high-contrast neon tones. Each box contains a subtle text label displaying the exact number of rejection hits and its percentage relative to the most rejected level.
• Support and Resistance (S/R) Lines
The script automatically identifies the top bins with the absolute highest concentration of historical rejections. It projects dashed horizontal lines across the chart at the exact center of these bins. These lines act as major, mathematically validated support and resistance levels, highlighted in a distinct, user-defined border color.
• Directional Triangles
When an immediate price rejection occurs on the live chart, a small geometric shape is printed to alert the user:
A downward-pointing triangle above the bar indicates a significant upper wick rejection, signaling sudden selling pressure or supply absorption.
An upward-pointing triangle below the bar indicates a significant lower wick rejection, signaling sudden buying pressure or demand absorption.
• The Analytics Dashboard
A sleek, customizable table is anchored to a corner of the chart, providing a heads-up display of the current market state. It displays the active asset, the rolling window size, the current ATR, and the exact price level of the highest rejection density. Furthermore, it features a text-based ASCII progress bar showing the peak density relative to historical maximums, and a Bull/Bear Bias metric that calculates the exact ratio of upward versus downward rejections over the entire window.
● 📖 How to Use
Traders can integrate this visual framework into a variety of market approaches, primarily focusing on mean reversion, breakout confirmation, and precise risk management.
Identifying Liquidity Pools: The brightest zones on the heatmap represent areas where limit orders have historically absorbed market orders. Traders can use these glowing zones as highly probable target areas for taking profits, as price tends to gravitate toward and stall at heavy liquidity.
Validating Breakouts: If price breaks cleanly through a bright red, high-density rejection zone and closes beyond it, it indicates a significant shift in market structure. A zone that previously acted as a ceiling (supply) may now act as a floor (demand) upon a retest.
Stop Loss Placement: The automated S/R lines and high-density bins provide logical areas for stop-loss placement. Placing a stop just outside a heavy rejection bin ensures that the trade is only invalidated if the market successfully chews through a known area of heavy opposition.
Real-Time Execution: The live directional triangles can be used as immediate trigger signals when they align with the broader heatmap context. For example, an upward-pointing triangle printing exactly as price dips into a historically dense lower rejection bin provides a high-probability entry for a long position.
● ⚙️ Inputs and Settings
The script is highly customizable, allowing the user to tailor the mathematical sensitivity and visual output to their specific asset and timeframe.
• Heatmap Configuration
Window: The rolling lookback period. A larger window encompasses more macro price action, while a shorter window reacts faster to recent volatility.
Bins: Determines the vertical resolution. More bins create thinner, more granular price slices; fewer bins create wider, more generalized zones.
Min Wick Ratio: The strictness of the rejection criteria. A higher value (e.g., 0.60) requires the wick to make up at least 60% of the entire bar, filtering out weak signals.
Min Range (xATR): Filters out low-volatility bars to prevent tight consolidation from skewing the data.
Heatmap Width %: Controls how far the visual heatmap projects into the future on the right side of the chart.
• Dashboard and Visuals
Dashboard Pos: Anchors the analytics table to any corner of the chart to prevent obstruction of price action.
Top S/R Levels: Determines how many distinct dashed support/resistance lines are drawn based on the highest-ranking bins.
Use Neon Gradient: Toggles the dynamic color shading of the heatmap boxes.
• Alerts Configuration
Action Long / Action Short: Custom JSON string inputs that allow the user to format specific payloads for automated trading platforms or webhooks when a live rejection triangle prints.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
At its academic core, this tool is heavily rooted in Auction Market Theory and the statistical discretization of continuous price variables. Auction Market Theory posits that financial markets exist solely to facilitate trade between buyers and sellers, constantly probing upward and downward to find areas of liquidity (fair value). When price extends too far and encounters a massive wall of limit orders, aggressive market orders are absorbed, and price is rapidly driven back in the opposite direction. On a candlestick chart, this aggressive absorption is permanently recorded as a wick.
By systematically isolating wicks, this script is effectively reconstructing the historical limit order book imbalance. It moves away from the continuous nature of time-series data and utilizes statistical binning—a process of dividing a continuous numerical range into discrete, non-overlapping intervals (bins). This is mathematically analogous to constructing a multidimensional probability density histogram.
The underlying matrix acts as a Markovian state tracker, where the probability of future price rejection at a specific interval is inferred from the historical density of prior absorptions within that exact same interval. The application of the Average True Range (ATR) as a high-pass volatility filter ensures that the statistical sample is robust, eliminating low-amplitude noise and focusing the mathematical weight strictly on statistically significant standard deviation expansions.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. אינדיקטור

Adaptive S/R Box Zones with Dynamic Stop Loss & EMA FilterTitle: Adaptive S/R Box Zones with Dynamic Stop Loss & EMA Filter
Description:
This indicator is an advanced tool designed to automatically identify key Support and Resistance (S/R) levels by blending momentum, volatility, and structural pivot points. The core objective of the script is to visualize asymmetric risk zones (Stop Loss zones) and filter out false breakouts using an integrated EMA momentum filter.
How it works:
S/R Detection Logic: Levels are not derived from simple highs and lows. The script utilizes a sophisticated algorithm that dynamically combines the RSI (Relative Strength Index) to spot extreme overbought/oversold conditions, a HMA-based CMO (Chande Momentum Oscillator) for momentum confirmation, and historical Close Pivots.
Asymmetric SL Zones (Boxes): Instead of standard symmetric lines that often distort spatial risk, the indicator renders dynamic box shapes. The height of these zones automatically adapts to the market's current volatility using the ATR (Average True Range).
The Resistance Zone expands asymmetrically upward from the level, offering a clear visual map for placing Stop Losses on Short setups.
The Support Zone expands asymmetrically downward from the level, defining the logical Stop Loss area for Long setups.
EMA Momentum Filter & Trigger: The script features an optional EMA crossover filter. When enabled, the detection of a new S/R zone acts as a dynamic "setup alert", while the actual BUY or SELL signal triggers only when the price breaks through the EMA line, confirming directional momentum.
Key Features & Inputs:
Zone Height (ATR Multiplier): Controls the thickness of the risk zones based on market volatility.
S/R Timeframe: Multi-timeframe (MTF) functionality to plot higher time frame levels onto your current chart.
Signal Trigger Mode: Toggle between On Candle Close and After Candle Close (waits for the candle to seal to prevent repainting).
EMA Filter Toggle: Can be fully deactivated if you prefer to receive raw signals immediately upon the formation of S/R levels. אינדיקטור

Seasonality: Stock Indices [invincible3]Seasonality: Stock Indices
Seasonality: Stock Indices is a clean dashboard-style indicator designed to display historical seasonal tendencies for major global stock indices directly on the TradingView price chart.
The indicator includes six separate seasonal mini-charts:
Australian ASX 200 — seasonal data from 2001 to 2020
FTSE 100 — seasonal data from 1985 to 2020
German DAX — seasonal data from 1999 to 2020
Nasdaq 100 — seasonal data from 1996 to 2020
S&P 500 — seasonal data from 1980 to 2020
Dow 30 — seasonal data from 1980 to 2020
Each panel displays a full 365-day seasonal curve, allowing traders to study how each index has historically performed throughout the calendar year. The indicator plots both the long-term All Years average and a Weighted Average curve, making it easier to compare broad historical behavior with a more weighted seasonal tendency.
The dashboard is arranged in a compact multi-panel layout and is designed to stay visually separated from candles, so it does not disturb the main price chart. Users can adjust the widget width, distance from candles, panel height, row spacing, column gap, and dashboard placement on either the right or left side of price.
Automatic dark/light theme detection is included, helping the dashboard remain readable across different TradingView chart themes. Manual customization is also available for the grid color, background, text color, All Years line, Weighted Average line, and line width.
This indicator is useful for index traders, swing traders, macro analysts, seasonal researchers, and market-timing studies. It helps users compare current index behavior with long-term historical seasonal patterns across major U.S., European, Australian, and technology-focused equity benchmarks.
Key Features:
Seasonal dashboard for major global stock indices
Includes ASX 200, FTSE 100, DAX, Nasdaq 100, S&P 500, and Dow 30
Full 365-day seasonal curves
All Years average line
Weighted Average line
Adjustable dashboard size and placement
Designed to stay away from candles
Auto dark/light theme support
Manual color customization
Election seasonality is intentionally excluded
Built for visual seasonal analysis
The seasonal values are approximate and digitized from historical seasonal data screenshots. This indicator is intended for educational and analytical purposes only. It does not provide financial advice, investment recommendations, or direct buy/sell signals. Historical seasonal tendencies do not guarantee future market performance.
אינדיקטור

Seasonality: Metals [invincible3]Seasonality: Metals
Seasonality: Metals is a visual dashboard-style indicator designed to display historical seasonal tendencies for major metals directly on the TradingView price chart.
The indicator includes five separate seasonal mini-charts:
Copper — seasonal data from 1960 to 2020
Gold — seasonal data from 1975 to 2020
Palladium — seasonal data from 1978 to 2020
Platinum — seasonal data from 1970 to 2020
Silver — seasonal data from 1969 to 2020
Each panel displays a full 365-day seasonal curve, helping traders observe how each metal has historically behaved throughout the calendar year. The indicator plots both the long-term All Years average and a Weighted Average curve, allowing users to compare broad historical seasonality with a more weighted seasonal tendency.
The dashboard is built with a clean five-panel layout: Copper and Gold on the top row, Palladium and Platinum on the middle row, and Silver on the bottom-left panel. The layout is designed to stay away from candles so it does not interfere with price action while still giving traders a clear view of seasonal structure.
Users can customize the widget width, distance from candles, panel height, row spacing, column gap, and dashboard placement on either the right or left side of the chart. The script also includes automatic dark/light theme detection, while still allowing manual customization of the background, grid, text, and seasonal line colors.
This indicator is useful for commodity traders, macro analysts, metals investors, and seasonal-market researchers who want to compare current price behavior with long-term historical seasonal patterns in the metals market.
Key Features:
Seasonal dashboard for major metals
Includes Copper, Gold, Palladium, Platinum, and Silver
365-day seasonal curves
All Years average line
Weighted Average line
Clean mini-chart layout
Adjustable widget size and placement
Dashboard can be placed left or right of price
Auto dark/light theme support
Manual color customization
Designed to stay visually separated from candles
The seasonal values are approximate and digitized from historical seasonal data screenshots. This indicator is intended for educational and analytical purposes only. It does not provide financial advice, investment recommendations, or direct buy/sell signals. Historical seasonal tendencies do not guarantee future market performance.
אינדיקטור

אינדיקטור

Dynamic Speed Pivot Supertrend [ZenAlphaAlgo]Overview
The Dynamic Speed Pivot Supertrend is an advanced trend-following indicator designed to address the lag associated with pivot-based trailing stop losses. While pivot points excel at filtering noise and identifying significant trend structures, their delayed confirmation (e.g. waiting for $N$ bars to establish a pivot) can lead to late exits or entries when market velocity changes rapidly.
This script solves this problem by introducing a dynamic, momentum-based velocity factor that adaptively increases responsiveness during high-momentum moves while maintaining standard smoothing during sideways consolidation.
Credits & Attribution
The foundation of this script—calculating a Supertrend center line using weighted averages of pivot highs and lows—is based on the original work of LonesomeTheBlue (www.tradingview.com). We would like to credit them for their excellent contribution to the TradingView community.
This script modifies the original logic by introducing price velocity (ROC-based normalized speed) directly into the center line's smoothing calculation.
How it Works (Methodology)
The core feature of this indicator is Dynamic Speed Adaptive Smoothing:
Velocity Calculation: On every bar, the script computes the absolute Rate of Change (ROC) of the closing price over the specified "Speed Period (ROC)". This measures the speed of price movement.
Normalization: The current ROC is normalized against the highest ROC value found within the "Max Speed Lookback" window. This divides the current speed by the highest speed observed in the lookback window, bounding the price velocity dynamically between 0.0 (fully flat/no movement) and 1.0 (maximum acceleration).
Adaptive Smoothing: When a new pivot point is formed, the center line adjusts its position using an adaptive weighting calculation. If dynamic smoothing is enabled, the smoothing factor (Alpha) increases during high-velocity periods by selecting the maximum value between a baseline of 0.33 and the calculated normalized speed:
During High Acceleration (Alpha near 1.0) : The center line reacts instantly to the new pivot point, rapidly tightening the trailing stop.
During Consolidation (Alpha at 0.33 baseline) : The smoothing factor relaxes back to the stable baseline, preventing unnecessary whipsaws.
How to Read Visual Cues (Interpretation)
Trailing Stop Line:
Lime Green Line : Represents an active bullish trend (long). Price is trading above the trailing stop.
Red Line : Represents an active bearish trend (short). Price is trading below the trailing stop.
Stop Start Shapes (Circles) : A circle is plotted directly on the trailing stop line at the exact bar a new trend begins (the trend flip point).
Buy/Sell Shapes:
Triangle Up (below bar): Plotted on a bullish trend flip (Buy signal).
Triangle Down (above bar): Plotted on a bearish trend flip (Sell signal).
Gradient Background Fill: A transparent color band spans between the trailing stop line and the closing price. The gradient starts translucent (75% transparency) at the stop line and fades out completely (100% transparency) towards the current price, indicating the safety buffer visually.
Center Line : The gray dotted line represents the adaptive center line around which the ATR bands are calculated.
Input Parameters Guide
Pivot Point Period (default: 2) : The number of left and right bars required to confirm a pivot high or low. Larger values filter more noise but increase confirmation delay.
ATR Factor (default: 6.0) : The multiplier applied to the Average True Range (ATR) to determine the distance of the bands from the center line.
ATR Period (default: 9) : The lookback window for the ATR volatility calculation.
Use Dynamic Center Line Smoothing (default: true): Toggles between the dynamic momentum-based smoothing coefficient and the static 0.33 smoothing.
Speed Period (ROC) (default: 4) : The lookback window for the Rate of Change calculation used to determine current price speed.
Max Speed Lookback (default: 50) : The lookback window used to establish the maximum historical speed for normalization.
Display & Styling : Toggles to independently show or hide the Trailing Stop line, the Center line, the buy/sell shapes, or the background gradient fill.
Alerts
Alert Conditions : Standard alert triggers are available via the TradingView Alert Dialog for both Buy / Bullish Trend Flip and Sell / Bearish Trend Flip.
Dynamic Alert s: Script-based dynamic alerts trigger on the bar close when a trend flip occurs.
Disclaimer
This indicator is created for educational and analytical purposes only. Past performance does not guarantee future results. Trend-following indicators are subject to drawdowns during sideways/ranging market conditions. Always perform thorough backtesting and practice proper risk management. אינדיקטור

JJB OTT Alert RelayJJB OTT Alert Relay
A bridge indicator that exposes Optimized Trend Tracker (OTT) Buy/Sell signals as alert conditions for automated webhook notifications.
🔍 What This Does
The Optimized Trend Tracker by TradingView generates clean Buy/Sell crossover signals but doesn't expose alertcondition() natively. This relay indicator mirrors the OTT's Support and OTT lines, detects crossovers, and surfaces them as alert conditions — so you can catch signals via webhook, email, or push without watching the chart.
🟢 Buy Signal: Support line crosses above OTT line
🔴 Sell Signal: Support line crosses below OTT line
⚙️ Setup (One-Time, 60 Seconds)
1. Add both indicators to your chart:
The original Optimized Trend Tracker (Community Script)
This JJB OTT Alert Relay
2. Wire the inputs:
Open JJB OTT Alert Relay → Settings → Inputs
Set "Support Line" → #1 Optimized Trend Tracker: Support Line
Set "OTT Line" → #1 Optimized Trend Tracker: OTT
3. Verify the match:
Both indicators should show identical Support and OTT values in the Data Window. If they match, the relay is wired correctly.
🔔 Creating the Alert
Open TradingView's Alert dialog
Condition → "Any alert() function call"
Select "JJB OTT Alert Relay" as the source
Paste your webhook URL
Use this JSON message template:
{"topic":"JJB BTC OTT","title":"BTC OTT {{strategy.order.action}}","message":"OTT Signal: {{strategy.order.action}} | Price: {{close}} | Interval: {{interval}}","tags": ,"passphrase":"YOUR_WEBHOOK_PASSPHRASE"}
Replace YOUR_WEBHOOK_PASSPHRASE with your actual webhook passphrase. The {{strategy.order.action}} placeholder resolves to "buy" or "sell" on each crossover.
Set expiration (default 30 days) and create.
💡 One alert covers both signals. No need for separate buy/sell alerts.
📊 Signal Logic
Condition Signal Meaning
Support ↑ crosses above OTT 🟢 BUY Trend turning bullish
Support ↓ crosses below OTT 🔴 SELL Trend turning bearish
This is a trend-following system — signals are infrequent (typically 2-4 per quarter on daily timeframe) but high-quality. Each signal confirms a structural shift, not noise.
📌 Tips
Daily timeframe is the sweet spot — lower timeframes generate more noise
The relay mirrors the original OTT exactly — it doesn't recalculate
If you change OTT's settings, the relay picks them up automatically via the wired inputs
The plot on your chart confirms the wiring: green line = Support, blue line = OTT
🔧 Requirements
Original Optimized Trend Tracker indicator on the same chart
Basic Pine Script v5+ (TradingView)
Author: JJB | Version: 1.0 אינדיקטור

SBP Trend & Momentum System
SBP Trend & Momentum System is an educational trend and momentum analysis tool designed to study directional market phases while reducing repeated and conflicting setup markers.
The script combines structured trend analysis, Hull-style adaptive smoothing, EMA directional consensus, ATR-normalized trend strength, momentum analysis, recent price-structure events, candle characteristics, volatility conditions, and optional relative-volume information.
### Why these components are combined
A single trend or momentum calculation may react differently during compression, directional expansion, and temporary counter-moves. This script combines several analytical components so that each performs a separate role within the setup process.
The trend filter and adaptive average evaluate directional slope. EMA alignment measures directional consensus and trend separation. ATR normalization adjusts momentum, structure penetration, and signal distance relative to current market movement. Candle and optional volume calculations provide additional setup context.
These components are combined through a normalized quality and factor-consensus framework rather than requiring every analytical event to occur on the same candle.
### Trend Phase Lock
The Trend Phase Lock maintains an established bullish or bearish directional phase.
Temporary neutral conditions do not automatically reset the active phase. A new opposite phase requires persistent opposite directional conditions before the phase state changes.
The primary setup engine permits one BUY or SELL marker per established directional phase. This is intended to reduce repeated same-direction labels during an ongoing move.
### Dominant Trend Guard
The Dominant Trend Guard distinguishes stronger directional conditions from ordinary short-term movement.
During a major bullish phase, the script evaluates whether bullish trend slope, adaptive direction, EMA alignment, and ATR-normalized trend strength remain aligned. The same process is applied inversely during a major bearish phase.
A temporary counter-move alone does not immediately change the active directional phase. Opposite phase processing uses reversal persistence, adaptive and EMA agreement, and ATR-normalized displacement before the phase can change.
This mechanism is a directional-state filter. It does not predict future price direction.
### Big Trend Continuation Rescue
Strong directional expansion can sometimes move beyond the normal signal-distance range or continue after the standard phase signal window.
The Big Trend Continuation Rescue evaluates dominant trend state, directional momentum, factor alignment, normalized quality, volatility, and candle-range conditions.
Its purpose is to allow the setup engine to continue evaluating a strong directional phase without requiring the ordinary setup conditions to occur within a narrow group of bars.
The one-primary-marker-per-phase rule remains applicable.
### Quality and Factor Consensus
The script calculates a normalized quality score from:
• Trend strength
• Directional alignment strength
• ATR-normalized momentum quality
• Candle characteristics
• Recent structure quality
• Optional relative-volume information
Momentum, structure, and candle conditions contribute to setup quality and factor consensus. They are not all required to occur on the same candle.
The available scoring denominator automatically adjusts when optional analytical components are disabled.
### Structure Memory
The structure engine evaluates closes relative to previous price structure and measures penetration in ATR terms.
A controlled fresh structure event receives greater analytical weight. A recent structure event can remain relevant for a limited number of bars.
This allows the setup engine to evaluate continuation conditions after a structure event rather than requiring the signal candle itself to be the structure-break candle.
### Trading Modes
The indicator includes three analytical modes:
**SCALPING** — shorter calculation lengths for faster chart conditions.
**INTRADAY** — balanced calculation lengths for intraday market analysis.
**SWING** — longer calculation lengths for broader directional analysis.
These modes adjust internal trend, adaptive smoothing, momentum, structure, and candle-range parameters.
### Signal Quality and Frequency
Users can select **Aggressive, Balanced, or Conservative** signal-quality settings.
The **Selective, Balanced, and Frequent** frequency settings adjust phase confirmation and setup evaluation parameters.
These controls change the script's rule-based analytical sensitivity. They do not represent expected performance levels.
### BUY and SELL Labels
BUY and SELL labels identify rule-based analytical setups generated when the script's directional phase, trend state, factor consensus, quality, volatility, and other enabled conditions meet the defined criteria.
The labels are analytical markers only. They are not automated orders, trade execution instructions, financial advice, or guarantees of future market movement.
### Early Transition Markers
Optional early transition markers evaluate directional crosses together with trend slope, adaptive direction, EMA alignment, momentum, and candle characteristics.
These markers are separate from the primary BUY and SELL setup engine. They do not reset the Trend Phase Lock or unlock another primary setup marker.
### ATR Risk Guide
The optional ATR Risk Guide plots a volatility-based visual reference around the adaptive average.
It is provided for chart analysis only and is not a broker order, strategy exit, or guaranteed stop-loss level.
### Bar-Close Processing
When **Signals On Bar Close** is enabled, phase processing, primary setup markers, early transition markers, and related alerts are evaluated after the chart bar closes.
The script does not use `request.security()` or future-data lookup.
### Important Information
This indicator is provided for educational and informational purposes only.
It is an analytical decision-support tool and does not execute trades or provide automated investment advice. BUY and SELL labels identify conditions defined by the script's calculations and should not be interpreted as guarantees of profitable outcomes or future price direction.
Users should independently evaluate market conditions and apply their own execution, position-sizing, and risk-management methods.
Past performance does not guarantee future results.
אינדיקטור

SBP SBP Trend Phase NavigatorSBP Trend Phase Navigator
SBP Trend Phase Navigator is a rule-based technical analysis indicator designed to study directional trend phases and identify selected analytical setups when multiple chart conditions align.
Purpose and Component Integration
The indicator combines trend direction, adaptive smoothing, EMA alignment, ATR-normalized momentum, price structure, candle characteristics, optional relative volume, and volatility analysis.
These components are combined because they evaluate different aspects of price behaviour. Trend calculations provide directional context, momentum measures the strength of recent price movement relative to volatility, price structure evaluates movement beyond previous chart levels, and candle analysis examines the characteristics of the current bar.
The script processes these conditions within one rule-based framework rather than treating each component as an independent signal source.
Trend Analysis
The trend engine evaluates price in relation to a smoothed trend filter and measures the direction of the filter's slope.
A fast and slow EMA pair is used to assess directional alignment. The distance between these averages is normalized using Average True Range (ATR) and forms part of the trend-strength calculation.
A Hull-style adaptive average provides an additional directional reference. Its slope is evaluated together with the trend filter and EMA alignment when determining bullish or bearish trend conditions.
ATR-Normalized Momentum
Momentum is calculated from price change over a mode-dependent lookback period and divided by ATR.
This allows the script to evaluate recent directional price movement relative to the instrument's recent volatility rather than using absolute price movement alone.
Bullish and bearish momentum conditions are calculated separately.
Price Structure and Candle Analysis
The Price Structure Engine compares the current closing price with previous structure highs or lows over a selected lookback period.
The current setup candle is excluded from its own structure reference.
The Candle Quality Engine evaluates the candle body relative to the complete candle range and examines where the candle closes within that range. Bullish and bearish candle conditions are assessed separately.
Optional Relative Volume Analysis
The Relative Volume Filter compares current volume with its recent average where usable volume data is available.
This component is optional because volume characteristics can differ between symbols and markets.
When the volume filter is disabled, volume is excluded from both the score contribution and the available score denominator.
Volatility and Signal Distance
The volatility engine compares current ATR with its recent ATR average. The optional volatility filter can restrict setup markers when the ATR expansion ratio exceeds the selected maximum value.
The Maximum Signal Distance setting measures the distance between price and the Adaptive Average in ATR units. This condition can restrict primary setup markers when price is beyond the selected distance from the adaptive trend reference.
Normalized Quality Score
The indicator calculates separate bullish and bearish quality scores.
Trend strength and directional alignment form the core of the score. Momentum, candle characteristics, price structure, and relative volume contribute when their corresponding components are enabled.
The quality percentage is normalized according to the active scoring components. Disabling an optional component removes its contribution from the score calculation and the available score denominator.
The Aggressive, Balanced, and Conservative quality settings adjust the analytical thresholds used by the script. These settings control rule selectivity and do not represent an expected performance or success rate.
Trend Phase Lock
The Trend Phase Lock is used to control repeated same-direction setup markers.
Bullish and bearish trend conditions are counted over consecutive qualifying bars. A directional phase is established after the selected phase-confirmation requirement is met.
Temporary neutral or transition bars do not automatically reset the active phase.
After a primary BUY or SELL setup marker is generated, the active directional phase is marked as used. The primary setup engine does not generate another same-direction marker during that established phase.
A new primary setup becomes available after an opposite directional phase satisfies the script's phase-confirmation rules.
The Trend Phase Lock is a signal-frequency control mechanism. It does not predict future price direction.
Signal Frequency
The indicator provides Selective, Balanced, and Frequent signal-frequency settings.
Selective applies additional phase confirmation and higher quality requirements.
Balanced uses moderate phase and quality requirements.
Frequent uses less restrictive phase-confirmation and quality requirements.
These settings change the selectivity of the rule-based setup engine.
BUY and SELL Setup Labels
BUY and SELL labels identify bars where the enabled trend, momentum, structure, candle, volume, volatility, signal-distance, quality, and directional-phase conditions satisfy the selected settings.
The primary setup engine permits one setup marker per established directional phase.
When Signals On Bar Close is enabled, primary setup markers and related alert conditions are evaluated after the chart bar closes.
The labels represent rule-based analytical conditions generated by the script. They are not automated orders or guarantees of future price movement.
Early Transition Markers
Optional Early Transition Markers evaluate selected crossings of the trend filter together with trend slope, adaptive trend direction, EMA alignment, momentum direction, candle characteristics, volatility, and signal-distance conditions.
These markers are separate from the primary BUY and SELL setup engine. They do not reset the active phase or unlock another same-direction primary setup.
Early Transition Markers are disabled by default.
ATR Risk Guide and Dashboard
The optional ATR Risk Guide plots a volatility-based analytical reference around the Adaptive Average. It is a visual reference only and is not an automated order, strategy exit, or guaranteed stop level.
The optional dashboard displays the selected mode, signal-frequency setting, current trend state, active directional phase, phase-signal status, normalized quality score, market regime, and current setup state.
Modes and User Controls
The indicator provides SCALPING, INTRADAY, and SWING modes. These modes adjust the internal trend, adaptive-average, momentum, and price-structure lookback lengths.
Users can also control trend-strength, momentum, relative-volume, price-structure, candle-quality, and volatility filters through the indicator settings.
Important Information
SBP Trend Phase Navigator is an analytical and technical-analysis tool intended for educational and informational use.
The indicator evaluates chart data according to defined mathematical and rule-based conditions.
BUY and SELL labels identify analytical setups produced by the script's conditions. They do not constitute financial advice, automated trade execution, or guarantees of future market performance.
The script does not place or manage orders. Users are responsible for their own analysis, trading decisions, position sizing, and risk management.
Past performance does not guarantee future results. אינדיקטור
