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
Tomasz
December 7, 2018, 2:17am
2
Please use forum search before posting. To paraphase famous sentence from Matrix movie "there is no spoon" one can say "there is no angle"
You need to understand that there is no single "angle" that can be determined
in anisotropic charts, i.e. ones that X axis scale has different units than Y axis.
In price chart X axis scale is TIME where Y axis scale is PRICE (dollars).
There is no fixed mathematical relation between time and dollars, therefore there is no angle.
All charts use dynamic scale, and that means that relation between X and Y is dynamic
and arbitrary based on price movement, zoom factor, display area size, etc.
T…
3 Likes
Please, watch this video on youtube anh think how does this man can draw gann fan 45 dergee in amibroker like that.
tgbssk
March 12, 2021, 1:59am
5
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.