Skip to content
StatePath
Tool Atlasinterpretor.divergence

Tool

Divergence Interpretor

interpretor.divergence

InterpretorDivergence

Inputs

divergenceBundle (untagged)

The divergence bundle from calc.divergence, carrying the detected price and indicator pivots plus the divergence kind and direction.

Outputs

Boolean

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.

Divergence Interpretor overview diagram

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

Regular bullishregular_bullish

Price makes a lower low while the oscillator makes a higher low — a classic bullish reversal signal.

Regular bullish diagram

When to use: Gate long entries when you want momentum to disagree with a fresh price low, hinting the down-move is exhausting.

Regular bearishregular_bearish

Price makes a higher high while the oscillator makes a lower high — a classic bearish reversal signal.

Regular bearish diagram

When to use: Gate short entries when a new price high is not confirmed by momentum, hinting the up-move is exhausting.

Hidden bullishhidden_bullish

Price makes a higher low while the oscillator makes a lower low — a continuation signal that an uptrend is resuming.

Hidden bullish diagram

When to use: Gate pullback longs inside an established uptrend, when you want to add on dips rather than catch reversals.

Hidden bearishhidden_bearish

Price makes a lower high while the oscillator makes a higher high — a continuation signal that a downtrend is resuming.

Hidden bearish diagram

When to use: Gate pullback shorts inside an established downtrend, when you want to sell rallies rather than catch tops.

Any bullishany_bullish

Fires on either a regular or hidden bullish divergence — any bullish momentum disagreement in the chosen direction.

Any bullish diagram

When to use: Cast the widest bullish net when you want every long-side divergence, reversal or continuation, to flag.

Any bearishany_bearish

Fires on either a regular or hidden bearish divergence — any bearish momentum disagreement in the chosen direction.

Any bearish diagram

When to use: Cast the widest bearish net when you want every short-side divergence, reversal or continuation, to flag.

Configuration

modeenum

Which divergence to gate on: regular bullish/bearish (reversal), hidden bullish/bearish (continuation), or any bullish/bearish (either kind in that direction).

Choices:regular_bullishregular_bearishhidden_bullishhidden_bearishany_bullishany_bearish

Connects to

Reads from
Feeds into

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.

See also