Now I have an indicator that draws up/down arrows on the chart as seen in the image below. How can I when for example a Magenta down arrow has been drawn and the candle (index) at which it is drawn?
Please note that the arrows don't appear in the Charts object list.
Maybe they are not objects, but buffers. If so use iCustom().
The indicator file is a .ex4 I'm not too certain how to go about this using iCustom(). I would really appreciate some more details to how to go about this.
The indicator file is a .ex4 I'm not too certain how to go about this using iCustom(). I would really appreciate some more details to how to go about this.
Look up iCustom in the documentation.
I know how to draw an object arrow on the chart, which I usually do like this:
Now I have an indicator that draws up/down arrows on the chart as seen in the image below. How can I when for example a Magenta down arrow has been drawn and the candle (index) at which it is drawn?
Please note that the arrows don't appear in the Charts object list.
This method of drawing is not possible to detect using an expert adviser.
You need to use indicator_plot and plot_set_property to do that. Then you can read buffer values changes to detect presence of arrows.
Dm for help.
- Buffers of type arrow. View (Alt+V) → Data Window (Control+D) If you see your "main indicator" and a value
where there is an arrow, then read the buffer, (using iCustom) and do what you want with it.
You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 programming forum - Otherwise, it is drawing arrow objects. Charts (Alt+C) → Objects → Objects List (Control+B).
Find the corresponding object and find the naming pattern. Then you can get all appropriate objects and their values.
Object Functions
This method of drawing is not possible to detect using an expert adviser.
...It is possible. Using objects on chart. But that is not the most efficient way to do it.
This method of drawing is not possible to detect using an expert adviser.
You need to use indicator_plot and plot_set_property to do that. Then you can read buffer values changes to detect presence of arrows.
Dm for help.
You have disabled your DM
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I know how to draw an object arrow on the chart, which I usually do like this:
Now I have an indicator that draws up/down arrows on the chart as seen in the image below. How can I when for example a Magenta down arrow has been drawn and the candle (index) at which it is drawn?
Please note that the arrows don't appear in the Charts object list.