• Sign up >>

MQ4-How to know buffer signal on the chart which the indicator is attached?

To add comments, please log in or register
Cromo
273
Cromo  

I have a question.

If I attach the indicator on the chart.

This indicator has arrow with buffer signal.

I want to read this arrow or buffer signal from EA.

But I don't want to use iCustom.

How can I read signal from the attached indicator?

Any good idea?

Keith Watford
Moderator
20951
Keith Watford  
Cromo:

But I don't want to use iCustom.

Why not?

Cromo:

How can I read signal from the attached indicator?

Use iCustom.

Cromo
273
Cromo  
Keith Watford:

Why not?

Use iCustom.

Keith、thanks.

Can you teach me?

If the indicator has no buffer and it has only arrow object, how can I read signal from the arrow object?

Like..... If the buy arrow  appear on the current bar, how can I detect it without buffer signal?

Enrique Dangeroux
682
Enrique Dangeroux  
Cromo:

Keith、thanks.

Can you teach me?

If the indicator has no buffer and it has only arrow object, how can I read signal from the arrow object?

Like..... If the buy arrow  appear on the current bar, how can I detect it without buffer signal?

Modify the indicator to put signals in buffers.

andrew
456
andrew  
Cromo:

I have a question.

If I attach the indicator on the chart.

This indicator has arrow with buffer signal.

I want to read this arrow or buffer signal from EA.

But I don't want to use iCustom.

How can I read signal from the attached indicator?

Any good idea?

It depends on the indicator,  but your EA can look at the objects the indicator creates, in this case an arrow, if you can't get the value through iCustom.

Don't know if this helps, but this code printed out all the objects on my chart, and next, I would probably try to access the object properties, color etc to work out what the object is telling me..but its not much good if you're coding for mulitiple symbols, periods etc. and you can't use iCustom...

 string objname,txt;
 for(int i=0;i<ObjectsTotal(0,0);i++){
   objname=ObjectName(0,i);
    txt+=objname;
    txt+="\n";
 }
 Comment(txt);
Cromo
273
Cromo  
andrew:

It depends on the indicator,  but your EA can look at the objects the indicator creates, in this case an arrow, if you can't get the value through iCustom.

Don't know if this helps, but this code printed out all the objects on my chart, and next, I would probably try to access the object properties, color etc to work out what the object is telling me..but its not much good if you're coding for mulitiple symbols, periods etc. and you can't use iCustom...

Thank you!

But how can I know the object arrow is on current bar?

How to detect?

Cromo
273
Cromo  
Enrique Dangeroux:

Modify the indicator to put signals in buffers.

Thanks, but sometimes I have no source file.

Do you know how to detect object arrow on current bar?


If I use buffer, it is easy. Just check AAA!=EMPTY_Value,

but if it is arrow object, how can I know the arrow object showed on current bar?

To add comments, please log in or register