We build a Renko aggregator that operates on the raw tick stream from OnTick, not M1 OHLC, to preserve the true crossing order. The engine writes each completed brick to a MetaTrader custom symbol, enabling standard indicators on the output chart. Continuation, reversal, and gap scenarios are covered and validated with a compact test script.
A Renko chart shows where the market actually moved by a meaningful amount, not merely where time passed. A candlestick tells you open, high, low, and close for a fixed interval. A Renko chart discards the interval entirely and prints a new brick only when price has traveled a fixed distance. Every brick shares the same height, and that fixed height is the whole point. It filters out the small, directionless chop that a time-based candle records as if it mattered.
MetaTrader 5 has no native way to build this kind of chart. There is no PERIOD_RENKO constant, and no built-in chart mode that switches a symbol's bars from time-based to distance-based. Anyone who wants a genuine Renko chart has to build the aggregation logic themselves. Some Renko implementations reconstruct bricks from M1 OHLC data rather than from the raw tick stream. They use the open, high, low, and close of each one-minute bar to estimate which brick boundaries were crossed, without knowing the exact sequence of crossings.
That guess is where accuracy breaks down. An OHLC bar tells you the highest and lowest price reached during the minute. It does not tell you the order price visited those levels. When a single minute crosses three or four brick boundaries, several crossing sequences are consistent with the exact same OHLC numbers, and only one of them actually happened.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Check out the new article: Constructing Renko Bars from MQL5 Tick Streams in Real Time.
A Renko chart shows where the market actually moved by a meaningful amount, not merely where time passed. A candlestick tells you open, high, low, and close for a fixed interval. A Renko chart discards the interval entirely and prints a new brick only when price has traveled a fixed distance. Every brick shares the same height, and that fixed height is the whole point. It filters out the small, directionless chop that a time-based candle records as if it mattered.
MetaTrader 5 has no native way to build this kind of chart. There is no PERIOD_RENKO constant, and no built-in chart mode that switches a symbol's bars from time-based to distance-based. Anyone who wants a genuine Renko chart has to build the aggregation logic themselves. Some Renko implementations reconstruct bricks from M1 OHLC data rather than from the raw tick stream. They use the open, high, low, and close of each one-minute bar to estimate which brick boundaries were crossed, without knowing the exact sequence of crossings.
That guess is where accuracy breaks down. An OHLC bar tells you the highest and lowest price reached during the minute. It does not tell you the order price visited those levels. When a single minute crosses three or four brick boundaries, several crossing sequences are consistent with the exact same OHLC numbers, and only one of them actually happened.
Author: Ushana Kevin Iorkumbul