New free code from MQL5: indicators, EAs, and scripts for traders.
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!
Capture price channel breakouts with the Price Channel Expert Advisor. Precise entries and exits. Explore now.
Example

Parameters

Build better strategies with RobotFX professional tools – check them out.
68764