ALGOINDICATEUR
Login Create an account
🤖 Algo AI Trader 🧠 AI Assistant 📡 Algo Signals VIP 💹 Trading

Platform

📈 Markets ⭐ Watchlist 🌍 Market movers

Tools

🧮 Trader calculators 🔄 Converter 📅 Economic calendar 📖 Trading glossary 🎓 Trader academy 📓 Trade journal 🧰 Advanced calculators 📊 Chart patterns ✨ App features

Resources

📰 News ❓ FAQs ℹ️ About 📨 Telegram signals
Create an account Login Become VIP
Trader academy

Stop-loss and targets: the XABCD harmonic

How Algo Signals’ harmonic method places the stop behind point X and the targets as shares of the move to point A, with a worked case, its settings and its safeguards.

Lesson 77 / 96 · 8 min read · Intermediate

A harmonic pattern (Gartley, Bat, Crab, Butterfly…) is a sequence of five points X, A, B, C, D whose proportions follow Fibonacci ratios. Point D is the zone where the pattern foresees a possible reversal. Algo Signals’ harmonic method does not look for a new signal: it places the stop and targets of a trade taken in that zone.

How the levels are calculated

The harmonic indicator spots the latest pattern on confirmed highs and lows and computes its potential reversal zone (the PRZ). When the close enters the PRZ, two reference points are kept: the anchor point (point X for an XABCD pattern) and point A. The other patterns (ABCD, 5-0, Cypher, Shark, three drives) have their own reference points, named the same way in the code. The entry price is the close of the signal candle.

  • Stop: beyond the anchor point, by slMult × ATR (1 ATR by default): below X for a buy, above for a sell.
  • TP1 = entry + fib1 × (A − entry), with fib1 = 0.382 by default: 38.2% of the way to point A.
  • TP2 = entry + fib2 × (A − entry), with fib2 = 0.618 by default: 61.8% of the way to point A.
  • Fallback: if the close is not in a PRZ at that candle, the method switches to the default ATR calculation (1.5 ATR, 1:1, 1:2).
Real case — ETHUSDT, H1, 2026-10-15 17:00 UTC: stop-loss and target levels. Past example, not a forecast.

A worked case

Real case — ETHUSDT, M15, 2026-09-09 15:00 UTC: winning signal, target reached. Past example, not a forecast.

See the effect: zone D is close to X, so the stop is behind X, far from entry, while the Fibonacci shares toward A are modest. With the default values the safeguards often step in: they are what gives this method an acceptable ratio.

Settings and safeguards

  • Stop (slMult): 1 ATR by default, from 0.1 to 10, beyond the anchor point.
  • Share for TP1 (fib1): 0.382 by default, from 0.05 to 3. Share for TP2 (fib2): 0.618 by default, from 0.1 to 5.
  • Pattern detection (harmonic indicator): ratio tolerance 0.05 (from 0 to 0.5), PRZ margin 0.06 (from 0 to 0.5).
  • Safeguards (“guarded” method): stop more than 0.1 ATR away on the losing side; stop cap maxSlAtr (0 = unlimited); TP1 at least 1 times the risk, TP2 at least 2 times the risk and 0.5 risk beyond TP1.

Safeguard mode: mode 1 (default) moves the targets away, as in the example. Mode 2 brings the stop closer: here, the stop becomes about 1.0707 (risk 0.0053), TP1 stays at 1.0813 and TP2 becomes about 1.0867. With the safeguards off, you would get the raw levels, with TP1 closer than the stop.

The pitfalls

Real case — BTCUSDT, M15, 2026-09-22 21:00 UTC: losing signal, stop hit. Past example, not a forecast.

Harmonic patterns are mostly recognized after the fact: on a chart, many sequences of points look like a pattern without price reversing. A stop behind X can also be very far: with no cap (maxSlAtr at 0), the possible loss per trade is large.

Key takeaways

  • Stop 1 ATR behind the anchor point (X); TP1 and TP2 at 38.2% and 61.8% of the way to A.
  • The safeguards often raise TP1 to 1 times the risk and TP2 to 2 times the risk: check the displayed levels.
  • With no active PRZ, the method uses the default ATR.
  • A stop cap (maxSlAtr) limits the possible loss; choose it before trading.
  • Confluence: a harmonic pattern weighs more if it lands on a support or resistance.

📝 Lesson test

Log in to take this lesson’s test. Once you have passed all the tests, you will receive a certificate in your name.

Log in

These lessons are for understanding and are not investment advice. No method guarantees winning.