Divergence Hunter [Proozac]# Divergence Hunter — RSI · MACD · OBV
**Pine Script v5 — Overlay Indicator**
---
## What It Does
Scans three oscillators simultaneously — RSI, MACD, and OBV — and draws labelled lines directly on the price chart whenever a divergence is detected between price action and oscillator momentum.
Two divergence types are covered per oscillator:
- **Regular divergence** — signals a potential trend reversal
- **Hidden divergence** — signals a potential trend continuation
---
## Divergence Types Explained
### Regular Bullish Divergence
```
Price: Lower Low (LL)
Oscillator: Higher Low (HL)
Signal: Potential reversal UP
```
Price is making lower lows but the oscillator is making higher lows — sellers are losing momentum. The downtrend is weakening.
### Regular Bearish Divergence
```
Price: Higher High (HH)
Oscillator: Lower High (LH)
Signal: Potential reversal DOWN
```
Price is making higher highs but the oscillator is making lower highs — buyers are losing momentum. The uptrend is weakening.
### Hidden Bullish Divergence
```
Price: Higher Low (HL) ← trend is up
Oscillator: Lower Low (LL)
Signal: Continuation UP
```
Price holds higher lows (uptrend structure intact) while the oscillator dips lower — a temporary oscillator pullback during a healthy uptrend. A continuation signal.
### Hidden Bearish Divergence
```
Price: Lower High (LH) ← trend is down
Oscillator: Higher High (HH)
Signal: Continuation DOWN
```
Price is making lower highs (downtrend structure intact) while the oscillator makes higher highs — a temporary oscillator bounce during a healthy downtrend.
---
## The Three Oscillators
| Oscillator | What it measures | Why it diverges |
|-----------|-----------------|-----------------|
| **RSI** | Relative momentum of closes | Classic divergence tool — very reliable at extremes |
| **MACD** | Trend + momentum combined | Useful in trending markets, less noise than RSI |
| **OBV** | Cumulative volume flow | Measures whether volume confirms the price move |
Each oscillator runs through the same `detect_divs()` function. You can enable or disable each one independently. When multiple oscillators show the same divergence simultaneously, that is a high-conviction signal.
---
## Detection Logic
The indicator uses `ta.pivothigh` and `ta.pivotlow` on the **price** series to find swing points, then reads the **oscillator value at that same bar** to compare:
```
For each new pivot high in price:
Compare price level vs previous pivot high price
Compare oscillator vs previous pivot high oscillator
→ Regular Bear: price HH + osc LH
→ Hidden Bear: price LH + osc HH
For each new pivot low in price:
Compare price level vs previous pivot low price
Compare oscillator vs previous pivot low oscillator
→ Regular Bull: price LL + osc HL
→ Hidden Bull: price HL + osc LL
```
When detected, a **line** is drawn connecting the two price pivot points and a **label** marks the divergence type and oscillator name.
---
## Inputs
| Input | Default | Description |
|-------|---------|-------------|
| **RSI Divergence** | true | Enable RSI divergence scanning |
| **RSI Length** | 14 | RSI calculation period |
| **MACD Divergence** | true | Enable MACD line divergence scanning |
| **MACD Fast** | 12 | MACD fast EMA length |
| **MACD Slow** | 26 | MACD slow EMA length |
| **MACD Signal** | 9 | MACD signal line length |
| **OBV Divergence** | true | Enable OBV divergence scanning |
| **Pivot Lookback (left bars)** | 5 | Bars to the left required to confirm a swing point |
| **Pivot Lookback (right bars)** | 5 | Bars to the right required to confirm a swing point |
| **Show Hidden Divergences** | true | Toggle hidden divergence lines on/off |
| **Bullish Regular** | Bright green | Line/label color for regular bullish divergences |
| **Bearish Regular** | Bright red | Line/label color for regular bearish divergences |
| **Bullish Hidden** | Faded green | Line/label color for hidden bullish divergences |
| **Bearish Hidden** | Faded red | Line/label color for hidden bearish divergences |
---
## Visual Output
| Element | Meaning |
|---------|---------|
| Solid bright green line + label `"RSI Bull Div"` | Regular bullish divergence on RSI |
| Solid bright red line + label `"RSI Bear Div"` | Regular bearish divergence on RSI |
| Dashed faded green line + label `"RSI Hid Bull"` | Hidden bullish divergence on RSI |
| Dashed faded red line + label `"RSI Hid Bear"` | Hidden bearish divergence on RSI |
| Same patterns with `"MACD"` or `"OBV"` prefix | Divergence from that oscillator |
| Green background flash | Any bullish regular divergence firing |
| Red background flash | Any bearish regular divergence firing |
Lines connect the **two price swing points** that form the divergence, making it immediately clear which highs or lows are being compared.
---
## How to Use
**Entry logic:**
- Regular divergence → look for a reversal entry after the divergence confirms (pivot right bars have closed).
- Hidden divergence → look for a continuation entry in the direction of the main trend.
- Always wait for the pivot to fully confirm — the signal appears `pivot_rb` bars after the actual swing point.
**Confluence filter:**
A divergence is most reliable when:
1. Two or more oscillators show the same divergence simultaneously
2. Price is at a key structural level (support/resistance, Order Block, session high/low)
3. The MTF Dashboard (indicator 02 in this suite) confirms the higher timeframe trend
**Reducing noise:**
- Increase `Pivot Lookback` (left/right bars) to 8–10 for cleaner, less frequent signals
- Disable OBV if trading Forex (OBV is volume-dependent and FX volume data is tick-based)
- Disable hidden divergences if you only want reversal signals
---
## Configuration Tips
| Scenario | Recommended settings |
|----------|---------------------|
| Fast scalping (1–5m) | Pivot: 3/3, RSI only |
| Day trading (15m–1H) | Pivot: 5/5, RSI + MACD |
| Swing trading (4H–D) | Pivot: 8/8, all three oscillators |
| Crypto (high volatility) | Pivot: 7/7 to filter noise |
---
## Alerts
Two built-in `alertcondition` entries:
- `Bullish Divergence` — fires when any enabled oscillator confirms a regular bullish divergence
- `Bearish Divergence` — fires when any enabled oscillator confirms a regular bearish divergence
Set up in PulseWire: Alerts → Condition → Divergence Hunter → select the desired condition.
Indicator

MTF MA & MACD & StochRSI (pro)Multi-Timeframe MA & MACD & StochRSI (Pro)
The Multi-Timeframe MA & MACD & StochRSI (Pro) is a professional multi-timeframe confluence dashboard built to help traders quickly identify trend direction, momentum strength, and cross-timeframe alignment in one clean visual layout.
This tool combines Moving Averages, MACD logic, and StochRSI cross conditions across multiple timeframes, allowing traders to reduce chart clutter and improve decision-making without constantly switching between charts.
Designed for traders who rely on confluence, top-down analysis, and momentum confirmation.
Core Purpose
This indicator answers one key trading question:
Are my moving averages, momentum, and oscillator signals aligned across multiple timeframes?
By tracking multiple confirmations together, traders can identify stronger trend setups while filtering weaker or conflicting market conditions.
Multi-Timeframe Dashboard
The dashboard scans and displays data across:
1 Minute
5 Minute
15 Minute
1 Hour
4 Hour
1 Day
1 Week
This provides both short-term and higher-timeframe market alignment.
Core Features
1) Multi-Timeframe Moving Average Analysis
The indicator tracks:
20 EMA
50 EMA
For each timeframe it checks whether price is:
Above EMA → Bullish bias
Below EMA → Bearish bias
This gives a quick directional read of market structure.
2) MACD Confirmation Logic (Enhanced)
Unlike a basic MACD crossover, this version uses stricter logic for stronger confirmation.
Buy Condition
Histogram > 0
MACD Line > 0
Signal Line > 0
Sell Condition
Histogram ≤ 0
MACD Line ≤ 0
Signal Line ≤ 0
Neutral
If momentum is mixed, the dashboard displays Neutral.
This helps remove weaker crossover noise and improves momentum quality.
3) StochRSI Cross Confirmation
The dashboard tracks StochRSI cross alignment using:
RSI calculation
Stochastic range
Smoothed %K line
Smoothed %D line
Buy
%K > %D
Sell
%K < %D
Neutral
Flat or undefined conditions
This adds momentum confirmation beyond moving averages.
4) Non-Repainting Multi-Timeframe Logic
The script uses stable request.security() calls with completed timeframe bars to reduce repainting behaviour and improve consistency.
Useful for traders who want cleaner higher-timeframe confirmation.
5) On-Chart Moving Average Overlay
In addition to the dashboard, the indicator plots:
Current timeframe 20 EMA
Current timeframe 50 EMA
These allow traders to visually track trend support/resistance directly on price.
6) Weekly MA Overlay
Optional higher-timeframe moving averages can also be shown directly on the active chart:
Weekly 20 EMA
Weekly 50 EMA
This helps identify:
Macro trend direction
Dynamic support/resistance
Higher timeframe bias
Confluence zones
Can be toggled ON/OFF in settings.
7) Adjustable Table Text Size
The dashboard supports text scaling for cleaner viewing:
Tiny
Small
Normal
Large
Huge
Useful for different monitor sizes and chart layouts.
Colour Logic
Green
Bullish / Buy
Price above EMA
Positive MACD alignment
StochRSI Buy condition
Red
Bearish / Sell
Price below EMA
Negative MACD alignment
StochRSI Sell condition
Grey
Neutral / Mixed
No strong directional bias
This allows fast visual scanning across all timeframes.
Best Used For
This indicator is ideal for:
Multi-timeframe trend analysis
Momentum confirmation
Confluence trading
Swing trading
Intraday trading
Scalping
Breakout confirmation
Trend-following systems
Works well on:
Crypto
Forex
Indices
Stocks
Commodities
How to Use It
Step 1 – Check EMA Alignment
Look for price above or below the 20 and 50 EMA across multiple timeframes.
Step 2 – Confirm MACD Strength
Check whether MACD is fully aligned (not just crossing).
Step 3 – Confirm StochRSI Direction
Look for %K vs %D agreement.
Step 4 – Find Confluence
The strongest setups often occur when:
MA structure aligns
MACD aligns
StochRSI aligns
Higher timeframe bias supports the trade
Trading Framework Example
A strong bullish setup might show:
Price above 20 EMA
Price above 50 EMA
MACD Buy
StochRSI Buy
Weekly MA acting as support
A strong bearish setup may show the inverse.
Summary
Multi-Timeframe MA & MACD & StochRSI (Pro) is a high-confluence dashboard built for traders who want cleaner multi-timeframe trend analysis, stronger momentum confirmation, and faster market alignment in one professional workflow. Indicator

MACD & Stoch RSI Confluence S/RMACD & Stoch RSI Confluence S/R
MACD & Stoch RSI Confluence S/R draws horizontal support and resistance
levels from MACD and Stochastic RSI crossover points, then automatically
merges levels that cluster close together into a single confluence zone.
Instead of treating every crossover as an isolated signal, it highlights
the price areas where two independent momentum oscillators historically
agreed on a turning point.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKGROUND — WHY CROSSOVER-BASED LEVELS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD and Stochastic RSI are both momentum oscillators, but they measure
momentum differently — MACD from the relationship between two EMAs,
Stochastic RSI from the position of RSI within its own recent range.
Because of this difference, the two oscillators don't always cross at the
same time or the same price, but when they do cross near the same price
level, it suggests that two independent calculations both detected a
shift in momentum at that point.
Traditional crossover indicators only mark the moment of the crossover
itself and then move on — the price level where it happened is rarely
preserved or revisited. This indicator instead treats every crossover
price as a potential support or resistance level going forward, on the
logic that price has already shown a reaction (a momentum shift) at that
level once, and may do so again if it returns there.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS — TECHNICAL DETAIL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CROSSOVER DETECTION
The indicator calculates a standard MACD (fast EMA, slow EMA, signal line)
and a standard Stochastic RSI (RSI smoothed through a Stochastic
calculation, then K/D smoothing) independently. Bullish crossovers occur
when MACD crosses above its signal line, or when Stochastic RSI's K line
crosses above its D line. Bearish crossovers are the inverse.
Each time a valid crossover occurs, the indicator looks back a
user-defined number of bars (How many bars before crossover?) and records
the low of that bar for bullish crossovers, or the high for bearish
crossovers. This offset exists because the actual turning point in price
often occurs slightly before the oscillator confirms it — anchoring the
line to the prior bar's extreme captures the reaction point more
accurately than the bar where the crossover is technically confirmed.
PROXIMITY FILTERING (PER OSCILLATOR)
Before a new level is recorded, it's checked against existing levels from
the same oscillator and same direction using an ATR-based distance
threshold. If a new crossover price falls too close to an already-recorded
level, it's discarded. This prevents a single trending move that triggers
several crossovers in quick succession from flooding the chart with
near-identical lines.
CONFLUENCE MERGING (ACROSS OSCILLATORS)
After proximity filtering, all surviving levels from both oscillators —
MACD support, MACD resistance, Stoch RSI support, Stoch RSI resistance —
are pooled together. Any levels within a percentage threshold of each
other are merged into a single line, positioned at their average price.
The merged line is labeled with the count of crossovers that contributed
to it, so a label showing "⬡3" indicates three separate crossover events —
potentially from different oscillators — all landed within the merge
threshold of one another.
This merge threshold is calculated automatically based on the chart's
timeframe: wider on higher timeframes (where price ranges are naturally
larger) and tighter on lower timeframes. A manual override is available if
you prefer a fixed percentage regardless of timeframe.
DYNAMIC COLORING
Every line — merged or single — is colored based on its position relative
to the current close. A line below price is colored as support; a line
above price is colored as resistance. Because lines extend forward in
time, a single line can change from resistance to support (or vice versa)
as price crosses through it, and the color updates automatically.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INFO TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A table in the corner of your choice displays, for the most recent bar:
— The number of support and resistance lines currently shown for each
oscillator separately
— The nearest support and nearest resistance level to current price,
calculated from the same merged lines drawn on the chart — not a
separate calculation, so the table always matches what you see
— Whether the MACD zero-line filter and Stoch RSI overbought/oversold
filter are currently active
— Whether each oscillator is enabled
— The current merge threshold percentage and whether it was set
automatically or manually
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. CHOOSE WHICH OSCILLATORS TO USE
Both MACD and Stochastic RSI are enabled by default. You can disable
either one independently if you only want levels from a single
oscillator, or run both for confluence.
2. SET THE BAR OFFSET
How many bars before crossover? controls how far back from the
confirmed crossover the indicator anchors the level. Start with the
default and increase it if you find levels are consistently anchored
slightly too late relative to the actual price reaction.
3. TUNE THE PROXIMITY FILTER
The ATR Multiplier controls how close a new crossover has to be to an
existing level of the same type before it's discarded. Increase this on
choppy assets to reduce clutter; decrease it if you feel valid levels
are being filtered out.
4. APPLY OPTIONAL FILTERS IF NEEDED
The MACD Zero Line Filter restricts bullish crossovers to above the
zero line and bearish crossovers to below it, filtering out weaker
signals that occur against the broader momentum direction. The Stoch
RSI Overbought/Oversold Filter restricts crossovers to occur only in
oversold or overbought territory, focusing on reversal-type signals
rather than mid-range noise. Both are off by default — enable them if
you want fewer, more selective levels.
5. ADJUST THE MERGE THRESHOLD IF NEEDED
The automatic threshold works well across most timeframes, but if you
trade a single timeframe consistently and want more control, switch to
Manual Threshold and set a fixed percentage that matches your
instrument's typical price behavior.
6. READ THE LABELS
Single-oscillator lines are labeled "M" (MACD) or "S" (Stoch RSI).
Merged lines are labeled with a count (e.g. "⬡2", "⬡3") showing how many
crossovers — and potentially how many different oscillators — agreed on
that level. Higher counts represent stronger confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHERE TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator works on any asset class and any timeframe, since both
oscillators and the merge threshold are calculated directly from the
chart you have open. It's particularly useful for:
— Identifying support/resistance levels that are backed by momentum
shifts rather than purely price-action-based pivots
— Spotting confluence zones where MACD and Stoch RSI crossovers
historically aligned, which may carry more weight than a level
identified by either oscillator alone
— Confirming reactions at prior turning points — if price returns to a
level where a crossover previously occurred, the level provides context
for whether momentum may shift again
— Combining with other structure or volume-based tools as part of a
broader confluence-based approach, rather than as a standalone signal
generator
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD: Fast/Slow/Signal EMA lengths, source, bar offset, max support/
resistance lines kept, line width, colors, extend mode, ATR-based
proximity filter, zero-line filter
Stochastic RSI: RSI period, Stochastic period, K/D smoothing, source, and
the same set of line/extend/proximity/zone options as MACD
Merging: enable/disable, automatic or manual threshold, merged line color
and width
Table: show/hide, position
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD and Stochastic RSI crossovers are both well-established concepts
individually, but this script's specific contribution is treating
crossover prices as persistent support/resistance levels rather than
one-off signals, combined with a cross-oscillator confluence merge that
identifies where two independently-calculated momentum tools agreed on
the same price area. The ATR-based proximity filter and timeframe-adaptive
merge threshold are the author's own approach to keeping this practical
and readable on a live chart rather than producing chart clutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is intended for educational and analytical purposes only.
No indicator can predict future market movements with certainty. Always
use proper risk management and combine multiple forms of analysis before
making trading decisions. Indicator

EMA MACD Trend Decision TableEMA MACD Decision Table v6
This Pine Script v6 overlay indicator summarizes trend, momentum, volume, higher-timeframe context, and ATR-based planning levels into one decision table.
The indicator uses EMA 9, EMA 21, EMA 50, EMA 100, EMA 200, MACD, RSI, ADX / DMI, volume confirmation, optional higher-timeframe EMA trend, and ATR risk planning.
It produces a numeric decision score on every bar. Bullish confirmations add points, bearish confirmations subtract points, and the final score is converted into Strong Buy, Buy, Neutral, Sell, or Strong Sell.
BUY labels appear only when the score first reaches Strong Buy territory. SELL labels appear only when the score first reaches Strong Sell territory.
This tool is designed for chart context and planning. It is not financial advice and does not guarantee trade results.
Scoring Logic
Condition | Score
--- | ---
EMA 9 above EMA 21 and price above EMA 50 | +2
EMA 9 below EMA 21 and price below EMA 50 | -2
Price above EMA 200 | +1
Price below EMA 200 | -1
MACD above signal and histogram above 0 | +2
MACD below signal and histogram below 0 | -2
MACD bullish crossover | +1
MACD bearish crossover | -1
RSI above 55 | +1
RSI below 45 | -1
ADX above threshold and +DI above -DI | +1
ADX above threshold and -DI above +DI | -1
Volume above average and candle closes above open | +1
Volume above average and candle closes below open | -1
Higher-timeframe close above its EMA when enabled | +1
Higher-timeframe close below its EMA when enabled | -1
Decision Output
Score Range | Decision
--- | ---
>= 5 | Strong Buy
2 to 4 | Buy
-1 to 1 | Neutral
-2 to -4 | Sell
<= -5 | Strong Sell
Decision Table Rows
Row | What It Shows | How To Read It
--- | --- | ---
Decision | Final decision and total score | Main summary of bullish, bearish, or mixed confirmation
Last Price | Latest close and price direction | Shows current price context
Bar Change | Close-to-close change and percent change | Positive is above prior close, negative is below prior close
O / H / L | Current open, high, and low | Shows current candle range
EMA 9 / EMA 21 | Short-term EMA relationship | EMA 9 above EMA 21 is bullish, below is bearish
EMA 50 / EMA 200 | Medium and long trend context | Price above EMA 200 supports bullish trend, below supports bearish trend
MACD | MACD state and histogram | Bullish when MACD is above signal and histogram is positive
RSI | RSI state and value | Above 55 bullish, below 45 bearish, above 70 overbought, below 30 oversold
ADX / DMI | Trend strength and direction | Strong +DI lead is bullish, strong -DI lead is bearish
Volume | Volume confirmation | Above-average bullish candle confirms buyers; bearish candle confirms sellers
HTF Trend | Optional higher-timeframe EMA trend | Bullish above HTF EMA, bearish below, Off when disabled
ATR | Current Average True Range | Risk planning unit
Long Plan | ATR-based long stop and target | Reference levels only
Short Plan | ATR-based short stop and target | Reference levels only
Candle Color Meaning
Score Range | Meaning | Candle Color
--- | --- | ---
>= 5 | Strong Buy | Lime
2 to 4 | Buy | Green
-1 to 1 | Neutral | Normal chart color
-2 to -4 | Sell | Maroon
<= -5 | Strong Sell | Red
ATR Planning Formulas
Plan | Formula
--- | ---
Long stop | close - ATR * stop multiplier
Long target | close + (close - long stop) * reward/risk
Short stop | close + ATR * stop multiplier
Short target | close - (short stop - close) * reward/risk
Data Window Values
Code | Meaning
--- | ---
2 | Strong Buy
1 | Buy
0 | Neutral
-1 | Sell
-2 | Strong Sell
Alert Logic
The script includes alerts for Strong Buy Decision, Strong Sell Decision, MACD Bullish Cross, and MACD Bearish Cross.
Strong decision alerts trigger when the score enters strong buy or strong sell territory. MACD alerts are based only on MACD line and signal line crossovers.
Reading The Output
Green output means bullish confirmations are stronger.
Red output means bearish confirmations are stronger.
Gray output means conditions are mixed or neutral.
The decision score is strongest when trend, momentum, volume, and higher-timeframe direction all agree.
Indicator

EFI & MACD Advanced Pro
Indicator Synopsis: EFI & MACD Advanced Pro
This custom PulseWire indicator—created for Simon20cent—is a dual-momentum confirmation filter designed to isolate high-probability trend phases by synchronising a volume-weighted oscillator with a trend-following moving average cross.
It strips away chart noise by compressing two distinct indicator panels into a single, highly scannable visual pane.
Core Components & Logic
The system monitors the interaction between two classic technical metrics:
1. Elder’s Force Index (EFI): Measures the directional power of a move by multiplying price change by volume. It determines whether buyers or sellers dominate the volume profile (Value > 0 or < 0).
2. MACD vs. Signal Line: Tracks classic moving average momentum. A bullish state is triggered when the fast MACD line crosses above the slow Signal line (MACD > Signal).
Visual Matrix (How to Read the Pane)
The indicator renders exclusively as a zero-anchored Column Chart, utilizing four distinct conditions:
* 🟩 Bright Green Column (+1.0): Full Bullish Alignment. The EFI is above zero and accelerating upward, while the MACD line is securely above its signal line.
* 🟥 Bright Red Column (-1.0): Full Bearish Alignment. The EFI is below zero and accelerating downward, while the MACD line is securely below its signal line.
* 🟦 Light Blue Column (+0.5): Divergence / Market Out of Alignment. The indicators do not agree, but the EFI remains positive (>0), suggesting weak bullish underlying volume.
* 📘 Dark Navy Column (-0.5): Divergence / Market Out of Alignment. The indicators do not agree, but the EFI remains negative (<0), suggesting weak bearish underlying volume.
Advanced Institutional Features
* Momentum Grading (Two-Tone Gradients): The columns automatically shift to a darker shade of green or red if structural momentum begins to flatten, providing an early structural warning before a trend formally breaks.
* Trend Exhaustion Alerts (Orange Triangles): Small orange triangles automatically print above or below the columns the exact moment a strong green or red streak loses velocity, marking ideal profit-taking windows.
* Integrated Alert Engine: Features pre-built Pine Script hooks for Bullish Alignment, Bearish Alignment, and Trend Exhaustion, allowing you to link the indicator directly to PulseWire phone push notifications or email alerts.
🟢 Long Exit Warning (Orange Triangle pointing Downward)
This prints at the top of the pane (+1.1) to signal it is time to scale out or close a long position. It triggers when you are in a valid long streak (Green columns), but the very next bar suffers a breakdown in power:
* The Math: The indicator checks if Elder's Force Index (EFI) starts falling compared to the previous bar, OR if the MACD Line slips back below the Signal Line.
* The Meaning: Buyers are running out of breath. Even though price might still be hovering near the highs, the volume-weighted power (EFI) is dropping, meaning institutional buying pressure has dried up.
🔴 Short Exit Warning (Orange Triangle pointing Upward)
This prints at the bottom of the pane (-1.1) to signal it is time to cover your short position. It triggers when you are in a valid short streak (Red columns), but seller momentum hits exhaustion:
* The Math: The indicator checks if EFI starts rising (climbing back toward zero), OR if the MACD Line crosses back above the Signal Line.
* The Meaning: Sellers are exhausted. The downward volume is thinning out, and profit-taking by larger players is likely about to cause a bullish bounce or a prolonged squeeze.
💡 Trading Strategy Tip
Do not use these orange triangles to open new trades. Treat them strictly as protective exit signals. When you see one appear while you are in profit, it means the high-velocity phase of that specific wave has ended, and the indicator is about to print unaligned blue columns.
Indicator

Momentum Conviction [HermesCore]WHAT THIS INDICATOR DOES
Momentum Conviction watches two things at the same moment: where price momentum turns, and how much agreement stands behind that turn. The turn is an EMA crossover — the fast EMA (Exponential Moving Average) crossing the slow one — but only when the MACD histogram (Moving Average Convergence Divergence, a standard momentum gauge) is leaning the same way. A LONG fires when the fast EMA crosses above the slow EMA while MACD momentum is positive; a SHORT is the exact mirror. A cross with no momentum behind it is ignored.
Every signal that does fire is then graded 0 to 5 by a conviction score, built from five independent checks the moment the signal prints. You decide how much conviction you require: show every signal, or raise the minimum and keep only the ones with weight behind them.
WHY IT IS DIFFERENT
Most moving-average tools print an arrow on every cross and leave you to separate the real ones from the noise by eye. My rules are:
A cross is not a signal on its own. It has to happen while MACD momentum agrees. A large share of the crosses that fail are crosses that fired into flat or opposing momentum; gating on the histogram removes them before they ever reach the chart.
The score is a filter, not decoration. It is not a confidence label added after the fact — it is five yes/no facts, known at signal time, summed. Set a minimum and the weak signals never appear.
The higher timeframe gets a vote, not the final word. One of the five points is HTF agreement, so you can weigh it without being ruled by it.
ADX is deliberately excluded. I tested it repeatedly on the charts this was built for and it did not earn a place.
Everything updates on confirmed bars only. No intrabar flicker, no repainting, and the higher-timeframe reads use no look-ahead.
HOW TO READ THE CHART
LONG bubble (green, below the bar) and SHORT bubble (red, above it) mark each qualifying signal. Bubble size is adjustable.
The gradient EMA cloud is aqua when the fast EMA sits above the slow one (uptrend lean) and magenta when below. The slow EMA carries a soft gold glow so the spine of the trend is always easy to find.
A faint background tint colours the whole pane in the trend colour — a peripheral regime cue, nothing to act on by itself.
A faint gold background band shows the previous day's and previous week's range, for context on where price sits inside the larger structure.
THE CONVICTION SCORE
Each check is worth one point, decided at signal time, and never changes afterwards:
Momentum strength — the MACD histogram is larger than its own 50-bar average: the push is bigger than this market's normal push. +1
Slope agreement — the fast EMA is itself moving in the signal's direction, not merely crossing. +1
Higher-timeframe trend — the chosen HTF (4H by default) is trending the same way; its price and 50/200 EMAs agree. +1
Not over-extended — price is within a set ATR (Average True Range, a volatility measure) distance of the slow EMA, so you are not entering after the move has already run. +1
RSI room — RSI (Relative Strength Index, 0–100) is not already at an extreme in the signal's direction; there is room left to travel. +1
Five of five is a cross with bigger-than-normal momentum, sloping the right way, aligned with the higher timeframe, entered near value, with room to run. Zero is a bare cross with nothing behind it. The minimum-score input is where you set your own bar.
HOW I USE IT
The defaults are deliberately fast (EMA 2/12) — a low-timeframe, many-signals setting. Slow the lengths down for swing work and you get fewer, heavier signals.
I treat a high-score signal that agrees with the higher timeframe as the one worth acting on, and a low-score signal as information about the tape rather than a trade. The honest part: this is trend and momentum logic. It earns its keep when the market trends and gives a good deal of it back in ranges. The regime tint and the HTF vote exist to keep you on the right side of that question, not to solve it — be honest with yourself about which regime you are actually in.
SETTINGS THAT MATTER
EMA fast/slow and MACD lengths — the engine. Defaults are fast; raise them for higher timeframes and fewer, heavier signals.
Minimum score (0) — your conviction bar. 0 shows everything; raise it to thin the chart to signals with agreement behind them.
Higher timeframe (4H) — the trend you check against. Match it to your horizon.
Max distance to slow EMA (2.0 ATR) — how far from value still counts as "not over-extended."
RSI overbought/oversold (72/28) — the "room left" thresholds.
Each score component can be switched off individually if you want to see what it contributes on its own.
ALERTS
Momentum Conviction LONG and Momentum Conviction SHORT, both firing on the confirmed close of the signal bar, with ticker and timeframe in the message.
CALCULATION DETAILS
All logic evaluates on confirmed bars. A signal cannot appear or disappear inside a forming candle.
The trigger is the fast/slow EMA cross; the gate is the sign of the MACD histogram on the same close.
The higher-timeframe trend uses that timeframe's prior-bar close and 50/200 EMAs, requested with no look-ahead, so it does not repaint.
The conviction score is computed once, at signal time, from the values listed above.
HONEST LIMITATIONS
This is trend-following momentum. In a range it will cross back and forth and hand gains back; no filter removes that, it only thins it.
The score is a hypothesis about signal quality, not a measured edge. This indicator does not keep score for you. If you want to know whether higher scores actually perform better on your symbol, run the matching strategy version in the Strategy Tester with realistic costs and read the result yourself.
The defaults trade often. On a live account, slippage and spread on frequent entries matter more than the chart suggests — cost everything before you believe anything.
Signals are evaluated at the close; real fills happen later and worse. Treat the chart as the ideal case.
It runs on any symbol and timeframe, but "runs" is not "has an edge" — whether it works on your market is yours to verify. Past behaviour is not the next signal.
Not financial advice. It manages no positions and places no orders.
ORIGINALITY
The ingredients — EMA crosses, MACD, RSI, ATR — are as old as charting. The momentum-gated trigger, the five-factor conviction score and its use as a hard filter, the regime-aware visual language and the non-repaint construction are my own work in Pine v6. Every value the script uses is recomputable from the rules above.
Questions and suggestions are welcome in the comments. Enjoy. Indicator

Indicator

Strategy

MACD + Timeframe DisplayHave you ever maximized your MACD pane to get a closer look at a crossover, only to realize the top toolbar disappeared and you forgot exactly which timeframe you were analyzing?
This indicator solves that frustrating UI quirk.
This script is a 1:1 replica of PulseWire’s standard built-in MACD, but with one major quality-of-life upgrade: it features a dynamic, built-in display table in the top right corner of the indicator pane that continuously tracks your active chart timeframe.
Because the text is drawn directly onto the indicator's canvas, it stays perfectly visible even when the pane is double-clicked and maximized.
Key Features:
Classic MACD Math: Uses the exact same calculations, inputs, and histogram color schemes as the default PulseWire MACD. Your signals and familiar aesthetics remain completely unchanged.
Smart Timeframe Formatting: Automatically detects your active timeframe and converts raw minutes into a clean, human-readable format. Instead of displaying "60" or "240", it dynamically formats the text to "1H", "4H", "15m", "1D", etc.
Unobtrusive UI: The timeframe is displayed in a clean, semi-transparent box in the top right corner of the pane, ensuring it doesn't block your view of the moving averages or histogram.
How to use:
Simply add it to your chart, replace your old MACD, and customize your moving average lengths just like you normally would. The timeframe display is entirely automatic! Indicator

Adaptive MACD Regime, Volatility Bands & Conviction# Adaptive MACD — Regime, Volatility Bands & Conviction
## What this is
This is a single, self-contained momentum framework built around **one normalized MACD core**. Instead of plotting a raw MACD and leaving you to judge it, the script surrounds that core with the context a momentum reading needs to be usable: a market-regime filter, an adaptive length stage, a multi-timeframe agreement check, a volatility band, and a conviction score that combines them into one number. It runs on **any symbol and any timeframe** — the price source and every optional reference feed are selectable in Settings.
It is a study/indicator (not a strategy). It does not place orders and does not claim any performance.
---
## Why these components are combined (mashup rationale)
A plain MACD only answers "is momentum up or down right now." On its own it has two well-known weaknesses: it whipsaws during sideways markets, and its fixed 12/26/9 lengths are arbitrary for any given symbol or timeframe. Each module below exists to fix a specific one of those weaknesses, and they are deliberately chained so the output of one informs the next:
1. **Normalized MACD core (L1)** — the MACD histogram is converted to a rolling **z-score**, so a reading of "+2" means the same thing on a low-priced FX pair, a high-priced index, or a 1-minute vs daily chart. Raw MACD values are not comparable across instruments; the z-score is. This is what makes the rest of the framework symbol-agnostic.
2. **Regime filter (L2)** — efficiency ratio + ADX + a volatility-clustering measure classify the market as **Trend / Range / Volatile**. This is used to decide whether a momentum signal should be trusted: MACD crosses are reliable in trends and noisy in ranges, so the regime gates and reweights the core signal rather than treating every cross equally.
3. **Adaptive length stage (L3)** — a dominant-cycle estimate (Ehlers homodyne) retunes the fast/slow/signal lengths toward the market's measured rhythm, instead of a static 12/26/9. You can switch this to a volatility-driven mode or fall back to fixed lengths. This directly addresses the "arbitrary lengths" weakness.
4. **Multi-timeframe confluence (MTF)** — the same MACD logic is evaluated on four higher timeframes, confirmed on bar close so it does not repaint. A single-timeframe cross is weak; agreement across timeframes is the filter.
5. **Volatility band + fade (L4)** — a volume-weighted standard-deviation band around price flags stretched conditions and band-rejection ("fade") setups, used as a mean-reversion counterweight to the trend logic.
6. **Conviction + vetoes (CON)** — all of the above are blended into a single **0–100 conviction score** with hard vetoes (e.g. counter-regime, timeframe disagreement, volatility spike). This is the part that turns several separate readings into one decision so you are not eyeballing five panels.
7. **Risk framework (RISK)** — once there is a signal, it derives an ATR stop, R-multiple targets, and a position-size suggestion from your account equity and risk %. This is shown as thin Entry / Stop / TP1 / TP2 lines on price.
In short: **L1 makes momentum comparable, L2 decides if it can be trusted, L3 tunes it, MTF confirms it, L4 adds a reversion check, CON scores it, and RISK frames it.** None of the layers is decorative — remove any one and the others lose context.
---
## How to use it
1. Add it to any chart and timeframe. It plots in its own lower pane; the trade levels and dashboard overlay on price.
2. Read the **dashboard header**: it shows the current action (BUY / SELL / HOLD / WAIT / FLAT) and the entry/stop.
3. Check **VERDICT + conviction**: a higher score with no active vetoes is a stronger context. Vetoes are listed explicitly so you can see *why* something is blocked.
4. Use **REGIME** to set expectations — trend-following signals make more sense in a Trend regime; the Stretch/Fade rows matter more in Range.
5. The **Entry / Stop / TP1 / TP2 lines** on price show the framework's risk levels for the current signal only; previous trade lines are removed automatically.
6. Optional feeds (reference symbol, volatility index, open interest, cross-asset) are **blank by default** — add your own symbols if you want those confluence inputs, or leave them off. The script degrades gracefully and tells you in the FEEDS row which are live.
---
## Settings worth knowing
- **Price source** — the series the whole engine runs on. Defaults to close; works on any market.
- **Optional reference feeds** — all blank by default and entirely optional, so the script is not tied to any one market or exchange. Enter symbols relevant to your instrument if you want them.
- **Adaptive length driver** — Homodyne (cycle-adaptive), Volatility, or Fixed.
- **Risk & sizing** — account equity, risk %, ATR stop multiple, and value-per-move; the size output is a suggestion only.
- **Dashboard theme** — Auto/Dark/Light; Auto flips colors to stay readable on white or black backgrounds.
- **Name / symbol / timeframe label** — kept on by default so the chart always identifies what is plotted.
---
## What makes it original
It is not a wrapper around a built-in MACD. The core is rebuilt to accept a *series* length (so it can be retuned every bar), normalized to a cross-asset z-score, gated by an explicitly classified regime, and merged with multi-timeframe state into a single weighted conviction score with named vetoes. The volatility-band fade logic and the dominant-cycle length adaptation are integrated into that same score rather than shown as separate, disconnected studies.
---
## Notes and limitations
- Confirm-on-close is on by default to avoid repainting; intrabar values can still update until the bar closes.
- The optional "Call/Put strike" row is a convenience hint derived from price and your strike interval only — **no options-chain data is read and no option P&L is implied.**
- Higher-timeframe and reference-feed requests depend on your data subscription; if a feed is unavailable the script disables the dependent input and continues.
---
## Disclaimer
This script is provided for educational and informational purposes only. It is a technical study, not investment, financial, or trading advice, and not a solicitation to buy or sell any instrument. It does not guarantee any result. Markets involve risk, including loss of capital. Indicator signals, levels, and the position-size suggestion are illustrative and must not be relied on as the basis for any trade. Always do your own research and consider consulting a licensed financial professional before trading. The author accepts no liability for any loss arising from use of this script. Past behavior of any indicator is not indicative of future results.
Indicator

Volume Pressure MACDVolume Pressure MACD is a momentum indicator built on the MACD framework,
extended with three independent volume analysis layers that work together
to weight each signal by the quality and direction of volume participation —
not just its size.
The core idea: a price move backed by high volume is more meaningful than
the same move on thin volume. But volume size alone is incomplete —
a large-volume candle where price closes near the low tells a very different
story than one where price closes near the high. This indicator attempts to
capture both dimensions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKGROUND — WHY THREE VOLUME LAYERS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Standard MACD is calculated purely from price EMAs and ignores volume entirely.
Most volume-weighted MACD variants address this by multiplying the MACD value
by a simple volume ratio — more volume means a stronger signal. That approach
has a limitation: it treats all high-volume candles equally, whether the close
was bullish or bearish within the candle.
Volume Pressure MACD uses three separate volume inputs, each measuring a
different aspect of market participation:
LAYER 1 — VOLUME FACTOR
Measures how current volume compares to its recent average using a power
function (math.pow). The Volume Effect input controls the exponent, which
determines how aggressively above-average volume amplifies the MACD and how
much below-average volume dampens it. At 0.1 the effect is subtle and smooth;
higher values make the indicator more reactive to volume spikes. This layer
answers the question: how much volume is there?
LAYER 2 — VOLUME PRESSURE SCORE
This is the differentiating layer. For each bar, it calculates how much of
the total volume was spent by buyers versus sellers, based on where the
closing price lands relative to the bar's high-low range:
Buy Pressure = Volume × (Close - Low) / (High - Low)
Sell Pressure = Volume × (High - Close) / (High - Low)
Net Pressure = Buy Pressure - Sell Pressure
A candle that closes at its high assigns nearly all volume to buyers.
A candle that closes at its low assigns nearly all volume to sellers.
A doji near the midpoint splits volume roughly equally and contributes
minimal pressure in either direction.
The net pressure is normalized against its recent average and then applied
as a secondary weight on the MACD — clamped to a ±30% influence so it
modulates rather than dominates the output. This layer answers the question:
in which direction was volume being used?
LAYER 3 — VOLUME MOMENTUM
Compares a 5-bar volume average against a 20-bar volume average to determine
whether market participation is currently expanding or contracting. This does
not affect the MACD calculation itself — instead it drives the 4-tone histogram
coloring, giving a visual indication of whether the current MACD move is
occurring on growing or fading volume. This layer answers the question:
is volume increasing or decreasing?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DYNAMIC ZONE SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
One of the practical problems with MACD-based indicators is that fixed
overbought/oversold lines are meaningless across different assets and
timeframes. MACD values on a 5-minute chart of a low-priced asset can be
a fraction of a unit, while the same indicator on a weekly chart of a
high-priced asset can reach thousands. Static horizontal lines cannot
account for this.
The zone system in this indicator is fully dynamic:
- The upper boundary (Strong Bull) is set to the highest MACD value
over the Zone Lookback period, floored at zero
- The lower boundary (Strong Bear) is set to the lowest MACD value
over the Zone Lookback period, capped at zero
- The Weak/Strong boundary is calculated as a percentage of those
extremes, controlled by the Weak/Strong Split input
- All four zone boundaries automatically adjust as new bars print
and as you switch between timeframes or assets
Zone definitions:
Strong Bull — MACD is in the upper portion of its recent historical
range; momentum is extended to the upside
Weak Bull — MACD is positive but has not yet reached historically
elevated levels; upward momentum is present but moderate
Weak Bear — MACD is negative but within the lower portion of its
recent range; downward momentum is present but moderate
Strong Bear — MACD is deep in its recent historical range; momentum
is extended to the downside
The zones are color-filled between their boundaries and labeled at the
right edge of the chart for easy reading. Bull zones are drawn in green
tones and are mathematically prevented from crossing below zero. Bear zones
are drawn in red tones and are mathematically prevented from crossing above
zero, so the zone layout always remains logically consistent regardless of
MACD behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HISTOGRAM COLORING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The histogram uses four distinct colors based on the combination of MACD
direction and volume momentum, allowing you to read both momentum and
participation at a glance:
Dark green — histogram above zero + volume momentum expanding
(positive momentum with growing participation)
Light green — histogram above zero + volume momentum contracting
(positive momentum but participation fading)
Dark red — histogram below zero + volume momentum expanding
(negative momentum with growing participation)
Light red — histogram below zero + volume momentum contracting
(negative momentum but participation fading)
The transition from dark to light (or vice versa) within the same direction
can be an early indication of momentum exhaustion or resumption.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL TYPES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▲ BUY triangle (green, bottom)
MACD crosses above Signal line AND volume exceeds the average
by the Strong Volume Multiplier threshold. Both conditions must
be true simultaneously.
▼ SELL triangle (red, top)
MACD crosses below Signal line AND volume exceeds the average
by the Strong Volume Multiplier threshold. Both conditions must
be true simultaneously.
+ Cross marker on MACD line
All MACD/Signal crossovers, regardless of volume. Plotted directly
at the crossover price level on the indicator, not at the top or
bottom of the pane.
M↑ circle (teal) — Bullish divergence on the MACD line
Price makes a lower low while MACD makes a higher low,
detected using asymmetric pivot logic.
M↓ circle (fuchsia) — Bearish divergence on the MACD line
Price makes a higher high while MACD makes a lower high.
H↑ diamond (yellow) — Bullish divergence on the Histogram
Price makes a lower low while the histogram makes a higher low.
H↓ diamond (orange) — Bearish divergence on the Histogram
Price makes a higher high while the histogram makes a lower high.
Note: MACD line divergence and histogram divergence are calculated
independently. When both trigger together it may indicate a stronger
divergence condition. When only one triggers it can reflect early or
partial divergence development.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INFO TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A live data table in the top-right corner displays four values
for the most recent closed bar:
Diff — the current distance between the MACD and Signal lines,
with a directional arrow showing which is above the other
Vol Factor — the current volume multiplier relative to the average.
Values above 1.0 indicate above-average volume (green);
values below 1.0 indicate below-average volume (red)
Vol Momentum — whether the 5-bar volume average is above or below
the 20-bar average (Rising / Falling)
Vol Pressure — the net directional pressure score for the current bar
(Buy / Sell / Neutral), based on the pressure calculation
described above
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INPUT REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Fast EMA — fast EMA length for classic MACD (default 12)
Slow EMA — slow EMA length for classic MACD (default 26)
Signal EMA — signal line EMA length (default 9)
MACD Smooth — additional EMA smoothing applied to the
volume-weighted MACD line (default 3)
Volume SMA Length — lookback for calculating average volume,
used in both Volume Factor and Pressure Score
Volume Effect — exponent controlling how strongly volume
scales the MACD; lower = smoother (default 0.1)
Strong Volume Multiplier — volume must exceed average × this value
for BUY/SELL triangles to appear (default 1.5)
Divergence Lookback — pivot bar count for divergence detection;
higher values find fewer but more significant
divergences (default 5)
Zone Lookback Bars — how many bars are used to define the dynamic
zone boundaries (default 100)
Weak/Strong Split — the percentage point within the zone range
where weak ends and strong begins (default 0.35)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPATIBILITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Works on all asset classes including equities, cryptocurrency, forex,
commodities, and indices. Compatible with all timeframes. The dynamic
zone system and volume pressure calculation are designed to produce
meaningful output regardless of the absolute price or volume scale
of the instrument.
Pine Script v5. Indicator

Indicator

Indicator

Indicator

NTR: NASDAQ M1 - Trend RunnerNASDAQ M1 - MACD Trend Runner is a systematic trend continuation strategy specifically designed and optimized for the NASDAQ index on the 1-minute timeframe.
The strategy was developed around a simple observation:
Strong directional movements in NASDAQ often emerge after temporary pullbacks toward key moving averages while underlying momentum remains intact.
Instead of attempting to predict reversals or market turning points, the objective of this framework is to identify favorable re-entry opportunities within an existing bullish environment and allow winning positions to develop through dynamic trade management.
CORE CONCEPT
The strategy combines momentum, trend structure, market positioning, and risk control into a single execution model.
A valid setup requires:
• MACD bullish crossover.
• Momentum developing from lower MACD values.
• Price trading within a defined proximity to the 200-period moving average.
• Positive higher-order trend structure measured through the slope of the 50-period moving average.
• Time-of-day filtering to focus on periods of meaningful market participation.
This combination seeks to isolate moments where price temporarily retraces into trend support before resuming directional movement.
TRADE MANAGEMENT
Risk management is based on market structure rather than fixed stop distances.
Initial stop placement is determined using recent technical lows, creating a structure-based risk framework that adapts to changing market conditions.
Once a position develops sufficient unrealized profit, the strategy transitions into a trailing stop model designed to protect gains while allowing extended trend participation.
The goal is not to maximize win rate.
The goal is to capture asymmetric reward opportunities where a limited number of successful trades can outweigh multiple small losses.
KEY FEATURES
• MACD Momentum Confirmation
• SMA200 Trend Location Filter
• SMA50 Slope Validation
• Technical Structure-Based Stop Loss
• Dynamic Trailing Stop Management
• Session-Based Time Filter
• Daily Trade Limitation Logic
• Daily Profit Protection Logic
• Visual Diagnostic System
• Re-entry Detection Framework
DESIGN PHILOSOPHY
This strategy is intentionally specialized.
It was developed, tested, and refined specifically for NASDAQ price behavior on the 1-minute timeframe.
While certain concepts may be transferable to other instruments, the framework was not designed as a universal trading system.
The primary objective is to exploit recurring short-term trend continuation behavior observed within NASDAQ intraday market structure.
DISCLAIMER
This strategy is provided for educational and research purposes only.
Past performance does not guarantee future results. All trading involves risk, and users should perform their own analysis and validation before applying any strategy in live market conditions.
Created by @Peter_n_n Strategy

Modern Adaptive MACD [GBB]The MACD is half a century old. Gerald Appel published it in 1979 for daily charts of US equities, and the 12/26/9 default has been copied from one trading textbook to the next ever since. Nobody asks anymore why those three numbers should be the right ones for Bitcoin five-minute charts in 2026.
This is a rebuild. Four modernizations, each independently toggleable, all measured before being added. With every layer at default, the output is the textbook MACD. Switch them on one at a time to see what each one does on your own chart.
Layer 1: Adaptive periods
Instead of hard-coding 12 and 26, the indicator measures the market's dominant cycle in real time with an Ehlers homodyne discriminator and tunes the periods to it. In slow trends the periods widen and the indicator stops chopping you up with false crosses. When volatility picks up, periods tighten and it stays responsive.
Layer 2: Signal speedup
Classic MACD has two layers of lag. One in the EMAs that build the MACD line, another in the signal line on top of that. Most of the lag people complain about lives in the second smoother.
The first version of this layer used a zero-lag EMA. It didn't work. The zero-lag transform overshoots, and on strong moves the signal ends up ahead of the MACD, inverting the histogram color exactly when you most need the cross to be honest.
What shipped is the boring fix: a multiplier on the signal length. 1.0 keeps the classic 9-bar signal. Lower values speed it up. I measured the trade across 24 months of Bitcoin perpetual data. At a multiplier of 0.5, the indicator confirms a swing roughly 4 bars earlier and catches about 25% more swings than the classic. The cost is that the false-signal rate, whipsaw crosses with no real swing attached, roughly doubles, from 6% to 12.5% of all crosses. Whether that trade is worth it depends on what you do with the indicator. Pick the multiplier accordingly.
Layer 3: Normalization
A raw MACD reading of 15 means nothing on its own. On gold at $4500 it's small. On a penny stock it's enormous. Two normalization modes are available. "Percent of price" expresses the MACD as a percent of current price, which makes the reading comparable across instruments. "Z-Score" expresses it as standard deviations from its own recent average. Both are off by default. Turn one on if you trade more than one market, or if you want thresholds that don't need re-tuning every time you switch symbols.
Layer 4: Divergences
Regular and hidden divergences are detected automatically on confirmed pivots. Confirmed means they do not repaint. The line shows up a few bars after the pivot it marks, which is the honest cost of non-repainting confirmation. If anyone shows you a divergence indicator that draws lines in real time at the exact low, check what happens to those lines after the next few candles close.
Small triangles mark every MACD/Signal cross at the crossing point. Teal for bullish, red for bearish. Useful on busy charts where the cross moment is otherwise ambiguous.
What this is, and what it isn't
I tested every configuration of this indicator as a standalone trading system on 24 months of Bitcoin one-hour data. Always in market, long on bullish cross, flip on bearish. Every configuration lost money. Profit factor below 1 across the board. Negative Sharpe. Nothing statistically significant, before or after multiple-comparison correction.
This is what happens to any oscillator cross strategy run without a filter. The classic MACD shows the same result on the same test.
This is not a system. It's a timing tool. It tells you when momentum is shifting, earlier and more cleanly than the classic. Your job is to combine that with whatever else you trade on: higher-timeframe trend, market structure, key levels, your own setup logic. Without that filter, the cross alone is noise.
Settings
Source: close by default.
Classic periods: 12/26/9. Used when Adaptive is off.
Layer 1 (Adaptive): on by default. Min and max cycle bounds and the fast/signal ratios are exposed if you want to tune them.
Layer 2 (Signal speedup): multiplier 0.3 to 1.0. Default 1.0. Try 0.5 first.
Layer 3 (Normalize): None / Percent of price / Z-Score. Off by default. Z-Score has its own lookback length.
Layer 4 (Divergences): on by default, regular divergences only. Hidden divergences are off by default to keep the chart clean. Pivot left/right bars control how strict the swing detection is.
Display: cross markers on by default.
Alerts are wired for every cross (MACD/signal and zero-line) and every divergence type (regular and hidden, bullish and bearish).
Free. No paywall, no subscription, no gated features. If you find a configuration that works well on a specific instrument or timeframe, drop a comment.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
GoodBadBitcoin
Also on:
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by Indicator

Tidal Divergence [JOAT]Tidal Divergence
Tidal Divergence is a composite divergence detector that lives in a sub-pane and projects high-conviction divergence visuals onto the price chart. The composite blends three volume-based oscillators — Money Flow Index, percentile-ranked Cumulative Volume Delta, and z-scored OBV rate-of-change — into a single normalized stream. Both regular and hidden divergences are detected. Persistent zones are drawn at divergence pivots, and zone mitigation is tracked with body / wick / rejection modes.
What makes it different
Single-oscillator divergence indicators give a single perspective. Tidal Divergence's composite triangulates three independent volume-derived oscillators so a divergence in the composite is supported by three volume readings instead of one.
Hidden divergences (continuation pattern: price higher low plus oscillator lower low for bull) are detected separately from regular divergences (reversal pattern), with distinct line styles on the price chart.
Each detected divergence creates a persistent demand or supply zone with optional FVG-confluence gating, dynamic alpha-by-age (zones fade as they age), and explicit mitigation logic (body / wick / two-close rejection variants).
A composite percentile envelope (5th to 95th percentile of the last 200 bars) is drawn behind the oscillator so absolute readings are easy to interpret in context.
How it works
MFI(14), daily-reset CVD then ta.percentrank(cvd, 100), OBV ROC z-score over a 20-bar mean / stdev. Three legs, each normalized to roughly the same scale.
Composite equals 0.40 times the normalized MFI plus 0.35 times the normalized CVD percentile plus 0.25 times the clamped OBV ROC z. Hull-smoothed and scaled to centi-percent.
Pivots are detected on the composite stream. A regular bull divergence requires a price lower low paired with a composite higher low within a 5-to-60-bar window. Hidden bull requires a price higher low plus composite lower low. Bear variants invert the conditions.
At each divergence pivot, two horizontal lines are drawn (edge equals lowest wick / highest wick. base equals lowest body / highest body), with a linefill between them, on the price chart via force_overlay=true.
Zone mitigation: body mode (close beyond edge) or wick mode (high/low beyond edge), optionally with two-close rejection requirement.
Optional FVG confluence requires a recent 3-bar Fair Value Gap before firing the divergence-final alert.
Reading the chart
In-pane : composite line tinted by direction with a smoothed signal line, gradient ribbon between them, breath-modulated zero midline, plus and minus 70 overbought / oversold thresholds, and the percentile envelope as an atmospheric backdrop.
In-pane divergence markers : regular divergences as solid connector plots, hidden divergences as broken (dashed-equivalent) connectors.
Cross-pane : price-to-price divergence connector lines on the price chart (regular solid, hidden dashed). Each line has a small REG BULL DIV 4520.50 or HID BEAR DIV label at the current pivot.
Cross-pane zone fills with age-graded transparency.
Zone edge price labels follow the right edge of each active zone.
Mitigation flash labels print at the bar where a zone is broken.
A cross-pane composite tint paints a soft mint / red background when the composite is clearly above or below plus or minus 30.
Signals
Regular bullish / bearish divergence
Hidden bullish / bearish divergence (continuation)
Bull / bear zone touch
Bull / bear zone mitigated
Bull / bear stack (three or more active zones plus a fresh regular divergence)
Bull / bear streak (composite above / below zero for N consecutive bars)
All gated on barstate.isconfirmed or barstate.ishistory. No future references. No lookahead_on.
Inputs
MFI : MFI length.
Divergence : pivot lookback left / right, detect hidden divergences toggle.
Zones : zone extreme length, max zone age, mitigation mode, allow-rejection toggle.
FVG Confluence : require FVG, FVG lookback bars.
Visual : bullish / bearish colors.
Cross-pane Visuals : divergence lines, divergence labels, zone edge labels, composite tint.
Dashboard : position, size.
How traders use this
Reversal entries : a regular bull divergence with the composite leaving an oversold extreme is a high-quality long setup, especially when accompanied by an FVG below the divergence price.
Continuation entries : a hidden bull divergence during a clearly trending bull regime is a structurally supported add-on entry on a pullback.
Zone trades : after a divergence prints, treat its zone as an active demand or supply level. Reactions to the zone (touch with rejection candles) are tradable. Mitigation invalidates the level.
Composite filter : only trade with the composite in agreement (composite above 0 for longs). The cross-pane tint helps you stay aligned without checking the pane.
Limitations
Divergence detection inherently lags the actual extreme by the right-pivot window.
Composite values are smoothed and need warm-up bars before they stabilize.
Cumulative Volume Delta is a tick-volume proxy, not true level-2 order flow.
A divergence is a probability, not a guarantee. Many divergences fail before completing their implied reversal.
Compatibility
Pine Script v6 open-source indicator (pane plus cross-pane). Any symbol with volume data. Cross-pane elements use force_overlay=true. No request.security calls.
Defaults
14-bar MFI, 14-left / 5-right pivot, body mitigation, FVG confluence off by default, mint / red palette, top-right medium dashboard. Enable FVG confluence to filter for higher-quality setups.
Indicator

MACD Dive [TTM Squeeze | Dual Lock %R]Disclaimer : This indicator is not financial advice and is strictly for educational and informational purposes only. The metrics and signals provided herein (including momentum crosses, trend saturation state icons, and squeeze markers) are calculated based on historical market data and do not guarantee future performance. Trading stocks and commodities involves significant risk of loss. The user assumes full responsibility for all trading decisions and should always perform their own due diligence before executing trades.
MACD Dive is a multi-state momentum and volatility context engine. By layering momentum oscillation (MACD/PPO/MACD-V) with market stalemates (volatility squeeze) and trend exhaustion (Dual %R saturation), this suite transforms a standard MACD into a multi-dimensional 'No-Go' gatekeeper. This synergy is what gives the engine its edge: it actively blocks the trader from whipsawing in sideways chop or buying into a dying trend, highlighting high-probability market turns where momentum, volatility, and trend capacity perfectly align.
Standard oscillators have a scaling problem. This script lets you choose your engine:
MACD (Classic): Measures momentum in absolute dollars. Great for visual reactivity, but a "2.0" reading means something different on a $5 stock versus a $500 stock.
PPO (Percentage): Measures momentum in percentages. Standardizes the reading across all assets, making it ideal for fixed-rule algorithmic trading.
MACD-V (Volatility Normalized): This divides the MACD by the Average True Range (ATR). It measures momentum in "Units of Volatility," mathematically adapting to market chaos so that signals remain consistent across both different assets and shifting volatility regimes (quiet markets vs chaotic markets).
This suite includes a fully optimized divergence detection engine:
Regular Divergence (Solid Lines): Identifies Trend Reversals. Price pushes to a new extreme, but momentum fails to follow, signaling exhaustion.
Hidden Divergence (Dashed Lines): Identifies Trend Continuations (Slingshots). Price pulls back, but momentum fully resets, signaling a high-probability entry in the direction of the dominant trend.
Located in your chosen corner, the HUD provides an instant visual readout with hover tooltips for active Engine Mode, %R Fatigue state, Oscillator crossover validation, and Squeeze environment. Vertical background highlights in green or red represent filter-passed momentum crossovers, like the MACD bullish cross. Use the extensive inline tooltips in the indicator's settings panel for a comprehensive breakdown of every tunable parameter.
Adaptive Time-Frames & RSI Gatekeeper
Think of this as an automated gear shifter. When looking at lower timeframes (below a user-defined boundary, e.g. 1 hour), the engine automatically scales down to tight, agile lookback periods. When viewing high timeframes, it dials up to filter out noise.
Buying a bullish MACD cross when the RSI is already at 85 increases risk of buying the top when the tank is empty. The optional RSI Safety Filter acts as a strict ceiling/floor blocker. If momentum crosses upward but the asset is mathematically overbought, the indicator suppresses the background highlight. It prevents signals on MACD crosses that have no fuel left.
VOLATILITY ENGINE: BB-KC Squeeze Radar
Building on John Carter’s TTM Squeeze by mapping the contraction of Bollinger Bands inside Keltner Channels to identify market stalemates. The implementation here color codes between a Loose Squeeze (BB inside 1.5 KC) and a hyper-compressed Tight Squeeze (BB inside 1.0 KC) to show the staged intensity of the coiled spring.
While the market coils sideways, a 20-period Linear Regression calculates the trajectory of price deviation inside the bands. The directional bias is shown by customizable markers on the zero line (default ⌃ or ⌄). This reveals hidden institutional accumulation or distribution before the trigger is pulled. To bypass "dead money" risk, the script tracks the first clean candle close or intraday pierce outside the Keltner bounds following a squeeze, catching the expansion phase exactly as it starts.
Furthermore, it accounts for the "Disappearing Mark" phenomenon. Bollinger Bands expand instantly when price moves, causing standard squeeze signals to vanish 1-3 bars before the real breakout candle. This script uses a memory state to remember recent compression, firing a "squeeze release" marker (default ❖) the exact moment price closes outside the Keltner bounds. Trade the release, not the waiting room.
Note: While MACD Dive tracks this compression mathematically on its zero-line, you can see the actual physical boundaries of the breakout by pairing it with my companion Swing Data suite . Plotting its Keltner Channel at 1.5 multiplier over your price chart allows you to visually verify the exact moment the squeeze release mark is ignited.
SATURATION ENGINE: Dual-Lock %R and Momentum Rot
This suite tracks sustained trend maturity using a fast/slow dual Williams %R setup. The conceptual pairing of a fast and slow %R to identify overbought/oversold exhaustion is credited to upslidedown's excellent Trend Exhaustion indicator . I highly recommend applying their script to your chart if you want to visually learn how the two %R lines interact.
While upslidedown’s implementation offers multiple display modes to paint visual boxes and exhaustion zones directly over price action, the focus here is on the discrete icons for trend status at the top and bottom of the MACD pane: Ignition (·), Saturation (□), and Fatigue (×). This suite adapts native ta.wpr() math assuming the trader is already familiar with Dual %R mechanics. Specific "Sprint" and "Marathon" tuning guidance is provided in the tooltips: heavily smoothing the fast line to ignore intraday noise, while lightly smoothing the macro slow line to preserve its reach into extreme zones.
It also features one major addition: the Stall. While Dual %R tracks Price Location (confirming price is structurally pinned at the highs), it doesn't track Velocity (confirming energy is sustained). To solve this, a Stoch RSI "Rot" detector runs quietly inside the saturation state. If price continues to float at the highs but internal velocity drops below a critical threshold, the script overlays a Stall marker (•). Designed as a "one-shot" early warning, it fires only on the first detection per trend saturation leg to prevent chart clutter. This differentiates a strong trend lock from a rotting lock, warning us that the move is running on fumes: giving us the exact cue to tighten stops, trim into parabolic strength, and strictly avoid adding new size.
BACKTESTER READY
Out-of-the-box compatibility with a comprehensive built-in README guide is available directly inside the settings menu. For traders who prefer a "Diamond Hands" approach, the indicator fully maps to Jason5480's TTS Framework convention, outputting strict integer states (1, -1, 2, -2) to hold full position size until the trailing macro baseline completely fractures. My personal backtester, Cosmos Signal Commander (which may be released to the public in the future), broadcasts a composite float signal capable of managing active trade positioning. It tracks entries, hard stops, and partial take-profits (swapping the trailing stop from tight to a wide "runner" buffer upon hitting extended ATR targets).
PERFORMANCE OPTIMIZATION
O(1) Memory States: Replaced lag-heavy ta.barssince() and 50-bar for loops in the Divergence engine with O(1) var state trackers.
String Caching: HUD table strings are built once in the global var scope to prevent constant memory allocation and garbage collection lag.
UI Mutation: The HUD uses table.cell_set_* to alter data dynamically, bypassing the stutter caused by destroying and redrawing tables on every tick.
Native C++ Backend: Replaced custom highest/lowest math arrays with native ta.wpr() functions for the %R engine to maximize computation speed.
Ghost State Resets: When switching the backtester logic to "Long Only" mode, the engine actively hunts and kills lingering short-memory variables so they don't inadvertently suppress valid long signals.
Indicator

Indicator

VWAP SD2 Reversion (Long)A patient, momentum-confirmed dip buyer that fades stretches below the session VWAP and targets a return to the mean.
The idea
Intraday price tends to oscillate around its volume-weighted average price (VWAP). When price extends a full two standard deviations below the session VWAP, it is statistically stretched and often springs back toward the average. This strategy is built to capture that snap-back, but it deliberately does not buy the dip blindly. A stretched market can keep falling, so the strategy waits for two independent momentum tools to confirm that the down-move has actually turned before it commits.
The result is a sequential, time-boxed setup: a volatility filter, a price stretch, and then two momentum confirmations that must all line up within a short window. If they do not, the setup is discarded and the strategy stays flat.
How a trade is built
Each long requires the following to occur in order, with every step happening at or after the initial dip and within the confirmation window:
Volatility filter: the lower 2-SD band must sit at least a minimum distance from VWAP (default 10 pips). This skips quiet, low-range conditions where there is little room to revert and the costs would dominate.
Step 1, the stretch: price closes below the lower 2-SD band.
Step 2, RSI confirms: RSI recovers back above its level (default 30), confirming the oversold push is fading.
Step 3, MACD confirms: the MACD line turns bullish over its signal line (or over zero, if you prefer), confirming momentum has flipped up.
Entry: a market long is taken on the bar that completes Step 3.
Why a state machine
Real momentum turns are messy. RSI and MACD often flip within a bar or two of each other, and sometimes on the very same bar. A naive rule that demands three separate single-bar crossovers in strict order misses most of these clusters. This strategy instead tracks the setup through a small state machine that:
anchors both confirmations to the first dip bar, so a momentum cross that happened before the dip cannot be borrowed to validate the trade;
accepts confirmations that arrive in either order or on the same bar, as long as both are recent and post-dip;
keeps the setup alive while price continues to hug the band, and expires it cleanly once the confirmation window passes without a trigger.
A Strict toggle is provided for those who want the original behaviour, where each step must be a fresh crossover on a later bar.
How the exit works
Because the thesis is reversion to the mean, the natural profit target is the mean itself. By default the take-profit is the live VWAP, re-evaluated every bar so it tracks the line as it moves, set a small buffer in front so the order fills on the approach rather than waiting for an exact touch. A minimum-profit floor prevents a falling VWAP from dragging the target back through the entry.
A fixed-pip take-profit mode is available as an alternative. The stop-loss is a fixed pip distance below entry in both modes. Targeting the mean rather than a fixed number of pips tends to produce variable, often larger winners, which also dilutes the impact of fixed spread costs.
Settings
Setup
SD band multiplier — standard-deviation width of the bands (default 2.0).
Min VWAP to SD2 distance — the volatility filter, in pips (default 10).
Confirmation window — how many bars each step has to confirm (default 5).
Strict cross — require a fresh crossover on a bar after the prior step.
RSI and MACD
Standard RSI length and cross level.
Standard MACD fast, slow and signal lengths, with an optional zero-line cross instead of a signal-line cross.
Risk and pips
TP at VWAP, with a front-run buffer and a minimum-profit floor, or a fixed-pip take-profit.
Stop loss in pips.
Auto pip size (mintick × 10), which resolves correctly for 5-decimal FX and 3-decimal JPY pairs, plus a manual override.
Reading the chart
Orange line: session VWAP (the reversion target).
Red and green lines: the lower and upper 2-SD bands.
Markers: 1 marks a close below the band, 2 marks the RSI confirmation, and the triangle marks the MACD confirmation and entry trigger.
Intended use
This is an intraday strategy, developed and tuned on 5-minute FX majors, with a daily VWAP anchor that resets each session. In the author's testing it has behaved most consistently on AUDUSD, and it is also designed for pairs such as EURUSD and USDJPY. As always, behaviour varies by pair, broker feed and period, so test it on your own data before relying on it.
On backtest settings: tight intraday targets are sensitive to execution costs. Before drawing conclusions from the Strategy Tester, set a commission and slippage that match your broker, and choose a position size that reflects the risk you would actually take. Results shown with unrealistic costs can look far better than anything achievable live.
This script is published for educational and research purposes only and is not financial advice or a recommendation to trade. Backtested and hypothetical results do not guarantee future performance, and trading leveraged instruments such as FX carries substantial risk of loss. You are responsible for your own testing, risk management and decisions. Strategy

Crypto Ultimate Indicator v2═══════════════════════════════════════════════
CRYPTO ULTIMATE INDICATOR (CUI)
═══════════════════════════════════════════════
A multi-layer confluence system for crypto traders. Stacks 12+ independent technical layers — trend, momentum, volume, regime, multi-timeframe bias, and Smart Money Concepts — and fires Buy/Sell signals only when enough of them agree. Every signal comes with a confidence score, three take-profit levels, position size recommendation, and live outcome tracking.
Built for 4H and Daily crypto charts. No proprietary "secret sauce" — every component is documented and every input is exposed.
━━━━━━━ WHY THIS EXISTS ━━━━━━━
Most multi-indicator scripts stack correlated trend filters (more EMAs, more oscillators) and call it "confluence." That just adds the illusion of agreement without adding independent information.
CUI's filter stack is built from genuinely different signal sources, so when they align, that alignment carries real weight:
• Trend regime — HMA + Supertrend + EMA Ribbon
• Momentum — RSI with proper pivot-to-pivot divergence
• Volume flow — body-weighted Volume Delta + CVD divergence
• Volatility state — Bollinger squeeze + squeeze-release timing
• Market structure — composite of ADX, Choppiness Index, BB-width percentile
• Multi-timeframe — weighted Daily / Weekly / Custom HTF (all offset, no repaint)
• Liquidity & gaps — Fair Value Gaps + Liquidity Sweep detection
• External context — optional BTC trend filter for alt trading
A Buy or Sell only fires when the relevant subset of these align. A built-in "Why-Not" diagnostic table shows you exactly which filter is blocking a near-signal at any moment — turning the indicator into a tunable system rather than a black box.
━━━━━━━ CORE FEATURES ━━━━━━━
TREND & MOMENTUM
▸ Hull Moving Average (configurable length)
▸ Supertrend with ATR factor
▸ 5-EMA Ribbon (8/13/21/34/55) with stacking score
▸ RSI with consecutive-pivot divergence detection
▸ MACD and Stochastic RSI (data window)
VOLUME
▸ Body-weighted Volume Delta (not naive close-position)
▸ Cumulative Volume Delta (CVD)
▸ CVD divergence at confirmed pivots
VOLATILITY & REGIME
▸ Bollinger Bands with squeeze detection and release timing
▸ Composite regime classifier (ADX × CHOP × BB-width)
▸ Background tint for trending vs ranging states
▸ Regime transition labels
SMART MONEY CONCEPTS
▸ Fair Value Gap zones (bullish and bearish)
▸ Liquidity Sweep detection
MULTI-TIMEFRAME
▸ Daily / Weekly / User-defined custom HTF
▸ Weighted confluence score (D 1.0x + W 1.5x + Custom 0.75x)
▸ Optional HTF pivot-based S/R lines
BTC CONTEXT (for alt traders)
▸ Optional BTC trend filter
▸ Relative strength vs BTC
SIGNAL ENGINE
▸ 0-100 confidence score
▸ Configurable minimum confidence threshold
▸ Auto-tune presets (Aggressive / Balanced / Conservative / Custom)
▸ Confirmation bar requirement
▸ Minimum spacing between signals
TRADE MANAGEMENT
▸ Three take-profit levels (TP1/TP2/TP3) with configurable ATR multipliers
▸ Custom % allocation per target
▸ Adaptive SL/TP — different distances in trending vs ranging conditions
▸ Break-even stop activation after TP1
▸ Chandelier ATR trailing stop on runner portion
▸ Position size calculator (account size × risk % × confidence multiplier)
LIVE TRACKING & DIAGNOSTICS
▸ Main dashboard with all current state
▸ Signal log table — last N trades with live TP/SL outcomes
▸ Why-Not diagnostic — which filter is currently blocking each direction
▸ Regime stats — win rate broken down by trending vs ranging
ALERTS
▸ 15+ classic alertcondition triggers
▸ Optional JSON webhook payload for bot integration
━━━━━━━ HOW A BUY SIGNAL FIRES ━━━━━━━
All of the following must be true on the signal bar:
1. HMA trending up
2. RSI above 50
3. Volume delta positive
4. EMA Ribbon score ≥ +3 (at least 4 of 5 aligned bullish)
5. Supertrend bullish
6. HTF confluence score ≥ +1.5
7. Confidence score ≥ user minimum
8. BTC trend bullish (if BTC filter enabled)
9. Price not inside opposing FVG zone (if FVG filter enabled)
10. Market not in strong ranging mode
11. Price more than 0.5 ATR from upper resistance zone
12. Candle body > 50% of range
13. Minimum bars elapsed since last signal
14. Confirmation bar (if enabled)
A Sell signal requires the inverse. On 4H BTC expect roughly 1-3 signals per week in normal conditions. If you see fewer, drop the confidence floor or switch to the Aggressive preset.
━━━━━━━ RECOMMENDED USE ━━━━━━━
▸ Primary: 4H on BTC/USDT, ETH/USDT, and majors
▸ Also works: Daily, 12H, 8H
▸ Use caution below 1H — noise increases, news spikes can trigger wicks
▸ Low-liquidity alts: bump ATR period to 21
WORKFLOW
1. Start on the Balanced preset
2. Watch the dashboard and Why-Not panel for a few sessions
3. Adjust the confidence floor based on signal frequency
4. Enable Regime Stats after chart history accumulates
5. For bots: enable JSON webhook alerts, route via "Any alert() function call"
━━━━━━━ REPAINT DISCLOSURE ━━━━━━━
Full transparency on what does and doesn't repaint:
▸ HMA, Supertrend, EMA Ribbon: repaint on the developing current bar (use bar-close confirmation for live trading)
▸ HTF confluence (D/W/Custom): all use offset — fetch last closed HTF bar only — NO intra-period repaint, NO lookahead
▸ RSI and CVD divergence labels: plotted at confirmed pivot bar (5 bars after the actual pivot). Do NOT appear and disappear.
▸ FVG zones: drawn on confirmation bar of the 3-bar gap pattern. Do not repaint once drawn.
▸ Liquidity sweeps: detected on bar close
▸ Trade outcomes (signal log): evaluated on each closing bar
▸ Regime transition labels: confirmed on bar close
━━━━━━━ HONEST LIMITATIONS ━━━━━━━
▸ This is a decision-support tool, not a complete trading system. Risk management, position discipline, and execution matter more than any indicator.
▸ Signal outcomes in the Regime Stats table are based on bar-close evaluation. Real-fill slippage is not modeled.
▸ Volume Delta is approximated from candle structure, not true tick-level bid/ask (PulseWire doesn't expose that without premium feeds).
▸ FVG and liquidity sweep are simplified interpretations of those concepts — pure SMC purists may prefer dedicated tools.
▸ The regime classifier is a heuristic composite. It works well on liquid crypto pairs but can lag at sharp inflection points.
▸ Past performance does not predict future results.
━━━━━━━ SETTINGS OVERVIEW ━━━━━━━
The script has many inputs, grouped by function. For first-time users, the most important groups are:
▸ Preset & Theme → pick Balanced to start
▸ UI Sizing → table text and label sizes
▸ Signal Engine → set Minimum Confidence Score
▸ Tiered Exits → TP/SL multipliers and % allocation
▸ Position Sizing → account size and risk per trade
▸ Alerts & Webhooks → enable JSON for bot trading
Default state shows a clean chart: HMA, Supertrend, BB, regime tint, signal labels, plus three tables (dashboard, signal log, HTF panel). Everything else is one toggle away — EMA Ribbon, FVG boxes, ATR zones, HTF S/R lines, CVD divergence labels, sweep markers, Why-Not diagnostic, Regime Stats.
━━━━━━━ WHAT'S NOT INCLUDED ━━━━━━━
▸ Full strategy() backtest — this is an indicator(). A companion strategy script may be released separately.
▸ Funding rate / open interest overlays — require specific tickers not universally available
▸ Chart pattern recognition (H&S, wedges, etc.)
━━━━━━━ CREDITS ━━━━━━━
Built on Pine Script v6. Uses PulseWire built-ins: ta.supertrend, ta.dmi, ta.bb, ta.macd, ta.rsi, ta.pivothigh, ta.pivotlow, ta.valuewhen. Choppiness Index, CVD, FVG detection, liquidity sweep logic, regime classifier, confidence scoring, trade tracking, and confluence weighting are custom implementations.
═══════════════════════════════════════════════
Indicator

Indicator

Indicator
