Double tops/bottoms look obvious in hindsight but are hard to automate because pivots…

MQL5 Algo Trading, @mql5dev

Open in Telegram
#4230Photo

Double tops/bottoms look obvious in hindsight but are hard to automate because pivots, necklines, and tolerances are often subjective. This article turns the pattern into a deterministic contract suitable for MT5 Strategy Tester. The MQL5 design confirms swing pivots using a fixed left/right bar window, then pairs two same-type pivots only if their prices match within a tolerance scaled by pattern height. The neckline is strictly the opposite pivot between peaks, with spacing, leg-balance, and optional prior-trend filters to reject noisy shapes. A small state machine manages progression from detection to entry: arm the setup, trigger on a close through the neckline or wait for a retest, then invalidate on extreme breach or timeout. Risk rules are explicit: stop beyond the paired extreme with buffer, targets via measured-move or reward-to-risk, opti... 👉 Read | Freelance | @mql5dev

Open in Telegram
Views8,050−11%vs avg
Forwards7
Reactions34
Comments—

Views growth

Hours after publication

Show as table
Hours after publicationViews
0 h0
28 h7,200
45 h8,050
  1. After 24 hours7,200
  2. Total to date8,050

More from MQL5 Algo Trading

  1. 01
    Views12.5K
    Forwards5
    Reactions34
    Comments—
  2. 02
    Views12K
    Forwards6
    Reactions40
    Comments—
  3. 03
    Views11.3K
    Forwards5
    Reactions31
    Comments—
  4. 04
    Views11.1K
    Forwards5
    Reactions29
    Comments—
  5. 05
    Views10.6K
    Forwards4
    Reactions27
    Comments—

All posts of MQL5 Algo Trading