Download MetaTrader 5

Given an indicator handle, how to get how many buffers it has?

To add comments, please log in or register
cyberglassed
613
cyberglassed  

Hello, I would like to know how many buffers an indicator has, given its handle?

maybe reading the property: "indicator_buffers"?, or somehow else?


Regards.

Alain Verleyen
Moderator
33504
Alain Verleyen  
cyberglassed:

Hello, I would like to know how many buffers an indicator has, given its handle?

maybe reading the property: "indicator_buffers"?, or somehow else?


Regards.

I don't think it's possible.

By the way, what to do ? How can you work with an indicator if you don't know how many buffers it has ?

cyberglassed
613
cyberglassed  

It was for a generalizing code only. But anyway, as you mentioned,

I can specify previously the number of buffer in some array variable for a set of indicators I could use.


Thanks.

To add comments, please log in or register