VI

Double Top, Double Bottom Forex Robot

EA finds double top (M), double bottom (W) patterns and the neckline itself: enters when price breaks the neckline (default), retests the neckline or early at the second top, bottom; stop loss beyond the pattern's top, bottom, take profit by the pattern height.

Robot Forex MT4MT5 GD-8823v1.0 Lifetime 7-day trial 24/11/2026
Double top, double bottom · H1–Latest patternDouble bottom (W)Neckline2642.448Pattern bottom2635.243Height7.205StatusNeckline brokenNeckline breakOnNeckline retestOffEarly at 2nd top, bottomOffOpen positionBUY 1 · SELL 0Waiting for pattern signal on H116:00 Opened BUY: double bottom neckline break
EA panel on the MetaTrader chart (illustrative figures, default settings). The panel is draggable; click the top-right button to collapse it.
Companion indicator, free
GD-8823 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic number (per product code)
01Max spread to open orders (points, 0 = no limit)
abTrading hours (server time), separate ranges with commas
Timeframe
ab========================================ORDER SETTINGS
½Volume (lot)
Stop loss
01Extra distance beyond the pattern's top, bottom (points)
01Stop Loss in points (0 = none)
½ATR stop loss: ATR 14 multiplier
Take profit
½R:R ratio (take profit = ratio x stop distance)
01Take Profit in points (0 = none)
01Min distance between 2 same-direction orders (points, 0 = no limit)
Close opposite orders on a new signal
ab========================================ORDER LIMITS
01Max total BUY + SELL orders (0 = no limit)
01Max BUY orders (0 = no limit)
01Max SELL orders (0 = no limit)
At most 1 order per candle (of the timeframe)
ab========================================DOUBLE TOP, DOUBLE BOTTOM SETTINGS
01Candles on each side to confirm a high/low
01Minimum distance between 2 tops, 2 bottoms (candles)
01Maximum distance between 2 tops, 2 bottoms (candles)
½Maximum difference between 2 tops, 2 bottoms: ATR 14 multiplier
½Minimum pattern height: ATR 14 multiplier
01Maximum candles from the 2nd top, bottom to the neckline break
01Retest: maximum candles after the neckline break
Draw patterns on the chart
ab========================================ENTRY SCENARIOS
Neckline break: candle closes beyond the neckline (double bottom BUY, double top SELL)
Retest: neckline broken, price comes back to touch it and closes in the break direction
Early entry: reversal candle right at the 2nd bottom BUY (2nd top SELL)
Trade direction
ab========================================BREAKEVEN AND TRAILING STOP
Move Stop Loss to breakeven
01When the order is in profit by (points)
01Stop Loss beyond entry price (points, to cover costs)
Trailing Stop: Stop Loss follows price
01Start when the order is in profit by (points)
01Keep Stop Loss away from price (points)
01Minimum step (points)
ab========================================OTHER SETTINGS
Phone notification when orders open / close
LoadSave

How the EA works

The EA finds double bottom (W) and double top (M) patterns itself on closed candles of the entry timeframe (default H1). Price failing twice to get through a level is a reversal sign; the neckline is the confirmation level.

SELLBUYSELLBUYBUYDouble bottom (W)Double top (M)Entry point
The same H1 price segment, patterns found exactly as the EA does. Choose a scenario to see where the EA enters: green lines are double bottoms (W), red lines double tops (M), joining bottom 1, the neckline peak and bottom 2; the dashed gold line is the neckline. The gold dot is the entry at the open of the candle after the signal candle.

Entry scenarios

  • 1. Neckline breakDefault: YES
    • BUYClose above a double bottom neckline
    • SELLClose below a double top neckline
  • 2. RetestDefault: NO
    • BUYNeckline broken, price touches it again and bounces up
    • SELLNeckline broken, price touches it again and turns down
  • 3. Early entryDefault: NO
    • BUYStrong bullish candle right at bottom 2
    • SELLStrong bearish candle right at top 2

When there is a signal

  1. 1Check conditions

    A new order opens only when all of these hold.

    • Within 00:00 - 23:59 (server time), spread no more than 250 points
    • Fewer than 10 orders, at most 5 BUY and 5 SELL
    • At most 1 order per H1 candle
  2. 2Open the order

    Stop loss beyond the pattern's top, bottom, take profit by the pattern height.

    • Volume 0.01 lot
    • BUY stop loss below the lower of the 2 bottoms, SELL above the higher top, plus 100 points
    • Take profit at exactly the pattern height from the neckline
  3. 3Close trades

    Trades close at the stop loss or take profit set.

    • Break even and Trailing Stop can be added if you want
    • Close opposite trades on a new signal: turn on if wanted
  • The EA finds and draws the latest pattern and its neckline on the chart. Signals are taken on closed candles.
  • Neckline break is the most reliable; retest gives a better entry price but price sometimes doesn't come back; early entry has the best price but the pattern is not yet confirmed.
  • To see patterns and signals on the chart without automatic trading: Double Top, Double Bottom indicator CB-8923 (free).
Finds M, W patterns itself

The EA finds roughly equal double tops, double bottoms and the neckline between them, no manual drawing needed.

