AFDSA Trading Guide
Last updated: July 22, 2026
The Alligator + Fractals + DB + Squat (AFDSA) is a quantitative technical analysis tool. AFDSA: Alligator + Fractals + Divergent Bars (DB) + Squat/Fake/Green + AO (calc) Converted to v2.0 Golden Standard O(1) Architecture
What does the indicator show?
- Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
- BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
- Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.
Key Settings
- Alligator MA (
alligatorMaType): Controls the calculation period and sensitivity for market detection. - Alligator Source (
alligatorSource): Controls the calculation period and sensitivity for market detection. - Jaw Length (
jawLength): Controls the calculation period and sensitivity for market detection. - Teeth Length (
teethLength): Controls the calculation period and sensitivity for market detection. - Lips Length (
lipsLength): Controls the calculation period and sensitivity for market detection. - Jaw Offset (
jawOffset): Controls the calculation period and sensitivity for market detection. - Teeth Offset (
teethOffset): Controls the calculation period and sensitivity for market detection. - Lips Offset (
lipsOffset): Controls the calculation period and sensitivity for market detection. - Fractals Periods (n) (
fractalPeriods): Controls the calculation period and sensitivity for market detection. - Fractals Filter (
fractalFilter): Controls the calculation period and sensitivity for market detection. - DB Filter (
dbFilter): Controls the calculation period and sensitivity for market detection. - AO MA (
aoMaType): Controls the calculation period and sensitivity for market detection. - AO Fast (
aoFast): Controls the calculation period and sensitivity for market detection. - AO Slow (
aoSlow): Controls the calculation period and sensitivity for market detection. - Color Candles (Tint) (
colorCandles): Controls the calculation period and sensitivity for market detection. - HL/AO Lookback (
lookback): Controls the calculation period and sensitivity for market detection. - Show Highest/Lowest Levels (
showHighLowLevels): Controls the calculation period and sensitivity for market detection. - Show MIN/MAX AO Label (
showAoMinMaxLabel): Controls the calculation period and sensitivity for market detection. - Show Jaw (
showJaw): Controls the calculation period and sensitivity for market detection. - Show Teeth (
showTeeth): Controls the calculation period and sensitivity for market detection. - Show Lips (
showLips): Controls the calculation period and sensitivity for market detection. - Show Fractals (
showFractals): Controls the calculation period and sensitivity for market detection. - Show Divergent Bars (DB) (
showDb): Controls the calculation period and sensitivity for market detection. - Show Crossing Lips Markers (
showCrossing): Controls the calculation period and sensitivity for market detection. - Show Super Entry/Exit Markers (
showSuperSignals): Controls the calculation period and sensitivity for market detection. - Show Candle Tint Overlay (
showCandleTint): Controls the calculation period and sensitivity for market detection. - Jaw (
jaw): Controls the calculation period and sensitivity for market detection. - Teeth (
teeth): Controls the calculation period and sensitivity for market detection. - Lips (
lips): Controls the calculation period and sensitivity for market detection. - AO (
ao): Controls the calculation period and sensitivity for market detection. - AO Change (
aoChange): Controls the calculation period and sensitivity for market detection. - Alligator Up (Open) (
alligatorUp): Controls the calculation period and sensitivity for market detection. - Alligator Down (Open) (
alligatorDown): Controls the calculation period and sensitivity for market detection. - Up Fractal (pivot, filtered) (
upFractal): Controls the calculation period and sensitivity for market detection. - Down Fractal (pivot, filtered) (
downFractal): Controls the calculation period and sensitivity for market detection. - Up Fractal (pivot, raw) (
upFractalRaw): Controls the calculation period and sensitivity for market detection. - Down Fractal (pivot, raw) (
downFractalRaw): Controls the calculation period and sensitivity for market detection. - Up Fractal (confirm) (
upFractalSignal): Controls the calculation period and sensitivity for market detection. - Down Fractal (confirm) (
downFractalSignal): Controls the calculation period and sensitivity for market detection. - Bull Divergent Bar (
bullDb): Controls the calculation period and sensitivity for market detection. - Bear Divergent Bar (
bearDb): Controls the calculation period and sensitivity for market detection. - Bull DB (Strict) (
bullDbStrong): Controls the calculation period and sensitivity for market detection. - Bear DB (Strict) (
bearDbStrong): Controls the calculation period and sensitivity for market detection. - Squat Bar (
squat): Controls the calculation period and sensitivity for market detection. - Fake Bar (
fake): Controls the calculation period and sensitivity for market detection. - Green Bar (
green): Controls the calculation period and sensitivity for market detection. - Crossing Lips Up (
crossingUp): Controls the calculation period and sensitivity for market detection. - Crossing Lips Down (
crossingDown): Controls the calculation period and sensitivity for market detection. - Breakout Fractal Up (
breakoutFractalUp): Controls the calculation period and sensitivity for market detection. - Breakout Fractal Down (
breakoutFractalDown): Controls the calculation period and sensitivity for market detection. - Super Entry Long (
entryLong): Controls the calculation period and sensitivity for market detection. - Super Entry Short (
entryShort): Controls the calculation period and sensitivity for market detection. - Super Exit Long (
exitLong): Controls the calculation period and sensitivity for market detection. - Super Exit Short (
exitShort): Controls the calculation period and sensitivity for market detection. - Highest Price (Lookback) (
highestPrice): Controls the calculation period and sensitivity for market detection. - Lowest Price (Lookback) (
lowestPrice): Controls the calculation period and sensitivity for market detection. - MAX AO (Lookback) (
highestAo): Controls the calculation period and sensitivity for market detection. - MIN AO (Lookback) (
lowestAo): Controls the calculation period and sensitivity for market detection. - Trend Up (Lookback) (
trendUpLookback): Controls the calculation period and sensitivity for market detection. - Crossing Lips Up (
crossingUp): Controls the calculation period and sensitivity for market detection. - Crossing Lips Down (
crossingDown): Controls the calculation period and sensitivity for market detection. - Up Fractal (Confirm) (
upFractalSignal): Controls the calculation period and sensitivity for market detection. - Down Fractal (Confirm) (
downFractalSignal): Controls the calculation period and sensitivity for market detection. - Bull Divergent Bar (
bullDb): Controls the calculation period and sensitivity for market detection. - Bear Divergent Bar (
bearDb): Controls the calculation period and sensitivity for market detection. - Breakout Fractal Up (
breakoutFractalUp): Controls the calculation period and sensitivity for market detection. - Breakout Fractal Down (
breakoutFractalDown): Controls the calculation period and sensitivity for market detection. - Super Entry Long (
entryLong): Controls the calculation period and sensitivity for market detection. - Super Entry Short (
entryShort): Controls the calculation period and sensitivity for market detection. - Super Exit Long (
exitLong): Controls the calculation period and sensitivity for market detection. - Super Exit Short (
exitShort): Controls the calculation period and sensitivity for market detection. - Alligator Up (Open) (
alligatorUp): Controls the calculation period and sensitivity for market detection. - Alligator Down (Open) (
alligatorDown): Controls the calculation period and sensitivity for market detection. - AO (
ao): Controls the calculation period and sensitivity for market detection.
How to use Strategy Parameters (Condition Source)
Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.
1. Signal Events
upFractal- Up Fractal (pivot, filtered) event signal.downFractal- Down Fractal (pivot, filtered) event signal.upFractalRaw- Up Fractal (pivot, raw) event signal.downFractalRaw- Down Fractal (pivot, raw) event signal.upFractalSignal- Up Fractal (confirm) event signal.downFractalSignal- Down Fractal (confirm) event signal.bullDb- Bull Divergent Bar event signal.bearDb- Bear Divergent Bar event signal.bullDbStrong- Bull DB (Strict) event signal.bearDbStrong- Bear DB (Strict) event signal.squat- Squat Bar event signal.fake- Fake Bar event signal.green- Green Bar event signal.crossingUp- Crossing Lips Up event signal.crossingDown- Crossing Lips Down event signal.breakoutFractalUp- Breakout Fractal Up event signal.breakoutFractalDown- Breakout Fractal Down event signal.entryLong- Super Entry Long event signal.entryShort- Super Entry Short event signal.exitLong- Super Exit Long event signal.exitShort- Super Exit Short event signal.crossingUp- Crossing Lips Up event signal.crossingDown- Crossing Lips Down event signal.upFractalSignal- Up Fractal (Confirm) event signal.downFractalSignal- Down Fractal (Confirm) event signal.bullDb- Bull Divergent Bar event signal.bearDb- Bear Divergent Bar event signal.breakoutFractalUp- Breakout Fractal Up event signal.breakoutFractalDown- Breakout Fractal Down event signal.entryLong- Super Entry Long event signal.entryShort- Super Entry Short event signal.exitLong- Super Exit Long event signal.exitShort- Super Exit Short event signal.
2. Filters and Trade Levels
alligatorMaType- Alligator MA value used for structural qualification or thresholds.alligatorSource- Alligator Source value used for structural qualification or thresholds.jawLength- Jaw Length value used for structural qualification or thresholds.teethLength- Teeth Length value used for structural qualification or thresholds.lipsLength- Lips Length value used for structural qualification or thresholds.jawOffset- Jaw Offset value used for structural qualification or thresholds.teethOffset- Teeth Offset value used for structural qualification or thresholds.lipsOffset- Lips Offset value used for structural qualification or thresholds.fractalPeriods- Fractals Periods (n) value used for structural qualification or thresholds.fractalFilter- Fractals Filter value used for structural qualification or thresholds.dbFilter- DB Filter value used for structural qualification or thresholds.aoMaType- AO MA value used for structural qualification or thresholds.aoFast- AO Fast value used for structural qualification or thresholds.aoSlow- AO Slow value used for structural qualification or thresholds.colorCandles- Color Candles (Tint) value used for structural qualification or thresholds.lookback- HL/AO Lookback value used for structural qualification or thresholds.showHighLowLevels- Show Highest/Lowest Levels value used for structural qualification or thresholds.showAoMinMaxLabel- Show MIN/MAX AO Label value used for structural qualification or thresholds.showJaw- Show Jaw value used for structural qualification or thresholds.showTeeth- Show Teeth value used for structural qualification or thresholds.showLips- Show Lips value used for structural qualification or thresholds.showFractals- Show Fractals value used for structural qualification or thresholds.showDb- Show Divergent Bars (DB) value used for structural qualification or thresholds.showCrossing- Show Crossing Lips Markers value used for structural qualification or thresholds.showSuperSignals- Show Super Entry/Exit Markers value used for structural qualification or thresholds.showCandleTint- Show Candle Tint Overlay value used for structural qualification or thresholds.jaw- Jaw value used for structural qualification or thresholds.teeth- Teeth value used for structural qualification or thresholds.lips- Lips value used for structural qualification or thresholds.ao- AO value used for structural qualification or thresholds.aoChange- AO Change value used for structural qualification or thresholds.alligatorUp- Alligator Up (Open) value used for structural qualification or thresholds.alligatorDown- Alligator Down (Open) value used for structural qualification or thresholds.highestPrice- Highest Price (Lookback) value used for structural qualification or thresholds.lowestPrice- Lowest Price (Lookback) value used for structural qualification or thresholds.highestAo- MAX AO (Lookback) value used for structural qualification or thresholds.lowestAo- MIN AO (Lookback) value used for structural qualification or thresholds.trendUpLookback- Trend Up (Lookback) value used for structural qualification or thresholds.alligatorUp- Alligator Up (Open) value used for structural qualification or thresholds.alligatorDown- Alligator Down (Open) value used for structural qualification or thresholds.ao- AO value used for structural qualification or thresholds.
Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.