PureBytes Links
Trading Reference Links
|
Hello,
Sure you can:
<FONT
color=#0000ff>SetBarsRequired( <FONT
color=#ff00ff>100000, <FONT
color=#ff00ff>0 );
Plot( <FONT
color=#000000>C, <FONT
color=#ff00ff>"Price", <FONT
color=#000000>colorBlack<FONT
color=#000000> ); <FONT
color=#800000>function<FONT
color=#000000> PlotCARCurve(percent) { y = <FONT
color=#0000ff>Year();
DayNum = DayOfYear() +
365 * (y - y[ <FONT
color=#ff00ff>0 ]);
Gain = (1+
0.01 *
percent)^(DayNum/365<FONT
face="Courier New">); <FONT
color=#0000ff>Plot( <FONT
color=#000000>C[ <FONT
color=#ff00ff>0 ] * Gain, <FONT
color=#ff00ff>"CAR("+percent+<FONT
color=#ff00ff>"% )", <FONT
color=#000000>colorRed<FONT
color=#000000> ); } <FONT
color=#800000>function<FONT
color=#000000> ComputeAvgCAR() { y = <FONT
color=#0000ff>Year();
Change = LastValue(
C ) - <FONT
color=#000000>C[ <FONT
color=#ff00ff>0 ]; <FONT
color=#008000>//
DayNum = DayOfYear() +
365 * (y - y[ <FONT
color=#ff00ff>0 ]);
ComputedCAR = 100 * (
(Change/C<FONT
color=#000000>[0<FONT
color=#000000>])^(365<FONT
color=#000000>/(LastValue<FONT
color=#000000>(DayNum)-DayNum[0<FONT
color=#000000>])) - 1<FONT
face="Courier New"> ); <FONT
color=#800000>return<FONT
color=#000000> ComputedCAR; } CAR = ComputeAvgCAR();
Title<FONT
color=#000000>="Computed CAR: "<FONT
face="Courier New" color=#000000>+CAR ; PlotCARCurve( CAR );
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=steve2@xxxxxxxxxxxxxxxxxxxx
href="">Steve Almond
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">Ami
Sent: Wednesday, May 19, 2004 5:19
PM
Subject: [amibroker] Something New?
I came across a 'new' method of investing whilst perusing the Motley Fool
boards (I think a subscription is required - sorry). It's called the BMW
system after the inventor's name BuildMWell.
<A
href="">http://boards.fool.com/Message.asp?mid=20414790
Basically, he takes a long price history (typically 30 years of monthly
data) and constructs a series of % CAGR (compound annual growth rate) curves
which encompass the data.
Here is an example (PEP) from, I believe, Excel:
<IMG alt="" hspace=0 src="jpg00066.jpg"
align=baseline border=0>
The first curve uses today's price and the price 30 years ago to
calculate the current CAGR (say 11.3%) which he then draws (manually) on a
chart printout.
He simply calculates the price every 5 years assuming an annual 11.3%
increase and connects the dots with a French curve!
Similar curves are then drawn to hit the obvious high and low
points.
In this way he invests when the stock is historically 'low'. For example
see the above chart about mid 2002.
As you will appreciate, this is not a short term system, but BMW claims
not to have had ANY losers since starting in 1999!
The question, of course, is can we draw these curves in AB?
Thanks,
SteveSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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
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:
Description: ""
|