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

Re: [amibroker] OT: HTML vs. Plain Text



PureBytes Links

Trading Reference Links




For an already drawn Trough-to-Peak study AB, the respective 
ellipse is
 
// The Trough-to-Peak 
Ellipse
y=C;
X=<FONT 
size=2>BarIndex<FONT face="Times New Roman" 
size=2>();
AB=<FONT 
size=2>Study("AB",GetChartID<FONT 
face="Times New Roman">());
Plot<FONT 
size=2>(y,"C",1,64);
G=<FONT 
size=2>Cum(IsTrue(AB));<FONT 
face=Verdana>
STARTX=<FONT 
size=2>LastValue(ValueWhen(G==1<FONT 
face="Times New Roman" size=2>,X));
STARTY=L[STARTX];
ENDX=<FONT 
size=2>LastValue(ValueWhen(G>Ref(G,-1<FONT 
face="Times New Roman" size=2>),X));
ENDY=H[ENDX];
x0=ENDX;y0=STARTY;
<FONT face="Times New Roman" 
size=2>b=ENDY-STARTY;a=ENDX-STARTX;
Ellipse=y0+<FONT 
size=2>sqrt((a*b)^2-(b*(x-x0))^2<FONT 
face="Times New Roman">)/a;
Plot<FONT 
size=2>(Ellipse,"Ellipse",colorWhite,1);
GraphXSpace=8<FONT 
face="Times New Roman">;
 
Dimitris Tsokakis<FONT 
face=Verdana>


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.







Attachment:
ELLIPSE.gif

Attachment: Description: "Description: GIF image"