- How to create an arrow MQL4
- Code to find the open and close price of previous bar
- MT4: How can I can find out if there is an arrow (UP/Down) without buffer values?
Arrows are painted by an indicator buffer.
Thanks gooly for your help. But I know very little about indicators in general. I got a feeling that there must be a simple way just to see if there is an arrow or a dot or something on a previous bar regardless of how it was created.
When I use Icustom, how do I specify current bar or previous bar ? Documentation tells me that I should use symbol, period and then input parameters of the indicator. Then icustom returns a value or emptyvalue. If I get a value how do I decipher it. In other word, how do I know whether it is up arrow or down arrow?
Thanks Mr. Roeder. The explanation is describing a situation where you know everything about an indicator and you have the source code. I have indicator in a .ex4 format with no explanation. All I know is that it has two inputs. But there is no explanation of what these inputs do, so I leave them as default. But this indicator draws arrows in right places.
All I want is a simple thing. I want to know if there was an arrow on the last bar and if so was it a down arrow or up arrow. It does not matter how it got created thru buffers or objectcreate or whatever. There has to be a way.
There is a way, and that way is as gooly and WHRoeder have said: iCustom. It isn't complicated once you get the hang of it.
You just need to find out which buffer number is used for up arrows, and which buffer number is used for down arrows.
If you add the indicator, it would help us give more detailed explanation.
-
7325453863: It does not matter how it got created thru buffers or objectcreate or whatever. There has to be a way.
- Of course it matters, different way requires different call.
- We already gave you the way.
honest_knave: You just need to find out which buffer number is used for up arrows, and which buffer number is used for down arrows.- Put the indicator on a chart
- Open the data window
- mouse over a bar that has a arrow
- Look at which entry has a value
I thought I will figure it out but no. I still need help. If you look at the attached picture, I have data window open and it shows four outputs from the indicator which are labeled as 1. forex lever 2. value2 3. value3 and 4. value4.
When I move cursor over the red arrow, value3 has a non zero value and value4 is zero. This I verified by moving cursor over all the red arrows. When I move cursor over the blue arrow, value3 is 0 and value4 has a nonzero value.
I thought value3 corresponded to buffer3 and value4 corresponded to buffer4. But that is not the case. So how do I read value3 and value4 from the indicator?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use