Tool
Divergence Interpretor
interpretor.divergence
Inputs
The divergence bundle from calc.divergence, carrying the detected price and indicator pivots plus the divergence kind and direction.
Outputs
A boolean that is true on each bar the chosen divergence kind is present in the bundle, ready to wire into a filter or signal trigger.
Divergence Interpretor reads a divergence bundle from calc.divergence and turns it into a simple True/False gate you can wire into filters and signals. The mode setting picks which kind of divergence to watch for, and it fires True on bars where that exact kind is present.
How it works
It consumes the bundle on its `divergence` input and outputs a BOOL based on the chosen mode: regular_bullish or regular_bearish (reversals), hidden_bullish or hidden_bearish (continuations), or any_bullish or any_bearish (either kind in that direction). It only supplies the gate — to place a stop you tap calc.divergence.pivot_point.price directly.
Modes
Price makes a lower low while the oscillator makes a higher low — a classic bullish reversal signal.
When to use: Gate long entries when you want momentum to disagree with a fresh price low, hinting the down-move is exhausting.
Price makes a higher high while the oscillator makes a lower high — a classic bearish reversal signal.
When to use: Gate short entries when a new price high is not confirmed by momentum, hinting the up-move is exhausting.
Price makes a higher low while the oscillator makes a lower low — a continuation signal that an uptrend is resuming.
When to use: Gate pullback longs inside an established uptrend, when you want to add on dips rather than catch reversals.
Price makes a lower high while the oscillator makes a higher high — a continuation signal that a downtrend is resuming.
When to use: Gate pullback shorts inside an established downtrend, when you want to sell rallies rather than catch tops.
Fires on either a regular or hidden bullish divergence — any bullish momentum disagreement in the chosen direction.
When to use: Cast the widest bullish net when you want every long-side divergence, reversal or continuation, to flag.
Fires on either a regular or hidden bearish divergence — any bearish momentum disagreement in the chosen direction.
When to use: Cast the widest bearish net when you want every short-side divergence, reversal or continuation, to flag.
Configuration
Which divergence to gate on: regular bullish/bearish (reversal), hidden bullish/bearish (continuation), or any bullish/bearish (either kind in that direction).
Connects to
Examples
- Set mode to regular_bullish and use the BOOL as a filter so longs only trigger on a confirmed bullish reversal divergence.
- Use any_bearish as a signal trigger to flag every bearish divergence, reversal or continuation.
Common mistakes
- Expecting a price or stop level from this node — it returns only a gate; read the stop from the calc.divergence bundle instead.
- Forgetting that the upstream calc.divergence repaints, so this gate can flip on the most recent bar until the pivot confirms.