# Calculate angle slope price via degree like this is right?

x8 = Cum(1);
last8 = LastValue( x8 ); Daysback8 = 13; aa8 = LastValue( LinRegIntercept( L, Daysback8) );
bb8 = LastValue( LinRegSlope( L, Daysback8 ) );
y8 = Aa8 + bb8 * ( x8 - (Last8 - DaysBack8) );
Pi = 180/3.14159265 ; // Pi convert to degree
SlopeAngle = atan(y8)*Pi;
Plot( IIf( x8 >= (last8 - Daysback8), y8, -1e10 ), "Lin8", colorRed );
GfxSelectFont( "Verdana", 12, 100 );
GfxSetBkMode( 1 );
GfxSetTextColor( colorYellow );
y = Status( "pxchartheight" );
GfxTextOut("SlopeAngle: "+ WriteVal(SlopeAngle,1.2) , 13, y - 75 );

I think slope angle isn't correct , the result is 89 degree but i think it is lower . Could you check code and correct it??? thank master

Please use forum search before posting. To paraphase famous sentence from Matrix movie "there is no spoon" one can say "there is no angle"

3 Likes

Please, watch this video on youtube anh think how does this man can draw gann fan 45 dergee in amibroker like that.

Gann angle actually does not work 100% if price moves quickly it will form sharp angle else it will not.
Movement of price forms angle , angle does not decide price movement. Movement of price will always form some angle so it will be sharp angle or flat and even flat means 180° Angle.
It is wrong to use angles to predict prices.