Good morning all,
I have some indicators that generate an alert at the close of a bar, they generate a symbol on the chart and they generate an alert in the alertbox.
The indicators work fine, except for the alert in the alertbox, some do appear and some don't. I have 10 charts active and they are not all in the same TF.
Does anyone recognize this problem or has anyone an idea how to solve it if possible?
Best regards,
Robert
Hi,
Can you show the code ?
double Open1 = iOpen(NULL,PERIOD_M5,i+1); double Close1 = iClose(NULL,PERIOD_M5,i+1);
Your indicator is hard coded for the M5 but uses current chart TF (Time[0]) to suppress alerts.
Thanks for your reaction William, but I'm not sure if I understand your comment correctly.
The code is hard coded for M5, and the indicator is only active on M5. Do you mean that if I was to change the code to all TF's and activate the indicator just on M5 the problem would be solved?
greetings, Robert

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good morning all,
I have some indicators that generate an alert at the close of a bar, they generate a symbol on the chart and they generate an alert in the alertbox.
The indicators work fine, except for the alert in the alertbox, some do appear and some don't. I have 10 charts active and they are not all in the same TF.
Does anyone recognize this problem or has anyone an idea how to solve it if possible?
Best regards,
Robert