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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

