Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

KRI - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

KRI - indicator for MetaTrader 5

The Kairi Method (KRI) is similar to Momentum based on its application pattern.

The oscillator fluctuates around 0, but in a wider range. Recommended smoothing period - 13. KRI can be used on any time frame. It is one of the simplest oscillators. When creating the indicator, the deviation of the price from its actual value is calculated as a Simple Moving Average and is displayed as a percentage of the average value.

Indicator calculation formula:

KRI = 100 * (price[bar] - SMA(price[bar],period)) / SMA(price[bar],period)

If there is no clear trend in the price action, a considerable positive value of the KRI indicator means overcharges and marks the moment to open a short position. Considerable negative values ​​are a buy signal.

In cases where the trend is clear, KRI will produce a stable positive value during a downtrend due to the time lag between the moving average and the current price. KRI will generate stable negative values ​​during an uptrend. Therefore, if the method value does not change from positive to negative or vice versa over a significant period of time, it can be used as a trend indicator.

A signal is generated when the indicator value exceeds +1 (overbought zone) and goes below -1 (oversold zone) and then returns to the middle. Other signals are bullish divergence or bearish convergence of indicators and price.

The indicator is compiled using the СMoving_Average class of the SmoothAlgorithms.mqh library. The use of this class is described in detail in the article "Average price series for intermediate calculations without using additional buffers" .

KRI - indicator for MetaTrader 5


Attachment download

📎 kri.mq5 (5.93 KB)

📎 smoothalgorithms.mqh (133.8 KB)

Source: MQL5 #439

Verification code Refresh