Apex Flow Reversion
- Experts
-
Syarief Azman Bin Rosli
Hello and welcome to my official MQL5 profile!
I am Syarief Azman Bin Rosli, an algorithmic trading systems developer and quantitative software engineer with over a decade of specialized experience creating robust automated trading solutions for MetaTrader 5 and MetaTrader 4. - Version: 1.0
- Activations: 20
# Apex Flow Reversion MT4
Apex Flow Reversion is an automated trading system developed for MetaTrader 4 that executes an intraday statistical mean-reversion strategy. The system monitors price deviation from a dynamic Volume-Weighted Average Price benchmark and identifies exhaustion points using standard deviation bands, Relative Strength Index momentum filtration, and Average True Range volatility constraints.
## Strategy Overview
The algorithm computes a rolling intraday VWAP curve weighted by tick volume across a user-defined window. Statistical upper and lower bands are derived from standard deviation calculations around this midline.
When market price extends past the lower band during oversold RSI momentum conditions, the system evaluates long entry criteria. Conversely, when price extends past the upper band during overbought RSI momentum conditions, short entry criteria are evaluated. Trades target a reversion back toward the dynamic VWAP midline or a predefined point target.
## Key Operational Features
- Strict MQL5 Market Compliance: Native MQL4 code without external Dynamic Link Libraries.
- Dynamic Broker Protection: Automated checks for broker minimum stop levels, freeze levels, and spreads before placing or modifying any order.
- Resilient Order Execution: Order execution routines include automated retry loops with price slippage control and rate refresh cycles.
- Position Protection: Includes independent Stop Loss, Take Profit, Break-Even thresholds, and dynamic trailing stop mechanisms.
- On-Chart Display: Clean visual dashboard providing real-time data on current spread, operating status, and open exposure.
## Recommended Trading Conditions
- Recommended Currency Pairs: EURUSD, GBPUSD, USDJPY, AUDUSD.
- Recommended Timeframe: M15 or M30.
- Account Type: ECN, Raw Spread, or Low Spread accounts.
- Minimum Deposit: 100 USD for 0.01 micro lots.
## Input Parameters
### Trade Configuration
- Magic Number: Unique order identification number for the Expert Advisor.
- Order Comment: Custom label attached to all orders opened by the system.
- Money Management Mode: Select between Fixed Lot Size or Dynamic Risk Percentage.
- Fixed Lot Size: Volume used when fixed lot mode is selected.
- Risk Percentage per Trade: Account balance risk percentage calculated per trade based on stop loss distance.
- Maximum Allowed Spread: Spread ceiling in points. The system suspends entries if spread exceeds this threshold.
- Allowed Slippage: Maximum slippage tolerance in points for order execution.
### VWAP and Band Engine
- Calculation Period: Number of bars used for rolling VWAP and standard deviation calculation.
- Deviation Multiplier: Standard deviation multiplier defining the distance of the outer bands.
- RSI Period: Calculation period for the Relative Strength Index filter.
- RSI Oversold Level: RSI threshold below which long entries become eligible.
- RSI Overbought Level: RSI threshold above which short entries become eligible.
### Protection and Exits
- Stop Loss Distance: Protective stop distance in points from entry price.
- Take Profit Distance: Target profit distance in points from entry price.
- Close at VWAP Midline: Closes active positions when price reverts to the central VWAP level.
- Enable Break-Even Trigger: Enables automated relocation of Stop Loss to profit lock once threshold is reached.
- Break-Even Trigger: Profit distance in points required to trigger the break-even function.
- Profit Locked in Break-Even: Guaranteed points secured above entry price once break-even triggers.
- Enable Trailing Stop: Enables continuous stop loss trailing behind favorable price movement.
- Trailing Stop Distance: Distance in points maintained behind current market price.
- Trailing Step: Incremental points required before updating the trailing stop level.
### Visual Dashboard
- Display On-Chart HUD: Toggles the graphical data dashboard on the chart.
- Primary Theme Color: Custom color for titles and accents.
- Text Color: Color for descriptive metric text.
## Risk Disclaimer
Past performance is not indicative of future results. Trading foreign exchange and financial derivatives carries substantial risk of loss and is not suitable for all investors. Test thoroughly on a demo account before deploying with real capital.
