OPEN-SOURCE SCRIPT

Gann Architect

115
The Gann Architect is a quantitative geometric engine designed to solve the primary limitation of standard Gann tools: Scaling.

Standard Gann Fans use fixed angles (e.g., 45 degrees for 1:1), which often fail when applied to volatile assets or different timeframes because they do not account for the specific price-to-time ratio of the asset. This indicator solves this by calculating a Dynamic Slope. It identifies the initial "Impulse Phase" (Anchor Low → First Major High) and mathematically "squares" the chart to fit that specific market structure.

Key Features

Dynamic Squaring: Automatically calculates the true 1:1 Master Line based on the asset's actual volatility, not an arbitrary angle.

Quantitative Alerts: Includes a built-in alert system. You can set alerts for "Crossed 1:1" (Trend Break), "Structural Fail 1:2" (Support Break), or "Impulse Breakout 2:1".

Real-Time Data Panel: A dashboard displays the exact price targets for the geometric levels, removing the need to eyeball the lines.

Efficiency: Uses a circular buffer memory system to ensure high performance ("100% potential") without slowing down your chart.

How to Use

This tool is designed as a Trend Following & Structure Map, not a reversal signal.

The 1:1 Line (Solid): This represents the "True Trend." In a strong bullish phase, price should respect this line as dynamic support. A confirmed close below this line often signals momentum loss.

The 1:2 Line (Bottom Support): This acts as the "Structural Floor." If price loses the 1:1 but holds the 1:2, it is considered a healthy correction. A break below the 1:2 typically invalidates the geometric structure of the current cycle.

The 2:1 Line (Top Resistance): This marks the "Impulse Zone." A break above this line suggests parabolic or over-extended behaviour.

Settings

Cycle Stiffness: Controls the sensitivity of the pivot detection. Increase this value (e.g., to 4 or 5) to filter out noise and focus on macro trends.

Anchor Pivot #: Allows you to select which historical cycle bottom to anchor the geometry to (1 = most recent confirmed bottom).

Slope Multiplier: Adjusts the aggressiveness of the fan. Default is 1.0 (Geometric Standard).

Technical Disclosure (Repainting & Lag)

This script utilises a Confirmed Pivot Detection system.

Signal Lag: To ensure reliability, the geometric fans anchor to confirmed pivots. A pivot is only confirmed after Right Length bars have passed. Therefore, the fans will appear on the chart with a slight delay relative to the absolute low.

Repainting: Once a pivot is confirmed and the fans are drawn, the lines for that specific cycle do not repaint history. However, if a new, lower low forms that invalidates the previous structure, the script will dynamically shift to the new anchor point to maintain geometric accuracy.

Disclaimer This script is for educational and experimental purposes only. Geometric analysis is a mapping tool, not a guarantee of future price action. Always use proper risk management. Past performance of geometric levels does not guarantee future results.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。