problem with trend line and circle

#1
hello to every body


A))how can we Draw a circle or Measure a line (trend line) in ami?
would u please explain?

B))how can we fine the center of line (trend line)?

these are for technical analysis

thanks in advance
best regards
(important)
 

yusi

Well-Known Member
#4
You will have to think of AmiBroker shapes differently than you think of them in a drawing program such as Photoshop or Illustrator.

In AB, the anchor points are the date/price coordinates. In a drawing program, the anchors are screen coordinates. As a result, when you select a shape and look at Properties, you will see X/Y as date-time and price.

So when you zoom, the date-time/price coordinates remain the same. However, the angle as visible on the chart at that time will be different. Now, you may ask why does AB display an angle value when when it varies with the zoom? I do not have an answer to that.

As a corollary, there is no such thing as a circle or a square in AB as it would change with the zoom. In a normal drawing program, you would typically select the ellipse tool and press Shift or Ctrl to draw a circle; but this has no meaning in AB and is, therefore, not available.
 
#5
You will have to think of AmiBroker shapes differently than you think of them in a drawing program such as Photoshop or Illustrator.

In AB, the anchor points are the date/price coordinates. In a drawing program, the anchors are screen coordinates. As a result, when you select a shape and look at Properties, you will see X/Y as date-time and price.

So when you zoom, the date-time/price coordinates remain the same. However, the angle as visible on the chart at that time will be different. Now, you may ask why does AB display an angle value when when it varies with the zoom? I do not have an answer to that.

As a corollary, there is no such thing as a circle or a square in AB as it would change with the zoom. In a normal drawing program, you would typically select the ellipse tool and press Shift or Ctrl to draw a circle; but this has no meaning in AB and is, therefore, not available.

can i divided the diff between (High - low)/ bar

and the TANJANT=(H-L)/bar, then ARCTHAN , and get the alfa

alfa: the angel of tren line

note: the Y axis and x axis are not same

thanks in advanced
 

yusi

Well-Known Member
#7
can i divided the diff between (High - low)/ bar
and the TANJANT=(H-L)/bar, then ARCTHAN , and get the alfa
alfa: the angel of tren line
note: the Y axis and x axis are not same
thanks in advanced
As you have noted, in AmiBroker X/Y axis are not the same units. Y is prices units, X is time units or the unitless number of bars. The geometrical Tan is unitless and so is the angle.

That said, you definitely can get Tan, Arctan, angle, etc. if you want them. There are some AFLs that derive price cycles using Sin/Cos. So long as you know what you are doing...
 
#8
As you have noted, in AmiBroker X/Y axis are not the same units. Y is prices units, X is time units or the unitless number of bars. The geometrical Tan is unitless and so is the angle.

That said, you definitely can get Tan, Arctan, angle, etc. if you want them. There are some AFLs that derive price cycles using Sin/Cos. So long as you know what you are doing...
would u please share these AFLS ? thanks in advanced.
 

Similar threads