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
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 ITI 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.28975PriceB = 1.29097
ChangeX = 25ChangeY = MathAbs(PriceA - PriceB) // = 0.00122
m = ChangeY / ChangeX // = 0.0000488
y = m * 38 + PriceA // = 1.29160
To add comments, please log in or register