Join our fan page
Trend Score - indicator for MetaTrader 5
- Views:
- 15468
- Rating:
- Published:
- 2013.08.12 22:47
- Updated:
- 2016.11.22 07:32
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The indicator can be calculated both with a period and without it. If a period is used: if the price is higher than the previous one, the trend is 1. If the price is less than the previous one, the trend is -1. If the price is equal to the previous one, the trend is 0. Accordingly, Trend Score is the sum of trends over the specified period. In the second case, with each change of the direction the indicator value is reset to zero. For example: if we have a sequence of two bearish, one bullish, a doji and three bullish bars, the values of the indicator are as follows: -1, -2, 1, 0, 1, 2, 3...
1. The indicator with a period. The period is also the module of the maximum and minimum possible values of the indicator. It may be noted that in certain ranges of the period values (5 to 20), the closer is the current value of the indicator to the period value, the closer is the completion of the trend.
2. The indicator without the period. At first glance, there is little use in the TrendScore without the period - in fact it just shows the number of bullish and bearish bars in each series, which is well seen on the chart. However, note that the "sawtooth" sections of the indicator - i.e. those with 5 or more of the indicator values in the range [-1; 1] - in many cases we get a horizontal channel, whose breakthrough we can use.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1782
An indicator in the form of candlesticks based on the Heiken Ashi algorithms and two averages.
Percentage_Price_OscillatorA non-normalized oscillator.
A combined indicator, constructed on the basis of two RSI oscillators
Relative Momentum Index (RMI)The RMI (Relative Momentum Index) indicator is an improved version of RSI, momentum is included in the calculation.