Calcuate Angle of a Trendline

 

Hello,

does somebody know how i can calculate the Angle of a trendline?

I know we will need all 4 values 2 time and 2 price values but how calculate then with the values?

 

"What is the angle of walking one mile in 30 minutes?" Makes no sense. For an angle you need X and Y both the same units. X units north and X units east is 45 degrees.

"What is the angle of price increasing 100 pips in 30 minutes or 30 bars?" Makes no sense. You can compute the slope deltaX/deltaY (200 pips/hour or 3.3 pips/bar) but not angle.

 
when you draw a OBJ_TRENDBYANGLE trendline then you can read how much ° it have and i want to know how i can calculate that value for OBJ_TREND trendlines
 
PlanandTrade:

Hello,

does somebody know how i can calculate the Angle of a trendline?

I know we will need all 4 values 2 time and 2 price values but how calculate then with the values?

https://www.mql5.com/en/forum/146634

https://www.mql5.com/en/forum/141189

https://www.mql5.com/en/forum/139593

https://www.mql5.com/en/forum/138854

Reason: