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

[amibroker] Re: Calculating statistical occurrences



PureBytes Links

Trading Reference Links

Any binary condition is 0 [when false] or 1 [when true].
The cum(cond) will add these daily values like
0+0+1+0+1+1+0+...
and will sum the true occurrences of the condition.
The cum(1) will add the trading bars, consequently the 
100*cum(cond)/cum(1)
will give the % statistics of cond occurrence.
DT
--- In amibroker@xxxxxxxxxxxxxxx, "epintoem" <epintoem@xxxx> wrote:
> How would I go about Calculating the number of times a certain event
> happens with regard to a security.
> 
> the problem in this case is as follows:
> 
> In a security...I would like to determine how many times in its
> lifetime dit the next days high or low come to within say 20 cents 
of
> the previous days close. and mark that position on the chart.
> 
> TIA


------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE Cell Phones with up to $400 Cash Back!
http://us.click.yahoo.com/_bBUKB/vYxFAA/i5gGAA/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/