Get Value of Line on chart thats drawn by indicator

 
Hello,

i am currently working on a expert advisor and i want to use a indicator which draws 2 trend line like a channel. the problem ist that i am unable to read these value with copy buffer. and now im asking if there is another way to read the values of theese two lines. im not that good in mql5 so if i am doing somthing wrong feel free to tell me:
#include <Trade\Trade.mqh>

CTrade trade;

int handle;



int OnInit()
{

   string name = "Market\\ADX Channel Indicator.ex5";
   handle = iCustom(_Symbol, _Period, name);     



   return(INIT_SUCCEEDED);
}

void OnTick()
{
   int totalposition = PositionsTotal();
   
   ObjectGe
   
   double ADXUpLine[]; 
   CopyBuffer(handle,0,0,3,ADXUpLine);
   double ADXUpValue = NormalizeDouble(ADXUpLine[0], 6);
  
  
   Comment(ADXUpValue);


Files:
 
Massamba Fall: so if i am doing somthing wrong feel free to tell me:
 CopyBuffer(handle,0,0,3,ADXUpLine);
  1. Your image shows four buffers (high, low, up, down). Which one are you reading?
  2. Perhaps you should ask the owner.
 
hey, i want to read the Upline1 and Downline1 values of the indicator.
 

have you found a solution to your problem?


I'm not very good at it, but once I've drawn a line-type object

I use the ObjectGetDouble function to retrieve the price of the object on the graph 

double TP_line_price    = ObjectGetDouble(0, TP_Line_Obj, OBJPROP_PRICE, 0); 


 
no i sadly didnt. i just moved on and used a nother indikator.