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-4002v1.0 Lifetime 7-day trial 18/11/2026
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-4002) 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.

Entry scenarios

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

Checks the candle that just closed (candle 1) and its MA. "Touch MA" means the low (BUY) or high (SELL) of the Pinbar touches or crosses the MA. With several scenarios on, any scenario that signals will enter. Direction: Both BUY and SELL, BUY only, SELL only.

Inputs

General inputs4 inputs

Only opens new orders within the hours you enter (broker time, several ranges separated by commas) and when the spread is not above the maximum. Signals are calculated on the chosen timeframe.

Magic number0 (per symbol)
Maximum spread250 point
Trading hours00:00 - 23:59
TimeframeH1
Order inputs5 inputs

Stop loss and take profit are in points from the entry price; enter 0 for none. Additional orders only open when price is at least the set number of points away from an existing order in the same direction. Close opposite orders: a BUY signal closes the EA's SELL orders, and vice versa.

Lot size0.01 lot
Stop loss5000 point
Take profit5000 point
Distance between 2 same-direction orders0 (no limit)
Close opposite ordersNO
Order count limits4 inputs

Never exceeds the maximum number of orders (total, BUY, SELL; 0 means no limit). At most 1 order per candle, and orders closed within the candle still count.

Total BUY + SELL10
Max BUY5
Max SELL5
1 order per candleYES
Pinbar inputs6 inputs

Ratios are relative to the candle length (high to low). Require candle color: a BUY Pinbar must be bullish, a SELL Pinbar must be bearish.

Minimum long wick60%
Maximum body30%
Maximum opposite wick15%
Minimum candle length100 point
Require candle colorNO
Wick is the high/low of N candles0 (off)
MA inputs3 inputs

The MA sets the trend: if the Pinbar closes above the MA only lower wick Pinbars (BUY) are considered, below it only upper wick Pinbars (SELL). MA types: SMA, EMA, SMMA, LWMA.

MA period50
MA typeEMA
Applied priceClose
Entry scenarios3 inputs

Each scenario can be switched on or off; see the Entry scenarios tab for how entries work.

With the trendYES
Touch MANO
Trade directionBoth BUY and SELL
Break-even and Trailing Stop7 inputs

Break-even: once profit reaches the set points, the stop loss moves to the entry price plus a small buffer for fees, once. Trailing Stop: once profit reaches the set points, the stop loss follows price at a fixed distance. The stop loss never moves backwards.

Break-evenNO
When profit reaches2000 point
SL above entry by100 point
Trailing StopNO
Start when profit reaches3000 point
Keep SL away from price by1500 point
Minimum step100 point
Other inputs1 input

Sends a notification to the MetaTrader app on your phone when orders open or close (requires your MetaQuotes ID in MetaTrader).

Phone notificationsYES

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.

Can I change the account ID?

Yes, for an ID change fee (cheaper than buying new). The bank account paying the fee must belong to the original license holder; otherwise the request is handled manually.

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.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID

Besides the Pinbar with MA Forex Robot

Other products from HoangTrong.com

View all products
GD-1001Indicator-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-1002Indicator-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
GD-1003Indicator-basedMT4MT5

Robot Forex Bollinger Bands

The EA opens BUY and SELL orders on Bollinger Bands: price returning inside the bands or breaking out, with built-in stop loss, take profit, break-even and Trailing Stop.

  • Return inside the band to catch reversals, switchable
  • Band breakout to ride momentum, switchable
  • 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.