This is a demo version of a non-trading expert Advisor that uses the functionality of custom symbols (also available from MQL) to build renko charts based on the history of the selected standard symbol and update them in real time upon the arrival of fresh quotes. It also transmits real ticks to the Renko chart, which allows other Expert Advisors to trade on Renko and build indicators from Renko.
The Expert Advisor should be placed on the chart of the working tool. The smaller the initial timeframe, the more accurate the renko builds will be, but the smaller the number of renko bricks will be obtained, since the available history is limited by the number of bars specified in the terminal settings in the Max bars in chartfield . The larger the original timeframe, the deeper the history will be covered by the renko,but the lower its accuracy will be. The decrease in accuracy applies only to historical data, and all changes in online quotes (when RenkoChartsDemo is launched) will generate absolutely accurate renko bricks – even more accurate than from the M1 history.
The Renko chart always has a timeframe of M1. The start time of each “minute” bar on it coincides with the start time of the formation of the corresponding renko brick. The end time of such a “minute” bar is fictitious, instead of it, you should look at the start time of the next “minute” bar. Switching the renko chart to a different timeframe does not make sense.
[spoiler title=”Read More…”]
After placing the Expert Advisor on the chart, it generates the missing boxes of the custom symbol and displays a comment like:
Processing bar: i / N
Processing bar: i / N
where i is the current processed bar of the original timeframe (numbering from the maximum value to 0), and N is the total number of bars.
When processing is complete, the comment displays:
RenkoChart (100pt): open EURUSD_M1_renko / 10000 bars
RenkoChart (100pt): open EURUSD_M1_renko / 10000 bars
where 100pt is the size of the renko brick, EURUSD_M1_renko is the name of the user symbol, 10,000 is the number of renko bricks generated (at the first launch of the EA, this is the real total number of bars received on the user symbol, but at subsequent launches, for example, in a new terminal session, the number may be significantly less, because only the renko boxes that are missing since the previous calculation are calculated).
RenkoChartsDemo opens one chart for your convenience, but you can open more of them.
RenkoChartsDemo generates quotes for a custom symbol, so you can open an arbitrary number of charts with different trading advisors and indicators for it. It doesn’t make sense to run RenkoChartsDemo multiple times for the same working symbol/timeframe/box size. You cannot run multiple copies of RenkoChartsDemo with the same custom character name.
RenkoChartsDemo generates quotes for a custom symbol, so you can open an arbitrary number of charts with different trading advisors and indicators for it. It doesn’t make sense to run RenkoChartsDemo multiple times for the same working symbol/timeframe/box size. You cannot run multiple copies of RenkoChartsDemo with the same custom character name.
Due to some technical limitations of the MetaTrader 5 renko charts may not work properly under certain conditions. For more information, see the “Discussion” of the full version of the product.
Due to some technical limitations of the MetaTrader 5 renko charts may not work properly under certain conditions. For more information, see the “Discussion” of the full version of the product.
RenkoChartsDemo only works on EURUSD M1. You can’t use it in the tester.
RenkoChartsDemo only works on EURUSD M1. You can’t use it in the tester.
- RenkoBoxSize – the size of the renko brick in points, by default-100;
- ShowWicks – flag for displaying shadows, by default – true;
- EmulateOnLineChart-tick translation flag, default-true;
- OutputSymbolName – the name of the custom symbol for the generated renko, by default-an empty string – the name is formed in the form of “Symbol_Period_Type_Size”, where Symbol is the current working symbol, Period is the current working timeframe, Type – “r” (renko) when displaying shadows or ” b “(brick) without shadows, Size-RenkoBoxSize; example: “EURUSD_M15_r100”;
- Reset-indicates the recalculation of the entire renko chart again, by default – false; setting it to true and waiting for the result, it is recommended to return it back to false, so as not to provoke a recalculation every time the terminal is restarted; this mode is useful in cases where the formation of renko for one reason or another failed in some place; usually the option is always disabled, because the Expert Advisor is able to economically continue the calculation, starting with the last available renko brick;
- Throttle – the minimum period between ticks in seconds (default is 0);
- CloseTimeMode – if true, the boxes are formed entirely during closing (1 tick per box); by default, false.
[/spoiler]