EA shall trade when price is outside regression channel

 

When the price is below or above the regression channel, my EA shall make a trade. But how do I get the value of the upper or lower line from the channel?

I use "ObjectCreate("Obj_Reg_Ch",OBJ_REGRESSION,0,T1,0,T2,0);" for the regression channel.

Any help is apreciated.

 

edit:

the problem can be solved with https://www.mql5.com/en/code/8016

Reason: