Watch how to download trading robots for free
Find us on Telegram!
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

Views:
219
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.
This code is inspired by a tutorial from Rene Balke on YouTube!

Example

Range Breakout Examples

Parameters

Parameters

Machine Learning Supertrend Machine Learning Supertrend

A machine-learning inspired approach towards trending regimes. Providing accurate signals and backtest confidence built-in

XANDER Adaptive Cross XANDER Adaptive Cross

Two adaptive moving averages that read the market differently. Crossovers signal trend shifts.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.