help put alarm

 
hello,,everyone i need help with this indicator, can someone help me put an alarm when the arrow signal appear up or down,or any code or tips to do this. or maybe someone has already made it can please share it with me :). love this indi - thanks to the author. thanks in advanced guys.
 
zokuzen wrote >>
hello,,everyone i need help with this indicator, can someone help me put an alarm when the arrow signal appear up or down,or any code or tips to do this. or maybe someone has already made it can please share it with me :). love this indi - thanks to the author. thanks in advanced guys.


Here somewhere should be placed the code for Alarm or Alert ...

if(uptrend != old && uptrend == false)
{
val2[i] = high; // åñëè óñëîâèÿ âûïîëíåíû òî ðèñóåì val1
--->>here
if(i == 0) GlobalVariableSet("goBUY",1);
}
if(uptrend != old && uptrend == true )
{
val1[i] = low; // åñëè óñëîâèÿ âûïîëíåíû òî ðèñóåì val2
--->>here

if(i == 0) GlobalVariableSet("goSELL",1);
}

https://docs.mql4.com/common/Alert
https://docs.mql4.com/common/PlaySound
 

thanks a lot......... ^^ ill try it