How to get current Price Values for Channel Line ? New comment [Deleted] 2009.09.30 11:37 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 How to read TrendLIne(object) value Created Channel in EA but want to read both line price value inside the codes how can I calculate a 20 day price channel in mt4? Greatshore 2009.09.30 11:52 #1 You can refer to the source code of function CalcLineValue() at 'Orders Guardian'. New comment
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