Author of the idea — John Smith, author of the MQL5 code — barabashkakvn.
we average the array of values of the iRSI indicator.
We also get the values of two iMAs — the fast and the slow one.
The "Reverse" parameter is available in inputs. He is responsible for the position direction: if set to "true", the signal will be opposite.
Test example on AUDUSD: