Referencing an arrow

 

I have an indicator in ex4 format that displays the following:

-As a buy signal

Underneath the last bar, it will display a red arrow pointing up.

-As a sell signal

Above the last bar, it will display a yellow arrow pointing down.

I have attached a screenshot so you can see for yourself.

What I don't know is how to reference the arrow. Obviously with a line, I can check to see whether it is above, below or equal to a certain value. How can I check to see if an arrow exists under a certain bar?

Thanks

 
JohnnyInamoto:

I have an indicator in ex4 format that displays the following:

-As a buy signal

Underneath the last bar, it will display a red arrow pointing up.

-As a sell signal

Above the last bar, it will display a yellow arrow pointing down.

I have attached a screenshot so you can see for yourself.

What I don't know is how to reference the arrow.?

Well the arrow is hopefully in an indicator buffer which you can access using iCustom (search this forum for its usage if you struggle with the documentation - which is likely)

The UP arrows will be in one buffer and the down arrows will be in another. You may have to experiment to find out which is which.

 
Whoops. Ok, here it is.
 

Crumbs, my attaching skills aren't very good. I click on choose file and then I can't see a button to actually attach it :-(

Anyway, thanks for the reply Dabbler. I've written a statement using iCustom but can't get it to work. I've gone for:

if (iCustom(NULL, PERIOD_H1, " iSignal ",55,17,5,1) < Low[1]) {

//Buy Order

}

This what I'd do if I was expecting a line to be under the bar. I didn't think an arrow would be different..

Ah ha, I thought I'd read your reply before I posted. Thanks for showing me how to post images Dabbler :-)

 

JohnnyInamoto:

I've written a statement using iCustom but can't get it to work. I've gone for:

if (iCustom(NULL, PERIOD_H1, " iSignal ",55,17,5,1) < Low[1]) {

//Buy Order

}

So USING the iCustom call right now is getting a bit ahead of ourselves. The first step is to figure out what it is telling us. Why not print the values bar by bar for each buffer in turn until you get what you want? You have gone straight for the 5th buffer (by using 5 in the second to last argument of the function call). Does the indicator even have 5 outputs? Why not start with buffer 0 and work your way up?
 

Dabbler, thank you sooo bloody much!!

All I did was print the function to the chart and then I had my answer. It was 5 in the end, but it needed to be not equal with exactly 0.00000. Strange, but it works now.

Thanks mate.

 

JohnnyInamoto:,

but it works now.

Reason: