OPEN-SOURCE SCRIPT
AB=CD Fibonacci Strategy (One Trade at a Time)

AB=CD Fibonacci Strategy - Harmonic Pattern Trading Bot
Description
An automated trading strategy that identifies and trades the classic AB=CD harmonic pattern, one of the most reliable geometric price formations in technical analysis. This strategy detects perfectly proportioned Fibonacci retracement setups and executes trades with precise risk-reward management.
How It Works
The indicator scans for the AB=CD pattern structure:
Leg AB: Initial swing from pivot point A to pivot point B
Leg BC: Retracement to point C (customizable Fibonacci levels)
Leg CD: Mirror projection equal to the AB leg length
When price touches point D, the strategy automatically enters a position with predefined take-profit and stop-loss levels based on your risk-reward ratio.
Key Features
One Trade at a Time: Ensures disciplined position management by allowing only one active trade per pattern
Customizable Fibonacci Retracement: Set your preferred retracement range for point C (default 50% - 78.6%)
Risk-Reward Control: Adjust stop-loss and take-profit multiples to match your trading plan
Visual Pattern Display: Clear labeling of A, B, C, D points with pattern lines for easy identification
Both Directions: Identifies bullish and bearish AB=CD patterns automatically
Ideal For
Swing traders on higher timeframes (4H, Daily, Weekly)
Harmonic pattern traders seeking automation
Traders wanting precise entry and exit rules based on Fibonacci geometry
Those looking to reduce emotional trading and increase consistency
Default Settings Optimized For
NASDAQ futures and currency pairs
Medium timeframe analysis
Conservative risk management (10% position size per trade)
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。