Gann Fan Master – Selectable Base Angle & Fibonacci Angles
Aug 9, 2025

The Gann Fan Master – Selectable Base Angle & Fibonacci Angles indicator provides a comprehensive tool for plotting customized Gann Fans based on user-defined anchor points. It allows traders to define precise trend slopes using two points (A1 and B1) and offers extensive flexibility with selectable base angles, Fibonacci levels, and custom user-defined angles.
Usage
The script is designed for manual chart analysis. To begin, the user must set two anchor points: A1 (Start) and B1 (Slope Definition). These points can be selected via the settings menu or by clicking on the chart when the "confirm" attribute is active.
The fan's slope is determined by the relationship between these two points and the chosen Base Angle (8/1, 1/1, or 1/8). Once the base slope is established, the indicator draws multiple rays corresponding to Gann ratios, Fibonacci levels, or custom inputs.
Users can toggle between Linear and Logarithmic calculation modes. The logarithmic mode is particularly useful for assets with exponential growth, such as cryptocurrencies or high-growth stocks, ensuring that the angles remain geometrically consistent on log charts.
Details
The indicator calculates the base slope using the following formulas:
- Linear scale: slope = (Price B1 − Price A1) / Time Difference / Base Angle Value
- Logarithmic scale: slope = (ln(Price B1) − ln(Price A1)) / Time Difference / Base Angle Value
Each enabled angle is projected from anchor point A1 and can be extended into the future by a user-specified number of bars. The color of the fan lines automatically adjusts based on direction—green for upward trends and red for downward trends—unless a custom color override is enabled.
Settings
Fan Input Data
- Enable Fan: Master switch to show or hide the drawing.
- A1 Time/Price: The starting anchor point of the Gann Fan.
- B1 Time/Price: The second anchor point used to define the slope.
- Extend Fan (Bars): The number of bars to project the fan lines forward.
- Use Custom Fan Color: Overrides the automatic trend-based coloring.
- Logarithmic Fan Calculation: Toggles between linear and log-scale slope math.
Block Enable/Disable
- Enable Main Angles: Toggles the standard Gann geometric angles (1/8 to 8/1).
- Enable Fibonacci Angles: Toggles angles based on Fibonacci ratios (0.214 to 1.618).
- Enable Custom Angles: Toggles the set of 10 user-defined angle inputs.
Specific Angle Groups
- Base Angle: Selects the primary reference angle (8/1, 1/1, or 1/8).
- Main Angles: Individual toggles for standard Gann ratios.
- Fibonacci Angles: Individual toggles for specific Fibonacci-based retracement and extension levels.
- Custom Angles: Ten numeric inputs to define specific slopes not covered by standard sets.
FAQ
How do I adjust the anchor points? You can set the A1 and B1 points by opening the indicator settings and manually entering the time and price, or by using the interactive "confirm" feature to click specific points on your chart.
When should I use the Logarithmic Fan Calculation? The logarithmic setting should be used when viewing charts on a log scale, typically for long-term analysis of assets with significant price appreciation where linear slopes would appear distorted.
How can I access this indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.