dogabot dogabot

strategy

Fibonacci Retracement

How Fibonacci retracement levels work, common ratios, and how dogabot’s Fibonacci rule detects entries near key levels.

strategyindicatorsfibonacci

Fibonacci retracement levels mark horizontal price zones where a pullback might stall, based on ratios of a prior swing move.

Formula

From swing high H and swing low L over the lookback window:

Price_r = H − r × (H − L) (pullback in an uptrend)

Common ratios r: 0.236, 0.382, 0.5, 0.618, 0.786

Common levels

dogabot supports these retracement ratios:

LevelTypical role
0.236Shallow pullback
0.382Moderate pullback
0.5Midpoint of swing
0.618“Golden” retracement — popular for entries
0.786Deep pullback

How levels are built

Over a lookback window (default 20 bars), dogabot finds the swing high and low, then projects retracement prices between them. The rule checks whether current price is near a chosen level (within about 0.5%).

How traders use Fibonacci

In dogabot

The Fibonacci rule uses:

Direction logic: retracement ratios ≥ 0.5 lean buy (support); lower ratios lean sell (resistance).

Example

Over 20 bars, swing high $100 and low $80. The 0.618 level is $87.64. If price pulls back to $87.50 (within ~0.5%), the Fibonacci rule with entryLevel 0.618 can fire a support-style buy in an uptrend context.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest