RSI Prognoz MQ4 Indicator. The idea was simple: take the history values of RSI over pr_period bars and see the indicator values after progn bars, i.e. obtain a set of indicator values and a pseudo-value of what this set resulted in, store everything to an array.
Then iterate over the array at a specified glubina depth and see if there had been any similar situations (satisfying err error) in the past and what they had lead to.
The obtained results are averaged using the exp method.
This concludes the calculation of the prediction.