Building mt4 signal indicator; I need help
cryptadels:
Good day gurus, pls am trying to design a signal indicator but seems not giving desire result.
It only shows the arrow on the chart, it doesn't popup alert at current price.
Kindly help me out. Thanks
Change this code
if(i == 0 && Time[0] != time_alert) { myAlert("signal", "Buy"); time_alert = Time[0]; }
to
if(Time[i] != time_alert) { myAlert("signal", "Buy"); time_alert = Time[i]; } // this is only for buy signal and for sell signal please replace itu your self
Roberto Jacobs:
Change this code
to
Thanks for your response.
After changing the code as instructed, it actually gives popup alert but it the alerts are messed up. Instead of given alert once par bar, it gives on those previous one concurrently.
Files:
if(i == 0You are alerting on bar zero (the forming one.) Why do you think you wouldn't get an alert per tick?
Good day gurus, pls am trying to design a signal indicator but seems not giving desire result.
It only shows the arrow on the chart, it doesn't popup alert at current price.
Kindly help me out. Thanks