Trend Vanguard M15 enters buy orders when fast EMA crosses above slow EMA with bullish RSI confirmation, ADX above 22, and price above the 200 EMA trend filter. Sell orders trigger on the opposite conditions. It exits trades at 2:1 risk-reward using ATR-based stop loss, moves to break-even after partial 50% close, and applies ATR trailing stop. Risk management uses dynamic 1% lot sizing or fixed lots with spread and open trade limits.
Read from TrendVanguard_M15.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpFastEmaPeriod
int
20
Fast EMA Period
InpSlowEmaPeriod
int
50
Slow EMA Period
InpTrendEmaPeriod
int
200
Major Trend EMA (Filter)
InpRsiPeriod
int
14
RSI Period
InpRsiBullishMin
double
50.0
RSI Bullish Confirmation (> level)
InpRsiBullishMax
double
70.0
RSI Bullish Overbought Ceiling (< level)
InpRsiBearishMax
double
50.0
RSI Bearish Confirmation (< level)
InpRsiBearishMin
double
30.0
RSI Bearish Oversold Floor (> level)
InpUseAdxFilter
bool
true
Enable ADX Trend Strength Filter
InpAdxPeriod
int
14
ADX Period
InpAdxMinLevel
double
22.0
Minimum ADX required (Filters Sideways Chop)
InpAtrPeriod
int
14
ATR Volatility Period
Show all 34 inputs
Name
Type
Default
Description
InpAtrMultiplierSL
double
1.5
ATR Multiplier for Stop Loss
InpRiskRewardRatio
double
2.0
Risk to Reward Ratio (TP = SL * RR)
InpUseRiskPercent
bool
true
Use Dynamic Risk % (false = Fixed Lot)
InpRiskPercent
double
1.0
Risk % per Trade (e.g. 1.0 = 1%)
InpFixedLotSize
double
0.01
Fixed Lot Size (if Dynamic Risk = false)
InpMaxSpreadPips
double
2.0
Max Allowed Spread (Pips)
InpMaxOpenTrades
int
1
Max Open Trades per Symbol
InpUseBreakEven
bool
true
Enable Break-Even
InpBreakEvenTriggerR
double
1.0
Break-Even Trigger (Multiples of initial Risk / 1.0R)
InpBreakEvenBufferPips
double
1.0
Profit Buffer above Entry on Break-Even (Pips)
InpUsePartialClose
bool
true
Close 50% position at Break-Even Trigger
InpUseTrailingStop
bool
true
Enable ATR Trailing Stop
InpTrailingAtrMult
double
1.5
Trailing Stop ATR Multiplier
InpUseTimeFilter
bool
true
Filter by Trading Hours (Server Time)
InpStartHour
int
7
Trading Start Hour (07:00 London Open)
InpEndHour
int
20
Trading End Hour (20:00 NY Close)
InpFilterFridayClose
bool
true
Avoid Taking Trades Late Friday
InpFridayStopHour
int
18
Friday Cut-off Hour (18:00)
InpMagicNumber
ulong
102488
EA Magic Number
InpTradeComment
string
TrendVanguard_M15_v2
Order Comment
InpSlippagePoints
ulong
10
Maximum Allowed Slippage (Points)
InpShowDashboard
bool
true
Display Live On-Chart Dashboard
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone chifule-art/TrendVanguard-M15 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.
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.
EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee
Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n
This MetaTrader 5 expert advisor automates the 9.1 trading setup popularized by Larry Williams, utilizing an exponential moving average to detect trend shifts. It enters trades based on price action relative to the moving average slope. The system includes built-in trade management features like partial profit taking,