Hi William Roeder, Thank you for your help. I saw the links you advised, but as I am not a professional programmer, I didn't get what should I do exactly. Can you edit my code for monitoring the position of object1 inOnChartEvent (as you mentioned). Really appreciated
Hi everybody. I have written an indicator that creates a button on the chart. By pressing the button, it prints "Hello". Simple and easy!!! Then I save it as a new template. When I add the indicator on a new chart (by hand), it works well, but whenever I apply it as a template to a new chart it does not work. Anybody knows the reason? I would appreciated if h/she help me.
Can anyone suggest why the attached indicator sometimes misses printing an alert and will not play any alert sounds. Thanks in anticipation of any help - John
You need to monitor the position of object1 in OnChartEvent. See my (for MT4): 'Money Manager Graphic Tool' indicator by 'takycard' - Risk Management - Articles, Library comments - MQL5 programming forum - Page 6 #55 (2018.01.14 and modified for screen resolution #75 (2020.02.17)
You need to monitor the position of object1 in OnChartEvent. See my (for MT4): 'Money Manager Graphic Tool' indicator by 'takycard' - Risk Management - Articles, Library comments - MQL5 programming forum - Page 6 #55 (2018.01.14 and modified for screen resolution #75 (2020.02.17)
Thanks
Hi William Roeder, Thank you for your help. I saw the links you advised, but as I am not a professional programmer, I didn't get what should I do exactly. Can you edit my code for monitoring the position of object1 in OnChartEvent (as you mentioned). Really appreciated
"Sometimes misses?" Considering that it has no code to Alert or PlaySound, why do you think it would ever do that.