Trading robot · MT5

Punlie Grid

by punlie

Punlie Grid is a MetaTrader 5 expert advisor that executes a grid trading strategy tailored for gold, crude oil, and cryptocurrencies.

High risk

GitHub stars10
Forks2
Last update1 year ago12 Aug 2025
LicenceMIT

Overview

Punlie Grid places orders at fixed point intervals and features a trend-following filter that uses daily timeframe data to align trades with the prevailing market direction. Risk controls include a trailing stop, break-even settings, and a global basket close function based on a total USD profit or loss target. The developer explicitly advises against using this system for forex pairs and suggests keeping leverage low to manage exposure during volatile conditions.

Details

Author

punlie on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Trend following

Markets

Gold, Crypto, Oil & commodities

Timeframes

Any timeframe

Risk profile

  • Opens a grid of orders: exposure builds up in a trend
  • Trades without a fixed stop loss

Input parameters

Read from Punlie Grid v3.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpMagicNumberlong123456Magic Number
enable_time_startboolfalseEnable Start Time
time_startstring14:00Start Time (HH:MM)
InpGridLengthint200Grid Length (point)
InpTrendUpboolfalseTrade only in Uptrend
InpTrendTimeframeENUM_TIMEFRAMESPERIOD_D1Time Frame for trend check
InpLotSizedouble0.01Lot Size
InpCloseNextGridboolfalseClose at Next Grid if Profitable
InpNextGridint2Number of Grids for Closing Condition
CloseAllboolfalseClose All Positions by Profit/Loss
CloseAllValuedouble100.0Close All Value (USD, can be negative)
TrailingStopboolfalseEnable Trailing Stop
Show all 15 inputs
NameTypeDefaultDescription
trailingstopdouble20.0Trailing Stop (pips)
SLevenbooltrueEnable Break-Even SL
SLevenpipdouble100.0Pip Away from Last Position

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone punlie/PunlieGridEA_v3 from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Smart Grid Martingale EA

by chenhengyi53-design
8 stars

This MetaTrader 5 expert advisor executes a grid trading strategy enhanced with martingale lot scaling. The system identifies market direction through multi-timeframe analysis using Exponential Moving Averages and the Average Directional Index. It features dynamic grid spacing that adjusts based on market volatility an

MT5 Trading robot GridMartingaleTrend following High risk
Updated 7 months ago None stated GitHub repository of Smart Grid Martingale EA

MarketSync EA

by sajidmahamud835
6 stars

MarketSync EA is an experimental MetaTrader 5 expert advisor designed to bridge algorithmic trading with external artificial intelligence. It functions by streaming real-time market and account data from the MT5 terminal to a local Node.js backend via HTTP requests. The external server processes this information using

MT5 Trading robot AI / machine learningGridTrend following High risk
Updated 8 months ago MIT GitHub repository of MarketSync EA

EA XAUUSD Premium

by diditgravatar
4 stars

This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of EA XAUUSD Premium

Bot Trend

by uselinuxdev
3 stars

Bot Trend is a trend-following expert advisor for MetaTrader 5. It utilizes proprietary Francisca entry logic and manages trades through multiple concurrent execution threads. The system incorporates custom Zero Gravity step logic for position management and includes specific operational modes for Fridays and holidays.

MT5 Trading robot Trend followingGridMartingale High risk
Updated 8 months ago None stated GitHub repository of Bot Trend

IchiDCA CCBSN PropFirm EA

by magicniuniu
3 stars

IchiDCA CCBSN PropFirm EA is an automated trend-following robot for MetaTrader 5, optimized for gold and forex markets. It triggers trades based on Ichimoku Cloud breaks, filtered by dual Exponential Moving Averages and MACD indicators. The strategy manages positions through a Dollar Cost Averaging system that layers u

MT5 Trading robot Trend followingGridMean reversion High risk

Punlie Raging

by punlie
2 stars

Punlie Raging is a grid-based trading robot for MetaTrader 5 that executes orders at fixed point intervals. It includes a trend filter to limit trading to specific market directions, such as only trading in uptrends verified on daily timeframes. For trade management, the advisor features an adjustable trailing stop and

MT5 Trading robot GridTrend following High risk
Updated 1 year ago MIT GitHub repository of Punlie Raging

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers