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

RE: [amibroker] Calculating statistical occurrences



PureBytes Links

Trading Reference Links

Did you use the time filter in the AA window, or add to your buysig
datenum()>1020303 or what date range you require

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia

-----Original Message-----
From: Bob Jagow [mailto:bjagow@xxxxxxxxxxx] 
Sent: Friday, 11 April 2003 8:16 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Calculating statistical occurrences

That's what I did, Graham.

The only problem was restricting the range.

Bob

-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Thursday, April 10, 2003 5:04 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Calculating statistical occurrences


Try cum(Buysig)

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia

-----Original Message-----
From: Bob Jagow [mailto:bjagow@xxxxxxxxxxx]
Sent: Friday, 11 April 2003 7:54 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Calculating statistical occurrences

UM,
I was trying to count signals [e.g., BuySig = Cross(MA(C,10),MA(C,50));]
using n= 1 get a single line for each symbol.

Filter = DateNum() > 1030101   was a miss-step; the constraint has to be
applied to the buy signal 8-(

BuySig = Cross(MA(C,10),MA(C,50)) AND DateNum() > 1030101;

Bob

-----Original Message-----
From: uenal.mutlu@xxxxxxxxxxx [mailto:uenal.mutlu@xxxxxxxxxxx]
Sent: Thursday, April 10, 2003 4:08 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Calculating statistical occurrences


Hi Bob,
you can set a date range (ie. From...To...). In this case the
table results will contain only those meeting the criteria in that
period. But, this date range has no effect on the chart; ie. also
for  dates outside the specified date range arrows will be drawn
too. Don't know, this is either a bug or a feature of AB :-)
UM

----- Original Message -----
From: "Bob Jagow" <bjagow@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, April 10, 2003 11:39 PM
Subject: RE: [amibroker] Calculating statistical occurrences


> Is there a way to restrict the range, UM?
> That is, n = 1 outputs a summary of all the signals for all quotations
> [per the Database setting '# of bars to load'] irrespective of
> conditions such as
> Filter = DateNum() > 10301;
>
> TIA,
> Bob
>
> -----Original Message-----
> From: uenal.mutlu@xxxxxxxxxxx [mailto:uenal.mutlu@xxxxxxxxxxx]
> Sent: Thursday, April 10, 2003 10:20 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Calculating statistical occurrences
>
>
> Hi, try this:
>
> - paste the AFL code below into the Automatic Analysis window
> - select your stock (fe. DROOY)
> - select "Apply to current stock"
> - select "Range: all quotiations"
> - click Explore
> - doubleclick on one of the result lines
>
> This will mark these days where the condition was met
> with a green or red arrow on the main chart (but only if
doubleclicked)
> and in the table a counter will be given....
> UM
>
> /***** code starts here *****/
> Diff    = 0.20;    // set your own value
>
> CountL  = 0;
> CountH  = 0;
>
> prevC   = Ref(C, -1);
> FilterL = L <= (prevC - Diff);
> FilterH = H >= (prevC + Diff);
>
> CountL = CountL + FilterL;
> CountH = CountH + FilterH;
>
> Buy  = FilterL;
> Sell = FilterH;
> Filter = Buy or Sell;
>
> AddColumn(cum(CountL),  "LCounter", 1.0);
> AddColumn(cum(CountH),  "HCounter", 1.0);
> AddColumn(cum(CountL) + cum(CountH),  "Sum", 1.0);
> /***** code ends here *****/
>
>
> ----- Original Message -----
> From: "epintoem" <epintoem@xxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, April 10, 2003 5:28 PM
> Subject: [amibroker] Calculating statistical occurrences
>
>
> > 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





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/




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/



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/




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/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/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/