Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Easy Range Breakout EA - MT5 - expert for MetaTrader 5

Osmar Sandoval Espinosa
Osmar Sandoval Espinosa
Mathematical Engineer.
Currently pursuing a Master's in Applied Mathematics with strong focus on quantitative modeling and computational methods.
Fields of study:
-Time Series Analysis: ARIMA, GARCH, VAR.
-Optimization: linear, non-linear, multicriteria approaches.
| English Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
Views:
4959
Rating:
(4)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The EA continuously manages the trading session by calculating the start, end, and closing times each day, resetting its variables, and preparing the range for breakout detection. During the defined range period, it collects minute‑based highs and lows, determines the maximum and minimum values, and updates a rectangle object on the chart to visually represent the consolidation zone.


Once the range period ends, it checks the close of the most recent candle (different from the range end time) against the calculated boundaries, and if a breakout is detected, it automatically places a buy or sell order with a take‑profit equal to the size of the range and a stop at the opposite boundary.

Example


EURUSD 2026.01.01 - 2026.03.03 

Range Start Hour 5

Range End Hour 11

Trading End Hour 22


QuantumAlgo Trade Panel QuantumAlgo Trade Panel

QuantumAlgo Trade Panel is a professional-grade trading utility for MetaTrader 5, designed to bridge the gap between complex institutional strategies and seamless execution. Whether you are a Scalper, Swing Trader, or follow Smart Money Concepts, this panel automates your risk management and technical analysis, allowing you to focus purely on the setup.

ASQ Session Manager ASQ Session Manager

Institutional-grade forex session detection and analysis library for MetaTrader 5.

Half Line For Exit 123 Half Line For Exit 123

Using arrow to open a position and the middle line to exit from the position that is currently open.

XANDER Pulse Candles XANDER Pulse Candles

Color your candles by momentum state. Four bias levels + neutral — built for dark charts.