Indicator

Indicator

Chimera [theUltimator5] FearinLoathin Edit================================================================================
CHIMERA — INDICATOR REFERENCE GUIDE (v2.0)
================================================================================
Written for PulseWire PineScript v6.
Indicator type: Pane (non-overlay), with chart overlays for gap lines and VFX.
CREDITS - TheUltimator5 (original author)
--------------------------------------------------------------------------------
TABLE OF CONTENTS
--------------------------------------------------------------------------------
1. Overview
2. Visual Modes
3. Mode A — Oscillator: How to Read It
4. Mode A — The Five Sentiment Components Explained
5. Mode A — Sentiment Bands and Signal Logic
6. Mode A — The Information Table
7. Mode A — Oscillator Display Styles
8. Mode B — ADX View: How to Read It
9. Gap Fill Lines — What They Are and How to Use Them
10. Volume Voids Overlay
11. Fire & Ice Visual Effects
12. Buy / Sell Signal Arrows
13. Alerts Reference
14. Settings Reference (All Inputs)
15. Best Practices for Trading Sessions
16. Timeframe Recommendations
================================================================================
1. OVERVIEW
================================================================================
Chimera is a multi-component sentiment indicator designed to synthesise five
independent technical indicators into a single normalised oscillator, while
simultaneously providing ADX-based trend-strength analysis and multi-timeframe
gap-fill detection.
It is NOT a simple signal generator. It is a confluence tool — its greatest
value lies in reading MULTIPLE signals together to build a high-probability
trade context before entry.
Key features:
• Two visual modes: Oscillator (sentiment) and ADX (trend strength)
• Five-component composite: RSI, MACD, Bollinger Bands, Stochastic, ATR+DI
• Dynamic overbought/oversold bands based on statistical standard deviation
• Automatic Higher-Timeframe (HTF) gap-fill line detection (up to 3 levels)
• Volume-by-price void detection overlay
• Bollinger Band breakout fire/ice visual effects
• Fully configurable alerts for all major events
================================================================================
2. VISUAL MODES
================================================================================
Select the mode at the top of Settings > "Visual Style":
OSCILLATOR MODE
---------------
Displays the combined five-component sentiment score as a dynamic oscillator.
Best used for:
- Identifying overbought and oversold extremes
- Timing entries and exits after a trend is confirmed
- Spotting momentum divergences between components
- Short-to-medium timeframes (1m to 4H)
ADX MODE
--------
Displays the Average Directional Index (ADX) with DI+ and DI- lines.
Best used for:
- Confirming whether a trend exists BEFORE trading direction
- Avoiding false signals in choppy/consolidating markets
- Identifying trend exhaustion and reversal setups
- All timeframes; especially powerful on 15m, 1H, 4H, Daily
Both modes display gap-fill lines and VFX overlays on the price chart
simultaneously. The mode only changes what appears in the indicator pane.
================================================================================
3. MODE A — OSCILLATOR: HOW TO READ IT
================================================================================
The oscillator pane shows a value between 0 and 100 representing the
aggregated bullish/bearish sentiment across all five components.
Scale:
100 = Maximum bullish pressure (extreme overbought)
75 = Strong bullish momentum
50 = Neutral / mid-point
25 = Strong bearish momentum
0 = Maximum bearish pressure (extreme oversold)
Key elements in the pane:
FAST MA LINE (default: lime/red line)
The short-period moving average of combined sentiment.
Color: Lime = bullish trend; Red = bearish trend.
This is your primary momentum signal line.
SLOW MA / DNA CANDLE BODY (default: aqua/maroon bodies)
The long-period moving average of combined sentiment.
In "Candle DNA" mode it appears as wide bodies with no wicks.
The color gradient deepens as sentiment moves further from neutral:
- Near mid-band: dim yellow
- At extreme bands: full greed_color (bullish) or fear_color (bearish)
- During consolidation (ADX weak): white bodies
MID LINE (gray horizontal)
The dynamic mean of average sentiment. Think of it as the "equilibrium"
level. Sentiment oscillating above = bullish bias; below = bearish.
TOP BAND (overbought, default: aqua)
When the oscillator crosses above this line, the market is statistically
overbought. A reversal signal is generated when it falls back below.
BOTTOM BAND (oversold, default: maroon)
When the oscillator drops below this line, the market is statistically
oversold. A reversal signal is generated when it rises back above.
The bands are NOT fixed levels. They are calculated dynamically using
the mean plus/minus (stdev_value × standard deviation) over the lookback
period. This means they adapt to changing market volatility.
================================================================================
4. MODE A — THE FIVE SENTIMENT COMPONENTS EXPLAINED
================================================================================
Each component is normalised to a 0–100 scale (50 = neutral) using z-score
scaling over the lookback period. They are then averaged into a single score.
COMPONENT 1: RSI (Relative Strength Index)
------------------------------------------
Measures recent price momentum relative to its own history.
RSI > 70 → bullish; RSI < 30 → bearish.
After normalisation: above 50 = bullish momentum; below 50 = bearish.
Best at: identifying momentum divergence and overbought/oversold extremes.
COMPONENT 2: MACD (Moving Average Convergence-Divergence)
----------------------------------------------------------
The histogram (MACD line minus signal line) is normalised.
Positive histogram → bullish; negative → bearish.
After normalisation: above 50 = upward momentum; below 50 = downward.
Best at: identifying trend direction changes and momentum strength.
COMPONENT 3: BOLLINGER BANDS
----------------------------
Measures where price sits within the Bollinger Band channel.
0 = at the lower band; 100 = at the upper band; 50 = at the middle.
This is NOT further normalised (it is already a 0–100 position).
Best at: identifying mean-reversion opportunities and breakout conditions.
COMPONENT 4: STOCHASTIC (%D)
----------------------------
Smoothed %K → %D pipeline measuring price momentum within a range.
Already on a 0–100 scale so it feeds directly into the composite.
Best at: timing short-term overbought/oversold conditions.
COMPONENT 5: ATR + DIRECTIONAL VOLATILITY
------------------------------------------
A composite of ATR (volatility) and DI+/DI- divergence.
DI+ > DI- (bullish divergence) is amplified by high ATR, giving a score
that represents both HOW directional and HOW volatile the market is.
After normalisation: above 50 = bullish volatility; below 50 = bearish.
Best at: confirming strong directional moves and filtering low-volatility noise.
VIEWING INDIVIDUAL COMPONENTS
------------------------------
Use the "Show Individual Component" dropdown to overlay any single
component on the oscillator pane. This lets you see which components are
driving (or diverging from) the combined signal.
The Information Table (bottom left by default) shows all five component
values and their individual sentiment labels simultaneously.
================================================================================
5. MODE A — SENTIMENT BANDS AND SIGNAL LOGIC
================================================================================
OVERBOUGHT / OVERSOLD BANDS
----------------------------
The bands move with the market using a rolling statistical calculation:
Top Band = Double-smoothed mean + (Multiplier × Standard Deviation)
Bot Band = Double-smoothed mean - (Multiplier × Standard Deviation)
Default multiplier is 1.8σ, which generates signals less frequently than
a standard 1σ or 2σ setting, but with higher reliability.
Increase the multiplier → fewer signals, higher confidence.
Decrease the multiplier → more signals, higher noise.
SIGNAL GENERATION LOGIC
-----------------------
A BUY SIGNAL (bullCross) fires when ALL of the following are true:
1. The oscillator was below the oversold band on the previous bar
2. It has now risen above the oversold band (exit from extreme)
3. The most recent fast/slow MA crossover was bullish (is_bull = true)
A SELL SIGNAL (bearCross) fires when ALL of the following are true:
1. The oscillator was above the overbought band on the previous bar
2. It has now fallen below the overbought band (exit from extreme)
3. The most recent fast/slow MA crossover was bearish (is_bull = false)
This two-condition system prevents false signals in choppy markets — the
oscillator must BOTH reach an extreme AND have a confirmed trend direction.
TREND TRACKING (is_bull flag)
------------------------------
When the fast MA crosses ABOVE the slow MA → is_bull = true (lime line)
When the fast MA crosses BELOW the slow MA → is_bull = false (red line)
This state persists until the next crossover — it is not bar-by-bar.
================================================================================
6. MODE A — THE INFORMATION TABLE
================================================================================
The table shows all five components side-by-side. Enable in Settings >
Table Settings > "Show Information Table".
Columns:
Component | Name of the indicator
Value | Normalised score (0–100, #.0 precision)
Status | One of: Oversold / Bearish / Neutral / Bullish / Overbought
Status thresholds are dynamic, based on the same bands as the main pane:
Oversold : Value <= Bot Band
Bearish : Value <= Halfway between Bot Band and Mid Line
Neutral : Value between the two halfway points
Bullish : Value <= Halfway between Mid Line and Top Band
Overbought : Value > Top Band
Selected component rows are highlighted with the component's line color.
Use the table to spot DIVERGENCE: if RSI is Overbought but MACD is Neutral,
the rally may be losing conviction.
================================================================================
7. MODE A — OSCILLATOR DISPLAY STYLES
================================================================================
"Candle 'DNA' Style" (default)
--------------------------------
Shows wick-free candles. Open/High = slow MA; Close/Low = fast MA.
The candle BODY spans the distance between the two lines.
Body color encodes sentiment direction and strength.
This is the richest visual — shows the spread between fast and slow at a glance.
"Line"
------
Shows only the fast MA as a colored line (lime/red).
Cleaner view for simple trend-following.
The slow MA line is also available when "Show Slow MA" is enabled.
"Lines with Fill"
-----------------
Shows both fast and slow MAs as lines with a semi-transparent fill between them.
The fill color matches the candle_color logic (sentiment gradient).
Good for visualising the divergence between the two moving averages.
================================================================================
8. MODE B — ADX VIEW: HOW TO READ IT
================================================================================
ADX LINE (colored, thick)
--------------------------
Measures the STRENGTH of the current trend regardless of direction.
Color changes based on strength level:
Light blue (very faint) : ADX below low threshold — no trend (consolidating)
Blue : ADX 14–19 — trend developing
Aqua : ADX 19–25 — moderate trend
Orange : ADX 25–High Threshold — strong trend
Red : ADX above High Threshold — very strong trend
ADX THRESHOLDS (dashed horizontal lines)
-----------------------------------------
Low Threshold (default: 14): Below this = consolidation. Treat all
directional signals with extreme caution. The market is ranging.
High Threshold (default: 40): Above this = very strong trend. Momentum
trades are favored; mean-reversion trades are dangerous.
DI+ LINE (green)
-----------------
Positive Directional Indicator — measures bullish pressure.
When DI+ > DI- and both are rising: strong bullish trend.
The line fades to transparent as it weakens (below the low threshold).
DI- LINE (pink/magenta)
------------------------
Negative Directional Indicator — measures bearish pressure.
When DI- > DI+ and both are rising: strong bearish trend.
GRADIENT FILL (above High Threshold)
--------------------------------------
When ADX crosses above the High Threshold:
Orange fill (DI+ > DI-) = Strongly bullish trend is dominant
Blue fill (DI- > DI+) = Strongly bearish trend is dominant
The fill fades from the ADX line down to the High Threshold line.
WHITE FADE (below Low Threshold)
----------------------------------
When ADX is below the Low Threshold, a white glow fades between the
ADX line and the Low Threshold line — a visual cue that the market is weak.
CONSOLIDATION OVERLAY (optional)
----------------------------------
Enable "Show Consolidation Background" in ADX Settings.
When active, a subtle white tint appears on the price chart during
consolidation periods (ADX weak, DI lines compressed below 25).
Price candles are also colored white on the chart during these periods.
HOW TO READ THE ADX FOR ENTRIES
---------------------------------
1. ADX < 14: Wait. The market is directionless. Skip signals.
2. ADX 14–25, rising: Trend is forming. Look for entry in direction of DI.
3. ADX 25–40, rising: Confirmed trend. Best window for trend-following entries.
4. ADX > 40: Trend is very strong. Continuation entries are valid but
expect volatility. Avoid counter-trend positions.
5. ADX > 40 and beginning to fall: Trend may be exhausting. Tighten stops.
6. ADX crossing below 40: Possible trend change. Watch DI crossovers.
================================================================================
9. GAP FILL LINES — WHAT THEY ARE AND HOW TO USE THEM
================================================================================
WHAT ARE THEY?
--------------
Gap fill lines are horizontal price levels drawn on the price chart when a
specific market structure event is detected: a sudden spike in directional
movement (DI+ or DI-) following a period of ADX weakness.
The open price at the moment of that detection is recorded as the "gap level".
A horizontal line extends rightward until price revisits that level — at which
point it is automatically removed (the gap is "filled").
WHY ARE THEY USEFUL?
---------------------
Markets have a strong statistical tendency to revisit levels where a
significant directional move originated. These levels often act as:
- Support (when price is below the gap line and approaches from below)
- Resistance (when price is above the gap line and approaches from above)
- Magnet targets during low-volume or low-volatility periods
The gap line can be thought of as an "unfilled price promise" — an area
the market left behind in a hurry, and will likely return to visit.
TIMEFRAME HIERARCHY (up to 4 simultaneous lines)
--------------------------------------------------
The indicator maintains gap lines across four timeframe levels simultaneously:
Current TF Line (default: Blue)
Gap detected on your current chart timeframe.
Highest reliability for short-term trades. Terminated most quickly.
HTF 1 Line (default: Purple)
Gap detected on the next higher timeframe (auto-selected).
Example: On a 15m chart, HTF 1 = 30m.
More significant than current TF gaps. Price gravitates to these.
HTF 2 Line (default: Fuchsia)
Two steps up. Example: On 15m → HTF 2 = 45m.
Major support/resistance candidates.
HTF 3 Line (default: Deep Pink)
Three steps up. Example: On 15m → HTF 3 = 60m.
The strongest levels. Price may respect these for hours or days.
PRIORITY AND OVERLAP FILTERING
--------------------------------
If two gap lines from different timeframes fall within 2 ticks of each other,
the lower-timeframe line is hidden to avoid visual clutter. Only the highest-
priority (most current TF) line is displayed.
GAP LABELS
----------
When enabled, a small text label appears at each new gap line showing:
()
Example: "43,250.00 (4H)"
Labels appear when the line is first drawn and point in the direction of
price relative to the gap (arrow up if price is below, down if above).
TRADING THE GAP LINES
----------------------
Strong setups occur when:
1. Multiple gap lines cluster at the same price zone (confluence)
2. A higher-TF gap line aligns with a key technical level (S/R, trend line)
3. Price approaches the gap line with decreasing momentum (oscillator
approaching neutral from an extreme)
4. ADX is moderate (15–30) — means price has room to move to the level
Avoid:
- Trading a gap line target when ADX > 40 (trend may override the pullback)
- Gap lines that are very old (many hundred bars) without being revisited
================================================================================
10. VOLUME VOIDS OVERLAY
================================================================================
Enable in Settings > Volume Voids > "Show Low and Zero Volume Zones".
The indicator builds a volume-by-price profile over the lookback period
(default: 500 bars) using a configurable number of price bins.
THREE OVERLAY ELEMENTS
ZERO-VOLUME ZONES (default: orange)
------------------------------------
Price ranges within the lookback window where ZERO volume was traded.
These are genuine price gaps — the market moved through these levels so
quickly that no significant trading occurred.
These are STRONG magnets: price almost always returns to fill them.
The zone extends from the most recent lookback period start to the right edge.
LOW-VOLUME ZONES (default: blue)
----------------------------------
Price ranges where volume was traded but below the dynamic threshold
(total volume divided by the divisor × number of bins).
These are areas of thin liquidity — easier for price to move through
quickly, but also likely to be revisited.
POINT OF CONTROL (default: gray line)
---------------------------------------
Enable "Show Point of Control (PoC)".
A horizontal line at the single price level with the MOST traded volume
in the lookback period. This is the market's "fair value" anchor.
Price tends to orbit the PoC during ranging markets and return to it
after extended moves away from it.
ADJUSTING SENSITIVITY
----------------------
Increase "Number of Volume Bins": finer price resolution (more detail)
Decrease "Low-Volume Threshold Divisor": flags more zones as low-volume
Increase "Lookback Period": broader historical picture
Decrease "Lookback Period": more recent, more relevant profile
================================================================================
11. FIRE & ICE VISUAL EFFECTS
================================================================================
These are overlay effects drawn on the price chart during strong trend conditions.
FIRE EFFECT (orange glow above candle)
----------------------------------------
Appears when:
• Price closes ABOVE the upper Bollinger Band
• ADX > 30 (strong trend)
• At least one DI line > 30 (directional pressure confirmed)
Interpretation: The market is breaking out to the upside with force.
The "flame" height scales with recent average candle range (volatility).
ICE EFFECT (blue glow below candle)
--------------------------------------
Appears when:
• Price closes BELOW the lower Bollinger Band
• ADX > 30 (strong trend)
• At least one DI line > 30 (directional pressure confirmed)
Interpretation: The market is breaking down with force.
Both effects are visual confirmation tools — they do NOT generate signals
on their own. Use them as a "this breakout has strength" confirmation when
combined with a signal from the oscillator or ADX mode.
Toggle on/off: Settings > "Show Visual Overlay Flame Effects"
================================================================================
12. BUY / SELL SIGNAL ARROWS
================================================================================
Enable in Settings > "Show Buy and Sell Overlay Signals".
Arrows appear on the price chart, not in the indicator pane.
Green triangle (below bar): BUY SIGNAL
Oscillator exited the oversold zone while in a confirmed bullish trend.
Red triangle (above bar): SELL SIGNAL
Oscillator exited the overbought zone while in a confirmed bearish trend.
These are SUGGESTED entry opportunities, not guaranteed signals. Always
confirm with:
1. ADX > 20 (there is a trend worth following)
2. Gap lines showing no immediate obstacle in the direction of the trade
3. Volume context (not in a low-volume void)
================================================================================
13. ALERTS REFERENCE
================================================================================
Set alerts in PulseWire via the Bell icon on the indicator panel.
Alert Name | Condition
------------------------------------|------------------------------------------
Buy Signal — Oversold Exit | Oscillator exits oversold (bullish)
Sell Signal — Overbought Exit | Oscillator exits overbought (bearish)
Gap Fill Line Created (Any TF) | New gap line drawn on any timeframe
Gap Fill Line Terminated (Any TF) | Gap line removed (price hit the level)
ADX Crossed ABOVE Low Threshold | ADX > 14 (trend forming)
ADX Crossed BELOW Low Threshold | ADX < 14 (trend fading/consolidating)
ADX Crossed ABOVE High Threshold | ADX > 40 (very strong trend active)
ADX Crossed BELOW High Threshold | ADX < 40 (strong trend weakening)
Consolidation Started | Market entered consolidation phase
RECOMMENDED ALERT SETUP FOR ACTIVE TRADING
-------------------------------------------
1. "Gap Fill Line Created (Any TF)" — notifies you of new price magnets
2. "Buy Signal" + "Sell Signal" — entries after extremes
3. "ADX Crossed ABOVE Low Threshold" — market waking up from consolidation
4. "ADX Crossed ABOVE High Threshold" — breakout confirmation
================================================================================
14. SETTINGS REFERENCE
================================================================================
VISUAL STYLE
Oscillator / ADX — switches the indicator pane display.
--- OSCILLATOR SETTINGS ---
Oscillator Display Style
Candle 'DNA' Style : wick-free candles spanning fast/slow MA (default)
Line : fast MA line only
Lines with Fill : both MAs + semi-transparent fill between them
Show Slow MA
Controls the slow MA visibility in all sub-styles.
Show Fast MA Line
Controls the fast MA line visibility.
Show Individual Component
Overlays one raw component (RSI/MACD/BB/Stoch/ATR) for analysis.
Show Buy and Sell Overlay Signals
Enables triangle arrows on the price chart at signal events.
--- COLOR SETTINGS ---
Oversold Color : Color for bearish/oversold state (default: maroon)
Overbought Color : Color for bullish/overbought state (default: aqua)
--- GENERAL SETTINGS ---
Lookback Period (default: 252)
Bars for band/mean calculation. 252 ≈ one trading year on daily charts.
On shorter timeframes, consider reducing (e.g., 50–100 on 1m charts).
Short Smoothing Period (default: 1)
SMA on the fast line. 1 = no smoothing. Increase to reduce noise.
Long Smoothing Period (default: 12)
SMA on the slow line. Controls crossover sensitivity.
Standard Deviation Multiplier (default: 1.8)
Band width. Lower = more signals. Higher = stronger signals.
Suggested range: 1.5 (active) to 2.5 (conservative).
--- OSCILLATOR SIGNAL SETTINGS ---
1 - RSI Length (default: 14)
2 - MACD Fast / Slow / Signal Lengths (default: 12 / 26 / 9)
3 - Bollinger Bands Length / StdDev Multiplier (default: 20 / 2.0)
4 - Stochastic %K Period / %K Smoothing / %D Smoothing (default: 14 / 3 / 3)
5 - ATR Length (default: 14)
All default to standard industry values. Change with caution.
--- TABLE SETTINGS ---
Show Information Table : Toggle component summary table
Table Position : Where the table appears in the pane
--- ADX SETTINGS ---
High Threshold (default: 40)
ADX level above which the directional gradient fill activates.
Suggested range: 30 (aggressive) to 50 (conservative).
Show Consolidation Background
Tints price chart background during weak ADX periods. ADX mode only.
--- HTF SETTINGS ---
Enable Higher-Timeframe Gap Lines
Toggle to disable all HTF security() calls for performance.
Gap Line Colors (Current TF / HTF 1-3)
Customize each timeframe's line color.
Show Gap Labels
Toggle the price labels on new gap lines.
--- VISUAL FX ---
Show Visual Overlay Flame Effects
Toggle fire/ice Bollinger Band breakout glow effects.
--- VOLUME VOIDS ---
Show Low and Zero Volume Zones : Master toggle
Lookback Period (default: 500) : Bars in the volume profile
Number of Volume Bins (default: 50) : Profile resolution
Show Point of Control : Toggle PoC line
Zero-Volume Zone Color (default: orange)
Low-Volume Zone Color (default: blue)
PoC Line Color (default: gray)
Show Low-Volume Zone Borders : Toggle box borders
Low-Volume Threshold Divisor (default: 4.0)
Higher = more zones flagged as low-volume
================================================================================
15. BEST PRACTICES FOR TRADING SESSIONS
================================================================================
BEFORE THE TRADING SESSION
---------------------------
1. Switch to ADX mode and check the Daily/4H ADX level:
- ADX > 25: trend is established — trade in that direction
- ADX < 15: range-bound — focus on extremes and reversions
- ADX between 15–25: discretion required; watch for breakouts
2. Note all active gap lines across timeframes. Mark price clusters where
two or more lines overlap — those are your key levels for the session.
3. Check Volume Voids (if enabled). Zero-volume gaps above and below
current price are likely targets during the session.
DURING THE SESSION — OSCILLATOR MODE
--------------------------------------
1. Wait for the oscillator to reach an extreme (above top band or below bot band).
2. Confirm the ADX is not so strong that it overrides mean-reversion (ADX < 35).
3. Wait for the EXIT signal (oscillator crosses back through the band) — do not
enter on the extreme itself, enter on the CONFIRMATION of exit.
4. Check that no gap line blocks the path to your target.
5. Use the Information Table to check for multi-component confirmation.
Strongest signals = 4 or 5 components aligned in the same direction.
DURING THE SESSION — ADX MODE
-------------------------------
1. Identify the dominant DI (DI+ or DI-). The bigger value wins.
2. Only take trades in the direction of the dominant DI.
3. When ADX crosses above the High Threshold and the gradient fill appears,
momentum trades have highest conviction. Ride them with trailing stops.
4. When ADX begins to fall from a high level, start tightening stops.
This does NOT mean reverse — just defend profits.
5. When the white fade appears (ADX < low threshold), STOP trading directional
strategies. Focus on the gap lines as targets instead.
EXIT RULES
----------
Long exit signals (any of):
- Bearish signal arrow appears
- Oscillator reaches overbought band
- Price reaches a gap line from above (resistance)
- ADX has fallen significantly from its peak
- DI+ crosses below DI-
Short exit signals (any of):
- Bullish signal arrow appears
- Oscillator reaches oversold band
- Price reaches a gap line from below (support)
- ADX falling significantly
- DI- crosses below DI+
================================================================================
16. TIMEFRAME RECOMMENDATIONS
================================================================================
SCALPING (1m – 5m)
-------------------
Primary mode : Oscillator
Best signals : Crossover arrows + component table for quick reads
Key settings : Reduce lookback_period to 50–100; reduce long_smoothing to 5
Gap lines : Current TF and HTF 1 most relevant; ignore HTF 3
DAY TRADING (15m – 1H)
-----------------------
Primary mode : Alternate between ADX (trend) and Oscillator (timing)
Best signals : Confirm direction with ADX; time entries with oscillator
Key settings : Default settings work well
Gap lines : All four levels useful; HTF 2 and HTF 3 for key levels
SWING TRADING (4H – Daily)
---------------------------
Primary mode : ADX for trend; oscillator for entry timing
Best signals : ADX > 25 before entering; oscillator extreme for entry
Key settings : Increase lookback_period to 350–500; stdev_value to 2.0–2.5
Gap lines : HTF 3 lines are the most significant price magnets
CRYPTO 24/7 MARKETS
--------------------
The indicator is designed with crypto in mind (no session gaps to handle).
Volume voids are particularly reliable in crypto due to price discovery gaps
during low-liquidity periods. Enable Volume Voids for overnight gap hunting.
Gap lines are highly effective — crypto "fills the gap" frequently and quickly.
================================================================================
END OF GUIDE
================================================================================
Chimera v2.0
Revised by Antigravity (Claude Sonnet 4.6) — 2026-07-24
================================================================================
Indicator

Directional Volume Shapes (Zeiierman)█ Overview
Directional Volume Shapes (Zeiierman) is a regime-classification oscillator that reframes volume analysis around a different question: not simply “how much volume traded,” but “what statistical shape has directional pressure been forming, and which way is it leaning?”
Instead of plotting raw buy and sell volume bar by bar, the indicator scores each candle for directional pressure using a triangular intrabar distribution model. It collects those scores in a rolling window, classifies the pattern into one of seven distribution shapes, and displays a smooth synthetic template of the detected shape.
The result is less like a traditional volume indicator and more like a distribution-regime display, showing the type of pressure environment currently developing.
⚪ Why Is This One Unique?
Most volume tools show exactly what happened: green bar up, red bar down, and taller bar equals more volume. This indicator uses a two-stage process: classify, then synthesize.
It combines:
• A triangular CDF candle scorer that estimates directional pressure from OHLC data
• A rolling shape classifier using skewness, Gaussian-smoothed peak detection, and time correlation
• Seven possible classifications: Bell, Right-skewed, Left-skewed, J-shaped, Reverse-J, Bimodal, and Multimodal
• A template generator that displays an idealized mathematical version of the active shape
• A separate EMA-based polarity engine that controls bullish or bearish direction
█ How It Works
⚪ 1. Scores Each Candle’s Directional Pressure
Instead of using a simple “close above open equals bullish” rule, the indicator models the candle’s high-low range as a triangular probability distribution centered at the close.
The scr() function evaluates the candle’s full OHLC structure and returns a value between 0 and 1. That result is then converted into a signed pressure score between -1 and +1.
dm = scr(open, high, low, close)
ps = 2.0 * dm - 1.0
Values near +1 represent stronger bullish pressure, while values near -1 represent stronger bearish pressure. Values near zero indicate a more balanced candle.
⚪ 2. Optionally Weights Pressure by Volume
When Volume Weighting is enabled, the pressure score is multiplied by raw volume.
src = vw ? volume * ps : ps
This gives high-volume bars more influence over the rolling shape-classification window. When disabled, the classifier uses directional pressure alone.
Volume still controls the height of the plotted columns regardless of this setting.
⚪ 3. Classifies Pressure Shape, Not Direction
The indicator stores recent pressure values in a rolling window. Before classification, it converts each value into its absolute magnitude.
for i = 0 to buf.size() - 1
mag.set(i, math.abs(buf.get(i)))
Using math.abs() removes bullish and bearish direction from the classification stage. The classifier analyzes how pressure strength has been distributed, not which direction it points.
It measures:
• Skewness in the raw pressure magnitudes
• Local peaks in a Gaussian-smoothed version of the data
• Whether pressure strength is generally increasing or decreasing through time
The final shape is selected using a fixed priority order:
if peaks >= 2
out := peaks == 2 ? "Bimodal" : "Multimodal"
else if corr > 0.5
out := "J-shaped"
else if corr < -0.5
out := "Reverse-J"
else if skew > 0.1
out := "Right-skewed"
else if skew < -0.1
out := "Left-skewed"
else
out := "Bell"
Multiple peaks are checked first, followed by rising or falling behavior, then skewness. Bell is used when no other condition is detected.
⚪ 4. Requires Persistence Before Changing Shapes
The active shape changes only after five consecutive bars produce a classification different from the shape currently displayed.
if ns != sh
sc += 1
else
sc := 0
if sc >= 5
sh := ns
ph := 0.0
sc := 0
The five classifications do not need to match each other. They only need to differ from the current active shape.
When the fifth differing classification arrives, the indicator switches to that bar’s shape and restarts the template cycle.
⚪ 5. Tracks Polarity Separately
Bullish or bearish polarity is calculated independently from the shape classification.
A short EMA is applied to the original signed pressure score:
pr = ta.ema(ps, pl)
string np = pr >= 0 ? "Bull" : "Bear"
When the EMA is above or equal to zero, polarity is Bull. When it is below zero, polarity is Bear.
Because polarity can change as soon as the EMA crosses zero, it usually reacts faster than the shape classifier.
⚪ 6. Displays a Synthetic Shape Template
Once a shape is selected, the indicator does not plot the original pressure values.
Instead, it generates an idealized mathematical template for the active shape. For example, Bell uses a Gaussian curve, J-shaped uses a squared rising curve, and Bimodal combines two separate Gaussian peaks.
The generated template is then scaled by recent average volume and signed according to polarity.
p = pol == "Bull" ? ph : 1.0 - ph
tv = tpl(sh, p)
sgn = pol == "Bull" ? 1.0 : -1.0
amp = ta.sma(volume, 3) * 1.8
y = amp * tv * sgn
The template advances by a fixed amount on each bar. Template Cycle Length controls how many bars are used to complete one full cycle.
█ Assumptions We Are Explicitly Making
The indicator’s usefulness depends on whether its modeling assumptions are suitable for the instrument and timeframe being analyzed.
These are not facts about market behavior. They are simplifying assumptions used because Pine Script does not provide true intrabar tick or order-flow data.
⚪ Intrabar Activity Is Approximated With a Triangular Distribution
The model approximates intrabar activity using a triangular distribution centered at the close. It does not know where price actually spent the most time within the candle.
Using another reference point, such as VWAP, the midpoint, or the open, could produce a different pressure score.
⚪ Shape and Direction Are Treated Separately
The shape classifier analyzes the magnitude of pressure but removes its bullish or bearish direction. Two windows with similar pressure-strength patterns but opposite directional bias can therefore receive the same shape classification.
The shape describes how pressure has been distributed, while the separate polarity calculation determines whether it is leaning Bull or Bear.
⚪ Seven Shapes Are Used to Describe Pressure Behavior
Every window is placed into one of seven fixed categories using predefined thresholds:
• Skewness thresholds of ±0.1
• Correlation thresholds of ±0.5
• Peak prominence above 10% of the smoothed envelope’s maximum
The classifier follows a fixed priority order rather than selecting the mathematically closest-fitting shape.
There is also no statistical significance test behind these thresholds, so borderline classifications may change because of noise.
⚪ The Displayed Curve Represents the Classification, Not the Raw Data
After classification, the indicator displays an idealized template rather than the original pressure values. Two different pressure windows classified as Bell will use the same normalized Bell template.
The final column height and direction can still differ because the template is scaled by recent volume and signed by polarity.
█ How to Use
⚪ Directional Volume Reading
Use the indicator as you would a traditional volume oscillator.
• Readings above zero indicate bullish volume strength.
• Readings below zero indicate bearish volume strength.
⚪ Divergences
Use the columns to identify divergences in volume strength.
• Bullish divergence: Price makes a lower low while the indicator forms a higher low.
• Bearish divergence: Price makes a higher high while the indicator forms a lower high.
⚪ Interpreting the Shape Labels
• Bell: Pressure intensity is relatively symmetric and contains one main area of activity.
• Right-skewed / Left-skewed: Pressure intensity is uneven and has a longer tail on one side of the distribution.
• J-shaped: Pressure intensity has generally increased toward the most recent bars.
• Reverse-J: Pressure intensity was stronger earlier in the window and has weakened toward the present.
• Bimodal / Multimodal: The smoothed pressure path contains two or more separate periods of stronger activity within the detection window.
⚪ Choosing the Shape Speed
Template Cycle Length controls how quickly the displayed shape moves through its synthetic cycle. It changes the visual speed of the columns, not the shape-detection window or Bull/Bear polarity.
• 3 bars, Fast: Creates tight, fast-moving shapes. This is the most responsive and active-looking setting.
• 4 bars, Balanced: Gives each shape slightly more time to develop while remaining responsive.
• 5 to 7 bars, Slow: Stretches the shape across more bars, creating smoother and slower visual cycles.
A value of 3 is useful when you prefer compact, fast-moving shapes. Increase the value when you want each shape to develop more gradually and remain visible for longer.
█ Settings
Use Volume Weighting: Controls whether volume multiplies directional pressure before shape classification. Volume still controls the plotted column height when this setting is disabled.
Detection Window: Sets the number of recent bars used to classify the current shape. Higher values produce slower and more stable classifications. Lower values react faster and may change shape more often.
Polarity Smoothing: Sets the EMA length used to determine Bull or Bear polarity. Higher values create steadier polarity. Lower values react faster.
Template Cycle Length: Sets the number of bars used to complete one synthetic shape template. Lower values create faster and tighter cycles. Higher values stretch the template over more bars.
Show Moving Average: Shows or hides a moving average of the final plotted output.
Type: Selects the moving-average method: SMA, EMA, RMA, or WMA.
Length: Sets the moving-average period.
Maximum Transparency: Sets the maximum transparency applied near the lower points of each template. A value of 0 disables the transparency fade.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

Strategy

Indicator

barrettfvg Reversal Pointsbarrettfvg Reversal Trade Planner is a lightweight reversal-planning indicator built to turn reversal signals into a cleaner visual trade plan. It marks possible Buy/Sell reversal areas and, when a signal appears, plots one active stop-loss and take-profit plan at a time.
The signal model combines three ideas:
Trend-state reversal logic:
The script uses an ATR-based trend state to identify when price behavior changes from bullish to bearish or bearish to bullish. This helps avoid marking every minor pullback as a reversal.
High/low exhaustion tracking:
The script watches for price pushing into new high or new low behavior over the selected sensitivity window. A sell setup looks for upside expansion that later fails into a bearish reversal. A buy setup looks for downside expansion that later fails into a bullish reversal.
RSI recency filter:
The optional RSI filter requires RSI to have recently moved above the upper threshold for sell setups or below the lower threshold for buy setups. This is not used as a standalone overbought/oversold signal. It is used as confirmation that the reversal is forming after recent momentum extension.
When a signal appears, the script creates a visual trade plan:
Entry is based on the signal candle close.
Stop loss can use a broader structure lookback extreme or a recent confirmed swing pivot.
Take profit defaults to 1R, creating a 1:1 risk-to-reward projection.
Only one active SL/TP set is shown at a time.
Existing SL/TP lines are removed when price hits SL, hits TP, or a new signal appears.
Alerts:
The script includes standard Buy/Sell alert conditions and optional dynamic alert messages that include Entry, SL, TP, and risk distance. Alerts can also be limited to the built-in trading windows.
How to use:
Use the indicator on regular candlestick charts. Start with the default settings, then adjust High/Low Sensitivity and ATR Multiplier for the symbol and timeframe being traded. Higher sensitivity produces fewer, broader reversal signals. Lower sensitivity reacts faster but can create more noise. The RSI filter can be disabled, but leaving it on helps require recent momentum extension before a reversal signal.
Important limitations:
This is an indicator, not a strategy. It does not execute trades or prove profitability. Signals should be used as chart context and trade-planning assistance only. The script does not guarantee reversals, win rate, accuracy, or future performance. Market conditions, volatility, spread, session, and timeframe can strongly affect results.
Repainting and calculation notes:
With confirmed-bar signals enabled, signals are designed to appear only after the candle closes. Stop placement may use confirmed swing pivots, and confirmed pivots require right-side bars before they are known. The script does not use future-looking request.security() logic.
Attribution:
This script is based on the original Reversal Points concept/code credited to enesyetkin. This version adds Pine v6 structure, confirmed-bar behavior, RSI recency filtering, session-filtered alerts, swing/structure-based SL placement, 1R TP projection, and one-active-trade-plan visual management. Indicator

SHK RSI STRENGTH & PRICE MOMENTUMAn RSI-based momentum oscillator that overlays two independently configurable moving averages on top of the RSI to visualize trend strength and short-term momentum shifts at a glance.
█ How it works
- RSI — the standard Relative Strength Index (length and source configurable).
- Mid line — the RSI pivot line, editable from 35 to 55 (default 50), used as the bull/bear split for the fill and alert regime.
- Strength — a slower moving average of the RSI (default: WMA 21) that shows the underlying momentum trend.
- Price — a faster moving average of the RSI (default: EMA 3) that reacts quickly to short-term swings.
- Fill — the area between RSI and the mid line is shaded green when RSI is above it (bullish) and red when below (bearish), making regime shifts easy to spot.
- Cross markers — a colored circle is plotted whenever the price line crosses the strength line: green for a bullish cross, red for a bearish cross.
█ Customization
Both the strength and price lines support six selectable moving average types, so the oscillator can be tuned from a smooth trend filter to a fast reactive signal:
- SMA, EMA, WMA, HMA, ALMA, DWMA (double-smoothed WMA)
ALMA offset and sigma are separately exposed for fine control over its lag and smoothness. The mid line is also fully editable (35–55, default 50) if you want a stricter or looser bull/bear threshold than the classic 50 level.
█ How to use it
- RSI above the mid line with a green fill = broader bullish momentum regime; below it with a red fill = bearish regime.
- A green cross (price crossing above strength) inside a green regime can signal renewed upside momentum; the same cross inside a red regime can signal a potential short-term bounce against the trend.
- Overbought (70) and oversold (30) reference lines are included for context.
- Built-in alerts fire on both cross directions.
█ Notes
This is a momentum-of-momentum tool: the strength and price lines are moving averages applied to the RSI itself, not to price, so they measure how the RSI's own trend is behaving rather than smoothing price directly. Use it alongside price structure or your existing entry/exit logic—it is a filter and confirmation tool, not a standalone signal generator.
Part of the indicator suite.
█ Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always backtest and forward-test thoroughly on your own instruments and timeframes before using this indicator for live trading. Trade at your own risk. The author is not responsible for any financial losses incurred from the use of this indicator. Indicator

VMC Cipher B evolved with regime detection /filters false signalOverview
Adaptive Cipher is an evolution of the classic VMC Cipher B, built to solve one of the fundamental weaknesses of oscillator-based indicators: they fail in trending markets.
The original VMC Cipher B works beautifully in ranging markets — it catches oversold bottoms and overbought tops with high accuracy. But when a stock enters a sustained trend, the WaveTrend oscillator gets "stuck" in overbought territory and starts generating sell signals throughout an entire bull run. Adaptive Cipher solves this with a regime detection layer.
What's New
Regime Detection The indicator continuously measures the 20-bar average of wt2. Based on this:
TREND — wt2 average ≥ +15. The stock is in a sustained uptrend. Sell signals are suppressed unless confirmed by real divergence.
RANGE — wt2 average between -15 and +15. Classic oscillator signals work best here.
DUSUS (Downtrend) — wt2 average ≤ -15. Buy signals are marked as counter-trend warnings instead of primary entries.
The regime is shown in the info panel and as a subtle background color on the oscillator pane (green = trend, red = downtrend).
Trend Continuation Signal (◆ Cyan) A new signal type exclusive to trend mode. When a stock is trending up, a small pullback completes, and wt2 turns back upward — the indicator fires a cyan ◆ entry signal. This is the signal that classic VMC never had: enter during the pullback, ride the trend.
Counter-Trend Warning (⚠ Orange) In downtrend mode, when oversold conditions appear, the indicator shows an orange ⚠ instead of a green buy dot. Technically a buy setup — but the trend is against you. Proceed with caution or skip.
Filtered Sell Signals In trend mode, sell signals only fire when a genuine bearish divergence is confirmed — not simply because wt2 is overbought. This prevents the classic "SAT SAT SAT (sell) " false alarm pattern during strong uptrends.
WaveTrend Safety Fix A division-by-zero safety fix prevents the rare wt2 spike anomaly (e.g. wt2 = 339) that could occur when price movement was near-zero for several bars.
Signal Guide
Signal Meaning When to act
Large green ● Strong Buy — OS divergence or momentum reversal RANGE or TREND mode
Large red ● Strong Sell — bearish divergence confirmed RANGE mode (or genuine top in TREND)
Large yellow ● Gold Buy — extreme OS + divergence + RSI < 30 Always — strongest signal
◆ Cyan Trend Continuation — pullback complete, resume TREND mode only
⚠ Orange Counter Buy — OS but downtrend Enter small or skip
Small · green/red WT Cross — momentum shift Confirmation only
Small ◆ green/red TDI Cross — momentum crossover Confirmation only
Info Panel
The top-left panel shows:
REJIM — Current regime: TREND (green) / RANGE (gray) / DUSUS (red)
WT — WaveTrend position: OB / OS / Notr
RSI — Current RSI value with color coding
TDI — TDI momentum direction: Bull / Bear
SQZ — Squeeze status: SQZ ON / Normal
Components Included
WaveTrend (wt1, wt2, VWAP line)
Regime average line (wt2 20-bar SMA)
RSI with OB/OS coloring
MFI area
Stochastic RSI (K & D)
TDI (Fast RSI / Slow RSI)
Squeeze dot (Lazybear-style)
Regular & Hidden Divergence detection
Gold Buy signal
Best Used With
This indicator was developed and tested primarily on Borsa Istanbul (BIST) equities on the Weekly timeframe. It works on any market and timeframe, but regime thresholds may need adjustment for different assets.
For best results, combine with a price action or trend-following indicator for exits. AWC is strong at finding entries — it does not define exits.
Parameters
Regime Detection
Regime Lookback (default 20) — Bars used to calculate wt2 average for regime classification
Bull Threshold (default 15) — wt2 average above this = TREND mode
Bear Threshold (default -15) — wt2 average below this = DOWNTREND mode
Signal Settings
Momentum Bull Threshold (default -35) — How deep wt2 must be for momentum reversal signal. Lower = stricter.
Momentum Bear Threshold (default +35) — Same for bear side
Trend Continuation Min wt2 (default 10) — Minimum wt2 level for continuation signal
RSI Filter — Filters divergence signals by RSI level for higher quality entries
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance of any signal does not guarantee future results. Always manage your risk.
Developed by CamurTheDog Built on VMC Cipher B by LazyBear / Lazybear's community Indicator

OBV Signal Confluence [MarkitTick]💡 This advanced technical utility provides a comprehensive evaluation of market momentum by synthesizing cumulative volume flow with structural trend dynamics and dynamic support levels. Designed for rigorous market analysis, it evaluates directional shifts by demanding strict confluence across multiple dimensions, including momentum divergence, historical trend validation, and volatility expansion. Rather than relying on isolated price action, this tool builds a holistic profile of market participation, delivering a complete framework for structured trade management and robust signal verification.
● ✨ Originality and Utility
Most traditional momentum oscillators evaluate price velocity in a vacuum, completely ignoring the underlying participation required to sustain a trend. This utility stands apart by merging volume-weighted momentum with strict filtering mechanisms to evaluate the true strength of a market move. By integrating a multi-tiered filtration system, it effectively isolates high-probability directional shifts while filtering out low-participation market noise.
The utility is entirely self-contained, projecting dynamic trade management levels directly onto the chart when momentum alignment is confirmed. It seamlessly bridges the gap between raw data analysis and actionable trade management. By establishing precise entry, invalidation, and multiple target zones based on current market volatility, it transforms raw volume data into a structured operational blueprint.
Furthermore, the inclusion of a comprehensive heads-up display ensures that all underlying metrics—from momentum strength to historical trend states—are continuously aggregated and visually accessible, allowing for rapid contextual assessment without cluttering the primary analytical workspace.
● 🔬 Methodology and Concepts
This tool operates on a sophisticated, multi-layered evaluative engine. To protect the integrity of the underlying architecture, the methodology is described conceptually:
Cumulative Volume Flow: The primary engine evaluates the continuous flow of market volume, categorizing buying and selling pressure based on specific price action thresholds. This cumulative data is then smoothed against a dynamic, user-selectable baseline to establish the core momentum trajectory.
Higher Timeframe Confluence: To prevent acting on insignificant intraday fluctuations, the engine references the structural momentum of a higher timeframe. Signals are strictly gated unless the localized momentum aligns with this broader, macro-level directional bias.
Momentum Divergence Detection: The utility continuously scans for structural discrepancies between price pivot extremes and the corresponding extremes in the volume flow. When price establishes new structural boundaries without validating volume participation, the system flags these areas as potential exhaustion or reversal zones.
Volatility and Participation Filters: Trend strength and volume ratios are continuously measured against established historical averages. The engine requires both a minimum threshold of directional strength and a surge in relative volume participation to validate any momentum shift, ensuring that structural breaks are supported by actual market activity.
Dynamic Risk Profiling: Upon signal confirmation, the tool automatically calculates an invalidation level utilizing a multiplier of the underlying asset's average true volatility. Profit targets are then extrapolated from this established risk parameter, ensuring that every projected setup adheres to strict, predefined risk-to-reward ratios.
● 🎨 Visual Guide
The visual interface is designed to provide immediate contextual awareness while maintaining a clean charting environment:
Momentum Histogram: Plotted as columns, this visualizes the delta between the cumulative volume flow and its dynamic baseline. Color intensity shifts dynamically to reflect both the direction and the immediate acceleration or deceleration of the momentum.
Heat Candles: When enabled, this feature overrides the native chart candles, painting the price action to match the underlying volume momentum state, allowing for rapid visual confirmation of the current trend environment.
Divergence Markers: Distinct upward and downward triangular shapes are plotted directly on the chart to indicate areas where structural price action has diverged from the supporting volume flow.
Trade Management Levels: Upon a confirmed momentum shift, dashed horizontal lines appear to project the Entry, Stop Loss (SL), and three tiered Take Profit (TP) zones.
Risk/Reward Shading: Shaded background zones visually map the risk parameters, contrasting the invalidation zone against the projected reward territory to provide an immediate assessment of the trade's structural viability.
Heads-Up Dashboard: A customizable table anchored to the chart corner. It provides a real-time aggregate readout of all critical internal metrics, including current trend state, raw momentum values, divergence status, participation ratios, and active trade progression percentages.
● 📖 How to Use
Establish Context: Monitor the Heads-Up Dashboard to evaluate the current macro trend state and participation ratios. Wait for the dashboard to indicate alignment between directional momentum, volume participation, and trend strength.
Identify Confluence: Look for structural momentum shifts indicated by the histogram crossing its zero-line, strictly validated by the alignment of the Heat Candles. Divergence markers appearing prior to these shifts serve as early warning signs of an impending structural rotation.
Signal Confirmation: Wait for the current bar to close. The utility is engineered to execute calculations on confirmed data to ensure structural stability. A confirmed signal will instantly plot the dynamic trade management levels.
Execute and Manage: Utilize the projected Entry, Stop Loss, and Take Profit levels to structure your position. The Risk/Reward shading and the progress tracker on the dashboard will provide continuous feedback as the price action develops toward the established targets.
Alert Integration: For automated tracking, configure the built-in alert conditions which generate structured data payloads for long entries, short entries, position closures, and individual target strikes.
● ⚙️ Inputs and Settings
Core: Define the source data for momentum calculations and select the preferred baseline calculation method and lookback length. This also includes the pivot length for divergence detection.
Filters: Activate and calibrate the higher timeframe alignment constraints. Set the specific lengths and minimum thresholds for directional strength and volume participation multipliers to strictly define what constitutes a valid breakout.
Trade: Toggle the visibility of the dynamic management levels. Adjust the volatility lookback, the invalidation multiplier, and customize the exact risk-to-reward ratios for all three projected profit targets.
Vis: Control the visual clutter by toggling the histogram, zero line, divergence signals, and heat candles on or off according to personal preference.
Dash: Enable or disable the Heads-Up Dashboard and anchor it to any of the four chart corners for optimal workspace organization.
Alerts: Define custom action strings and dynamic payload identifiers to integrate seamlessly with external execution engines or tracking software.
Colors: Fully customize the aesthetic profile of the indicator. Modify the specific hex values and opacities for the histogram states, trade levels, risk shading, divergence markers, and the internal dashboard elements to match your charting theme.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundation of this utility is deeply rooted in the principles of Auction Market Theory and the Law of Effort versus Result. In any financial market, price discovery is driven by the continuous auction process between buyers and sellers. However, price alone is a one-dimensional metric. Volume represents the actual energy or "effort" expended to move that price. By systematically analyzing the relationship between price displacement and volume flow, this tool effectively maps the true liquidity absorption within the market.
When a market establishes a new structural price extreme, fundamental market mechanics dictate that this move must be supported by an equivalent expansion in volume participation. If the aggregate volume flow begins to decelerate while price continues to advance, a structural divergence is formed. This indicates a severe lack of liquidity supporting the current auction, highlighting an area where the prevailing trend is highly vulnerable to mean reversion or a complete structural failure.
Furthermore, the integration of volatility-based risk profiling adheres to established quantitative risk management principles. Market volatility is not static; it constantly expands and contracts in cyclical phases. By anchoring invalidation levels to a dynamic multiplier of average true volatility, the utility ensures that risk parameters adapt to the current market environment. This prevents premature invalidation during periods of high liquidity expansion while maintaining tight structural constraints during periods of market consolidation.
⚠️ 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. Indicator

Trend Pulse MSL Trend Pulse is a comprehensive indicator designed to analyze the current market regime, buying and selling pressure, and the strength of completed bullish and bearish waves.
The indicator is built around three interconnected calculation components:
Predictive Balance — a predictive market-equilibrium level.
Pressure Pulse — an oscillator measuring current directional pressure.
Wave Memory — a system for evaluating completed bullish and bearish pressure waves.
Each component has a distinct purpose, but none of them operates independently. The output of one calculation block becomes an input for the next, creating a single integrated market-state model.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What the indicator is designed to answer
MSL Trend Pulse helps traders evaluate five questions in sequence:
What directional market regime is currently active?
Which side is applying more pressure: buyers or sellers?
Is current pressure aligned with the broader Bias or moving against it?
How strong is the current pressure?
Is that pressure strengthening, fading, expanding, cooling, or becoming overheated?
This is not a mechanical entry-and-exit system and not a simple collection of several standard indicators placed in one script.
MSL Trend Pulse was designed as a unified analytical model in which:
Predictive Balance identifies the price regime;
Pressure Pulse measures current directional pressure;
Wave Memory evaluates the strength of completed waves;
Dashboard combines the results into a readable market-state interpretation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Why these components are combined
Predictive Balance estimates a dynamic market-equilibrium level and the direction in which that equilibrium is moving.
The movement of Predictive Balance and the distance between price and the balance level are then used as inputs in the calculation of Pressure Pulse.
Pressure Pulse determines:
the direction of current pressure;
the intensity of that pressure;
the beginning of a new pressure wave;
the completion of the previous pressure wave.
Completed pressure sequences are passed to Wave Memory.
Wave Memory separately maintains reference strength for:
bullish waves;
bearish waves.
These reference values are used to calculate the slower-moving market Bias.
Each component therefore adds a different layer of information:
Predictive Balance describes the price regime;
Pressure Pulse describes current pressure;
Wave Memory describes the historical wave context;
Dashboard provides the final interpretation.
Standard Pine Script functions, including ATR and EMA, are used only for volatility normalization and smoothing.
They are not used as standalone trade signals and do not form a conventional moving-average crossover system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖️ Predictive Balance
Predictive Balance is a recursive level-and-drift model.
The calculation uses a weighted price source:
Price Source = (High + Low + 2 × Close) / 4
The closing price receives additional weight because Close represents the final price accepted during the current period.
The indicator then measures directional path efficiency over the selected Direction Window.
Path efficiency compares:
the net distance between the beginning and end of the calculation window;
the total absolute path traveled by price during the same period.
High path efficiency
Price moved consistently and predominantly in one direction.
Low path efficiency
Price traveled through a large number of alternating movements but made relatively little net progress.
The resulting efficiency value controls how quickly Predictive Balance reacts.
The model first projects the next balance level by:
taking the previous balance value;
adding the previously estimated directional drift.
It then calculates the prediction error: the difference between the projected level and the current weighted price.
This prediction error updates two elements simultaneously:
the current Predictive Balance level;
the direction and speed of the drift.
As a result, the line can:
react faster during efficient directional movement;
become more stable during noisy or sideways conditions;
account not only for the position of price, but also for the direction of its own estimated movement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔺 Market regime changes
The market regime does not change simply because price touches or briefly crosses Predictive Balance.
An adaptive confirmation zone is calculated around the balance line using:
current ATR;
directional path efficiency;
the base band width;
the selected level of noise protection.
During irregular or inefficient price movement, the zone becomes wider.
During consistent directional movement, the zone can become narrower.
Bullish regime confirmation
A bullish regime change requires both conditions:
price closes above the upper boundary of the adaptive zone;
Predictive Balance drift is positive.
Bearish regime confirmation
A bearish regime change requires both conditions:
price closes below the lower boundary of the adaptive zone;
Predictive Balance drift is negative.
This state-retention logic reduces frequent bullish and bearish switches around the balance line.
A green upward-pointing triangle marks a confirmed transition into a bullish regime.
A red downward-pointing triangle marks a confirmed transition into a bearish regime.
The triangles represent changes in the calculated regime. They are not standalone recommendations to buy or sell an asset.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Pressure Pulse
Pressure Pulse measures current directional pressure using four interconnected price characteristics.
1. Candle body pressure — 35%
The distance between Open and Close is normalized by ATR.
This component measures the directional displacement of the candle relative to current market volatility.
2. Closing-location pressure — 25%
Close is evaluated relative to the candle’s full High–Low range.
A close near the High increases positive pressure.
A close near the Low increases negative pressure.
A close near the middle of the range produces a more neutral reading.
3. Predictive Balance movement — 25%
The change in Predictive Balance is normalized by ATR.
This component reflects the direction and speed of the estimated equilibrium level.
4. Price stretch — 15%
The distance between Close and Predictive Balance is normalized by ATR.
This component measures how far price has extended from the estimated market equilibrium.
After the four components are combined, the result passes through an adaptive pressure-memory process.
In noisy market conditions
Pressure memory becomes shorter, allowing weak and irregular pressure to decay more quickly.
In directional market conditions
Pressure memory becomes longer, allowing persistent pressure to remain visible for a longer period.
The accumulated result is then:
normalized against its own recent average amplitude;
smoothed;
softly compressed to maintain a comparable visual scale across different instruments and timeframes.
Reading the histogram
Above zero — bullish pressure is dominant.
Below zero — bearish pressure is dominant.
Rising bars — directional pressure is increasing.
Shrinking bars — directional pressure is fading.
High amplitude — strong normalized pressure.
Low amplitude — weak pressure.
Pressure Pulse does not reset when price crosses Predictive Balance.
This makes it possible to follow the development of pressure independently of a single price-to-line crossover.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 Wave Memory
Wave Memory analyzes completed sequences of bullish and bearish pressure.
Beginning of a bullish wave
A bullish wave begins when Pressure Pulse moves above the positive Wave Deadband boundary.
Beginning of a bearish wave
A bearish wave begins when Pressure Pulse moves below the negative Wave Deadband boundary.
The neutral area around zero prevents every small histogram fluctuation from creating a new wave.
For each completed wave, the script calculates:
average absolute pressure;
peak absolute pressure;
duration in bars;
price-path efficiency.
Price-path efficiency compares:
the net price movement from the beginning to the end of the wave;
the total absolute price path traveled during that wave.
If price moved predominantly in one direction, efficiency will be high.
If the wave contained substantial movement but produced little net price change, efficiency will be low.
The final wave-strength calculation incorporates:
70% average pressure;
30% peak pressure;
the square root of wave duration;
an adjustment for price-path efficiency.
Bullish and bearish waves update separate historical reference values.
A newly completed wave does not immediately replace the previous reference. Instead, it gradually updates the corresponding reference according to the Reference Update setting.
This process creates a more stable wave-based Bias.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧭 Dashboard
The Dashboard displays four characteristics of the current market state:
Phase — the relationship between current pressure and Bias.
Magnitude — the current strength of Pressure Pulse.
Bias — the relative strength of completed bullish and bearish waves.
State — the current development stage of directional pressure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase — market phase
Bullish Impulse
Bullish pressure is aligned with bullish Bias.
Current movement supports the broader bullish wave context.
Bearish Impulse
Bearish pressure is aligned with bearish Bias.
Current movement supports the broader bearish wave context.
Bullish Pullback
Bullish pressure is developing against bearish Bias.
This may represent a corrective movement within a broader bearish context.
Bearish Pullback
Bearish pressure is developing against bullish Bias.
This may represent a corrective decline within a broader bullish context.
Bullish Pressure
Bullish pressure is active, but completed waves have not yet established a clear directional Bias.
Bearish Pressure
Bearish pressure is active, but completed waves have not yet established a clear directional Bias.
Balanced
Pressure Pulse remains inside the neutral deadband, so meaningful directional pressure is not currently present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Magnitude — pressure strength
Magnitude is based on the absolute value of the current normalized Pressure Pulse:
Weak — below 0.40.
Normal — from 0.40 to 0.85.
Strong — from 0.85 to 1.30.
Extreme — 1.30 and above.
Magnitude measures the current intensity of pressure. It does not represent the probability of a future move and does not predict how far price may travel.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Bias — wave direction
Bullish
Completed bullish waves are stronger on average than completed bearish waves.
Bearish
Completed bearish waves are stronger on average than completed bullish waves.
Neutral
Neither side has established sufficient relative dominance.
Bias is calculated from completed pressure waves and therefore intentionally changes more slowly than Pressure Pulse.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
State — pressure development
Building
Pressure is increasing while Bias remains neutral.
Fading
Pressure is decreasing while Bias remains neutral.
Expansion
Pressure is aligned with a directional Bias and continues to increase.
Cooling
Pressure is moving against Bias or is beginning to lose strength.
Overheated
Pressure has reached an extreme level but has already started to weaken.
Balanced
No meaningful directional-pressure state is currently present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 How to use the indicator
A practical analysis sequence is:
Identify the active regime using the color of Predictive Balance and the most recent triangle.
Review Bias to determine which side has produced stronger completed waves.
Use Phase to determine whether current pressure supports Bias or represents a counter-move.
Use Magnitude to evaluate the current intensity of pressure.
Use State to determine whether pressure is strengthening or losing momentum.
Example 1
Bullish Bias + Bullish Impulse + Expansion
Bullish pressure supports the broader bullish wave context and continues to strengthen.
Example 2
Bullish Bias + Bearish Pullback + Cooling
Bearish pressure is developing against bullish Bias, but the counter-move is losing strength.
Example 3
Bearish Bias + Bullish Pullback + Cooling
Bullish pressure is present against the broader bearish context but has begun to weaken.
Example 4
Neutral Bias + Bullish Pressure + Building
Bullish pressure is increasing, but completed waves have not yet established a sustained advantage for buyers.
Possible applications
MSL Trend Pulse can be used for:
market-regime confirmation;
pullback analysis;
current momentum assessment;
evaluating alignment between current pressure and Bias;
filtering trading scenarios;
monitoring the strengthening and weakening of directional movement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alerts
The indicator includes four alert conditions:
MSL Bull Flip — a transition into a bullish regime has been confirmed.
MSL Bear Flip — a transition into a bearish regime has been confirmed.
MSL Pressure Up — Pressure Pulse crossed above zero.
MSL Pressure Down — Pressure Pulse crossed below zero.
When Confirm Flips On Bar Close is enabled, regime changes and corresponding alerts are confirmed only after the candle closes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Main settings
Direction Window
Controls the period used to measure directional path efficiency.
Minimum Reaction / Maximum Reaction
Define the lower and upper limits of Predictive Balance reaction speed.
Drift Learning
Controls how quickly the model learns changes in market direction and movement speed.
Drift Damping
Controls how quickly previously estimated drift loses its influence.
Volatility Length
Defines the ATR period used for volatility normalization.
Flip Band Base
Sets the minimum width of the adaptive regime-confirmation zone.
Noise Protection
Widens the regime-change zone during noisy or inefficient market movement.
Normalisation Length
Defines the period used to normalize Pressure Pulse against its own recent amplitude.
Pulse Smoothing
Controls the final smoothing applied to the Pressure Pulse histogram.
Minimum Memory / Maximum Memory
Define the lower and upper limits of pressure persistence.
Wave Deadband
Defines the neutral zone used to separate bullish and bearish pressure waves.
Reference Update
Controls how strongly each completed wave updates its corresponding historical reference.
Minimum Wave Bars
Defines the minimum wave duration required before a completed wave can update Wave Memory.
Window
Allows wave statistics to use all available chart history or begin from a selected date.
Reactive Candles
Colors candles according to the direction and intensity of Pressure Pulse.
Glow Effect / Glow Intensity
Control the visual glow applied to Predictive Balance and the Pressure Pulse histogram.
These settings affect presentation only. They do not change calculations, regime logic, or alerts.
Dashboard Position
Allows the Dashboard to be placed in the upper-right, middle-right, or lower-right area of the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Calculation behavior and limitations
The indicator does not use future bars.
Values on closed historical candles remain fixed after those candles are completed.
Values on the active candle may change before it closes because High, Low, and Close are not yet final.
Bias is based on completed waves and therefore reacts more slowly than Pressure Pulse.
During the early stage of a reversal, Bias may temporarily retain its previous direction.
Sudden gaps and news-driven candles can cause rapid changes in Predictive Balance and Pressure Pulse.
Results may be less stable on low-liquidity instruments.
Indicator behavior depends on the instrument, volatility environment, and selected timeframe.
MSL Trend Pulse does not calculate:
position size;
stop-loss placement;
profit targets;
acceptable trade risk;
mechanical entry or exit points.
The indicator is designed to analyze market context. No individual Dashboard state, line color, triangle, or histogram reading should be interpreted as a guaranteed forecast of future price movement. Indicator

Trade Wzrd - Session Open Strategy ShellTrade Wzrd - Session Open Strategy Shell
WHAT IT IS
Educational strategy shell that only allows new entries while price is inside a user-defined session window. Optional modes: break of the developing session high/low, or a simple MA cross for baseline testing. Orders carry webhook-ready alert_message strings built through a shared open-source string library.
This is a template for learning session-filtered automation wiring. It is not a signal service.
WHY IT EXISTS (ORIGINALITY)
Many public strategies fire all day. Prop and desk workflows usually care about a session (for example cash open or London/NY window) and need clean entry/exit alert text for external execution. This script combines:
1) a session gate
2) optional session-range break entries
3) ATR or fixed risk exits with R-multiple targets
4) structured alert_message strings for BUY/SELL and CLOSE
HOW IT WORKS
1) Session input defines when entries are allowed (chart/exchange timezone rules apply as on PulseWire).
2) While in session, the script tracks session high and low.
3) Entry mode A: break above session high or below session low.
4) Entry mode B: EMA cross (for simple tests when break mode is off).
5) Optional max one entry per session day.
6) Stop distance uses ATR multiplier or a fixed distance; take-profit uses risk:reward.
7) alert_message values use comma-separated command text (BUY/SELL with VOL or RISK, SL, TP, TPSLTYPE; CLOSE on exits).
HOW TO USE
1) Add to a clean chart (defaults intended for liquid FX/metals such as XAUUSD).
2) Set the session window to the hours you actually trade.
3) Choose break mode or MA mode under Entry logic.
4) Set Trade Wzrd Automation size mode (VOL or RISK), size value, and TPSLTYPE.
5) Create a strategy alert; set the message to:
{{strategy.order.alert_message}}
6) Point the alert webhook field at whatever endpoint you already use.
7) Use Symbol override when your broker symbol differs from the chart ticker.
DEFAULTS
- Commission and slippage are set in strategy properties for more realistic tests
- Position sizing default is percent of equity for the strategy tester (separate from alert VOL/RISK text)
- Magic default example tag is provided and can be cleared
LIMITATIONS
- Session range break is a simple educational structure, not a complete prop system
- Past results do not predict future results
- Not intended for buy/sell use on non-standard chart types
- You own risk, symbol mapping, and execution choices
No external links are required to understand or use this script.
Strategy

