Join our fan page
- Views:
- 12032
- Rating:
- Published:
- 2010.07.06 09:50
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Trend indicator with the simple smoothing algorithms. Based on the indicator trend.mq4 with some modifications.
It has an only one parameter - period (use period=24 for EURUSD).
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/132

This indicator fits a trigonometric model to prices and extrapolates it in the future.

This indicator uses an autoregresive model to extrapolate prices

This indicator uses the Nearest Neighbor clustering technique, also called k-NN, to search for the most similar pattern in history and use its past prices as predictions of the current pattern future prices.

This indicator finds the nearest neighbor by using a weighted correlation coefficient, in which more recent prices have larger weights. The weight decays linearly from newer to older prices within a price pattern.