Skip to content
StatePath
Tool Atlasinterpretor.gann_fan

Tool

Gann Fan Interpretor

interpretor.gann_fan

InterpretorGann

Inputs

fanBundle (untagged)

A Gann fan bundle from market.gann_fan carrying the nine rays anchored at a pivot.

priceBuffer (time series)

A price series (such as market.close) compared against the fan rays each bar; must share the upstream fan's symbol and timeframe.

Outputs

Boolean

A boolean that is true on each bar the chosen fan rule holds -- ready to wire into a filter, entry, or exit gate.

Gann Fan Interpretor turns a Gann fan into a simple yes/no signal you can act on. It reads the fan rays and a price series, then answers one question each bar -- is price above or below a chosen ray, is it riding the main 1x1 line, or did it just break below it?

Gann Fan Interpretor overview diagram

How it works

Wire the fan bundle into 'fan' and a price series (like market.close) into 'price'; the mode picker chooses the rule and the interpretor outputs a per-bar BOOL. above_ray and below_ray test price against the ray named by ray_index, ride_1x1 fires while price holds at or above the 1x1 line within tolerance, and break_1x1 fires on the single bar price crosses below the 1x1 after riding it.

Modes

Above rayabove_ray

Gates true on each bar price is above the ray named by ray_index.

Above ray diagram

When to use: Confirm bullish control while price stays above a chosen fan line.

Below raybelow_ray

Gates true on each bar price is below the ray named by ray_index.

Below ray diagram

When to use: Confirm bearish control while price stays beneath a chosen fan line.

Ride 1x1ride_1x1

Fires while price holds at or above the main 1x1 (45-degree) line within tolerance.

Ride 1x1 diagram

When to use: Only allow trend-following entries while price is riding the central 1x1 line.

Break 1x1break_1x1

Fires on the single bar price crosses below the 1x1 line after riding it -- a trend-failure trigger.

Break 1x1 diagram

When to use: Exit or reverse the moment price loses the 1x1 line.

Configuration

modeenum

Which fan rule to evaluate: above_ray or below_ray (price versus the chosen ray), ride_1x1 (price holding the 1x1 line), or break_1x1 (the bar price breaks below the 1x1).

Choices:above_raybelow_rayride_1x1break_1x1
ray_indexscalar

Which of the 9 rays to test price against in above_ray or below_ray mode; 0 is the canonical 1x1 (45-degree) ray.

ray_index diagram
tolerancescalar

The maximum distance from the 1x1 line allowed in ride_1x1 and break_1x1 modes; 0.0 means exactly on the line, larger values admit a band around it.

tolerance diagram

Connects to

Reads from
Feeds into

Examples

  • Use ride_1x1 mode as a filter so long trades are only allowed while price holds the 1x1 line.
  • Use break_1x1 mode as the trigger to exit or reverse the moment price drops below the 1x1.

Common mistakes

  • Leaving tolerance at 0.0 for ride_1x1, which demands price sit exactly on the line and almost never fires -- widen it to admit a small band.
  • Wiring a price series from a different symbol or timeframe than the upstream fan, so the comparison is meaningless.

See also