Indicator

BK AK-CobraBK AK-Cobra
Momentum measured across timeframes. Extremes evaluated. Order flow used as confirmation.
The “AK” in BK AK-Cobra is not branding—it is honor. It stands for my mentor, A.K.—the man whose guidance shaped my discipline, patience, market judgment, and respect for clean execution. I dedicate every indicator I build to his honor, and his standard sits behind every serious tool I create.
Above all, full credit and gratitude to G-d—the source of wisdom, timing, strength, and survival in this game.
BK AK-Cobra is a Stochastic Momentum Index framework designed to evaluate momentum direction, extreme conditions, multi-timeframe agreement, volatility, participation, and order-flow confirmation through one connected analytical process.
It combines:
Stochastic Momentum Index and signal line
Momentum histogram and slope
Volatility-adaptive dynamic bands
Six-timeframe momentum alignment
Contract-specific futures presets
Trend and volatility-regime filters
Squeeze detection
Regular and hidden divergence
Band-touch memory and arrival velocity
Momentum fatigue and failed-extension conditions
Histogram-pattern and oscillator-shape recognition
Footprint delta, POC, Value Area, and imbalance
Composite Heat scoring and signal grading
Historical signal-outcome tracking
Bayesian-style contextual adjustment
k-nearest-neighbor historical context matching
A compact intelligence dashboard
These are not independent indicators placed together. Each layer evaluates a different part of the same momentum cycle:
Location → direction → acceleration → timeframe agreement → market regime → participation → order flow → historical context.
Core SMI Engine
The central calculation is a double-smoothed Stochastic Momentum Index.
It measures where the close sits relative to the midpoint of the recent high-low range and normalizes that distance by the smoothed range.
Cobra displays:
The SMI
A configurable signal line
The difference between SMI and signal as a histogram
SMI slope
Momentum acceleration
The rate of change of acceleration
The histogram shows the separation between SMI and its signal line.
A rising positive histogram indicates strengthening positive momentum.
A falling positive histogram indicates positive momentum is weakening.
A falling negative histogram indicates strengthening negative momentum.
A rising negative histogram indicates negative momentum is weakening.
The calculation describes momentum. It does not represent price or guarantee future direction.
Dynamic Bands
Instead of relying only on fixed overbought and oversold levels, Cobra calculates dynamic bands from the recent standard deviation of the SMI.
The bands are restricted by configurable minimum and maximum values and can adapt according to the current ATR regime.
During higher volatility, the bands can expand.
During lower volatility, they can contract.
This helps distinguish an ordinary momentum reading from one that is statistically extended relative to the instrument’s current behavior.
An SMI band touch does not automatically require reversal. Strong trends can remain extended for prolonged periods.
Contract Presets
Cobra contains automatic presets for:
ES
NQ
CL
GC
MBT
Custom symbols
The presets adjust SMI lengths, dynamic-band parameters, EMA settings, and ADX thresholds according to the selected contract.
The AUTO setting reads the chart symbol’s root and applies the corresponding preset when supported.
Manual Override allows the user to replace preset values with custom settings.
These presets are starting configurations, not universally optimal settings for every timeframe or market condition.
Multi-Timeframe Stack
The indicator calculates SMI state across six configurable timeframes:
5 minutes
15 minutes
30 minutes
60 minutes
233 minutes
987 minutes
Each timeframe is classified as:
Strong bullish
Bullish
Neutral
Bearish
Strong bearish
The states are combined through a weighted execution score. Longer timeframes receive greater weight than shorter timeframes.
The signal framework can also require:
Agreement between the 233-minute and 987-minute states
No opposing veto from the 15-minute and 30-minute states
A recent 5-minute reset or pullback
A minimum combined execution score
This architecture separates broader directional context from shorter-term entry timing.
Higher-timeframe values can change until their respective candles close.
A+ Signal Framework
Cobra evaluates two general signal families.
Extreme reversal conditions
A possible long condition can form when the SMI is near or beyond its lower dynamic band and turns upward with an improving histogram.
A possible short condition can form when the SMI is near or beyond its upper dynamic band and turns downward with a weakening histogram.
Trend-pullback conditions
A possible trend-following long can form when:
The EMA and optional ADX regime are bullish
The weighted timeframe stack is bullish
A recent lower-timeframe reset occurred
SMI turns upward from below zero
Histogram momentum improves
The short calculation is the inverse.
Enabled squeeze and footprint filters can provide additional confirmation.
Signals are limited to the configured session and separated by a user-defined cooldown.
They identify qualifying confluence conditions, not guaranteed entries.
Heat Score and Grades
Each directional setup receives a normalized Heat score from 0 to 100.
The score can include:
Dynamic-band depth
Freshness of the band touch
Speed of arrival at the extreme
Volume participation
Cross-timeframe deceleration
Session phase
Momentum fatigue
Trap or failed-extension behavior
Absorption-style price/momentum disagreement
Squeeze state
Divergence
Oscillator shape
Footprint delta
POC migration
POC imbalance
Rolling multi-window delta alignment
The resulting score is classified as:
A+
A
B+
B
The grade measures agreement among enabled components. It is not a probability of success.
Momentum Intelligence
Cobra examines more than simple SMI crosses.
Band-touch memory
The indicator counts recent touches of the upper and lower dynamic bands.
A first touch is treated differently from repeated touches because recurring tests can indicate either persistence or deterioration of the same extreme.
Velocity
Velocity measures how quickly SMI reached its current area.
A fast arrival identifies rapid momentum displacement.
A slow grind identifies gradual movement.
Velocity provides timing context but does not independently determine reversal or continuation.
Fatigue
Fatigue combines:
Time spent beyond a dynamic band
Decay in SMI slope after entering that region
A high fatigue score means momentum has remained extended while its rate of progress has weakened.
Trap or failed extension
The trap module records an SMI move beyond a dynamic band and checks whether momentum returns through the band without sufficient price follow-through.
This describes a failed momentum extension or band rejection. It is not direct evidence of an exchange-level failed auction.
Price-momentum compression
When price produces a short-term new high or low while histogram magnitude contracts across several bars, Cobra marks a possible absorption-style disagreement.
This identifies reduced momentum efficiency. It does not prove accumulation, distribution, or the activity of a particular participant.
Histogram and Curve Recognition
The histogram-pattern engine evaluates recurring forms including:
Slingshot: compression followed by expansion
Staircase: orderly same-direction histogram growth
Cliff: rapid loss of histogram magnitude
Double Pump: renewed expansion after a near-zero pause
Divergence Compression: price extension with declining histogram magnitude
The curve-shape engine evaluates the SMI itself for:
W-bottom
M-top
Bullish and bearish V-spikes
Rounding bottom
Rounding top
These are mathematical classifications of oscillator behavior. Their names describe the detected shape and should not be treated as complete trade setups by themselves.
Divergence and Squeeze
Regular divergence compares confirmed price pivots with SMI pivots.
Hidden divergence identifies possible continuation structures through the same pivot framework.
Because pivots require bars to the right, divergence appears only after the pivot has been confirmed.
The squeeze module compares Bollinger Bands with Keltner Channels.
A squeeze exists while the Bollinger Bands remain inside the Keltner Channels. A release occurs when that condition ends.
A squeeze release indicates changing volatility, not guaranteed direction.
Footprint Engine
When PulseWire footprint data is available, Cobra reads:
Buy volume
Sell volume
Delta
Total volume
Point of Control
Buy and sell volume at the POC
Value Area High
Value Area Low
Footprint data can contribute to:
Directional signal confirmation
Volume conviction
POC migration
Price-versus-POC context
POC imbalance
Delta-versus-SMI disagreement
Heat scoring
The footprint delta gate can require positive delta for long conditions and negative delta for short conditions.
The POC imbalance module compares buying and selling volume specifically at the POC. It is not a stacked or diagonal imbalance calculation across every footprint row.
When footprint data is unavailable, the footprint-specific components are omitted and the remaining Cobra framework continues operating.
Rolling Delta Windows
Cobra sums chart-timeframe footprint delta across rolling windows designed to approximate the selected:
15-minute
60-minute
233-minute
987-minute durations
The resulting score shows how many rolling windows have positive or negative accumulated delta.
These are rolling chart-bar calculations. They are not discrete higher-timeframe footprint objects and may not align exactly with official higher-timeframe candle boundaries.
Signal Outcome Tracker
Cobra contains an internal signal-outcome tracker for qualifying A+ signals.
It records:
Entry reference
ATR-based stop distance
Configurable R objectives
Maximum holding period
Maximum favorable excursion
Maximum adverse excursion
Signal grade
Session
Histogram pattern
Footprint context
The dashboard can summarize historical wins, losses, win rate, and average R for the loaded sample.
This is not a PulseWire strategy backtest. It does not model:
Broker execution
Bid/ask spread
Slippage
Commission
Partial fills
Intrabar sequence
Portfolio exposure
Its statistics apply only to the script’s own signal definitions, selected settings, instrument, timeframe, and available chart history.
Adaptive Context
The Bayesian-style module compares recorded outcomes across factors such as:
Session
Velocity
Band-touch count
Histogram pattern
Curve shape
Footprint alignment
It can make a limited adjustment to the Heat score after the required sample size has been reached.
The k-nearest-neighbor module compares the current state with previously closed signals using a multi-feature distance calculation.
It reports the outcomes of the closest historical matches.
These values describe the loaded historical sample. They are not independent forecasts or validated probabilities.
Intelligence HUD
The dashboard summarizes:
Heat score and grade
Momentum regime
SMI state
Band-touch state
Velocity
Fatigue
Active pattern or curve shape
Volume conviction
Session phase
Historical outcome statistics
Footprint delta
Rolling delta-window alignment
Hovering over the cells provides expanded calculation and context details.
How to Use BK AK-Cobra
Select the contract preset. Use AUTO for supported futures or Custom for manual settings.
Configure the session. Confirm the timezone and active session hours. Signals are restricted by this setting.
Choose Clean, Normal, or Debug mode. Normal shows the principal intelligence modules without every diagnostic marker.
Read SMI location and direction. Determine whether SMI is above or below zero, near a dynamic band, and rising or falling relative to its signal.
Check the timeframe stack. Review whether higher timeframes support the current direction and whether the middle timeframes oppose it.
Identify the setup family. Distinguish an extreme reversal condition from a trend-pullback condition.
Review the Heat score. Use the grade as a confluence summary, not as a success probability.
Inspect momentum context. Check band-touch freshness, velocity, fatigue, squeeze state, divergence, patterns, and curve shape.
Review footprint evidence. When available, compare the proposed direction with delta, POC migration, imbalance, and rolling delta-window alignment.
Use historical statistics carefully. Require a meaningful number of closed observations before considering outcome, Bayesian-style, or k-NN readings.
Wait for confirmation. Current-bar values and signals can change before the candle closes.
Define risk independently. ATR stop and target values in the tooltips are analytical references, not personalized trade instructions.
Original Framework
SMI, moving averages, ADX, Bollinger Bands, Keltner Channels, divergence, footprint delta, POC, Bayesian methods, and k-nearest-neighbor methods are established concepts.
The distinctive BK contribution is the integrated architecture connecting:
Contract-aware SMI presets
Volatility-adaptive statistical bands
Six-timeframe weighted momentum state
Reset, veto, regime, squeeze, and footprint signal gates
Band-touch and arrival-velocity memory
Fatigue and failed-extension analysis
Histogram-pattern recognition
SMI curve-shape matching
Footprint-confirmed momentum analysis
A normalized multi-factor Heat score
Historical signal-outcome context
Bayesian-style score adjustment
k-NN matched-condition analysis
A unified intelligence HUD
The system is designed as one dependency chain rather than a collection of unrelated studies:
SMI establishes momentum. Dynamic bands establish location. The timeframe stack establishes context. Intelligence modules evaluate the turn. Footprint tests participation. Historical modules measure how similar conditions behaved previously.
Realtime Behavior and Risk
Cobra recalculates while the active chart candle is forming.
SMI, histogram, bands, grades, footprint values, momentum patterns, and signals can change intrabar. Higher-timeframe readings can change until their source candles close. Pivot-based divergence requires confirmation bars.
BK AK-Cobra is provided for analytical and educational purposes. It does not provide investment advice, guarantee performance, or eliminate trading risk.
Users remain responsible for their own analysis, position sizing, entries, exits, stops, execution, and account risk.
Measure momentum. Confirm context. Respect invalidation. Indicator

Indicator

ETH DCA Strategy [3Commas & Quantpilot]ETH DCA RSI Long Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for ETH / USDT that opens a position only in oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below the entry threshold; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder.
- Single entry filter: 4h RSI(14) below 36 (oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit (4.5%) on the blended average entry; no trailing, no stop loss.
- Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.
🔷 What changed — two parameters, tuned with QuantPilot:
This strategy started from a baseline configuration (RSI entry below 28, 3% take-profit). Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, two parameters were swept and re-selected: the RSI entry threshold moved from 28 to 36, and the take-profit moved from 3% to 4.5%. Everything else was left untouched — same five-order ladder, same deviations, same 1.8× sizing, same fees.
- Baseline (RSI < 28, TP 3%): Net +5,790.33 USDT (+5.79%), Max Drawdown 3.83%, 93 closed trades, 68.82% profitable, Profit Factor 5.019.
- Optimized (RSI < 36, TP 4.5%): Net +14,518.03 USDT (+14.52%), Max Drawdown 4.41%, 134 closed trades, 71.64% profitable, Profit Factor 7.513.
The result: net profit roughly 2.5× higher (+5.79% → +14.52%), profit factor up from 5.0 to 7.5, win rate up from 69% to 72%, and the trade count rose from 93 to 134. The looser RSI entry (36) lets the strategy engage the dip earlier and more often, while the wider 4.5% target lets each recovery run further before the position is banked; the trade-off is a modestly higher drawdown (3.83% → 4.41%). The published defaults use the optimized values; the baseline metrics are shown here purely so the effect of the two parameter changes is transparent.
🔷 Who is it for:
- Swing traders accumulating ETH on RSI pullbacks rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 36 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price 4.5% above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Optimizer-Tuned Parameters: The RSI threshold (36) and take-profit (4.5%) are not arbitrary — they are the values the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads, driving a DCA Bot end-to-end with no glue layer.
- On-Chart Transparency: The AO ladder, average entry, and take-profit target are plotted live, and the status table reports RSI, AOs filled, base/average entry, TP target, and max deployable capital.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The RSI threshold and take-profit were selected by sweeping those parameters over the same historical window shown in the results. Values that were best in-sample are not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume: The optimized configuration produced 134 closed trades over ~30 months (93 on the baseline) — above the ~100-trade threshold commonly used as a floor for statistical relevance, which lends more weight to the win rate and profit factor than a smaller sample would. Still, past results do not guarantee future performance.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If ETH trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:ETHUSDT.P (Perpetual) — strategy is portable to any ETH / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 2026 (~30 months).
Initial Capital: 100,000 USDT.
Base Order Size: 500 USDT.
Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry.
AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT.
Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Entry Filter: 4h RSI(14) below 36 (optimizer-tuned from 28).
Take Profit: 4.5% above average entry (optimizer-tuned from 3%).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — RSI < 36, TP 4.5%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +14,518.03 USDT (+14.52%)
Max Equity Drawdown: 4,939.51 USDT (4.41%)
Total Closed Trades: 134
Percent Profitable: 71.64% (96 / 134)
Profit Factor: 7.513
🔷 STRATEGY RESULTS (Baseline — RSI < 28, TP 3%, for comparison)
Net Profit: +5,790.33 USDT (+5.79%)
Max Equity Drawdown: 3,976.44 USDT (3.83%)
Total Closed Trades: 93
Percent Profitable: 68.82% (64 / 93)
Profit Factor: 5.019
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (default 36), the five AO deviations and sizes, and the Take Profit (default 4.5%) match your risk profile. Scale the base/AO sizes down for lower exposure.
🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note the optimized configuration reached 4.41%. The 134-trade sample is above the ~100-trade floor for statistical relevance, though optimized parameters still carry in-sample bias — re-validate on fresh data.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 36 — optimizer-tuned).
Take Profit (%): Distance above average entry where the full position closes (default 4.5%, optimizer-tuned).
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Strategy

