OPEN-SOURCE SCRIPT
Atualizado

Fractal_Alligator_AO_AC_Zone_ATR_SMA by PiroozTrader

Fractal_Alligator_Awesome_Accelerator_TradingZone_ATR_SMA Indicator
By: Pirooz_Trader
Version: 2
Date: 08-02-2025

Introduction
The Fractal_Alligator_Awesome_Accelerator_ATR_SMA indicator is a powerful and comprehensive trading tool designed for TradingView. It combines multiple technical analysis components, including the Alligator, Fractals, Awesome Oscillator (AO), Accelerator Oscillator (AC), ATR Trailing Stop, and SMA, to provide traders with precise entry and exit signals. This indicator is inspired by the trading strategies outlined in Bill Williams' book, New Trading Dimensions, and has been enhanced with additional features to improve its functionality and accuracy.

The original version of this indicator was created by JustUncleL (available tradingview.com/script/BVfxBFsd-Fractal-and-Alligator-Alerts-by-JustUncleL/). I have expanded its capabilities by adding new features such as the ATR Indicator, SMA Indicator, Awesome Oscillator, Accelerator Oscillator, and Zone Trading. These additions make the indicator more versatile and suitable for a wider range of trading strategies.
-------------------------------------------------------------------------------------------------------------
Key Features

1. Alligator Indicator
The Alligator consists of three lines: Jaw, Teeth, and Lips, which are calculated using Smoothed Moving Averages (SMMA).
These lines help identify the market trend:

  1. Bullish Trend
: Lips > Teeth > Jaw

  1. Bearish Trend
: Lips < Teeth < Jaw

  1. Consolidatio
n: Lines are intertwined

2. Fractals
Fractals are used to identify potential reversal points in the market.
Two primary strategies are implemented:

  • Fractal Reversal
: Detects trend reversals based on fractal formations and their position relative to the Alligator lines.

  • Fractal Breakout
: Identifies breakout opportunities when price moves beyond fractal levels.

3. Awesome Oscillator (AO)
The AO measures the difference between two SMAs (fast and slow) to gauge market momentum.
It provides insights into the strength of the trend:

  • AO > 0 and Rising
: Bullish momentum

  • AO < 0 and Falling
: Bearish momentum

4. Accelerator Oscillator (AC)
The AC measures the acceleration or deceleration of the AO.
It confirms the strength of the momentum:

  • AC > 0 and Rising
: Strong bullish momentum

  • AC < 0 and Falling
: Strong bearish momentum

5. ATR Trailing Stop
The ATR Trailing Stop uses the Average True Range (ATR) to calculate a dynamic stop-loss level.
It helps traders protect profits and manage risk by adjusting the stop-loss based on market volatility.

6. SMA (Simple Moving Average)
A customizable SMA (default length: 200) is included to identify long-term trends.
It serves as a trend filter to confirm signals generated by other components.

7. Zone Trading
The indicator includes a unique Zone Trading feature that colors candles based on the alignment of the AO and AC:

  • Green Zone
: Both AO and AC are green (bullish momentum).

  • Red Zone
: Both AO and AC are red (bearish momentum).

  • Gray Zone
: AO and AC have conflicting signals (neutral or indecision).
-------------------------------------------------------------------------------------------------------------
How It Works
The indicator integrates multiple components to generate high-probability trading signals:
- Trend Identification: The Alligator and SMA help identify the overall market trend.
- Momentum Confirmation: The AO and AC confirm the strength and direction of the momentum.
- Reversal and Breakout Signals: Fractals are used to detect potential reversals and breakouts.
- Risk Management: The ATR Trailing Stop ensures that traders can manage risk effectively.
- Visual Clarity: The Zone Trading feature provides a clear visual representation of market conditions.
-------------------------------------------------------------------------------------------------------------
Trading Signals
The indicator generates three main types of signals:
1. Fractal Reversal
. Triggered when a fractal forms and price shows reversal conditions relative to the Alligator lines.
. Ideal for identifying trend reversals.
2. Fractal Breakout
. Triggered when price breaks through a fractal level, confirming a potential trend continuation.
. Suitable for breakout trading strategies.
3. Awesome Breakout
. Triggered when the AO confirms strong momentum (e.g., AO > 0 and rising) and price crosses the Lips line.
. Designed for momentum-based trading.
-------------------------------------------------------------------------------------------------------------
Customization Options

The indicator offers extensive customization, allowing traders to:
  • Show or hide specific components (e.g., Alligator, Fractals, AO, AC, ATR, SMA).
  • Adjust parameters for each component (e.g., lengths, offsets, multipliers).
  • Enable or disable alerts for specific signals.

-------------------------------------------------------------------------------------------------------------
Alerts
The indicator includes pre-configured alerts for:
  • Fractal Reversal (Long/Short)
  • Fractal Breakout (Long/Short)
  • Awesome Breakout (Long/Short)

-------------------------------------------------------------------------------------------------------------
Disclaimer
This indicator is provided for educational and informational purposes only. It should not be considered financial advice. Trading involves significant risk, and you should only trade with money you can afford to lose. The creator of this indicator is not responsible for any losses incurred as a result of using this tool.
-------------------------------------------------------------------------------------------------------------
Credits
  • Original concept by JustUncleL (TradingView Profile).
  • Inspired by Bill Williams' book, New Trading Dimensions.
  • Enhanced and expanded by Pirooz_Trader.

-------------------------------------------------------------------------------------------------------------
Feedback
Your feedback is invaluable! If you have any suggestions, questions, or issues, please feel free to share them. Your input will help improve the functionality and accuracy of this indicator.

Happy trading! 🚀
Notas de Lançamento
**v2.0 Update - Color Customization Upgrade**
- Added **16+ color inputs** for full visual customization
- Customize: Alligator lines, Fractals, AO/AC arrows, ATR stops, SMA
- Access via Settings → Inputs and Style tabs
- Preserves original logic while enhancing visual flexibility
- No code editing required - customize directly from UI
Notas de Lançamento
**Indicator Update Summary**

**v2.1 Update - Cleaner Display & Enhanced Readability**
- Reduced unnecessary numeric values on lines and shapes (e.g., fractals) for a cleaner chart.
- Added **AO (Awesome Oscillator)** and **AC (Accelerator Oscillator)** values next to the indicator name for quick reference.
- Improved visual clarity while maintaining all core functionalities.
Notas de Lançamento
AO and AC values are shown in indicator status line

Aviso legal