Clear pattern filter

The two tops, bottoms differ by no more than 0.5 ATR, height at least 1.5 ATR, 5 to 50 candles apart.

Neckline break

The classic entry: when a candle closes beyond the neckline, enter in the reversal direction.

Retest, early entry

Turn on to enter when price comes back to the neckline, or early right at the second top, bottom.

Pattern-based targets

Stop loss beyond the pattern's top, bottom, take profit at exactly the pattern height from the neckline.

Pattern drawing, chart panel

The EA draws the latest pattern and its neckline; a draggable panel shows the neckline, height, status and open orders.

Overview

Double Top, Double Bottom Forex Robot (code GD-8823) is an EA for MetaTrader 4 and MetaTrader 5 that trades double top (M) and double bottom (W) patterns. The EA finds roughly equal tops or bottoms and the neckline between them, then enters when the pattern is confirmed.

There are 3 scenarios, each switched on or off separately: neckline break (default), neckline retest and early entry at the second top, bottom. Stop loss is placed beyond the pattern's top, bottom, take profit at exactly the pattern height from the neckline.

Default settings are made for gold XAUUSD. On brokers quoting gold with 3 decimals (e.g. 2650.125), 1 gold price unit = 1000 points: an extra 100 points beyond the low is 0.1. On brokers with 2 decimals, 1 unit = 100 points, so divide point settings by 10.

Example with default settings on H1: the two bottoms are 16 candles apart, the lower bottom is 2635.243, the neckline 2642.448, height 7.205. The 15:00 candle closes at 2643.370, above the neckline. At 16:00 the EA opens a BUY 0.01 lot at about 2643.370, stop loss 2635.143 (100 points below the bottom), take profit 2649.653 (neckline plus height).

The chart panel shows the latest pattern, neckline, pattern bottom or top, height, status, active scenarios and open orders. A single file runs as a 7-day trial on demo accounts and live with a license. Every order carries the comment "www.HoangTrong.com", default Magic number 8823.

Changelog

Version 1.024/11/2026

First release of Double Top, Double Bottom Forex Robot.

  • Finds M, W patterns itself
  • Clear pattern filter
  • Neckline break
  • Retest, early entry
  • Pattern-based targets
  • Pattern drawing, chart panel

FAQ

Is the trial version different from the full version?

No. Each product has a single file. Without a license it runs for 7 days on a demo account. Buy a license for your account ID and it runs on your live account, no new download needed.

What is WebRequest and why does the EA need it?

WebRequest is the permission that lets an EA connect to an address on the internet. HoangTrong.com EAs use it to activate the license, then check themselves offline. See how to enable WebRequest.

How do I activate the license?

Buy a license for the correct MetaTrader account ID, then click Activation in the EA. You don't need to enter or store any key. After reinstalling, just activate again.

What if I want to use the EA on another account ID?

A license is permanently tied to the account ID it was bought for. To use the EA on another ID, buy an extra ID right on the product page: if you already own the license, each extra ID costs only 100,000 VND.

Multi-account licenses

Extra IDs only 100,000 VND/ID

Each license includes 1 account ID. Each extra ID is only 100,000 VND, for both retail and COMBO prices, valid forever.

  1. What is an account ID?It's your MT4/MT5 login number, shown in MetaTrader and in the email the broker sends when you open the account.
  2. Buy several IDs at onceEnter IDs separated by commas, for example 12345678, 87654321. Up to 20 IDs per order.
  3. Add IDs laterOnce you have a license, come back to this page, enter the new ID and click Buy a license. You're only charged 100,000 VND per ID, not the license price again.
Buying extra IDs: sign in firstSign in with the website account you bought the license with to get the 100,000 VND per ID price. With a different website account, the system cannot see your license and charges the full license price.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID (signed in)

Besides Double Top, Double Bottom Forex Robot

Other products from HoangTrong.com

View all products
CB-8923IndicatorsMT4MT5

Double Top, Double Bottom Indicator

Finds and draws double top (M), double bottom (W) patterns with the neckline, BUY, SELL arrows on neckline break, retest or early entry, sends phone alerts.

  • Draws M, W patterns itself
  • Neckline break, retest, early
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
GD-8801Indicator-basedMT4MT5

RSI Overbought Oversold Forex Robot

The EA opens BUY and SELL orders on RSI signals in the overbought and oversold zones, with built-in stop loss, take profit, break-even and Trailing Stop.

  • 3 RSI entry scenarios, each can be switched on or off
  • Stop loss, take profit, break-even and Trailing Stop
  • Limits on order count, trading hours, spread, 1 order per candle
Retail price500,000 VND
Details
GD-8805Indicator-basedMT4MT5

Multi-Timeframe RSI Forex Robot

EA opens orders on RSI overbought and oversold signals, filters signals with the RSI of 5 timeframes switched on or off separately, multi-timeframe RSI table right on the chart.

  • 3 RSI entry scenarios, same as GD-8801
  • 5 RSI filter timeframes, each with its own inputs and on/off
  • Multi-timeframe RSI table on the chart, unused filters clearly marked
Retail price500,000 VND
Details

Need a different feature?

Order a custom EA built on your strategy, priced per feature.