how can i calculate the angel of the current ema & the previos bar ema
Announcement
Collapse
No announcement yet.
angel calculation
Collapse
X
-
do you want???
degrees difference or something else??
here is some help...
//Assume a 30% slope (rise over run);
nSlope = 0.30;
nAngle = Math.atan( nSlope ) / ( Math.PI/180 );
nAngle now equals approx 16.67 Degrees.
ยท Calculate the slope (in %) from an angle:
//Assume a 20-degree angle
nAngle = 20.0;
nSlope = Math.tan( nAngle * (Math.PI/180) );
nSlope now equals 0.3639 or a 36.39% slope.Brad Matheny
eSignal Solution Provider since 2000
Comment