RSI prognoz - MetaTrader 4 script | Forex indicator download - MT4/MT5 resources


start - the start date of indicator calculation
period - the period for predicting RSI
pr_period - cluster size in bars
progn - predicted number of bars
err - the error threshold for the cluster at which the cluster is considered (0 to 100)
glubina - depth to search for suitable clusters (0 - entire array)
exp - average pattern of predictions based on found clusters (0 - simple moving average, 1 - linear weighted moving average)
The idea is simple: get the historical value of RSI on the pr_period bar and look at the indicator values after the progn bar, i.e. get a set of indicator values and pseudo values of the set of results, store everything in an array. Then iterate over the array at the specified glubina depth to see if there were any similar situations (satisfying err errors) in the past and what they resulted in. The obtained results are averaged using the exp method. This concludes the calculation of the forecast.
Attachment download
📎 0Rsi_prognoz.mq4 (5.56 KB)
Source: MQL5 #8669
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •