How nevio111998/algorithmic-trading-trendstrategy works
This repository contains two versions of a MetaTrader 5 trend-following Expert Advisor. The documented workflow moves from daily bias through H4 structure and retracement analysis to M15 momentum entries; trade management adds ATR stops and risk-based sizing. Version 2.0 retains the signal logic and adds pre-trade safeguards, hardened execution, persistent state, and trade/rejection logging. The source files were not available to inspect, so component relationships below rely on README statements rather than implementation details.
Main entry points: TrendFollowingEA_V2.0.mq5 Order Execution · TrendFollowingEA.mq5 M15 Entry
Components 16
Strategy Analysis
- Daily Bias
TrendFollowingEA.mq5 - H4 Structure
TrendFollowingEA.mq5 - FVG Zones
TrendFollowingEA.mq5 - M15 Entry
TrendFollowingEA.mq5
Risk Controls
- ATR Stops
TrendFollowingEA.mq5 - Position Sizing
TrendFollowingEA.mq5 - Session Filter
TrendFollowingEA.mq5 - Safety Guards
TrendFollowingEA_V2.0.mq5 - Circuit Breaker
TrendFollowingEA_V2.0.mq5 - Exposure Checks
TrendFollowingEA_V2.0.mq5
Execution and State
- Order Execution
TrendFollowingEA_V2.0.mq5 - Persistent State
TrendFollowingEA_V2.0.mq5
Trade Monitoring
- Trade Journal
TrendFollowingEA_V2.0.mq5 - Rejected Trades
TrendFollowingEA_V2.0.mq5
Other components
- Market Data
- MetaTrader 5
Connections 14
- Market Data → Daily Bias: analyzes
README.md - Daily Bias → H4 Structure: sets context
README.md - H4 Structure → FVG Zones: identifies zones
README.md - FVG Zones → M15 Entry: informs entries
- M15 Entry → ATR Stops: sets stop
- M15 Entry → Position Sizing: sizes trade
- MetaTrader 5 → Order Execution: hosts EA
README.md - Safety Guards → Order Execution: validates before
README.md - Exposure Checks → Order Execution: checks before
README.md - Order Execution → Trade Journal: logs trades
- Order Execution → Rejected Trades: logs rejections
- Persistent State → Order Execution: supports recovery
- Session Filter → M15 Entry: filters trading
- Circuit Breaker → Order Execution: limits trading