RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
This is just a rewrite of metaquotes heiken ashi indicator with all buffers set as series. It is not to be anything other than educational.
When I first started studying this framework, I was very confused about how to change buffer indices and loop indices. For example, I had one one indicator that was designed with buffers in series, I wanted to add the heiken ashi, and I didn't know how to add the heiken ashi correctly (when the heiken ashi buffers were not originally designed to run in series mode).
Now with this code, it might be more easier for learners to digest how everything should be changed when you take a non-series indicator construction, and convert it so that everything runs in series. This might also provide clarity to those who are familiar with mql4, but yet to work with mql5.
Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.
Some indicators constructed in series can use a start index of "rates_total - prev_calculated" securely, but you need one extra bar to safely calculate the heiken ashi when it uses a historical [i+1] index in the calculation.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
73176