VI

Robot Forex Stochastic

EA that opens trades by Stochastic: %K crossing %D in the overbought/oversold zone, %K leaving the zone, %K crossing %D, each setup switched on or off, with a Stochastic panel right on the chart.

Robot Forex MT4MT5 GD-8807v1.0 Lifetime 7-day trial 23/11/2026
Stochastic 14, 3, 3 · H1–%K (candle 1)17.4%D (candle 1)14.9%K zoneOversold%K vs %DAbove %DOversold / overbought20 / 80%D cross in zoneOnLeaving the zoneOff%D cross anywhereOffOpen positionBUY 1 · SELL 0Waiting for a Stochastic signal on H110:00 Opened BUY on H1: %K crossed above %D in the oversold zone
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-8807 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)
01Stop Loss (points, 0 = none)
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========================================STOCHASTIC SETTINGS
01%K period
01%D period
01Slowing
MA method
Price field (Low/High or Close/Close)
½Overbought level
½Oversold level
ab========================================ENTRY SCENARIOS
%K crosses %D in zone: BUY in oversold, SELL in overbought
%K leaves the zone: BUY back above oversold, SELL back below overbought
%K crosses %D anywhere: BUY on cross up, SELL on cross down
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 calculates Stochastic on closed candles of the entry timeframe (default H1, 14, 3, 3, overbought 80, oversold 20). Three setups are switched on or off separately; the in-zone cross is on by default. At most one trade per candle.

8020BUYSELLSELLBUYSELLBUYSELLBUYSELLStochastic 14, 3, 3%K%DEntry point
The same price stretch, computed with the exact Stochastic 14, 3, 3 formula. Choose a setup to view: the small gold dot on the Stochastic is where the signal appears, the gold dot on the price chart is where the EA opens the trade at the start of the next candle. %D cross in the zone enters earliest, Zone exit enters a few candles later, and %D cross anywhere gives the most trades, including entries in the middle of a move.
  1. 1%D cross in zone

    The default setup, Stochastic's most selective reversal signal.

    • BUY%K crosses above %D, %D below 20
    • SELL%K crosses below %D, %D above 80
  2. 2Leaving the zone

    Waits for %K to fully leave the overbought or oversold zone before entering, slower but more reliable.

    • BUY%K back above 20
    • SELL%K back below 80
  3. 3%D cross anywhere

    The most signals, suited to markets with regular swings. Best used with order limits.

    • BUY%K crosses above %D
    • SELL%K crosses below %D
  • If on the same candle one setup says BUY and another says SELL, the EA skips that candle.
  • In strong trends Stochastic can stay overbought or oversold for a long time. Test on the timeframe and symbol you trade.
  • Stop loss, take profit, break-even, Trailing Stop and order limits are shared by all setups.
In-zone cross

%K crossing above %D in the oversold zone means BUY, crossing below in the overbought zone means SELL. The default and most selective setup.

Leaving the zone

%K moving back above oversold means BUY, back below overbought means SELL. Waits for price to confirm the reversal before entering.

Cross anywhere

%K crossing %D anywhere opens a trade: the most signals, suited to markets with regular swings.

Full MetaTrader settings

%K and %D periods, slowing, MA method, Low/High or Close/Close price field, overbought and oversold levels are all adjustable.

Full order management

Stop loss and take profit in points, distance between 2 orders, closing opposite orders, break-even, Trailing Stop, BUY and SELL order limits.

Stochastic panel on the chart

A draggable panel showing %K, %D, the current zone, %K vs %D, active setups and open orders.

Overview

Stochastic Forex Robot (code GD-8807) is an EA for MetaTrader 4 and MetaTrader 5 that opens trades by the Stochastic Oscillator. Stochastic compares the close with the high-low range of recent candles to tell whether price is overbought or oversold. It is the most widely used oscillator after RSI.

The EA has 3 entry setups, each switched on or off: %K crossing %D in the overbought/oversold zone (default), %K leaving the zone, and %K crossing %D anywhere. All the settings of MetaTrader's Stochastic are there: %K and %D periods, slowing, MA method, overbought and oversold levels. Signals always come from closed candles, so they never flicker mid-candle.

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

Example with default inputs on H1: on the 08:00 candle %K is 13.2, below %D at 15.6, both under 20. The 09:00 candle closes with %K 17.4 rising above %D 14.9. %K has just crossed above %D in the oversold zone, so at 10:00 the EA opens a 0.01 lot BUY with stop loss and take profit 5000 points from the entry price.

The panel on the chart shows %K and %D of the candle that just closed, the current zone, %K vs %D, active setups and open orders. One single file runs a 7-day trial on a demo account and runs live with a license. Every order carries the comment "www.HoangTrong.com" and the product's own magic number.

Changelog

Version 1.023/11/2026

First release of Stochastic Forex Robot.

  • In-zone cross
  • Leaving the zone
  • Cross anywhere
  • Full MetaTrader settings
  • Full order management
  • Stochastic 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 Stochastic Forex Robot

Other products from HoangTrong.com

View all products
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
GD-8802Indicator-basedMT4MT5

MA Crossover Forex Robot

The EA opens BUY and SELL orders when the fast MA crosses the slow MA, with built-in stop loss, take profit, break-even and Trailing Stop.

  • BUY when the fast MA crosses up, SELL when it crosses down
  • Separate period and MA type for each line
  • Stop loss, take profit, break-even and Trailing Stop
Retail price500,000 VND
Details

Need a different feature?

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