Simple yet useful indicator. Need help

Hello,

I have been using a simple RSI indicator for a few weeks now.
It simply paints a corresponding arrow when the RSI enters extreme zones (below 30 or above 70).
It is a nifty little tool to quickly know this without the need to load the actual oscillator.
Although it cannot be used to trade, I still like it on my charts to validate reversal entries when price touches S/R levels a few hours later.

I am planing to use it on smaller TF like 5M and 1M and therefore need to add an alert feature that simply plays the “alert” sound when an arrow appears. Trading low TF will require me to stare at charts all day which I cannot do because of work.
There is an article on the mql4 website that shows how to do it but I coudnt understand anything after arrays (remember that from c and java classes in school :stuck_out_tongue: )

I have attached the indicator below.
It is also freely available on the MT4 marketplace.

Kindly help

Extreme_RSI.zip (765 Bytes)

Try this one

Thank you
I didn’t think I’d need seperate IF statements for the alert too.
I’ve put it on a chart… waiting for a signal…

Does not work…
I mean, it plays the sound on every tick right after the signal.
MY platform stopped responding and I had to remove the file from MT4 data folder to restart the platform…

EDIT: your 2 IFs gave me an idea… Edited the code… minor changes…
hope it works…

Extreme_RSI alert2.zip (888 Bytes)