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

[amibroker] Re: Circle ( Cycles )



PureBytes Links

Trading Reference Links

Anthony,
The basic formula of #3876 was
/*CYCLE*/
x0=380;
y0=0;
R=20;
x=cum(1);
y1=y0+sqrt(R^2-(x-x0)^2);
y2=y0-sqrt(R^2-(x-x0)^2);
graph0=y1;
graph1=y2;
graph1barcolor=graph0barcolor=2;

x0, y0 are the coordinates of the center, R is the radius.
You may use many centers and many radii.
The centers may be fixed or variable.
Try, for example, on CSCO the

x=Cum(1);
L1=LastValue(x);per=20;
x0=ValueWhen(PeakBars(H,per)==0,Cum(1));
y0=ValueWhen(PeakBars(H,per)==0,H);
Ra=10;
Plot(y0,"",1,styleNoLine);PlotShapes(shapeUpTriangle*(y0!=Ref(y0,-
1)),colorRed);
for(r=Ra;r<=4*Ra;r=r+Ra)
{
Color=r/10;
y1=y0+sqrt(R^2-(x-x0)^2);
y2=y0-sqrt(R^2-(x-x0)^2);
Plot(y1,"",Color,1);Plot(y2,"",Color,1);
}
Plot(C,"",1,64);

The centers are placed at Peaks [with per=20]
Except the visual part, the rest procedure is meaningless. 
A cycle has equal radius at x and y directions by definition. The 
hidden postulate of any Cartesian xy graph is  
Xunit==Yunit
In CSCO price chart, the Xunit is 1bar and the Yunit is, say, $10, 
totally irrelevant quantities ...
Dimitris Tsokakis

--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Dimitri,
> 
> It was Message 3892...
> 
> Thanks
> Anthony
> 
> 
> ----- Original Message ----- 
> From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Saturday, October 11, 2003 12:14 PM
> Subject: [amibroker] Re: Circle ( Cycles )
> 
> 
> > Anthony,
> > What is your refernce message [or code]?
> > Dimitris Tsokakis
> > --- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" 
<ajf1111@xxxx>
> > wrote:
> > > Dimitri,
> > >
> > > Using your posted Cycle formula....is it possible to have 
multiple
> > circles
> > > on top of each other...but at Fib numbers apart....there would 
be
> > several
> > > rings spaced at fib intervals...
> > >
> > > Thanks
> > > Anthony
> > >
> > >
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.524 / Virus Database: 321 - Release Date: 10/7/2003
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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/
> >
> >
> >
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003


------------------------ 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/