Thanks in advance for future answers. I'm liking what I've learned today in regards to dealing with iCustom and interacting with objects on the charts. However, I have this .ex4 file and I don't know how to get the color of the indicator at a specific time or whether or not an arrow is on the chart and whether or not it is up or down. What do you recommend me doing in this case? I also looked for a way to extract information from the alerts tab, which this indicator gives out. From what I've read, this is not supported in MQL. I have the object name of the indicator and it appears that the whole indicator acts as one instead of a line and the arrows. Thanks again!
I would like to thank everyone. Okay, I haven't created an indicator before in MQL4. I'm more of an EA type of guy. My understanding of buffers is that it allows for the programmer to create a storage for an array. But anyhow, this is what I did:
I used the iCustom indicator and for the mode, I used 0 to 5, which includes 6 values since you all say that this indicator has 6 buffers. I printed the values to the journal and got a bunch of crazy numbers, with some of them being the same.
Here are the values:
The iCustom indicator only returns double. It would be great if I can pass a color variable. Anyhow, I don't know how to get useful information out of those values to place trades. I'm assuming that these values probably give you the location of the object on the chart, but those big numbers toward the
end, I don't know. From programming, I believe those are the largest double values that a computer can use from my college days or programming. But I don't see how that is useful and why I'm not seeing different values.
The indicator has been attached. When I hover over the arrows or lines, I will see a label called value4 or value6 or etc with the values of where that object lies. Those are some useful values that I can probably program around. To be clear, if the arrow value is less than the line value, then I can program the EA to buy. As of now, I deleted the last two mode values (since they are EMPTY_VALUE) and now only using 4. From watching the values during the backtest, I noticed that value1, that I created, has a value when the indicator gives out a sell signal and I might can program around that alone. However, this arrow can repaint up until the next bar. After that, it can no longer repaint, which is a plus.
Sorry about that dumb question I asked about that big number. That is a value that I would've made a correct guess on any other day. Thanks again.
FMIC, here is the Data Window view.
PS! Please note, that after further investigation, it seems that the indicator "BuySellArrowScalper" is a paid rip-off of the original "HalfTrend" by "AlexSoftware" that was in turn based on "Ozymandias" available in the Code Base section. I have attached the original source code of "HalfTrend-1.02.mq4" which will also help you identify the buffers or to allow you to adapt the Indicator to your needs.