calling buffer from ex5 indicator

To add comments, please log in or register
forexgenie55555
493
forexgenie55555  

HI, 

Just wondering how exactly you call an indicators specific buffer with only an ex5 file? 

With source code it is obvious as you can see them 0,1,2,3,4 etc. 

With ex5 I have no idea what buffer matches to which number and how to reference/call that specific buffer. Especially if there are 6 buffers in one indicator. Obviously trial and error would eventually work, but there must be a more logical way of finding this out.  

If someone could please let me know how that would be fantastic! 

Regards. 

Alain Verleyen
36131
Alain Verleyen  
If it's not documented, only trial and error unfortunately.
Amir Yacoby
1223
Amir Yacoby  

Just from memory, maybe I'm wrong.

In the data window of MT5 terminal, the indicators data is displayed - each buffer with it's short name and current price (where the cursor stands).

Then, you point on the chart on the different buffers and look for it's names.

forexgenie55555
493
forexgenie55555  

Thank you both for your answers. 

Alain Verleyen
36131
Alain Verleyen  
Amir Yacoby:

Just from memory, maybe I'm wrong.

In the data window of MT5 terminal, the indicators data is displayed - each buffer with it's short name and current price (where the cursor stands).

Then, you point on the chart on the different buffers and look for it's names.

So ? What will you do with this name ?

You need an index to use a buffer, there is no relation between the name and the unknown index.

whroeder1
17942
whroeder1  
Amir Yacoby: Just from memory, maybe I'm wrong. In the data window of MT5 terminal, the indicators data is displayed - each buffer with it's short name and current price (where the cursor stands).
Unless the code specifically hides a buffer SetIndexLabel(i, NULL)
Amir Yacoby
1223
Amir Yacoby  
Alain Verleyen:

So ? What will you do with this name ?

You need an index to use a buffer, there is no relation between the name and the unknown index.


Unless they are arranged by sequence of index number
Amir Yacoby
1223
Amir Yacoby  
whroeder1:
Unless the code specifically hides a buffer SetIndexLabel(i, NULL)

That is correct but it is for MQL4, isn't it? MQL5 has PlotIndexSetString
Alain Verleyen
36131
Alain Verleyen  
Amir Yacoby:

Unless they are arranged by sequence of index number
Yes but you have no way to be sure about that, so we came back to "trial and error".
To add comments, please log in or register