How to find the lines's indexes of the Traders Dynamic Index

 

Hello there,

I am a newbie. I have difficulties in finding the line index of the three lines: 
Market Base Line (yellow), Trade Signal Line (red), RSI Price Line (green).
I want to get the value of each line by using the iCustom function. But one of the parameters that I need to pass is the line index. 
I looked at the TDI code, but couldn't surely determine the index for each line.  Kindly, could you please help me?
I attached the TDI indicator.

Files:
 

I haven't downloaded your indicator, but with most custom indicators you can check in the Data window.

Usually line index 0 will be at the top and as you look down the list, increase by one.

I believe that


Market Base Line (yellow) is line index 1,

 Trade Signal Line (red) is 4,

 RSI Price Line (green) is 3.

It should be a simple matter to write some code to check the values.

 
Keith Watford:

I haven't downloaded your indicator, but with most custom indicators you can check in the Data window.

Usually line index 0 will be at the top and as you look down the list, increase by one.

I believe that


Market Base Line (yellow) is line index 1,

 Trade Signal Line (red) is 4,

 RSI Price Line (green) is 3.

It should be a simple matter to write some code to check the values.


Read the #property indicator_color(nnn) lines, see the color name, subtract 1 from the number before the color name *the "(nnn) part of the #property indicator_color(nnn)) and that is your buffer number