RenkoFromRealTicks
- Utilitaires
- Stanislav Korotky
- Version: 1.6
- Mise à jour: 15 février 2024
- Activations: 5
This non-trading expert utilizes so called custom symbols feature (available in MQL API as well) to build renko charts based on history of real ticks of selected standard symbol. RenkoFromRealTicks generates custom symbol quotes, thus you may open many charts to apply different EAs and indicators to the renko. It also transmits real ticks to update renko charts in real time.
The generated renko chart uses M1 timeframe. It makes no sense to switch the renko chart to a timeframe other than M1. The start time of a "minute" bar does normally correspond to the start time of renko box. The end time of a such "minute" bar is dummy (MetaTrader does not allow for bars with different duration), instead you should look at start time of the next "minute" bar. Optionally, you may enable markup of the boxes by close time (see CloseTimeMode below).
After its placement on a chart, RenkoFromRealTicks downloads tick history and generates renko bars for the custom symbol. This may take a while and require additional space on the disk. EA shows a progress in the comment. When the process is finished, the comment looks like this:
RenkoChart(100pt): open EURUSD_T_r100 / 1000 bars
where 100pt is the requested box size in points, EURUSD_T_r100 is a customizable symbol name, 1000 is a number of generated boxes (if EA is running for the very first time, this is the total number of renko bars, but if it continues on results of a previous terminal session, the number of new boxes can be a few, because only most recent, missing boxes are generated).
You may build renko faster and with less resources using RenkoCharts. But RenkoFromRealTicks is more precise and feature-reach.
Parameters
- RenkoBoxSize - box size in points, by default - 100;
- ShowWicks - enable/disable wicks on renko, by default - true;
- EmulateOnLineChart - enable/disable ticks emulation on renko charts, by default - true; it updates indicators and other EAs on backtests and online;
- OutputSymbolName - name of the custom symbol for renko, by default - empty string - then the name is formed as "Symbol_T_PrefixSizeSuffix", where Symbol - current work symbol, Prefix - "r" (renko) wicks are enabled or "b" (brick) if disabled, Size - RenkoBoxSize; optional Suffix - "c" for close time mode; "g" - for gapless renko type;
- Reset - an option to enforce complete recalculation of entire renko chart, by default - false; after it is set to true and calculations are completed, it is recommended to reset it back to false in order to eliminate excessive recalculations on every terminal restart; this mode is helpful in rare cases, when generated renko chart contains an error for some reason; normally the option is disabled, because the EA continues calculation smartly from the most recent existing box;
- RenkoType - selector of the box calculation algorithm: Conventional or Gapless (also known as non-gap, rail-to-rail, see examples in the pictures);
- VolumeType - selector of the volumes per box calculations: Total Volume, or Delta Volume with either of 3 algorithms (Ask vs Bid, Ask + Bid, Tick Flags);
- CloseTimeMode - when true, boxes are shown and formed at their close time; in this mode only 1 tick is generated per box, when box is added completely formed to a chart; by default - false, i.e. boxes are created at open time (the latest live "box" is updated continuously and is not actually a box until it's closed);
- DropTicksOutsideBars - filter out incorrect ticks (outliers);
- StartFrom - time where to start the tick history processing, 0 means very beginning;
- StopAt - time where to stop, 0 means till current time;
Volume Delta Methods
In the method Ask vs Bid tick volumes are considered for buy if Ask price increases, and for sell if Bid decreases (please note, that on some accounts/symbols Bid changes more frequent than Ask, which introduces a negative bias; this is the platform specificity).
The method Ask+Bid analyses the changes of the average price (sum of Ask and Bid): move up - buy, move down - sell.
Tick Flags is based on buy/sell tick flags and applicable for exchanges only.
Hello,
I have traded Renko for many years manually without using EAs. Like many other traders, I faced the challenge when attempting to Backtest and/or optimize trading EAs based on custom symbols (Renko charts) in MT5. I have tested different Renko Generators EAs. I have generally struggled with these main points:
A-Backtesting results vary a lot.
B-The coders who created these EAs are not responsive and if they do respond, their replies are very short and do not address my concerns.
C- When applying Renko Generators on custom symbols, some Renko generators do not work or the backtesting results do not show 100 percent history quality.
For example: using third-party Tick Data providers to create a custom symbol for any pair and then creating a Renko custom symbol based on this imported tick data. Not all MT5 brokers offer tick data for previous years and thus we need to rely on imported tick data.
The result is that either the Renko Generator does not create a Renko custom symbol (because the source chart is a custom tick data chart) or it creates a custom symbol but the backtesting shows zero percent history quality. Regardless of how accurate and precise the Renko Generator is, there will always be limitations with MT5. It is inevitable as MT5 does not offer a custom-tailored solution for Renko bars. Any EA generator is simply trying to apply the concept of Renko on a time-based chart.
In a time chart, all data series (o/h/l/c) have to be manipulated by any Renko Generator. There are limits and issues. Stanislav (the creator of RenkoFromRealTicks) is very transparent about it in one of his articles. Read them to understand. This shortfall will apply to any Renko Generator you use (from Stanislav or others).
All right! So now starts my review of Stanislav Korotky Renko Generator (RenkoFromRealticks) EA.
1- Communication and support:
I give 5 stars out of 5 for the communication with Stanislav. I purchased his EA when it was version 1. There were so many backtracks done from my end and I had many questions to send to Stanislav. To be honest and straightforward, I am a very skeptical person by nature and I compare different products and always question the result.
It has been a couple of weeks and Stanislav was always responsive and updated his EA with a newer version to address a concern I have. He has also backtested two of my EAs and changed the code in one of them to make sure (from his view) that the backtesting is accurate. I have also sent him a third EA and some tick data and asked him to backtest it without changing the code and his results closely matched with mine.
I have never had such a communication channel with any other Renko Coder! Thank you, Stanislav for your support. I have also sensed you are a sincere coder who takes responsibility for his work and is very open with limitations (from MT5) without hiding or polishing them.
2-Applying RenkoFromRealTicks on Custom symbols: No issues at all. Let’s say you have a custom EURUSD chart built from tick data provided by a third party. You can apply RenkoFromRealTicks on it and it will generate the Renko bars. Some other Renko Generators do not! This is because they rely on one-minute data and the authors won't inform you.
3-Backtesting: Some Renko Generators have a special mode for backtesting. In other words, the user has to change the Renko size for reversal bars. (for example, Reno Reversal should be 200 percent of Renko bar). This is not wrong as this depends on the Author’s recommendations when backtesting. However, in the case of RenkoFromRealTicks, you do not need such a feature and you should not worry about (the artificial opening of a bar) affecting the backtest.
I have exhausted this concern with Stanislav! Besides, it is a lot nicer to see the authentic look of Renko Bars in the bactested chart. Also bear in mind, that some Renko Generators do not address this issue at all! Coders decline to inform their users if backtesting is synthetic and not real. So again: it depends on how the Renko generator is coded and what are the recommendations (if any) for Backtesting.
The recommendation from Stanislav is to choose (Bulk Ticks per box) in the Tick History Mode for the most accurate backtesting. Stanislav may need to update the description of the EA for Backtesting.
Some Renko Generators do not deal well with (compressed tick data)! Read this carefully! Some tick data providers offer a compressed version of their tick data to reduce the file size of tick data. That is great; sometimes you would get 99 percent quality instead of 100 percent.
A one percent difference is not that much when it comes to reducing file sizes on your PC. However, here is the issue: Some Renko generators do not handle well such compressed Data. They construct the bars in the wrong way affect your trading EA Backtesting and give you an unrealistic high profit factor.
But when it comes to RenkoFromReal Ticks, there was no issue at all. This Renko generator deals very well with either compressed or standard-sized data. There was no real concerning discrepancy when I backtested my trading EAs. The important thing is that you have a detailed log report to investigate the construction of Renko bars and the tick data you are using. I have also once downloaded the wrong format of ticks from one of the tick data providers. I downloaded a .csv file that was not meant for MT5. RealDataFrom Ticks EA generated a blank custom symbol and upon going through the log report, I noticed many ticks are being missed or are bad. I then downloaded the right format for MT5, and the EA worked like a charm.
However, when I used another Renko generator, the bars were still created and the trading EA got me an unrealistic high-profit factor. I realized then that RenkoFromRealTicks is a trustworthy Renko generator I should use.
C-History Quality: With RenkoFromRealTicks, I got 99 percent quality with the compressed data and 100 percent quality with standard-size data. When it comes to standard size tick data, I tested another commercial Renko generator and it was close to RenkoFromRealTicks EA but it shows history quality at Zero percent! This does not give me assurance the backtesting is good (even if the results are very close).
D-Online Trading: I have not tested it on online mode but I do not see any reason why it would not perform as expected. Usually, the issue of any Renko EA generator is in backtesting not in online mode.
E-takes a bit of time when constructing the renko bars: I believe this is because it is a genuine Renko generator that does build Renko from real ticks. I have similar MT4 Renko generators that take some time to construct Renko HST and FXT files from tick data. Besides, I was skeptical of other MT5 Renko generators that generate Renko bars on the fly! Or in a few seconds.
I hope I have given a comprehensive review of the product based on experience and knowledge.
Finally, I want to add that I did not have a reference point to compare the backtesting results I got from my trading EAs tested on Renko bars generated by RenkoFromRealTicks EA. I used a couple of EAs in MT4 and MT5 and was looking for an outlier here or there. The best way to make sure that any Renko Generator EA is offering the best backtesting results is to run an EA on a server for a month or so and compare the life trading results with the backtested ones. I have not done this yet.
My Recommendations for future development: (This depends on the users’ opinion and voting for such features)
1-I wish I see another EA from Stanislav (a different product with a different purchase) that offers Flexible Renko Construction. (i.e. changing the open and close offset by percentage). This way it will be a universal Renko builder to create Mean Renko or other exotic Renko bars.
The current EA offers Conventional and rail-to-rail (Point O Chart) Renko bars. The author would be able to code a new Renko generator if there is enough demand for it.
2-Option to build a Renko chart based on a percentage of the price. This will be great for stock trading. I am not fond of Renko based on ATR and I think the percentages will be a better option.
Thank you,