How to get current Price Values for Channel Line ?

 

Hi,
I wanted to get an alert if the current price touches the cahnnel object which I've created with the Channel Equidistant Tool of MT4. In case if I use a Trendline instead it is clear that I get the current Price value by using the

ObjectGetValueByShift() function

on the current Bar, but in case of a channel I have two lines and I need one value for the upper and one value for the lower line. How to handel that?


Thanks in advance

Markus

 
You can refer to the source code of function CalcLineValue() at 'Orders Guardian'.