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.
Read from Open_Two_Pending_Orders_v2_salman.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
DynamicLotSize
bool
true
Use Money Management
EquityPercent
double
2
Risk Percent if DynamicLotSize is true
FixedLotSize
double
0.1
Fixed LotSize if DynamicLotSize is false
ATRPeriod
int
14
ATR Period
StopLossATR
double
2.0
StopLoss (ATR Multiplier)
RiskToRewardRatio
double
2.0
Risk to Reward Ratio (e.g., 2.0 = 1:2)
TrailingStopATR
double
1.0
TrailingStop (ATR Multiplier)
PipsAwayATR
double
1.5
Distance from current price (ATR Multiplier)
Slippage
ulong
30
Slippage
Magic
ulong
1111
Magic Number
OptimizationMethod
int
3
Optimization Method (1-4)
TradeDirection
ENUM_TRADE_DIRECTION
TRADE_BOTH_DIRECTIONS
Trade Direction
Show all 17 inputs
Name
Type
Default
Description
UseTrendFilter
bool
true
Use trend direction filter
IchimokuTenkan
int
9
Tenkan-sen period
IchimokuKijun
int
26
Kijun-sen period
IchimokuSenkou
int
52
Senkou Span B period
OrderDistanceMultiplier
double
2.0
Multiplier for order removal distance
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone salmansoltaniyan/MT5-Dual-Pending-ATR-EA from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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