VI

Robot Forex Keltner Channel

EA trades the Keltner Channel: enters when a squeeze fires (default), when price breaks the channel or pulls back to the middle EMA; stop loss at the opposite channel band, closes when price closes across the middle EMA.

Robot Forex MT4MT5 GD-8820v1.0 Lifetime 7-day trial 24/11/2026
Keltner 20, 2.0 ATR · H1–Upper band2670.227Middle EMA2665.277 · risingLower band2660.327SqueezeNo squeezeClose across middle EMAYesSqueeze bung raOnChannel breakoutOffEMA pullbackOffOpen positionBUY 1 · SELL 0Waiting for a Keltner signal on H115:00 Opened BUY: squeeze fired up (5 candles)
The EA panel on a MetaTrader chart (sample figures, default settings). To see the channel on the chart, also attach indicator CB-8920. The panel can be dragged; click the top-right button to collapse it.
Companion indicator, free
GD-8820 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 band (points)
01Stop Loss in points (0 = none)
½ATR stop loss: ATR 14 multiplier
01Take Profit (points, 0 = none)
Close trades when price closes across the middle EMA
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========================================KELTNER CHANNEL AND SQUEEZE SETTINGS
01Middle EMA period
01Channel ATR period
½Channel width: ATR multiplier
01Bollinger Bands period (for squeeze)
½Bollinger Bands deviation
01Squeeze: consecutive squeeze candles before it fires
01EMA pullback: EMA slope versus N candles back
ab========================================ENTRY SCENARIOS
Squeeze fire: Bollinger inside Keltner then expands, in the candle direction
Channel breakout: close above the upper band BUY, below the lower band SELL
EMA pullback: EMA rising, price touches EMA and closes above BUY (reverse 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 computes the Keltner Channel and Bollinger Bands on closed candles of the trading timeframe (default H1). When Bollinger tucks inside Keltner, price is consolidating; when Bollinger expands out, price tends to run.

BUYSELLBUYSELLSELLBUYBUYSELLSELLKeltner ChannelEMA 20BollingerSqueezeEntry point
The same H1 price segment, computed exactly as the EA does: Keltner Channel 20 EMA plus, minus 2 ATR 10 (bold lines), middle EMA (dashed), Bollinger Bands 20, 2 (faint lines). The gold bands are squeeze candles, when Bollinger sits inside Keltner. Pick a scenario to see where the EA opens trades; the large gold dot is the entry at the start of the candle after the signal candle.

Entry scenarios

  • 1. Squeeze bung raDefault: YES
    • BUYSqueeze ends, bullish candle closes above the EMA
    • SELLSqueeze ends, bearish candle closes below the EMA
  • 2. Channel breakoutDefault: NO
    • BUYCloses above the upper band
    • SELLCloses below the lower band
  • 3. EMA pullbackDefault: NO
    • BUYEMA rising, price touches the EMA and closes above
    • SELLEMA falling, price touches the EMA and closes below

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 at the opposite band, no take profit.

    • Volume 0.01 lot
    • BUY stop loss below the lower band, SELL above the upper band, plus 100 points
  3. 3Close trades

    A close across the middle EMA closes the trade.

    • BUY closes on a candle close below the EMA, SELL on a close above
    • Break even and Trailing Stop can be added if you want
  • The EA computes the channel itself, no indicator needs to be attached. Signals use closed candles.
  • The squeeze suits markets just finishing a consolidation; breakout and EMA pullback suit trending markets.
  • To see the channel, squeeze zones and signals on the chart without auto trading: Keltner Channel indicator CB-8920 (free).
Catches the break after consolidation

When Bollinger tucks inside the Keltner Channel, price is compressing. The EA waits for it to fire and enters in the direction of the breakout candle.

Trend channel breakout

Turn on to enter when price closes outside the upper or lower band.

EMA pullback

Turn on to enter with the trend when price pulls back to the middle EMA and moves on.

Stop loss at the channel band

Stop loss goes beyond the opposite band, wider or tighter with volatility.

Closes itself at the EMA

No fixed take profit: trades stay open until price closes across the middle EMA, riding the whole move.

Panel on the chart

A draggable panel shows the upper band, middle EMA, lower band, squeeze status and open trades.

Overview

Keltner Channel Forex Robot (code GD-8820) is an EA for MetaTrader 4 and MetaTrader 5 that trades the Keltner Channel. The channel's middle line is a 20 EMA, with upper and lower bands 2 times ATR 10 away, so it widens when price is volatile and narrows when price ranges.

The EA also computes Bollinger Bands 20, 2 to detect the squeeze: when Bollinger sits inside Keltner, price is compressing. There are 3 scenarios switched on or off separately: squeeze fire (default), channel breakout and pullback to the middle EMA. Stop loss goes beyond the opposite band with no fixed take profit: trades close when price closes across the middle EMA.

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 band is 0.1. On brokers with 2 decimals, 1 unit = 100 points, so divide point settings by 10.

Example with default settings on H1: Bollinger stayed inside Keltner for 5 candles, then the 14:00 candle rallied and closed at 2672.410, above the EMA at 2665.277, with Bollinger expanding out of the channel. At 15:00 the EA opens BUY 0.01 lot at about 2672.410, stop loss 2660.227 (100 points below the lower band). 13 candles later price closes at 2673.344, below the EMA, and the EA closes the trade.

The chart panel shows the upper band, the middle EMA and its direction, the lower band, squeeze status, active scenarios and open trades. One single file runs a 7-day trial on demo accounts and runs live with a license. Every trade carries the comment "www.HoangTrong.com", default Magic number 8820.

Changelog

Version 1.024/11/2026

First release of Keltner Channel Forex Robot.

  • Catches the break after consolidation
  • Trend channel breakout
  • EMA pullback
  • Stop loss at the channel band
  • Closes itself at the EMA
  • 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 Keltner Channel Forex Robot

Other products from HoangTrong.com

View all products
CB-8920IndicatorsMT4MT5

Keltner Channel Indicator

Draws the Keltner Channel, BUY, SELL arrows when a squeeze fires (Bollinger inside Keltner then expanding), when price breaks the channel or pulls back to the middle EMA, sends phone alerts.

  • Draws the Keltner Channel
  • Squeeze, breakout, EMA pullback
  • 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.