If you have any troubles with above indicator's code correction don't hesitate to ask. I will help. If you need to update your EA write on mql5 or e-mail.