ObjectGetValueByShift() - https://docs.mql4.com/objects/objectgetvaluebyshift
PS! You can also calculate it yourself, by using a standard linear equation "y = mx + c".
ObjectGetValueByShift() - https://docs.mql4.com/objects/objectgetvaluebyshift
PS! You can also calculate it yourself, by using a standard linear equation "y = mx + c".
Thanks for both (especially the later, I was not able to do Algebra.. (lived on the street as a kid, no school for me) maybe it's time to learn some basics)
edit pseudo code: GOT IT
I draw the trend line between 1 and 25. (just for visualization)
I want to know the Y value of bar #38's line crossing.
PriceA = 1.28975
PriceB = 1.29097
ChangeX = 25
ChangeY = MathAbs(PriceA - PriceB) // = 0.00122
m = ChangeY / ChangeX // = 0.0000488
y = m * 38 + PriceA // = 1.29160
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey,
Is it possible to retrieve a Ray value of a drawn ray line in the past, Or do i have to calculate it myself (how?)
Thanks