|
Gilari Decosta
2010-11-17 11:18:59
|
|
Sir,
Is there any formulae to find angle of SMA Line?
Please Inform me
Thanks
Gilari
|
|
|
|
QuantShare
2010-11-18 04:31:03
0
|
|
Best Answer
To calculate the angle of a time-series:
a = LinearReg_Angle(sma(30), 2);
|
|
|
|
Obuli Govindaraju
2013-04-12 07:29:14
0
|
|
The value returned by LinearReg_Angle() functions - is that in degrees or something else? If something else how do I get it to degrees.
For example if I use AutoSR function and I want the angle of a support line in degrees what should I do?
Thanks.
|
|
|
|
|
|
QuantShare
2013-04-13 12:22:18
0
|
|
Hi,
You should not compare the result with the drawing tool, because the latter returns the visual angle, and you may notice that the angle changes if you resize the chart.
However, you are right. There is an issue in the calculation of the "LinearReg_Angle". It will be fixed in the next release.
In the meantime, here is how to calculate the right angle:
supAngle = Atan(LinearReg_slope(sup,period))*(180/3.14);
|
|
|
|
Obuli Govindaraju
2013-04-13 18:36:34
0
|
|
Thanks for the clarification on visual angle. So if LinearReg_Angle() does not return visual angle then what "angle" does it return?
What does angle mean in this context?
|
|
|
|
QuantShare
2013-04-13 20:18:45
0
|
|
It returns the angle of the linear equation returned by the linear regression. The angle looks correct visually when the difference between the X values (Each bar) is equal to the difference between Y values (Same distance between increments).
|
|
|
|
Obuli Govindaraju
2013-04-13 22:40:23
0
|
|
Great! Thanks for the reply.
I should have realized that it is the angle of the linear regression line since that is what the function is.
|
|
|
|