I'm new to MQL5 programming and I'm trying to create my first Indicator. I would like to be able to tell if the current moving average is below level 10 in the RSI.
The image below explains what I mean.

As you can see in the picture the SMA here has a tick just below RSi level 10. The SMA is the blue line chart. How can I calculate this given I have the RSI as:
int rsiInstance = iRSI(_Symbol, _Period, 14, PRICE_CLOSE);
And the SMA as:
int maInstance = iMA(_Symbol, _Period, 21, 0, MODE_SMA, PRICE_CLOSE);
So basically, a function that just returns true if that blue line touches or is below RSI Level 10 and false otherwise. Thanks for your patience and help.