[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Plot ellipse direct from AFL



PureBytes Links

Trading Reference Links

Excellent !!

Dimitris, thank you very much.

Drazen


--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Drazen,
> This is an ellipse centered at [x0,y0]
> 
> x0=900;y0=100;a=20;b=30;x=Cum(1);
> // b^2*(x-x0)^2+a^2*(y-y0)^2=(a*b)^2
> y=y0+sqrt(((a*b)^2-b^2*(x-x0)^2)/a^2);
> Plot(y,"",1,1);
> y=y0-sqrt(((a*b)^2-b^2*(x-x0)^2)/a^2);
> Plot(y,"",1,1);
> Plot(y0,"",1,1);Plot((Cum(1)==x0)*(y0+2*b),"",1,2);
> 
> Note that x0 is counted from the beginning of your data.
> Dimitris Tsokakis 
> --- In amibroker@xxxxxxxxxxxxxxx, "dstricek12" <dstricek12@xxxx> 
> wrote:
> > Hi
> > Im wondering is it possible to  plot  ellipse direct from AFL 
with  
> > my own coordinates ?
> > If yes, could someone give me a hint how to code it ?
> > 
> > Any help is appreciated
> > 
> > Drazen


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/