how to calculate a Equidistant Channel

 
does somebody know how the Equidistant Channels in MT4 are calculated? I want to make an EA based on this Equidistant Channel. but I can't find its formular or a custom indicator of it.

thanks in advance!
 
The second line shifted from the main line equidistantly. 1-st and 2-nd point determine main line, 3-rd point determines second line. Lines are parallel therefore You can get 4-th point

Time4=Time3+(Time2-Time1);
Price4=Price3+(Price2-Price1);
 
The second line shifted from the main line equidistantly. 1-st and 2-nd point determine main line, 3-rd point determines second line. Lines are parallel therefore You can get 4-th point

Time4=Time3+(Time2-Time1);
Price4=Price3+(Price2-Price1);


Hello Slawa! thank you for your answer! however I don't understand it very well. could you please elaborate it a bit more? especially, what is price1, price2 and price3? how are they determined?

thanks a lot!
 
See "MQL4: ObjectGet"
string name="equidistant channel"; // name of your object
double Price1=ObjectGet(name,OBJPROP_PRICE1);
datetime Time1=ObjectGet(name,OBJPROP_TIME1);
double Price2=ObjectGet(name,OBJPROP_PRICE2);
datetime Time2=ObjectGet(name,OBJPROP_TIME2);
double Price3=ObjectGet(name,OBJPROP_PRICE3);
datetime Time3=ObjectGet(name,OBJPROP_TIME3);
Reason: