Trading robot ยท MT5

Dual Pending ATR EA

by salmansoltaniyan

This MetaTrader 5 expert advisor implements a breakout strategy by placing dual pending buy stop and sell stop orders around the current market price.

GitHub stars1
Forks0
Last update1 year ago6 Sep 2025
LicenceNone stated

Overview

Dual Pending ATR EA utilizes the Average True Range (ATR) to calculate entry distances, stop loss levels, and trailing stops. An optional Ichimoku cloud filter provides trend confirmation to align entries with market direction. The robot includes dynamic risk management through equity-based lot sizing or fixed volume. When one pending order is triggered, the opposite order is automatically cancelled to prevent multiple exposure or unintended hedging.

Details

Author

salmansoltaniyan on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Trend following

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

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

NameTypeDefaultDescription
DynamicLotSizebooltrueUse Money Management
EquityPercentdouble2Risk Percent if DynamicLotSize is true
FixedLotSizedouble0.1Fixed LotSize if DynamicLotSize is false
ATRPeriodint14ATR Period
StopLossATRdouble2.0StopLoss (ATR Multiplier)
RiskToRewardRatiodouble2.0Risk to Reward Ratio (e.g., 2.0 = 1:2)
TrailingStopATRdouble1.0TrailingStop (ATR Multiplier)
PipsAwayATRdouble1.5Distance from current price (ATR Multiplier)
Slippageulong30Slippage
Magiculong1111Magic Number
OptimizationMethodint3Optimization Method (1-4)
TradeDirectionENUM_TRADE_DIRECTIONTRADE_BOTH_DIRECTIONSTrade Direction
Show all 17 inputs
NameTypeDefaultDescription
UseTrendFilterbooltrueUse trend direction filter
IchimokuTenkanint9Tenkan-sen period
IchimokuKijunint26Kijun-sen period
IchimokuSenkouint52Senkou Span B period
OrderDistanceMultiplierdouble2.0Multiplier for order removal distance

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone salmansoltaniyan/MT5-Dual-Pending-ATR-EA 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, and any .mqh files into the Include folder the code expects.
  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

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

Golden Strategist EA

by raracraz
68 stars

This MetaTrader 5 expert advisor specializes in trading Gold (XAUUSD) by targeting volatility during the New York session. It utilizes an Average True Range (ATR) indicator to identify market trends and determine entry levels for limit orders. Risk management includes fixed stop loss parameters and dynamic trailing sto

MT5 Trading robot Trend followingBreakout
Updated 2 years ago None stated GitHub repository of Golden Strategist EA

Black XAU Automated Bot

by phatnomenal
48 stars

Black XAU is an automated trading robot for MetaTrader 5, specifically designed for gold. It utilizes a multi-timeframe breakout and retest strategy, identifying trading zones based on initial H4 market structure. Entries are triggered on the M5 timeframe when price retests a confirmed breakout level. The expert adviso

MT5 Trading robot BreakoutTrend following
Updated 11 months ago None stated GitHub repository of Black XAU Automated Bot

Box Breakout EA

by je-zhou
27 stars

This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R

MT4MT5 Trading robot BreakoutTrend following

Binario

by EarnForex
20 stars

Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista

MT4MT5 Trading robot BreakoutTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Binario

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

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