hello
i've created fibo with these codes
is it possible to get its angle - comparable with one given by trendByAngle ?
angle1 = MathArctan((p2 - p1) / (t1 - t2));
angle2 = MathArctan((p2 - p1)/ (Time[t2] - Time[t1]));
angle1 or angle2 give wrong values (in radians)
Thanks
i've created fibo with these codes
Inserted Code
#include <ChartObjects\ChartObjectsFibo.mqh> CChartObjectFibo myFibo; //.... myFibo.Create(0, "myFibo", 0, Time[t1], p1, Time[t2], p2); //...
angle1 = MathArctan((p2 - p1) / (t1 - t2));
angle2 = MathArctan((p2 - p1)/ (Time[t2] - Time[t1]));
angle1 or angle2 give wrong values (in radians)
Thanks