honest_knave:
You can try using EventChartCustom(). This post gives you an idea how you use it.
Basically have your first indicator listening for the custom chart event, and create an alert when received.
The second indicator sends the custom chart event when the horizontal line is created.
Awesome explanation in your post! Works perfect. Thank you very much!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys,
I made a similar posting a couple of months ago but this one is simplified and right to the point.
I have two indicators. One creates a button and if the button is clicked an alert is shown. The second indicator comes into play when a horizontal line is drawn. It just changes the state of the button.
But I don't want only the button's state to be changed. I also want that the alert is shown when drawing a horizontal line. Is that somehow possible? Can I activate the button's function (alert) from a second indicator?
Indicator 1:
Indicator 2: