It is recommended to launch the EA on the H1 timeframe and higher.
Example of operation on EURUSD,H1:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19487
KDJ Indicator OscillatorGreenTrade
The Expert Advisor trades based on iMA and iRSI signals. Values of iMA on four bars are compared. Indices of these bars can be optimized.