Dual Trend Crossover
- Experts
- 버전: 1.20
What this robot trades
Expert Advisor for MetaTrader 5 (MT5).
Two moving averages, one rule. When the fast line crosses the slow line on a closed bar, the robot takes one position with that direction and holds it until the cross flips the other way.
That is the whole strategy, and it is meant to be. Most robots stack filters until nothing fires and nobody can tell why a trade was or was not taken. This one shows the bias in its own panel, closes the position when the direction changes, and tells you in the journal every time it turns the book around.
- The fast and slow periods, the averaging method and the applied price are all inputs, so you can run the same rule on a trend chart or a ranging one.
- The stop is an ATR multiple, and the target is a multiple of that stop, 2 R by default.
- The size comes from a fixed share of the balance, computed from the stop distance and the tick value of the symbol, with a hard lot ceiling.
- The spread is checked first, so a wide market receives no order.
- A per-day cap and a maximum daily loss close the open position and stop new entries for the rest of the day.
- The stop floor covers the broker stops level, the freeze level, three times the live spread and an absolute floor in points, and the size is capped by the free margin the broker reports, so an order the broker would refuse is never sent.
How to check it yourself
Attach it to any chart and watch the panel's Bias row. It changes on the closed bar where the averages cross, and the position follows on the same bar.
Setup
Copy the compiled file into MQL5/Experts, refresh the Navigator in the MetaTrader 5 terminal and attach the robot to one chart. It trades the symbol and the timeframe of that chart.
Input parameters: fast period, slow period, averaging method, applied price, trade cross up, trade cross down, maximum trades per day, cooldown minutes, hard lot ceiling, risk per trade, ATR period, ATR multiplier, reward multiple, maximum daily loss, maximum spread, minimum stop distance in points.
Feedback and support
Your reviews decide what this robot gains next, and you can always reach the author by direct message on mql5.com.
Copyright 2026, Saurabh Singh Parihar.
