New free code from MQL5: indicators, EAs, and scripts for traders.
The Q-period Stochastic Index indicator from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram.
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".

Reduce lag and improve accuracy with the NonLagMA Expert Advisor for MT4/MT5. Discover it.
Figure 1. The BlauTStochI indicator
Build better strategies with RobotFX professional tools – check them out.
1986