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);
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);
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
thanks in advance!