Liquidity Thermodynamics Engine V9 LiteLiquidity Thermodynamics Engine V9 Lite is a macro-liquidity oscillator designed to highlight liquidity impulse, acceleration, compression, divergence, and follow-through conditions. It is a lite core version of a more heavy research model that explores liquid thermodynamic phase models as the physics corresponds to capital flows.
The indicator combines major liquidity inputs into a normalized composite, then tracks when liquidity impulse strengthens, compresses, diverges from price, or aligns with acceleration. The Lite version focuses on a clean chart experience while preserving an optional Flow Map for users who want to inspect the underlying liquidity drivers.
Primary signals include:
- Composite and signal line
- Positive and negative impulse histogram
- Bright positive impulse bars
- Acceleration markers
- Compression diamonds
- Bullish and bearish divergence markers
- Bright green follow-through triangle
- Optional energy exhaustion flag
- Optional Flow Map
This tool is intended for macro context and research. It is not financial advice and should not be used as a standalone trading system.
User Guide
Liquidity Thermodynamics Engine V9 Lite, or LTE Lite, is a macro-liquidity momentum oscillator designed to help users visualize when liquidity conditions are compressing, accelerating, diverging from price, or beginning to follow through.
The indicator is not designed to predict every short-term move. It is best used as a higher-timeframe liquidity context tool, especially on slower charts such as the 6D, weekly, or multi-day Bitcoin chart. Its strongest signals tend to come when liquidity impulse and acceleration align near important macro turning zones.
This guide explains what each signal means, how to read the chart, and how to use the tool responsibly.
1. What LTE Lite Measures
LTE Lite combines several macro liquidity series into a normalized oscillator:
- Federal Reserve total assets
- Treasury General Account
- Overnight reverse repo
- Reserve balances
- Optional inverse DXY overlay
The core model converts liquidity conditions into a composite line, then measures the speed and force of changes in that composite. The result is a compact view of liquidity pressure, impulse, acceleration, compression, divergence, and exhaustion.
In simple terms:
- The white line shows the liquidity composite.
- The yellow line smooths that composite into a signal line.
- The histogram shows liquidity impulse.
- Markers highlight important changes in pressure, momentum, divergence, and exhaustion.
2. The Core Lines
White Line — Composite Line
The white line is the main liquidity composite. It represents the current normalized liquidity condition.
When the white line rises, liquidity conditions are generally improving. When it falls, liquidity conditions are generally deteriorating.
The white line is more reactive than the yellow signal line.
Yellow Line — Signal Line
The yellow line is a smoothed version of the composite.
It helps users distinguish noise from directional liquidity movement. When the white line rises above the yellow line, liquidity momentum is improving. When the white line falls below the yellow line, liquidity momentum is weakening.
The signal line is not a trade trigger by itself. It is context.
3. Impulse Histogram
The histogram measures the rate of change in the liquidity composite.
Green Histogram Bars
Green bars show positive liquidity impulse.
This means liquidity pressure is improving relative to the prior bars.
Red Histogram Bars
Red bars show negative liquidity impulse.
This means liquidity pressure is deteriorating.
Bright Green Histogram Bars
Bright green bars mark stronger positive impulse.
By default, LTE Lite highlights positive impulse bars when they reach or exceed the Key Positive Impulse Level. In the current stock configuration, this level is set to `0.10`.
These bars are important because they often mark a stronger liquidity push rather than a minor improvement.
Important: a bright green histogram bar is not automatically a buy signal. Its value increases when it aligns with acceleration, compression release, improving structure, or price confirmation.
4. Acceleration Markers
Acceleration markers show when the impulse itself is accelerating.
Yellow `+`
A yellow plus sign marks positive acceleration.
This means liquidity impulse is not just positive; it is improving quickly enough to clear the acceleration threshold.
Positive acceleration can appear before a larger histogram impulse bar, or the impulse bar can appear first. LTE Lite watches for either order.
Yellow `-`
A yellow minus sign marks negative acceleration.
This means liquidity impulse is weakening quickly.
Negative acceleration can warn that a prior liquidity push is losing force.
5. Bright Green Triangle Signal
The bright green triangle is one of the most important Lite signals.
It fires when:
- A bright positive impulse bar occurs, and
- A positive acceleration signal occurs, and
- The two events happen within the configured window.
The default window is `7` bars.
On a 6D chart, 7 bars is roughly 42 calendar days. This gives the signal room to capture cases where acceleration leads impulse and cases where impulse leads acceleration.
Why This Signal Matters
This signal is designed to identify liquidity follow-through.
The idea is:
- A large positive histogram bar shows meaningful liquidity impulse.
- A `+` acceleration marker shows liquidity momentum is expanding.
- When both appear close together, the market may be entering a more supportive liquidity window.
This does not guarantee immediate upside. It means liquidity conditions have improved enough to deserve attention.
How to Use It
Best practice:
1. Watch for the green triangle on higher timeframes.
2. Check whether price is basing, breaking structure, or reclaiming key levels.
3. Confirm that the composite is stabilizing or rising.
4. Avoid treating the triangle as a standalone entry signal.
The green triangle is a context signal, not a mechanical trading command.
6. Compression Signal
Compression is shown as a small gray diamond around the zero line.
Compression appears when:
- Liquidity impulse is small, and
- Composite movement is also muted, and
- This quiet condition persists for the configured number of bars.
Compression means liquidity energy is coiling.
It does not tell direction by itself. It simply says the system is quiet enough that a larger move may be building.
How to Use Compression
Compression is most useful when followed by:
- Positive acceleration
- Bright green impulse
- A green triangle signal
- Composite reclaiming or curling upward
Compression followed by negative acceleration can instead warn of downside continuation.
7. Divergence Signals
Divergence compares price structure against liquidity structure.
Bullish Divergence
A bullish divergence marker appears when price makes a lower pivot low while the liquidity composite makes a higher pivot low.
This can suggest that price is weakening less efficiently because liquidity conditions are improving underneath the surface.
Bearish Divergence
A bearish divergence marker appears when price makes a higher pivot high while the liquidity composite makes a lower pivot high.
This can suggest that price is rising while liquidity support is weakening.
Divergence Mode
The default mode is:
`Price vs Liquidity + Impulse`
This is stricter than simple price-versus-liquidity divergence because it also checks impulse direction. The goal is to reduce noisy divergence signals.
Divergence is best used as a warning or confirmation tool, not as a standalone entry or exit.
8. Energy Exhaustion Flag
The Energy Exhaustion Flag is an optional marker.
It is designed to identify moments when internal liquidity energy has dropped sharply or clustered into a weak state.
By default in the current V9 Lite stock settings, this marker is turned off.
When enabled, it can help identify late-stage exhaustion after strong liquidity movement. It should be used carefully because exhaustion can persist before price responds.
9. Flow Map
The Flow Map is an optional visual layer.
It breaks liquidity movement into individual components:
- Fed flow
- Treasury flow
- RRP flow
- Reserve flow
The Flow Map helps users see which component is contributing most to liquidity movement.
Flow Map Modes
`Stacked Bars` shows all selected flow components.
`Dominant Bars` shows only the strongest component on each bar.
`Stacked + Dominant Marker` shows the flow bars and adds a marker to the dominant component.
How to Use the Flow Map
Use the Flow Map when you want to inspect what is driving the oscillator.
For example:
- Reserve flow may dominate during banking-system liquidity shifts.
- TGA changes may dominate around Treasury cash rebuilding or drawdowns.
- RRP shifts may dominate when reverse repo usage changes materially.
- Fed balance sheet changes may dominate during major policy/liquidity events.
For clean chart reading, leave Flow Map off. Turn it on when doing deeper diagnostics.
10. Suggested Timeframes
LTE Lite is designed primarily for higher-timeframe liquidity analysis.
Recommended starting points:
- Bitcoin 6D
- Bitcoin weekly
- Major index weekly
- Multi-day charts for macro context
Lower timeframes may produce more noise because macro liquidity data updates slowly relative to intraday price action.
The 6D chart can be especially useful because it balances signal sensitivity with macro smoothness.
11. Practical Reading Workflow
Use this sequence:
Step 1 — Identify the Liquidity Regime
Look at the white and yellow lines.
Is the composite rising, falling, basing, or rolling over?
Step 2 — Check Impulse
Look at the histogram.
Are bars green or red? Are green bars brightening? Is negative impulse fading?
Step 3 — Watch Acceleration
Look for `+` or `-` markers.
A `+` means liquidity momentum is accelerating. A `-` means it is decelerating.
Step 4 — Look for Follow-Through
The green triangle is the key combined signal.
It means strong positive impulse and positive acceleration have occurred within the configured window.
Step 5 — Confirm With Price
Do not use the indicator alone.
Look for price confirmation such as:
- Break of market structure
- Reclaim of key moving averages
- Higher lows
- Range breakout
- Failed breakdown
- Support reclaim
Step 6 — Manage Risk
Liquidity support can improve before price moves. It can also improve while price continues consolidating.
Use invalidation levels, position sizing, and a clear plan.
12. Signal Priority
Not all signals carry equal weight.
Highest priority:
1. Bright green triangle after or near positive acceleration
2. Bright green impulse bars appearing after compression
3. Bullish divergence near a major low
4. Composite rising above the signal line
Medium priority:
1. Positive acceleration without bright impulse
2. Compression alone
3. Flow Map showing improving dominant flow
Lower priority:
1. Small green histogram bars
2. Isolated divergence without impulse confirmation
3. A single marker against strong price downtrend
13. Common Mistakes
Mistake 1 — Treating Every Green Bar as Bullish Enough
Small green bars only show mild improvement. The brighter bars matter more.
Mistake 2 — Ignoring Timeframe
Signals on a 6D or weekly chart are not short-term scalping signals. They describe larger liquidity conditions.
Mistake 3 — Ignoring Price Confirmation
Liquidity can lead price, but price still needs to confirm.
Mistake 4 — Assuming the Triangle Means Immediate Upside
The triangle identifies a supportive liquidity window. It does not guarantee immediate price expansion.
Mistake 5 — Overloading the Chart
Keep Flow Map off unless you are diagnosing components. The cleanest read usually comes from the composite, signal line, histogram, acceleration markers, compression, divergence, and green triangle.
14. Default Settings Philosophy
The stock settings are tuned for a clean macro read.
The defaults prioritize:
- Higher-timeframe stability
- Fewer false signals
- Visibility of major impulse events
- Clean chart presentation
- Optional component diagnostics through Flow Map
If users modify settings, they should do so slowly and test across multiple cycles.
Risk Disclaimer
This indicator is for educational and research purposes only.
It does not provide financial advice, investment advice, or trading recommendations. Markets involve risk, and no indicator can guarantee future performance. Users should combine this tool with independent analysis, risk management, and their own decision-making process.
Past signal behavior does not guarantee future results. Indicator

Volatility Squeeze Scanner MTF [StrixEDGE]Overview
A multi-timeframe volatility squeeze detector that identifies when Bollinger Bands contract inside Keltner Channels across four configurable timeframes simultaneously. The indicator combines squeeze state detection with a LazyBear-method momentum oscillator and a real-time consensus engine, giving traders a structured view of cross-timeframe compression without switching charts.
Volatility squeezes represent periods of contracting price action — energy building before a directional move. Detecting them on a single timeframe is common. Detecting them across multiple timeframes at once isolates the higher-probability setups where compression is structural, not noise.
How It Works
Squeeze Detection
A squeeze fires when the Bollinger Bands (SMA ± standard deviation) fully contract inside the Keltner Channel (SMA ± ATR). This means the upper Bollinger Band is below the upper Keltner Channel AND the lower Bollinger Band is above the lower Keltner Channel. When both conditions hold, volatility has compressed below its average range — the market is coiling.
Bull BIAS
Bear BIAS
Momentum Oscillator (LazyBear Method)
The momentum histogram is calculated as the linear regression of the difference between price and the average of the Donchian Channel midline and SMA. This produces a zero-centered oscillator that reveals both the direction and acceleration of momentum inside the squeeze.
The histogram uses a four-tone color scheme:
- Bright green — bullish momentum, accelerating
- Dark green — bullish momentum, decelerating
- Bright red — bearish momentum, accelerating
- Dark red — bearish momentum, decelerating
Squeeze-State Dots
Dots on the zero line change color based on the current chart timeframe's squeeze state:
- Orange dot — squeeze is active (BB inside KC)
- Teal dot — no squeeze (BB outside KC)
The transition from orange to teal marks the moment the squeeze fires — volatility is expanding and the move is underway.
Multi-Timeframe Consensus
The indicator runs the squeeze calculation independently on four user-defined timeframes via `request.security()`. A consensus table displays each timeframe's squeeze state, momentum direction, momentum acceleration, and squeeze duration in real time.
Consensus is reached when the number of timeframes simultaneously in squeeze meets or exceeds the user-defined threshold (default: 3 out of 4). The background subtly highlights when consensus is active, with a brighter flash on the bar where consensus is first reached.
How to Read It
Entry context:
Wait for the consensus row to show 3/4 or 4/4 CONSENSUS — this confirms compression is happening across the timeframe stack, not just locally. The higher the consensus count, the more significant the potential expansion.
Directional bias:
The MOM and DIR columns across timeframes reveal whether momentum is aligned. When most timeframes show BULL + ▲, the bias favors long. When most show BEAR + ▼, the bias favors short. Mixed readings suggest no clear directional edge — patience is warranted.
Timing the release:
Watch the zero-line dots on the current chart timeframe. When the dot transitions from orange (squeeze active) to teal (squeeze released), the coil is unwinding. The histogram's color and direction at that moment indicate the likely direction of the expansion.
Duration as context:
The DUR column shows how many bars each timeframe has been in squeeze. Longer durations generally correspond to larger eventual moves. A fresh squeeze (DUR = 1–3) may still be forming. An extended squeeze (DUR = 15+) is deeply compressed and more likely to produce a significant breakout.
Inputs
Bollinger Bands
- Length — lookback period for the SMA and standard deviation (default: 20)
- Multiplier — standard deviation multiplier for band width (default: 2.0)
Keltner Channel
- Length — lookback period for the SMA and ATR (default: 20)
- Multiplier — ATR multiplier for channel width (default: 1.5)
Timeframes
- Four independently configurable timeframes (default: 5m, 15m, 1H, 4H)
- Choose timeframes that create meaningful structure for your trading style
Consensus
- Minimum TF Consensus — how many timeframes must be in squeeze simultaneously to trigger consensus (2, 3, or 4; default: 3)
Momentum
- Momentum Source — price source for all calculations (Close, Open, High, Low, HL2, HLC3, OHLC4)
Alerts
5 alert conditions are available:
- Squeeze Consensus Reached — fires when the minimum TF consensus threshold is first met
- Squeeze Consensus Broken — fires when consensus drops below the threshold
- Consensus + Bullish Bias — consensus active with 3+ timeframes showing positive momentum
- Consensus + Bearish Bias — consensus active with 3+ timeframes showing negative momentum
- Full 4/4 Squeeze — all four timeframes in simultaneous squeeze
Indicator

Indicator

RSI Divergence Entry Engine [trade_w_samet]🎯 RSI Divergence Entry Engine
RSI Divergence Entry Engine is a pivot-confirmed RSI divergence, optional trend-filtering, ATR-based trade-mapping, historical visualization, alert, and statistics indicator designed to help traders study how regular bullish and bearish RSI divergences can be converted into a structured chart workflow.
The script is built around one central idea:
A confirmed RSI divergence should be treated as analytical context first, and as a tracked trade setup only when the active direction filter and trade-state rules allow it.
The engine identifies regular RSI divergence between confirmed RSI pivots and corresponding price pivots.
When a divergence is confirmed, the script can:
• Display the divergence inside the RSI panel
• Fill the region between the RSI path and its divergence reference line
• Draw a three-layer neon divergence line directly between the corresponding price pivots on the main chart
• Evaluate the active trend-filter mode
• Open one tracked bullish or bearish setup when the signal is eligible
• Calculate an ATR-based Stop Loss
• Calculate TP1, TP2, and TP3
• Extend risk/reward boxes while the trade remains active
• Preserve completed trade boxes and historical TP price labels
• Track TP3 wins, Stop Losses, Win Rate, NET R, Average R, and Profit Factor
• Display a full desktop dashboard or a compact mobile dashboard
• Send separate PulseWire alert conditions
• Support one combined “Any alert() function call” workflow
• Apply Dark Mode, Light Mode, or Mobile Theme styling
The indicator includes:
• Fixed RSI 14 calculation using closing prices
• Pivot-based regular bullish divergence detection
• Pivot-based regular bearish divergence detection
• Adjustable Pivot Lookback
• Adjustable Confirmation Bars
• A fixed internal pivot-distance window
• Confirmed-bar divergence acceptance
• RSI-panel bullish and bearish divergence lines
• RSI-panel divergence-area fills
• Main-chart three-layer neon divergence lines
• Adjustable main-chart BULLISH / SELL label size
• Fixed compact RSI-panel labels
• Dark Mode
• Light Mode
• Mobile Theme
• EMA 200 Trend Filter
• Supertrend filter using ATR 10 and factor 3.0
• Higher-timeframe EMA 200 Trend Filter
• Adjustable higher timeframe
• ATR-based Stop Loss
• Adjustable ATR period
• Adjustable ATR Stop Loss multiplier
• Adjustable TP3 target from 1R to 7R
• Automatically calculated TP1 and TP2
• One active tracked trade at a time
• Conservative same-candle TP3 / SL handling
• Permanent historical TP / SL boxes
• Historical TP1, TP2, and TP3 price labels
• Dynamic active-trade price labels
• TP3 TARGET HIT labels
• Stop Loss result labels
• Full desktop statistics dashboard
• Two-row Mobile Theme dashboard
• Static alertcondition() support
• Dynamic alert() support
• “Any alert() function call” compatibility
• Bold-italic visual text
• Pure-white Dark Mode label text
• Hidden status-line input values
• Main-chart overlay visuals from a separate RSI pane
• Loaded-history trade statistics
The purpose of the script is to provide a transparent visual framework for reviewing confirmed RSI divergence, directional context, mapped risk, target structure, and bar-based historical outcomes.
It is not financial advice.
It is not an automated trading system.
It does not execute broker orders.
It does not calculate position size.
It does not guarantee that a divergence will produce a reversal.
It does not guarantee that the displayed Win Rate, NET R, or Profit Factor will continue in future market conditions.
It does not include spread, commission, slippage, latency, financing, or partial fills.
It does not reproduce the exact intrabar path inside historical candles.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, RSI Divergence Entry Engine does the following:
• Calculates RSI using a fixed 14-period length and closing prices.
• Searches the RSI series for confirmed pivot lows and pivot highs.
• Compares each confirmed RSI pivot with the previous eligible pivot of the same type.
• Compares the corresponding price low or high with the prior price pivot.
• Identifies regular bullish divergence when RSI forms a higher low while price forms a lower low.
• Identifies regular bearish divergence when RSI forms a lower high while price forms a higher high.
• Requires the distance between the two confirmed pivots to remain inside the fixed internal range window.
• Waits for the required right-side confirmation bars before accepting a pivot.
• Displays confirmed divergence inside the RSI panel.
• Draws the same confirmed price-pivot relationship on the main chart with a neon line.
• Evaluates the selected trend-filter mode.
• Rejects a tracked entry when the trend filter does not allow that direction.
• Rejects a tracked entry when an opposite divergence is simultaneously present.
• Rejects a tracked entry while another trade is active.
• Opens a tracked trade at the close of the divergence-confirmation candle.
• Calculates Stop Loss distance from ATR.
• Places TP1 and TP2 at proportional distances inside the final TP3 target.
• Tracks only TP3 as the winning exit.
• Tracks Stop Loss as a -1R loss.
• Extends the active profit and loss boxes until the trade closes.
• Preserves completed boxes as historical trade visuals.
• Preserves historical TP1, TP2, and TP3 price labels.
• Updates the dashboard with bar-based historical statistics.
• Provides separate static alerts and combined dynamic alerts.
The script does not use machine-learning prediction.
It does not claim that RSI divergence predicts the future with certainty.
Its dashboard is not PulseWire Strategy Tester.
Its statistics are calculated internally from the script’s own bar-touch rules.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
RSI divergence describes disagreement between price direction and RSI pivot direction.
A regular bullish divergence occurs when:
• price forms a lower low
• RSI forms a higher low
A regular bearish divergence occurs when:
• price forms a higher high
• RSI forms a lower high
The divergence can indicate that momentum is not confirming the newest price extreme.
However, divergence alone does not answer:
• whether the broader trend supports the reversal
• whether price is above or below a long-term directional reference
• whether Supertrend agrees with the signal
• whether the selected higher timeframe agrees with the signal
• where a volatility-adjusted Stop Loss should be mapped
• where intermediate and final targets should be displayed
• whether another tracked trade is already active
• whether historical bar touches reached TP3 or Stop Loss first
• how the signal behaves across Dark, Light, or Mobile layouts
The script therefore combines the divergence calculation with an optional trend filter and a fixed trade-tracking model.
The complete workflow is:
RSI pivot confirmation
→ price-pivot comparison
→ regular divergence confirmation
→ RSI-panel visualization
→ main-chart neon price-divergence line
→ optional trend-filter validation
→ one-active-trade check
→ entry at confirmation-candle close
→ ATR-based Stop Loss
→ TP1 / TP2 / TP3 mapping
→ historical bar-touch tracking
→ TP3 or SL result
→ dashboard statistics
→ static and dynamic alerts
The modules are not intended to operate as unrelated indicators.
Each module supports the same process: identifying a confirmed divergence, deciding whether it is eligible for tracking, mapping the trade structure, and recording the result under explicit rules.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE RSI DIVERGENCE MARKER
━━━━━━━━━━━━━━━━━━━━━━
A basic RSI divergence script can stop after drawing a line between two oscillator pivots.
RSI Divergence Entry Engine continues beyond that step.
A confirmed divergence can move through the following stages:
RSI pivot appears
→ right-side confirmation bars complete
→ previous eligible RSI pivot is located
→ pivot distance is validated
→ corresponding price pivots are compared
→ bullish or bearish divergence is confirmed
→ RSI divergence region is displayed
→ main-chart neon price-divergence line is displayed
→ active trend filter is evaluated
→ opposite-direction conflict is rejected
→ existing active-trade state is checked
→ ATR risk distance is calculated
→ entry, SL, TP1, TP2, and TP3 are stored
→ trade boxes extend through time
→ TP3 or SL is detected
→ completed trade is added to statistics
→ historical TP prices remain visible
The RSI module identifies the momentum disagreement.
The trend-filter module defines whether the tracked entry is directionally permitted.
The ATR module adapts the Stop Loss distance to current volatility.
The target module translates the chosen TP3 R multiple into three visual target levels.
The trade-state module prevents overlapping tracked positions.
The statistics module summarizes the outcomes produced by those exact rules.
The alert module communicates divergence, entry, TP3, and Stop Loss events.
This coordinated process makes the publication an entry-engine framework rather than only a divergence drawing tool.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
The indicator operates from a separate RSI pane while using force-overlay visuals for selected elements on the main chart.
The internal RSI configuration is:
• RSI length: 14
• Source: close
• Regular bullish divergence: enabled
• Regular bearish divergence: enabled
• Hidden bullish divergence: internally disabled
• Hidden bearish divergence: internally disabled
• Minimum pivot separation: 5 bars
• Maximum pivot separation: 60 bars
The user controls:
• Pivot Lookback
• Confirmation Bars
• Main-chart signal-label size
• ATR Period
• Stop Loss Distance in ATR
• TP3 Target in R
• Trend Filter
• Higher-Timeframe Trend Timeframe
• Theme Mode
First, the script calculates RSI:
osc = ta.rsi(close, 14)
The script then detects confirmed RSI pivots:
pivotLowValue = ta.pivotlow(osc, lbL, lbR)
pivotHighValue = ta.pivothigh(osc, lbL, lbR)
A pivot is not known on the pivot candle itself.
It becomes confirmed only after the selected Confirmation Bars have closed to its right.
The script then retrieves the previous confirmed pivot value, price value, and pivot bar.
Regular bullish divergence requires:
• current RSI pivot low above the previous RSI pivot low
• current price low below the previous price low
• valid pivot distance
• confirmed current chart bar
Regular bearish divergence requires:
• current RSI pivot high below the previous RSI pivot high
• current price high above the previous price high
• valid pivot distance
• confirmed current chart bar
The confirmed divergence is then displayed in two places:
• RSI pane
• Main price chart
The trend filter is applied only to the tracked trade entry.
This means a confirmed divergence can remain visible even when:
• the selected trend filter rejects the direction
• another trade is already active
• bullish and bearish conditions conflict on the same calculation
This separation is intentional.
The divergence visual represents analytical context.
The main-chart BULLISH or SELL trade label represents an entry that the tracking engine actually accepted.
━━━━━━━━━━━━━━━━━━━━━━
📉 RSI CALCULATION
━━━━━━━━━━━━━━━━━━━━━━
The Relative Strength Index is calculated from closing prices using a fixed length of 14.
The RSI line is displayed in blue.
The RSI pane includes:
• 70 Overbought line
• 50 Middle line
• 30 Oversold line
Dark Mode uses:
• black RSI-panel background
• red Overbought line
• white dotted Middle line
• green Oversold line
Light Mode uses:
• white RSI-panel background
• dark Middle line
• red Overbought line
• green Oversold line
The 70 and 30 lines provide visual context.
They are not mandatory divergence conditions.
A bullish divergence can be detected outside the Oversold region.
A bearish divergence can be detected outside the Overbought region.
The script does not require RSI to cross 30 or 70 before accepting a divergence.
━━━━━━━━━━━━━━━━━━━━━━
🔍 PIVOT DETECTION MODEL
━━━━━━━━━━━━━━━━━━━━━━
Pivot Lookback controls the number of candles examined on the left side of a potential RSI pivot.
The default value is 5.
Higher values generally produce larger and less frequent swing points.
Lower values generally produce smaller and more frequent swing points.
Confirmation Bars controls the number of completed candles required on the right side of the potential pivot.
The default value is 1.
A higher Confirmation Bars value provides more right-side confirmation but increases delay.
A lower value confirms earlier but can identify smaller structures.
The script also requires the previous pivot to be between 5 and 60 bars away.
These minimum and maximum distance values are fixed internally to keep the public settings panel compact.
The pivot model is symmetrical:
• pivot lows are used for bullish divergence
• pivot highs are used for bearish divergence
━━━━━━━━━━━━━━━━━━━━━━
🟢 REGULAR BULLISH DIVERGENCE
━━━━━━━━━━━━━━━━━━━━━━
A regular bullish divergence is confirmed when:
• a new RSI pivot low is confirmed
• the previous eligible RSI pivot low exists
• the current RSI pivot low is higher than the previous RSI pivot low
• the current corresponding price low is lower than the previous price low
• the pivot distance is between the fixed internal limits
• the current calculation bar is confirmed
Conceptually:
Price:
lower low
RSI:
higher low
The RSI pane displays:
• a green divergence line between the two RSI pivot values
• a translucent green fill between the real RSI path and the straight divergence reference
• a BULLISH label at the confirmed pivot location
The main chart displays:
• a three-layer green neon line between the corresponding price lows
A tracked bullish trade opens only when:
• the bullish divergence is not opposed by a bearish divergence on the same calculation
• the selected trend filter allows bullish entries
• no tracked trade is currently active
• another trade did not close on the same candle
• ATR is available and greater than zero
The tracked entry price is the close of the confirmation candle.
It is not the historical pivot-low price.
━━━━━━━━━━━━━━━━━━━━━━
🔴 REGULAR BEARISH DIVERGENCE
━━━━━━━━━━━━━━━━━━━━━━
A regular bearish divergence is confirmed when:
• a new RSI pivot high is confirmed
• the previous eligible RSI pivot high exists
• the current RSI pivot high is lower than the previous RSI pivot high
• the current corresponding price high is higher than the previous price high
• the pivot distance is between the fixed internal limits
• the current calculation bar is confirmed
Conceptually:
Price:
higher high
RSI:
lower high
The RSI pane displays:
• a red divergence line between the two RSI pivot values
• a translucent red fill between the real RSI path and the straight divergence reference
• a SELL label at the confirmed pivot location
The main chart displays:
• a three-layer red neon line between the corresponding price highs
A tracked bearish trade opens only when:
• the bearish divergence is not opposed by a bullish divergence on the same calculation
• the selected trend filter allows bearish entries
• no tracked trade is currently active
• another trade did not close on the same candle
• ATR is available and greater than zero
The tracked entry price is the close of the confirmation candle.
It is not the historical pivot-high price.
━━━━━━━━━━━━━━━━━━━━━━
⏳ PIVOT CONFIRMATION AND SIGNAL TIMING
━━━━━━━━━━━━━━━━━━━━━━
This section is important.
The script uses ta.pivotlow() and ta.pivothigh().
Pivot functions require candles to the right of the pivot before confirmation.
For example, when Confirmation Bars is 1:
• the potential pivot occurs
• one additional candle closes
• the pivot becomes confirmed
• the divergence condition can then be calculated
The RSI-panel divergence line and RSI divergence label are drawn at the original pivot-bar location after confirmation.
The main-chart neon divergence line also connects the original price-pivot bars after the divergence is confirmed.
This creates a historical visual relationship between the two pivots.
It does not mean the divergence was available in realtime on the original pivot candle.
The tracked trade entry is not placed back on the pivot.
The tracked entry occurs at the close of the later candle where the divergence confirmation becomes available.
Therefore, users must distinguish between:
Pivot Visualization
Shows where the confirmed historical pivots occurred.
Trade Entry Label
Shows the candle where the script actually accepted and opened the tracked setup.
Changing Confirmation Bars changes the confirmation delay.
Increasing Confirmation Bars can materially change signal timing and historical divergence output.
━━━━━━━━━━━━━━━━━━━━━━
✨ MAIN-CHART NEON DIVERGENCE VISUALS
━━━━━━━━━━━━━━━━━━━━━━
Confirmed RSI divergences are also displayed directly on the main price chart.
Bullish divergence:
• connects the two corresponding price lows
• uses green
• uses a three-layer neon appearance
Bearish divergence:
• connects the two corresponding price highs
• uses red
• uses a three-layer neon appearance
The neon effect is created from:
• a wide transparent outer glow
• a medium inner glow
• a bright two-pixel core line
The neon line is a historical divergence visual.
It is not an entry line.
It is not a Stop Loss.
It is not a support or resistance guarantee.
The line is created only after the RSI pivot and divergence have been confirmed.
Older line objects are removed when the configured internal object limit is exceeded.
Deleting an older visual object does not change the underlying signal calculation.
━━━━━━━━━━━━━━━━━━━━━━
🎨 RSI DIVERGENCE AREA SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Inside the RSI pane, the script creates a filled polygon between:
• the actual RSI path from the first pivot to the second pivot
• the straight divergence line connecting those pivot endpoints
Bullish divergence uses a translucent green fill.
Bearish divergence uses a translucent red fill.
The purpose is to make the momentum disagreement easier to recognize than a thin line alone.
The fill does not measure probability.
A larger visual area does not automatically mean a stronger or more profitable divergence.
The fill depends on:
• RSI movement between the pivots
• distance between the pivots
• selected Pivot Lookback
• selected Confirmation Bars
• chart symbol
• timeframe
• loaded historical data
━━━━━━━━━━━━━━━━━━━━━━
🧭 TREND FILTER SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The trend filter determines whether a confirmed divergence is eligible to open a tracked trade.
Available modes are:
• Off
• EMA Trend
• Supertrend
• HTF Trend
The filter does not hide the confirmed divergence visuals.
It only changes whether the trade engine accepts the bullish or bearish entry.
This allows users to study:
• all confirmed divergence structures
• only the subset that passed the selected directional filter
The active trend reference is drawn on the main chart when a filter mode is selected.
The reference is green when the active filter state is bullish.
The reference is red when the active filter state is bearish.
━━━━━━━━━━━━━━━━━━━━━━
📈 EMA TREND FILTER
━━━━━━━━━━━━━━━━━━━━━━
EMA Trend uses a fixed chart-timeframe EMA 200.
Bullish entries are allowed when:
• chart close is above EMA 200
Bearish entries are allowed when:
• chart close is below EMA 200
When price equals the EMA exactly, neither directional condition is satisfied.
The EMA filter is intended to align bullish divergence tracking with price above a long-term average and bearish divergence tracking with price below it.
It does not guarantee that price will continue in the filtered direction.
A divergence rejected by the EMA filter can still remain visible as a divergence visual.
━━━━━━━━━━━━━━━━━━━━━━
📊 SUPERTREND FILTER
━━━━━━━━━━━━━━━━━━━━━━
Supertrend mode uses fixed internal parameters:
• ATR length: 10
• factor: 3.0
Bullish entries are allowed when the Supertrend state is bullish.
Bearish entries are allowed when the Supertrend state is bearish.
The Supertrend reference is displayed on the main chart.
The fixed parameters keep the public settings menu simple and make behavior consistent across users.
The Supertrend filter can react differently across symbols and timeframes because ATR and price structure differ.
A bullish Supertrend state does not guarantee a successful bullish divergence trade.
A bearish Supertrend state does not guarantee a successful bearish divergence trade.
━━━━━━━━━━━━━━━━━━━━━━
⏱️ HIGHER-TIMEFRAME TREND FILTER
━━━━━━━━━━━━━━━━━━━━━━
HTF Trend compares the selected higher-timeframe close with its EMA 200.
Bullish entries are allowed when:
• higher-timeframe close is above higher-timeframe EMA 200
Bearish entries are allowed when:
• higher-timeframe close is below higher-timeframe EMA 200
The default higher timeframe is 240 minutes.
The request uses:
• gaps_off
• lookahead_off
The script does not intentionally request future higher-timeframe data.
However, the currently forming higher-timeframe candle can continue changing until that higher-timeframe candle closes.
This means the realtime HTF filter state can change while the active higher-timeframe candle is still developing.
Users who require fully closed higher-timeframe confirmation should account for this timing characteristic when interpreting realtime signals.
Changing the HTF Trend Timeframe recalculates historical eligibility.
━━━━━━━━━━━━━━━━━━━━━━
🎯 ENTRY MODEL
━━━━━━━━━━━━━━━━━━━━━━
The indicator uses the close of the divergence-confirmation candle as the tracked entry reference.
A bullish trade is opened when:
• valid bullish divergence is confirmed
• no bearish divergence conflict exists
• bullish trend permission is true
• no trade is active
• no trade closed on the same candle
• ATR is valid
A bearish trade uses the mirrored conditions.
The entry is stored at close.
The script then calculates:
• ATR-based risk distance
• Stop Loss
• TP1
• TP2
• TP3
Only signals that actually open a tracked trade receive the main-chart BULLISH or SELL entry label.
A divergence visual without an entry label can therefore indicate:
• trend-filter rejection
• existing active trade
• same-candle direction conflict
• same-candle previous trade closure
• unavailable ATR
━━━━━━━━━━━━━━━━━━━━━━
🛑 ATR STOP LOSS MODEL
━━━━━━━━━━━━━━━━━━━━━━
Risk distance is calculated as:
ATR × Stop Loss Distance.
Default settings:
• ATR Period: 14
• Stop Loss Distance: 2.0 ATR
Bullish trade:
Stop Loss = entry − risk distance
Bearish trade:
Stop Loss = entry + risk distance
ATR adapts the raw price distance to current market volatility.
The script does not examine:
• market structure below the bullish signal
• market structure above the bearish signal
• spread
• instrument tick value
• account size
• position size
• broker margin
• contract specifications
The ATR Stop Loss is a visual and statistical model.
It is not a broker order.
━━━━━━━━━━━━━━━━━━━━━━
🏆 TP1 / TP2 / TP3 MODEL
━━━━━━━━━━━━━━━━━━━━━━
The user selects the final TP3 target from 1R to 7R.
The default is 2R.
TP1 and TP2 are placed automatically inside the final target distance.
TP1:
one-third of the TP3 distance
TP2:
two-thirds of the TP3 distance
For a 3R TP3 setting:
• TP1 = 1R
• TP2 = 2R
• TP3 = 3R
For a 2R TP3 setting:
• TP1 ≈ 0.67R
• TP2 ≈ 1.33R
• TP3 = 2R
TP1 and TP2 are visual guide levels.
The current statistics engine does not close partial positions at TP1 or TP2.
It does not move Stop Loss to break even after TP1 or TP2.
It does not add partial R profit when TP1 or TP2 is touched.
Only TP3 is counted as a winning trade.
A Stop Loss is counted as -1R.
━━━━━━━━━━━━━━━━━━━━━━
🚦 ONE ACTIVE TRADE AT A TIME
━━━━━━━━━━━━━━━━━━━━━━
The trade engine maintains one active tracked position.
While a trade is active:
• new bullish divergence entries are not opened
• new bearish divergence entries are not opened
• divergence visuals can still appear
• historical divergence lines can still be drawn
This prevents overlapping tracked positions from affecting the statistics model.
A new trade is also prevented from opening on the same candle that the previous trade closes.
The next eligible divergence must occur on a later candle.
This design keeps each tracked result independent under the script’s internal accounting rules.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ TP3 / SL SAME-CANDLE HANDLING
━━━━━━━━━━━━━━━━━━━━━━
Historical OHLC candles do not reveal the exact sequence of every intrabar price movement.
A candle can contain both:
• the TP3 price
• the Stop Loss price
When both are touched inside the same candle, the script cannot know from OHLC data which level occurred first.
The engine uses a conservative rule:
Stop Loss receives priority.
The trade is recorded as a loss.
TP3 and Stop Loss checks begin on the candle after entry.
The entry candle cannot immediately close the tracked trade.
This avoids assuming an unknown movement sequence inside the entry candle.
The conservative priority rule can produce different outcomes from lower-timeframe or tick-based execution reconstruction.
━━━━━━━━━━━━━━━━━━━━━━
📦 TRADE BOX VISUAL SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Each tracked trade creates two main-chart boxes:
Profit Box
Extends from entry to TP3.
Stop Box
Extends from entry to Stop Loss.
Bullish and bearish trades use the same green profit-area and red risk-area color logic.
While the trade remains active, the boxes extend to the current bar.
When the trade closes, the boxes stop at the exit candle and remain visible historically.
The boxes help visualize:
• entry timing
• risk distance
• final target distance
• trade duration
• exit candle
The boxes are chart drawings.
They are not broker orders.
Older boxes are deleted when the internal historical object limit is exceeded.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ ACTIVE AND HISTORICAL PRICE LABELS
━━━━━━━━━━━━━━━━━━━━━━
During an active tracked trade, the right side of the chart displays dynamic labels for:
• ENTRY
• SL
• TP1
• TP2
• TP3
Each label includes the current stored price.
The labels move to the newest bar while the trade remains active.
On the exit candle, the final prices remain visible for that calculation.
When the trade closes, permanent historical labels are created for:
• TP1
• TP2
• TP3
These historical labels remain attached to the completed trade’s right edge.
The purpose is to preserve the target-price structure after the active dynamic labels disappear.
Historical TP labels do not indicate that TP1 or TP2 was actually touched.
They display the planned target prices for the completed tracked trade.
The final result is determined only by TP3 or Stop Loss.
━━━━━━━━━━━━━━━━━━━━━━
✅ RESULT LABELS
━━━━━━━━━━━━━━━━━━━━━━
When TP3 is reached, the script prints:
TARGET HIT
The trade is counted as a win equal to the selected TP3 R value.
When Stop Loss is reached, the script prints:
SL
The trade is counted as a -1R loss.
Result labels are displayed at the corresponding exit price.
All visible chart labels use bold-italic typography.
Dark Mode label text uses pure white.
Light Mode uses dark text where required for contrast.
━━━━━━━━━━━━━━━━━━━━━━
🎨 THEME SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The indicator includes three theme modes:
• Dark Mode
• Light Mode
• Mobile Theme
Dark Mode
Designed for dark PulseWire layouts.
It uses:
• black RSI-panel background
• dark dashboard surface
• white dashboard text
• pure-white chart-label text
• red brand accents
• green bullish visuals
• red bearish visuals
Light Mode
Designed for light PulseWire layouts.
It uses:
• white RSI-panel background
• white dashboard surface
• dark dashboard text
• dark chart-label text where appropriate
• red brand accents
• adjusted divergence transparency
Mobile Theme
Designed for smaller screens.
It uses:
• compact main-chart labels
• smaller RSI labels
• tiny price labels
• a two-row dashboard
• Win Rate
• NET R
Mobile Theme does not display the full desktop statistics table.
Theme selection changes presentation.
It does not change the underlying divergence, trend-filter, or trade calculations.
━━━━━━━━━━━━━━━━━━━━━━
📟 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
Dark Mode and Light Mode display the full bottom-right dashboard.
The header displays:
• RSI DIVERGENCE
• selected TP3 R value
• active Trend Filter
The full dashboard includes:
Status
Possible values:
• NO ACTIVE TRADE
• ACTIVE BUY
• ACTIVE SELL
Closed Trades
Number of completed tracked trades.
TP3 Wins
Number of trades that reached TP3 before Stop Loss under the script’s bar-touch rules.
Losses
Number of trades recorded at Stop Loss.
Win Rate
TP3 Wins divided by Closed Trades.
NET R
Gross Profit R minus Gross Loss R.
Gross Profit
Sum of winning TP3 R values.
Gross Loss
Number of losing trades expressed as R because every Stop Loss equals -1R.
Average / Trade
NET R divided by Closed Trades.
Profit Factor
Gross Profit R divided by Gross Loss R.
Mobile Theme displays only:
• Win Rate
• NET R
The dashboard is placed on the main chart even though the indicator calculates in a separate RSI pane.
━━━━━━━━━━━━━━━━━━━━━━
📊 STATISTICS METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━
The statistics are produced by the script’s internal bar-based trade tracker.
They are not imported from a broker.
They are not verified account results.
They are not PulseWire Strategy Tester results.
Win Rate:
wins / closed trades
Gross Profit R:
wins × selected TP3 R
Gross Loss R:
losses × 1R
NET R:
Gross Profit R − Gross Loss R
Average R:
NET R / closed trades
Profit Factor:
Gross Profit R / Gross Loss R
When there are profitable trades but no recorded losses, the script displays 999 as a finite placeholder instead of mathematical infinity.
The statistics do not include:
• TP1 partial profits
• TP2 partial profits
• break-even exits
• trailing stops
• spread
• commission
• slippage
• swap
• latency
• order rejection
• partial fills
• position sizing
• account equity
• compounding
• taxes
Statistics depend on:
• loaded chart history
• selected symbol
• timeframe
• data provider
• Pivot Lookback
• Confirmation Bars
• Trend Filter
• HTF Trend Timeframe
• ATR Period
• Stop Loss multiplier
• TP3 target
• historical-data revisions
Changing any of these inputs can change historical results.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes static PulseWire alert conditions for:
• Regular Bullish Divergence
• Hidden Bullish Divergence
• Regular Bearish Divergence
• Hidden Bearish Divergence
• BUY Entry
• SELL Entry
• TP3 Hit
• Stop Loss Hit
Regular bullish and bearish divergence are enabled in the current public configuration.
Hidden bullish and hidden bearish divergence logic is internally disabled.
The hidden alert choices can therefore appear in PulseWire’s alert-condition list, but no hidden divergence event is produced while the internal hidden-divergence switches remain disabled.
The script also includes dynamic alert() calls for:
• BUY entry
• SELL entry
• TP3 hit
• Stop Loss hit
Dynamic BUY and SELL messages can include:
• tradewsamet identifier
• chart ticker
• chart timeframe
• entry price
• TP1 price
• TP2 price
• TP3 price
• Stop Loss price
• final R target
• active Trend Filter
This allows one PulseWire alert using:
Any alert() function call
to receive all dynamic entry and result events.
━━━━━━━━━━━━━━━━━━━━━━
🔔 HOW TO USE ALERTS
━━━━━━━━━━━━━━━━━━━━━━
For a specific static event:
1. Add RSI Divergence Entry Engine to the chart.
2. Open PulseWire’s Create Alert window.
3. Select the indicator as the condition.
4. Choose the required event.
5. Select the notification method.
6. Use an appropriate frequency.
7. Test the alert before relying on it.
For one combined dynamic workflow:
1. Add the indicator to the chart.
2. Open Create Alert.
3. Select RSI Divergence Entry Engine .
4. Select Any alert() function call.
5. Configure the delivery method.
6. Test BUY, SELL, TP3, and SL message handling.
When the script, settings, symbol, or timeframe changes materially, recreate existing alerts.
A PulseWire alert can continue using the script snapshot stored when the alert was created.
Alerts are monitoring tools.
They do not execute, modify, or close broker orders.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
1. Add RSI Divergence Entry Engine to a standard candlestick chart.
2. Select Dark Mode, Light Mode, or Mobile Theme.
3. Begin with Pivot Lookback set to 5.
4. Begin with Confirmation Bars set to 1.
5. Observe the RSI-panel divergence structures.
6. Observe the matching neon price-pivot lines on the main chart.
7. Remember that the pivot visual becomes available only after right-side confirmation.
8. Distinguish the neon divergence line from the later tracked entry label.
9. Begin with Trend Filter set to Off when studying raw divergence frequency.
10. Test EMA Trend for chart-timeframe directional alignment.
11. Test Supertrend for volatility-based directional alignment.
12. Test HTF Trend for higher-timeframe EMA context.
13. Verify the selected HTF timeframe.
14. Review the main-chart trend reference.
15. Observe whether a BULLISH or SELL entry label is accepted.
16. Review ENTRY, SL, TP1, TP2, and TP3 prices.
17. Observe the profit and risk boxes.
18. Remember that TP1 and TP2 are visual only.
19. Review the final TARGET HIT or SL result.
20. Review dashboard Win Rate and NET R.
21. Compare Dark/Light full dashboard with Mobile Theme.
22. Use alerts for monitoring rather than blind execution.
23. Review broader market structure independently.
24. Review spread, liquidity, volatility, and news conditions.
25. Define personal account risk and position size.
26. Test the exact symbol, timeframe, and data feed personally used.
The indicator is designed for structured study and monitoring.
It should not be treated as an automatic decision-maker.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
🎨 Theme
Theme Mode
Dark Mode
Uses the full dark visual profile.
Light Mode
Uses the full light visual profile.
Mobile Theme
Uses compact labels and a two-row dashboard.
━━━━━━━━━━━━━━━━━━━━━━
🎯 Signal Settings
Pivot Lookback
Controls the left-side pivot search width.
Default:
5
Higher values generally create larger and less frequent pivot structures.
Confirmation Bars
Controls the number of right-side completed candles required to confirm the RSI pivot.
Default:
1
Increasing the value increases confirmation delay.
Chart Signal Label Size
Controls the main-chart BULLISH and SELL entry-label size.
Available values:
• Tiny
• Small
• Normal
• Large
• Huge
Mobile Theme overrides the selected size with a compact layout.
━━━━━━━━━━━━━━━━━━━━━━
🧭 Trend Filter
Trend Filter
Available modes:
• Off
• EMA Trend
• Supertrend
• HTF Trend
Off
Allows tracked bullish and bearish entries without directional trend filtering.
EMA Trend
Uses chart close relative to EMA 200.
Supertrend
Uses ATR 10 and factor 3.0.
HTF Trend
Uses selected higher-timeframe close relative to higher-timeframe EMA 200.
HTF Trend Timeframe
Selects the higher timeframe used by HTF Trend.
Default:
240 minutes
This setting has no effect when HTF Trend is not selected.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ Trade Management
ATR Period
Controls the ATR used for risk-distance calculations.
Default:
14
Stop Loss Distance (ATR)
Multiplies ATR to calculate the Stop Loss distance.
Default:
2.0
TP3 Target (R)
Selects the final target from 1R to 7R.
Default:
2R
TP1 and TP2 are calculated automatically from the TP3 distance.
All public input values are hidden from PulseWire’s status line to reduce chart-header clutter.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
RSI, divergence, EMA, Supertrend, ATR, risk/reward targets, and trade statistics are established technical-analysis concepts.
These concepts are not unique by themselves.
The originality of RSI Divergence Entry Engine lies in the coordinated workflow applied to them:
fixed RSI calculation
→ confirmed oscillator pivots
→ price / RSI regular divergence comparison
→ pivot-distance validation
→ RSI-path divergence filling
→ main-chart three-layer neon pivot lines
→ optional chart or higher-timeframe trend filtering
→ one-active-trade state
→ confirmation-candle entry
→ ATR-normalized Stop Loss
→ proportional TP1 / TP2 placement
→ adjustable TP3 R target
→ conservative OHLC exit handling
→ permanent risk/reward history
→ historical target-price labels
→ theme-aware chart output
→ mobile-specific dashboard
→ internal R-based statistics
→ static and dynamic alert workflows
Distinctive implementation features include:
• separating divergence context from accepted tracked entries
• displaying the same confirmed divergence in the RSI pane and on the main chart
• filling the RSI path-to-divergence region
• using a three-layer neon price-divergence line
• preserving trade boxes after closure
• preserving TP1, TP2, and TP3 planned prices historically
• allowing multiple direction-filter models inside one entry workflow
• maintaining one tracked trade at a time
• applying conservative Stop Loss priority when TP3 and SL share a candle
• offering theme-specific dashboard behavior
• reducing the Mobile Theme dashboard to Win Rate and NET R
• supporting static conditions and combined dynamic alert() messages
• keeping public settings compact while documenting fixed internal values
The script is not a collection of unrelated indicators placed on one chart.
Every component supports the same objective: converting a confirmed RSI divergence into a transparent, filterable, volatility-mapped, historically reviewable entry framework.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
Signal frequency depends on:
• symbol
• timeframe
• data provider
• Pivot Lookback
• Confirmation Bars
• fixed 5–60 bar pivot-distance window
• Trend Filter
• HTF Trend Timeframe
• existing active-trade state
• ATR availability
• available historical data
Higher Pivot Lookback values can reduce frequency.
Higher Confirmation Bars values increase delay.
EMA Trend can reject counter-position signals relative to EMA 200.
Supertrend can change direction after price movement.
HTF Trend can remain sensitive to the currently developing higher-timeframe candle.
Only one tracked trade can be active.
A divergence can therefore be visible without becoming a tracked trade.
TP1 and TP2 are not partial exits.
Historical TP1, TP2, and TP3 labels display planned prices, not proof that every level was touched.
Dashboard statistics use loaded chart history only.
Different brokers or exchanges can produce different:
• highs
• lows
• closes
• RSI pivots
• ATR values
• divergence signals
• trend-filter states
• TP3 / SL outcomes
• dashboard statistics
Changing the chart’s available history can change the first eligible pivot pair and all later trade-state sequencing.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
It does not guarantee profitable trades.
It does not predict future price movement.
It does not execute orders.
It does not place broker Stop Loss orders.
It does not place broker Take Profit orders.
It does not calculate position size.
It does not calculate account risk.
It does not include spread.
It does not include commission.
It does not include slippage.
It does not include latency.
It does not include swap or financing.
It does not model partial fills.
It does not model order rejection.
It does not model contract specifications.
It does not model tick-by-tick execution.
It uses historical OHLC bars.
It cannot always determine whether TP3 or SL occurred first inside one candle.
It resolves same-candle TP3 / SL ambiguity in favor of Stop Loss.
It does not record TP1 or TP2 as partial profit.
It does not move Stop Loss to break even.
It does not trail Stop Loss.
It maintains one active tracked trade.
It can ignore otherwise valid new entries while a trade is active.
It uses pivot confirmation.
Pivot visuals are not available on the original pivot candle in realtime.
RSI pivot visuals are placed at the historical pivot location after confirmation.
Main-chart neon lines are created after divergence confirmation.
The HTF filter can change while the current higher-timeframe candle remains open.
A confirmed divergence can fail.
A trend-aligned divergence can fail.
A larger divergence area does not guarantee a stronger result.
A neon divergence line is not guaranteed support or resistance.
A TARGET HIT label is not broker-verified execution.
Dashboard statistics are not audited performance.
Profit Factor displays 999 when wins exist without recorded losses.
Changing settings recalculates historical conditions.
Changing symbol, timeframe, provider, or available history can change output.
Alert delivery depends on PulseWire and user configuration.
Alerts do not guarantee broker execution.
For these reasons, the indicator should be used as an educational decision-support and chart-review tool, not as a standalone automated strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
• understand basic RSI divergence
• want regular bullish and bearish divergence visuals
• prefer pivot-confirmed structures
• want divergence displayed in both RSI and price
• want a clear neon main-chart divergence line
• want optional trend filtering
• use EMA 200
• use Supertrend
• use higher-timeframe direction
• want ATR-based risk mapping
• want adjustable R targets
• want historical risk/reward boxes
• want historical planned TP prices
• want one-active-trade statistics
• want Dark, Light, and Mobile themes
• want static alerts
• want one combined dynamic alert
• understand that chart statistics are not verified trading results
It may be less suitable for users who:
• want signals on the unconfirmed pivot candle
• want no pivot delay
• want hidden divergence enabled publicly
• want every divergence to open a trade
• want multiple overlapping tracked trades
• want partial TP accounting
• want automatic break-even management
• want trailing stops
• want tick-level backtesting
• want verified Strategy Tester results
• want broker execution
• want guaranteed reversal signals
• expect a high Win Rate to continue unchanged
• expect the HTF filter to remain fixed before the higher-timeframe candle closes
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For studying raw divergence behavior:
• use Trend Filter Off
• begin with Pivot Lookback 5
• begin with Confirmation Bars 1
• observe divergence visuals before evaluating trades
• distinguish pivot location from confirmation timing
For trend-aligned divergence:
• test EMA Trend
• test Supertrend
• compare signal frequency
• review whether the filter removes useful countertrend setups
For broader directional context:
• test HTF Trend
• use a higher timeframe meaningfully above the chart timeframe
• remember that the active HTF candle can change before closing
For trade mapping:
• begin with ATR 14
• begin with Stop Loss Distance 2.0 ATR
• begin with TP3 2R
• remember that TP1 and TP2 are visual only
• review same-candle TP3 / SL cases conservatively
For chart clarity:
• use Dark Mode on dark chart layouts
• use Light Mode on light chart layouts
• use Mobile Theme on small screens
• adjust the main-chart entry-label size
• use neon divergence lines as context, not automatic entries
Always:
• wait for divergence confirmation
• review broader price structure
• review liquidity and volatility
• review session conditions
• review news risk
• define personal account risk
• define personal position size
• test the exact symbol and timeframe
• verify alerts before relying on them
• remember that every divergence can fail
━━━━━━━━━━━━━━━━━━━━━━
🔓 PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
RSI Divergence Entry Engine is published as an educational RSI-divergence, directional-filtering, ATR trade-mapping, historical-visualization, and alert tool.
The purpose of this description is to explain:
• how RSI is calculated
• how RSI pivot lows and highs are confirmed
• how Pivot Lookback affects structure selection
• how Confirmation Bars affect delay
• how the fixed pivot-distance window works
• how regular bullish divergence is identified
• how regular bearish divergence is identified
• how divergence is displayed inside the RSI pane
• how the RSI divergence area is filled
• how corresponding price pivots are displayed with neon lines
• when the pivot visuals become available
• why pivot visuals appear at historical pivot locations
• why tracked entries are placed on confirmation-candle close
• how the trend filter affects entries without hiding divergence context
• how EMA Trend works
• how Supertrend works
• how HTF Trend works
• how currently forming higher-timeframe candles affect realtime context
• how ATR risk distance is calculated
• how Stop Loss is placed
• how TP1, TP2, and TP3 are calculated
• why TP1 and TP2 are visual only
• why only TP3 counts as a win
• how one-active-trade handling works
• how same-candle TP3 / SL ambiguity is resolved
• how historical trade boxes are retained
• what historical TP labels represent
• how Dark Mode, Light Mode, and Mobile Theme differ
• what the dashboard displays
• how Win Rate, NET R, Average R, and Profit Factor are calculated
• why the statistics are not broker-verified
• what static alert conditions are available
• how “Any alert() function call” works
• what the script does not simulate
• why the combined modules form one coordinated workflow
The script is designed to support structured review.
It does not promise profitable results.
It does not remove market risk.
It does not replace independent analysis.
It does not replace personal risk management.
━━━━━━━━━━━━━━━━━━━━━━
🕒 REPAINTING, BACKPLOTTING, AND TIMING DISCLOSURE
━━━━━━━━━━━━━━━━━━━━━━
RSI Divergence Entry Engine uses pivot functions.
Pivot confirmation requires future candles relative to the original pivot location.
The number of required right-side candles is controlled by Confirmation Bars.
The script does not know that a pivot exists on the original pivot candle.
After the right-side candles close:
• the pivot becomes confirmed
• the divergence can be calculated
• the RSI divergence line is displayed at the historical pivot locations
• the RSI divergence label is displayed at the confirmed pivot location
• the main-chart neon line connects the corresponding historical price pivots
This historical placement is a visual back-reference to the confirmed pivot structure.
It must not be interpreted as a realtime signal that was available on the original pivot candle.
The tracked trade entry is not backdated.
The tracked trade opens at the close of the later confirmation candle when all entry rules are valid.
The main-chart BULLISH or SELL entry label appears on that confirmation candle.
Trade outcome checks begin on the following candle.
The HTF Trend request uses lookahead_off.
It does not intentionally access future higher-timeframe values.
However, the current higher-timeframe candle can continue developing in realtime until it closes.
Historical results can change when:
• Pivot Lookback changes
• Confirmation Bars changes
• Trend Filter changes
• HTF Trend Timeframe changes
• ATR settings change
• TP3 target changes
• chart symbol changes
• timeframe changes
• exchange or broker feed changes
• historical data is revised
• available chart history changes
Confirmed chart-bar calculations reduce unfinished current-chart-candle changes.
They do not remove pivot confirmation delay, historical pivot placement, HTF live-candle variation, data-feed differences, or market risk.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
RSI Divergence Entry Engine is provided for educational and informational purposes only.
It does not constitute financial, investment, trading, legal, accounting, or tax advice.
No indicator can guarantee future results.
Markets are uncertain.
Momentum changes.
Volatility changes.
Trend changes.
Liquidity changes.
Historical chart behavior does not ensure future performance.
Every user is responsible for their own:
• analysis
• validation
• symbol selection
• timeframe selection
• trend-filter selection
• execution planning
• Stop Loss placement
• target planning
• position sizing
• risk management
• alert configuration
• trading decisions
• broker execution
• legal obligations
• tax obligations
The RSI pivots, divergence lines, divergence fills, neon price-pivot lines, trend references, BULLISH labels, SELL labels, ENTRY labels, Stop Loss levels, TP1 levels, TP2 levels, TP3 levels, trade boxes, historical target labels, TARGET HIT labels, SL labels, dashboard statistics, Win Rate, NET R, Average R, Profit Factor, and alerts are visual analysis tools only.
A bullish divergence is not a guaranteed reversal.
A bearish divergence is not a guaranteed reversal.
An EMA-aligned signal is not guaranteed to succeed.
A Supertrend-aligned signal is not guaranteed to succeed.
A higher-timeframe aligned signal is not guaranteed to succeed.
A TARGET HIT label is not proof of an actual broker fill.
An SL label is not proof of an actual broker fill.
The dashboard is not verified account performance.
The statistics are not audited.
The script does not include spread, commission, slippage, latency, financing, partial fills, order rejection, position sizing, account equity, or broker-specific execution behavior.
Use the script as a structured RSI-divergence review, directional-filtering, trade-mapping, and monitoring framework—not as a promise of profitability or a substitute for independent judgment.
Indicator

