Job finished
Specification
2. useStoch = true / false
3. use1STMA = true / false
4. use2ndMA = true / false
if useRSI = true and useStoch = false, alarm goes off when RSI condition met. the same goes with MA, but for MA the trigger is the current price.
for example 1stMA = EMA 12. and x1 = -5 x2 = 5, the alert go off if the price between MA - 5 pips, and MA + 5 pips
the same goes for 2ndMA.
So Long story short, for each case [RSI, Stoch, 1stMA, 2ndMA] there will be 4 variable, you can call whatever you want, x1, x2, y1, y2
it just to identiry lower range and upper range.
A. I use the standard MT4 parameter for RSI and Stoch, for RSI = period, and apply to, for Stoch %K %D Slowing, price field and MA Method
D. Standard option for alarm, popupalert = true / false, usesound = true / false, sendNotification = true / false, and option for filename path to use own audio files.
I think popupalert and usesound will trigger as long as the condition met, and we need another variable like maxiteration, if maxiteration = 0, it will send popupalert and sound as long condition met, for example if 60<=RSI<=70, and it still in that range, the alarm will go off [maxiteration] times.
But with sendNotification, i think it is best to send only once, the first condition met, because it is a bother to receive lots of notification on our mobile
E. this alarm indi DOES NOT WAIT for candle close, so whenever the level is touched and between the parameter, it will go off