PureBytes Links
Trading Reference Links
|
Graham,
Your examples and explanations are very good.
Maybe you should write an addendum to the User's Guide in your spare
time.
Glen
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=gkavanagh@xxxxxxxxxxxxx
href="">Graham
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, March 24, 2004 5:52
PM
Subject: RE: [amibroker] Can someone
explain what this is doing?
Sum adds up the last "n" number of bars. It sums whatever
you put into thefirst part of the sum formula.Cum(1) adds 1 to the
previous value of Cum, so the first bar is 1 and itjust keeps adding one
to the last bar value of cum(1). You can use Cum toadd anything, like how
many times you get rising days in the entire chartRise = C>O; //this
gives results of 0 or 1TotalRise = Cum(Rise);You could limit this
as well to time periods, or any other conditionExample would bne for total
rise days since 1995RecentRise = C>O and Year()>=1995; //this gives
results of 0 or 1TotalRise = Cum(RecentRise);If you wanted to know
how many rising days in the last 12 bars you would useLastRises =
Sum(Rise,12);Hope this helpsCheers,Graham<A
href="">http://e-wire.net.au/~eb_kavan/-----Original
Message-----From: angus_83210 [mailto:rduncan@xxxxxxx] Sent:
Wednesday, March 24, 2004 11:58 PMTo:
amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Can someone explain what
this is doing?Sum( Cum(1),n) n = 12 I understand that Cum(1)
returns the number of the last bar. But what is Sum doing and what
number is it summing H/L/O/C? ThanksSend
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
Yahoo! Groups LinksSend 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.
|