RSI Volume Compression RibbonRSI Volume Compression Ribbon
RSI Volume Compression Ribbon combines the standard Price RSI with a volume-weighted RSI momentum model and a multi-band compression ribbon.
The indicator is designed to make momentum contraction and expansion visually clear. Periods in which the ribbon narrows represent reduced momentum volatility and compression. A subsequent widening of the ribbon may indicate the beginning of a stronger directional move.
CORE COMPONENTS
1. Price RSI
The main RSI line is calculated from the selected price source.
It can be used for:
• Overbought and oversold analysis
• Momentum assessment
• Bullish and bearish divergence analysis
• Confirmation of exits from extreme zones
The color, transparency, and thickness of the main RSI line are fully adjustable.
2. Volume-Weighted RSI
The volume component is based on an EMA volume-weighted price:
Volume-Weighted Price =
EMA(Volume × Price) / EMA(Volume)
RSI is then calculated from this volume-weighted price.
Two smoothed Volume RSI lines are displayed:
• Fast Volume RSI — reacts more quickly to changes in volume-weighted momentum
• Slow Volume RSI — represents the broader direction of volume-weighted momentum
When the Fast Volume RSI crosses above the Slow Volume RSI, volume-weighted momentum is strengthening.
When the Fast Volume RSI crosses below the Slow Volume RSI, volume-weighted momentum is weakening.
3. Compression Ribbon
The compression ribbon consists of several volatility envelopes around the Fast Volume RSI.
The bands are calculated using the standard deviation of the Fast Volume RSI.
When the bands contract, the indicator identifies a momentum-compression environment.
When the bands begin to separate after compression, momentum volatility is expanding. This often occurs near the beginning of a stronger market impulse, although the ribbon itself does not determine the direction of the move.
Compression is evaluated relative to the recent average ribbon width, allowing the indicator to adapt to changing market conditions.
4. Crossover Dots
Black-outlined dots mark crossings between the Fast and Slow Volume RSI lines.
By default, the indicator emphasizes crossings that occur:
• During a ribbon compression
• Shortly after compression
• While the ribbon begins to expand
The dot center uses conventional directional colors:
• Green — Fast Volume RSI crosses above Slow Volume RSI
• Red — Fast Volume RSI crosses below Slow Volume RSI
All ordinary crossings can also be displayed through the settings.
Dot size, outline size, and center size are adjustable.
5. Classic RSI Zones
The indicator includes narrow RSI zones inspired by the original concept:
• 70–67: upper momentum zone
• 30–27: lower momentum zone
• 92–89: upper extreme zone
• 8–5: lower extreme zone
The width, colors, and transparency of these zones can be customized.
Optional broad backgrounds for the 0–30 and 70–100 regions are also available.
6. Active Extreme Fills
When the Price RSI moves below the oversold level, the area between the RSI and the oversold boundary is highlighted.
When the Price RSI moves above the overbought level, the corresponding upper area is highlighted.
The colors and transparency of both active fills are independently adjustable.
SIGNALS
The indicator provides alerts for:
• Bullish Volume RSI crossover near compression
• Bearish Volume RSI crossover near compression
• Any Volume RSI crossover near compression
• Price RSI exit from oversold
• Price RSI exit from overbought
Crossover signals are confirmed at bar close.
INTERPRETATION
Compression does not indicate direction by itself.
A compressed ribbon represents reduced momentum dispersion. Direction should be evaluated using:
• The direction of the Fast and Slow Volume RSI crossover
• Price structure
• Support and resistance
• Trend context
• Price RSI behavior
• Divergences
• Volume quality
A common sequence is:
Compression → Volume RSI crossover → Ribbon expansion → Momentum impulse
However, compression may also produce false starts or short-lived expansions, particularly in sideways or illiquid markets.
MARKET APPLICATION
The indicator can be applied to:
• Cryptocurrencies
• Stocks
• Futures
• Commodities
• Currency pairs
• Indices and CFDs with usable volume data
The Volume RSI component is most meaningful when the chart provides reliable volume information. On instruments with synthetic, incomplete, or unavailable volume, the Price RSI may be more reliable than the volume-weighted calculations.
SETTINGS
The indicator includes controls for:
• Price RSI length
• Overbought and oversold levels
• Volume RSI length
• Fast and slow smoothing
• Ribbon calculation length
• Ribbon deviation multiplier
• Compression threshold
• Compression lookback
• Post-compression crossover window
• Main RSI color, transparency, and width
• Zone colors and transparency
• Active fill colors and transparency
• Crossover dot size
• Classic narrow zones
• Broad RSI-zone backgrounds
CREDITS
Original concept and source code:
@wozdux — RSIVolume_2graf
This version was redesigned and rewritten in Pine Script v6 with:
• A cleaner visual structure
• Volume RSI compression analysis
• Multi-band compression ribbon
• Compression-filtered crossover dots
• Adjustable visual settings
• Classic RSI zones
• Confirmed crossover alerts
DISCLAIMER
This indicator is provided for informational and educational purposes only. It does not constitute financial or investment advice.
No indicator can predict market direction with certainty. Signals should be evaluated together with market structure, trend context, and appropriate risk management. Indicator

