Use ChartWindowFind() to multiple indicators with same name

 

Do someone know how to make ChartWindowFind() returns correct numbers even if I am using multiple indicators with same name?

If I do this,ChartWindowFind() returns same number.


Or do someone know how to know window number without using CharWindowFind()?

 
Tomoyuki Nakazima:

Do someone know how to make ChartWindowFind() returns correct numbers even if I am using multiple indicators with same name?

If I do this,ChartWindowFind() returns same number.

If you have no input parameters or the same inputs, there is only 1 instance of the indicator in memory. That's why.

I am considering it as a bug, however I am not sure Metaquotes will agree and fix it.

Or do someone know how to know window number without using CharWindowFind()?

Not really, except coding some workaround yourself.

 
Alain Verleyen:

If you have no input parameters or the same inputs, there is only 1 instance of the indicator in memory. That's why.

I am considering it as a bug, however I am not sure Metaquotes will agree and fix it.

Not really, except coding some workaround yourself.

Thank you for answering.

 
Tomoyuki Nakazima:


Do not double post.

I have deleted your other post.

Reason: