Download MetaTrader 5
To add comments, please log in or register
How to buy a product in MetaTrader AppStore? Read the article!
niquedegraaff
63
niquedegraaff 2016.06.17 14:41 

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 

 

Fernando Carreiro
1523
Fernando Carreiro 2016.06.17 14:55  
niquedegraaff
63
niquedegraaff 2016.06.17 15:00  

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

/
To add comments, please log in or register