VI

Robot Forex Supertrend

EA that opens trades by Supertrend: direction flip (default), pullback to the line, EMA 200 filter, stop loss and trailing along the Supertrend line, draws the line and a panel on the chart.

Robot Forex MT4MT5 GD-8808v1.0 Lifetime 7-day trial 23/11/2026
Supertrend 10, 3.0 · H1–Supertrend trendUp (green line)Supertrend line (candle 1)2644.620Distance from price5180 pointLast direction flip6 candles agoEMA 200No filterDirection flipOnPullback to the lineOffStop loss · line trailingAt the lineOpen positionBUY 1 · SELL 0Waiting for a Supertrend signal on H109:00 Opened BUY on H1: Supertrend turned up
The EA panel on the MetaTrader chart (sample data, default inputs). Values come from the candle that just closed. The panel can be dragged; click the top-right button to collapse it.
GD-8808 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
01Stop Loss in points (0 = none)
01Buffer beyond the Supertrend line (point)
01Take Profit (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========================================SUPERTREND SETTINGS
01ATR period
½ATR multiplier
Draw the Supertrend line on the chart
ab========================================ENTRY SCENARIOS
Direction flip: green BUY, red SELL
Pullback to the line: touch the line and bounce
01Pullback: max distance from the line (point)
EMA filter: BUY above EMA, SELL below EMA
01Filter EMA period
Trade direction
ab========================================BREAKEVEN AND TRAILING STOP
Trailing along the Supertrend line
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 calculates Supertrend on closed candles of the trading timeframe (default H1, ATR 10, multiplier 3.0). The default setup is the direction flip; pullback to the line and the EMA 200 filter can be added. At most one trade per candle.

BUYSELLBUYSELLBUYSELLBUYSupertrend upSupertrend downEMA 200Entry point
The same price stretch, computed with the exact Supertrend formula, ATR 10, multiplier 3.0, and EMA 200. Choose a setup to view: the small gold dot is the Supertrend line at the signal candle, the large gold dot is where the EA opens the trade at the start of the next candle. The EMA 200 filter keeps only the direction flips on the same side as EMA 200.
  1. 1Direction flip

    Default setup. The line changes colour when the close breaks right through the ATR band, often the start of a new trend leg.

    • BUYLine turns from red to green
    • SELLLine turns from green to red
  2. 2Pullback to the line

    Adds trades with the trend when price pulls back close to the Supertrend line and bounces.

    • BUYGreen line, candle low near the line, bullish candle
    • SELLRed line, candle high near the line, bearish candle
  3. 3EMA 200 filter

    A common filter for all setups, trading only on the side of the bigger trend.

    • BUYClose above EMA 200
    • SELLClose below EMA 200
  • The EA calculates Supertrend from price itself (Wilder ATR, as in the popular Supertrend indicator), so the MT4 and MT5 versions give the same signals, and it draws the line on the chart.
  • By default the stop loss sits just beyond the Supertrend line, 200 points further. Turn on line trailing to let the stop loss follow the line as the trend runs.
  • If on the same candle one setup says BUY and another says SELL, the EA skips that candle.
  • When price moves sideways, Supertrend flips back and forth. Test first and consider the EMA 200 filter or a higher timeframe.
  • Want to see the signals on the chart without auto trading: Supertrend indicator CB-8908 (free).
Direction flip

Supertrend turning from red to green is a BUY, from green to red a SELL. The default setup, catching the start of each trend leg.

Pullback to the line

While the trend runs, price pulling back close to the Supertrend line and bouncing adds a trade with the trend.

EMA 200 filter

A common filter: BUY only above EMA 200, SELL only below, dropping signals against the bigger trend.

Stop loss at the Supertrend line

The stop loss sits just beyond the line plus a buffer, following price structure instead of a fixed number of points.

Line trailing

Turn it on to move the stop loss along the Supertrend line after each candle, holding the trade until the trend reverses.

Line and panel on the chart

The EA draws the green and red Supertrend line. A draggable panel shows the trend, line value, distance from price, last flip and active setups.

Overview

Supertrend Forex Robot (code GD-8808) is an EA for MetaTrader 4 and MetaTrader 5 that opens trades by the Supertrend indicator. Supertrend is an ATR-based trend line: while price stays above the green line the trend is up; when a close breaks the line it turns into a red line and the trend is down. It is one of the most used trend indicators on gold because it is easy to read and gives a ready-made stop loss level.

The EA has 3 setups, each switched on or off: direction flip (default), pullback to the line and the EMA 200 filter. By default the stop loss sits just beyond the Supertrend line; turn on line trailing to let it follow the trend. The EA calculates Supertrend from price and draws the line itself, no extra indicator needed. Signals always come from closed candles, so they do not repaint mid-candle.

Default settings are made for gold XAUUSD. On brokers quoting gold with 3 decimals (for example 2650.125), 1 gold price unit = 1000 points: a 5000-point take profit is 5 price units. With 2 decimals, 1 unit = 100 points, so divide the point inputs by 10.

Example with default inputs on H1: the Supertrend line is red at 2652.400. The 08:00 candle closes at 2653.100, above the line, so the line turns green at 2644.620. At 09:00 the EA opens a 0.01 lot BUY at about 2653.200, stop loss 2644.420 (200 points below the line), take profit 5000 points from entry.

The panel on the chart shows the Supertrend trend, the line value of the last closed candle, the distance from price to the line, the last flip, the EMA filter state, active setups and open trades. One file covers both the 7-day demo trial and live trading with a licence. Every trade carries the comment "www.HoangTrong.com" and the product's own magic number.

Changelog

Version 1.023/11/2026

First release of Supertrend Forex Robot.

  • Direction flip
  • Pullback to the line
  • EMA 200 filter
  • Stop loss at the Supertrend line
  • Line trailing
  • Line and panel on the chart

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 Supertrend Forex Robot

Other products from HoangTrong.com

View all products
CB-8908IndicatorsMT4MT5

Supertrend Indicator

Draws a green, red Supertrend line following the trend, draws BUY, SELL arrows when the line flips or price pulls back to the line, EMA 200 filter and phone notifications.

  • Green, red Supertrend line
  • Arrows on flips and pullbacks to the line
  • 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.