z1 you have already . . . " given :point 1 and point2 both in price and time " it's price is the price at point 2 and it's time is the time at point 1
z2 cannot be calculated unless you decide what value you have for it already, do you already have it's time or it's price ? for example, it's time can be determined by a bar number . . . once you have this . . .
Draw a tredline Object from point 1 to point 2, rayed and then use ObjectGetValueByShift() or ObjectGetShiftByValue()
thanks alot
RaptorUK
for z2 i think it can be calculated God will
with doubling the time difference and price difference from point 1 and point 2
Sounds easy to me
DEFINE:
point1 = (price1, time1)
point2 = (price2, time2)
Then
Z1 = (price2, time1)
Z2 = (price3, time3)
where
price3 = price2 + (price2-price1) = 2*price2 - price1
time3 = time2 + (time2-time1) = 2* time2 - time1
NOTE: brackets mean different things in the equations. In (price1,time1) the brackets mean co-ordinates whereas lower down they mean "do this operation first"

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello,,,could any one help me please getting points z1 and z2 in mql4
given :point 1 and point2 both in price and time
z1 is the intersection between the horizontal line from point 2 and vertical line from point 1 i need it in price and time also
z2 is at the line passing from point 1 and point 2 ....point 1 to point 2 =point 2 to z2
thanks alot in advance