VI

Pinbar with MA Forex Robot

The EA opens BUY and SELL orders on Pinbars in the direction of the MA trend, with a Pinbar-touches-MA scenario, built-in stop loss, take profit, break-even and Trailing Stop.

Robot Forex MT4MT5 GD-8602v1.0 Lifetime 7-day trial 18/11/2026
GD-8602 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========================================PINBAR SETTINGS
½Min long wick (% of candle range)
½Max body (% of candle range)
½Max other wick (% of candle range)
01Min candle range (points)
Require candle colour (bullish BUY, bearish SELL)
01Wick is the high/low of N candles (0 = off)
ab========================================MA SETTINGS
01MA period (trend filter)
MA type
Applied price
ab========================================ENTRY SCENARIOS
With trend: lower wick + above MA = BUY
Touch MA: lower wick touches MA + above MA = BUY
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 looks for Pinbars in the direction of the MA (EMA 50) trend: a lower-wick Pinbar closing above the MA is BUY, an upper-wick Pinbar closing below the MA is SELL.

Lower-wick Pinbar touches the MA, closes above it: BUYMA 50
With trend (default): a lower-wick Pinbar closing above the MA is BUY. With Touch MA also on, the wick must touch or cross the MA, like the candle in the picture.

Entry scenarios

  • With the trendDefault: YES
    • BUYLong lower wick Pinbar, closes above MA
    • SELLLong upper wick Pinbar, closes below MA
  • Touch MADefault: NO
    • BUYAs above, lower wick touches MA
    • SELLAs above, upper wick touches MA

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

    The order opens with Stop Loss and Take Profit measured from the entry price.

    • Volume 0.01 lot
    • Stop Loss 5000 points, Take Profit 5000 points (enter 0 for none)
    • Optionally close opposite orders on a new signal
  3. 3Order management

    Two automatic functions, off by default, each turned on separately.

    • Breakeven: at 2000 points profit, Stop Loss moves to entry + 100 points
    • Trailing Stop: from 3000 points profit, Stop Loss follows price 1500 points away
    • Stop Loss only moves in the profitable direction
  • Checks the candle that just closed (candle 1) and its MA value.
  • "Touch MA" means the low (BUY) or high (SELL) of the Pinbar touches or crosses the MA.
  • With several scenarios on, any scenario with a signal opens an order.
  • Direction: Both BUY and SELL, BUY only, SELL only.
Pinbar with MA

The MA shows the trend: the EA only BUYs on lower wick Pinbars when price is above the MA, and only SELLs on upper wick Pinbars when price is below it.

Two entry scenarios

With the trend: every Pinbar in the MA direction. Touch MA: only Pinbars whose wick touches the MA, meaning price pulled back to the MA and was rejected. Each switchable.

Signals on closed candles

The EA only checks the candle that just closed and its MA, each signal is used once, with no noise while a candle is forming.

Automatic order management

Break-even, Trailing Stop, order limits, distance between 2 orders, 1 order per candle, trading hours and maximum spread.

Overview

Pinbar with MA Forex Robot (code GD-8602) is an EA for MetaTrader 4 and MetaTrader 5 that combines the Pinbar candlestick pattern with a moving average (default EMA 50). A Pinbar is a candle with a small body and one very long wick, showing price was pushed hard in one direction and then rejected. The MA shows the overall trend.

The EA only keeps Pinbars that follow the trend. A long lower wick Pinbar closing above the MA: the EA opens a BUY. A long upper wick Pinbar closing below the MA: the EA opens a SELL. Pinbars against the trend are ignored.

The Touch MA scenario is stricter: the Pinbar's wick must touch or pierce the MA. This is when price pulls back to the MA, the MA acts as support (or resistance) and price is pushed back in the trend direction. Pinbars are detected with measurable ratios: wick at least 60% of the candle length, body at most 30%, opposite wick at most 15%, candle at least 100 points long.

The EA checks the candle that just closed on the timeframe you choose, and each signal is used only once. The EA has stop loss, take profit, break-even, Trailing Stop, order limits, trading hours and maximum spread. One single file covers the 7-day demo trial and live trading once licensed. Every order carries the comment "www.HoangTrong.com" and the product's own magic number.

Changelog

Version 1.018/11/2026

First release of the Pinbar with MA Forex Robot.

  • Pinbar with MA
  • Two entry scenarios
  • Signals on closed candles
  • Automatic order management

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 the Pinbar with MA 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.