Credit Stress Composite V2 Credit Stress Composite 2
Credit Stress Composite 2 is a macro-credit regime oscillator designed to identify shifts between easing credit conditions, tightening pressure, stress, and extreme credit dislocation.
The indicator combines multiple credit and macro-confirmation inputs into a single normalized composite, then maps that composite into clear regime zones. The goal is not to call exact tops or bottoms, but to identify when credit conditions are improving, deteriorating, or reaching historically elevated stress levels.
**Core Features**
- Composite credit stress oscillator
- Signal line and histogram for momentum confirmation
- Regime thresholds for calm, tightening, stress, and extreme stress
- Background shading by credit regime
- Early deterioration, confirmed tightening, easing reversal, and extreme stress markers
- Regime table for quick state reading
- Export plots for use in broader dashboard or stack systems
**How I Use It**
Rising readings suggest credit stress is increasing. Falling readings suggest credit conditions are easing. The most useful signals often occur when the oscillator begins reversing from elevated stress zones, especially when price structure confirms the shift.
In the BTC example shown, prior easing reversal signals appeared near major Phase 2 bull-market transitions, where credit stress began cooling while price started reclaiming upside momentum.
**Signal Types**
- `ED` Early Deterioration: first signs of tightening pressure
- `CT` Confirmed Tightening: stronger confirmation of rising stress
- `ER` Easing Reversal: stress begins easing from elevated conditions
- `XS` Extreme Stress: composite reaches extreme stress territory
**Important Notes**
This tool is intended for macro context and regime awareness. It should be used with price structure, trend, liquidity, and risk-management tools. It is not a standalone buy or sell signal.
Credit conditions can lead, lag, or diverge from price depending on the asset and cycle stage.
**Disclaimer**
This script is for educational and informational purposes only. It is not financial advice. Always do your own research and manage risk appropriately. Indicator

Rotation Cycles Dashboard OverlayRotation Cycles Dashboard — Overlay
This indicator identifies four market-cycle phases and displays the current phase in a compact dashboard directly on the price chart.
It is based on the original “Rotation Cycles Graph” concept by VanHe1sing. This modified version uses corrected rolling Z-score normalization, Pine Script v6, and a fixed-size overlay dashboard.
HOW IT WORKS
The indicator calculates two normalized variables:
1. Relative Level
The closing price is converted into a rolling Z-score:
Z-score = (Price − Moving Average) / Standard Deviation
The Z-score is then smoothed using a Hull Moving Average.
A positive Level value indicates that the instrument is trading above its normalized mean, while a negative value indicates that it is trading below its normalized mean.
2. Momentum
Momentum measures the change in the smoothed Z-score over the selected number of bars.
A positive Momentum value indicates improving relative strength. A negative Momentum value indicates weakening relative strength.
Both values are compressed into an approximate range between −1 and +1 to create a stable cycle classification.
CYCLE PHASES
GROWING
Level is positive and Momentum is positive.
The instrument is above its normalized mean and continues to strengthen.
WEAKENING
Level is positive and Momentum is negative.
The instrument remains above its normalized mean, but momentum is deteriorating.
CONTRACTION
Level is negative and Momentum is negative.
The instrument is below its normalized mean and continues to weaken.
RECOVERY
Level is negative and Momentum is positive.
The instrument remains below its normalized mean, but momentum is improving.
DASHBOARD
The fixed-size dashboard displays:
• Current cycle phase
• Relative Level
• Momentum
• Number of bars spent in the current phase
• Cycle strength
Cycle strength measures the distance of the Level and Momentum coordinates from the neutral center. A higher percentage indicates a more developed phase, while a lower percentage indicates that the instrument is closer to a phase transition.
SETTINGS
Z-Score Length
Defines the rolling period used to calculate the price mean and standard deviation.
Z-Score Smoothing
Defines the Hull Moving Average smoothing period applied to the Z-score.
Momentum Length
Defines the number of bars used to measure the change in the smoothed Z-score.
Level Compression
Controls the sensitivity of the Relative Level reading. Higher values keep the Level closer to zero.
Momentum Compression
Controls the sensitivity of the Momentum reading. Higher values keep Momentum closer to zero.
Dashboard Position
Allows the dashboard to be placed in different corners or sides of the chart.
OPTIONAL VISUAL SETTINGS
• Color price bars according to the current cycle phase
• Apply a subtle chart-background tint according to the current phase
ALERTS
Alerts are available when the indicator enters a new phase:
• Growing
• Weakening
• Contraction
• Recovery
Alerts trigger only when a phase transition occurs, rather than on every bar within the same phase.
USAGE
The indicator can be used on stocks, indices, futures, cryptocurrencies, commodities, currencies, and other chart symbols.
It is designed as a market-cycle and momentum-classification tool. It may help identify strengthening, weakening, contraction, and recovery conditions across different timeframes.
The indicator does not predict exact market tops or bottoms. Phase changes may occur after price has already started moving, and short-lived transitions may occur in volatile or sideways markets.
For best results, combine the indicator with:
• Market structure
• Support and resistance
• Trend analysis
• Volume
• Relative strength
• Risk management
CREDITS
Original concept and source code:
VanHe1sing — “Rotation Cycles Graph”
Modified version includes:
• Correct rolling standard-deviation calculation
• Revised Z-score normalization
• Separate Momentum calculation
• Soft value compression
• Pine Script v6 conversion
• Fixed-size price-chart overlay dashboard
• Phase-duration and cycle-strength metrics
• Phase-transition alerts
DISCLAIMER
This indicator is provided for informational and educational purposes only. It does not constitute financial or investment advice.
Past performance and historical cycle behavior do not guarantee future results. Users should perform their own analysis and use appropriate risk management. Indicator
