PanoS
October 11, 2019, 2:17pm
3
Hi, and welcome to the forum.
What I recommend first of all is to read carefully until you understand about the maths that @Tomasz explained here about anisotropic charts.
Firstly:
You know that the whole concept of “angle” on chart is flawed, don’t you?
Why? Because X and Y axes are in different units. X is time (days, weeks, minutes, seconds), Y is dollar (or euro, yen, pound, whatever). You can’t mathematically have angle between different units without making (invalid) assumptions that say one day is the same as one dollar.
Secondly:
Even if you had same units, your code is wrong.
Tangent function IS the ratio y/x. So there is no point in calculating tang…
The Users' guide as always explains everything:
https://www.amibroker.com/guide/drawtools.html
Fibonacci arc
This new drawing tool generates standard Fibonacci-arcs that are controlled by the trend line drawn with a dotted style. To see the properites of the arcs click on the controlling trend line.
Note that arc radius and central point are relative to the controlling trendline and because Fibonacci arcs must be circular regardless of screen size/resolution and zoom factor the position of …
After reading the above links and if you agree to continue, then if you are good in afl coding you can achieve that by spending max two hours coding. So have a look of a readymade AFL codes that you can use to achieve your tool dream.
This link drawing-multiple-lines is very - very close to your Tools
1 Like