RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
Ergodic Oscillator from the book Momentum, Direction and Divergence by William Blau, implemented in the form of a color histogram with a signal line implemented as a colored cloud.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Never miss news-driven moves – use the News OCO Expert Advisor to place pending orders safely around economic releases. Find out more.
Figure 1. Indicator BlauErgodic
Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
2053