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

[amibroker] Re: programming 101A



PureBytes Links

Trading Reference Links

...hmmm 
That's looking promising
I'll play with it
Is just amazing that such a simp,e thing like basicaly counting and 
displaying  the rows with a "1" in it seems to be a challenge
thx 4 ur help


--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> With the new Beta release today...ver 4.37....It is possible... 
Maybe Fred 
> or Peter or Tomasz, can
> clean this up a bit....But it seems to be returning the proper 
ticker for
> the X variable...
> I do not know how to combine the two conditions.....
> 
>  
> x=Cross(C,MA(C,28));//simple condition1
> y=Cross(C,MA(C,108));//simple condition2
>  
> /* note: if given watch list contains lots of symbols 
> ** performance may be poor 
> */
> function crossesforWatchList( listnum )
> {
> // retrive comma-separated list of symbols in watch list
> list = GetCategorySymbols( categoryWatchlist, listnum );
> x = 0; // just in case there are no watch list members
> for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
> {
> f = Foreign( sym, "C" );
> if( i == 0 ) x = 0;
> else x = 1;
> }
> return x; // 
> }
> Filter = x ;
> AddColumn(crossesForWatchList( 1 ),"TickerX",1);
> AddColumn(C,"close");
>  
>  Anthony
> 
> -------Original Message-------
>  
> From: amibroker@xxxxxxxxxxxxxxx
> Date: Saturday, May 17, 2003 11:00:31 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: programming 101A
>  
> Hi
> I don't wnat to be a pain U know where BUT
> that's EXACTLY what I'm trying to avoid
> AddToComposite
> I know I can do that and did it for long time
> Like the famous T2108 or whatver the name is of How many Above xMA
> ....so we are back to square one...
> Also I can do with ABTool or simpler with Excel( like i'm doing it 
> lately
> Thats good news - at least i'm not loosin my mind over it :)
> adrian
>  
>  
> --- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" 
<ajf1111@xxxx> 
> wrote:
> >  
> > //Your conditions to count here
> > 
> > x=Cross(C,MA(C,28));//simple condition1
> > y=Cross(C,MA(C,108));//simple condition2
> > 
> > /**************************************************/
> > //Set to your watchlist
> > //n last quotations and n=1
> > //click SCAN
> > 
> > AddToComposite(x,"~xCounterx","x");
> > AddToComposite(y,"~yCountery","x");
> > Buy=0;
> > 
> > /********************************************/ 
> > //select current stock
> > //click explore
> > //How many x's and how many Y's 
> > 
> > Filter=1;
> > //AddColumn(Counterx,"HowManyTimes x",1);
> > //AddColumn(Countery,"HowManyTimes y",1);
> > AddColumn((Foreign("~xCounterx","x")),"x",1);
> > AddColumn(Foreign("~yCountery","Y"),"Y",1);
> >  
> >  Anthony
> > -------Original Message-------
> >  
> > From: amibroker@xxxxxxxxxxxxxxx
> > Date: Saturday, May 17, 2003 10:19:47 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Re: programming 101A
> >  
> > Of course I did that 
> > but as I read it is not even close with the result I expect
> > lets add the following
> > AddColumn(x,"x",1); 
> > AddColumn(y,"y",1); 
> > I have  a list of 60 symbols and only 4 are x AND y
> > 3 x and 1 y
> > Now 
> > the "Counterx=Cum(x);" returns how many times X crosses on ALL 
bars 
> > in my database .. I think 
> > What I'm looking for is 
> > AddColumn(Counterx,"HowManyTimes x",1);  = 3
> >  
> > AddColumn(Counterx,"HowManyTimes y",1);  = 1
> >  
> > so a Filter =x or y should produce 4 symbols 
> > On 60 symbols of course I can eye ball and count them
> > BUT on 3000?
> > Export to eecel and sum the column?
> > I need this "quick" no extra help outside AB
> >  
> > thx 
> >  
> >  
> >  
> > --- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" 
> <ajf1111@xxxx> 
> > wrote:
> > > Hello,
> > >  
> > > In AA...n last quotations and n=1, click explore:
> > >  
> > > x=Cross(C,MA(C,28));//simple condition1
> > > y=Cross(C,MA(C,108));//simple condition2
> > > 
> > > Counterx=Cum(x);// (???)
> > > Countery=Cum(y);// (???)
> > > 
> > > Filter=1;//x > 0 OR y > 0;
> > > 
> > > AddColumn(Counterx,"HowManyTimes x",1);
> > > AddColumn(Countery,"HowManyTimes y",1);
> > > 
> > > Anthony
> > >  
> > > -------Original Message-------
> > >  
> > > From: amibroker@xxxxxxxxxxxxxxx
> > > Date: Saturday, May 17, 2003 9:36:50 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Re: programming 101A
> > >  
> > > Sorry to jump in but I'd like to do  kind of the same thing
> > > at the last bar in Explorer with n=1 "n last quotations"
> > >  
> > > No Plots, no AddtoComposite no ABtool
> > > Plain AFL
> > >  
> > > Pseudo - code :)
> > > x=Cross(C,MA(C,28));//simple condition1
> > > y=Cross(C,MA(C,108));//simple condition2
> > > Counterx='how many times x (???)
> > > Countery='how many times y (???)
> > > Filter=x or y;
> > > AddColumn(Counterx,"HowManyTimes x",1);
> > > AddColumn(Countery,"HowManyTimes y",1);
> > >  
> > > ...so far from my limited understanding is not possible
> > > or am I missing the obvious?
> > > thx
> > >  
> > >  
> > >  
> > > AddColumn(Counterx,"Crossed28",1);
> > > --- In amibroker@xxxxxxxxxxxxxxx, Sidney Kaiser <s9kaiser@xxxx> 
> > wrote:
> > > > Yes to the date range and yes, that was the conclusion I 
> reached 
> > > > also.  Cum(x) is counting over all the data available and 
seems 
> > to 
> > > ignore 
> > > > the fact that a date range is specified.  No joy....
> > > > Sid
> > > > 
> > > > At 09:08 PM 5/17/2003 -0400, you wrote:
> > > > 
> > > > >Are you trying to count a condition within a specific date 
> > > range....?
> > > > >
> > > > >As it is... the formula is counting the number of times that 
> the 
> > > condition
> > > > >has occured in the entire
> > > > >Data history....
> > > > >
> > > > >-------Original Message-------
> > > > >
> > > > >From: amibroker@xxxxxxxxxxxxxxx
> > > > >Date: Saturday, May 17, 2003 8:57:35 PM
> > > > >To: amibroker@xxxxxxxxxxxxxxx
> > > > >Subject: Re: [amibroker] programming 101A
> > > > >
> > > > >At 08:34 PM 5/17/2003 -0400, you wrote:
> > > > >
> > > > > >Sid,
> > > > > >
> > > > > >x=Cross(C,MA(C,28));//simple condition
> > > > > >Counter=Cum(x);
> > > > > >Filter=1;
> > > > > >AddColumn(Counter,"",1);
> > > > > >
> > > > > >Is this a start...Does it help
> > > > > >
> > > > > >Anthony
> > > > >
> > > > >
> > > > >counter = cum(x)  was one of the first things I tried.  On 
the 
> > > very first
> > > > >line of the debug exploration I was getting counter values 
of 
> > 117 
> > > with my
> > > > >logic, which made no sense to me at all as it should have 
been 
> > > counter = 1
> > > > >about 6 lines down in the exploration output.
> > > > >
> > > > >
> > > > >???
> > > > >Sid
> > > > >
> > > > >Yahoo! Groups Sponsor
> > > > >
> > > > >
> > > > >
> > > > >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/)
> > > >http://groups.yahoo.com/group/amiquote/messages/)
> > > > >--------------------------------------------
> > > > >Check group FAQ at: 
> > > > 
> > > 
> > 
> 
><http://groups.yahoo.com/group/amibroker/files/groupfaq>http://groups
> > > ..yahoo.com/group/amibroker/files/groupfaq
> > > > >html
> > > > >
> > > > >Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> > > Service.
> > > > >
> > > > >
> > > > >
> > > > >Yahoo! Groups Sponsor
> > > > >ADVERTISEMENT
> > > > 
> > > 
> > 
> 
><http://rd.yahoo.com/M=249234.3060939.4604672.1261774/D=egroupweb/S=1
> > > 
> > 
> 
705632198:HM/A=1588299/R=0/*http://entk.net/a/4749/b/66/c/303/d/1/e/89
> > > 7?lineid=3060939>4f8619d.jpg
> > > > >4f86249.jpg
> > > > >
> > > > >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/)
> > > >http://groups.yahoo.com/group/amiquote/messages/)
> > > > >--------------------------------------------
> > > > >Check group FAQ at: 
> > > > 
> > > 
> > 
> 
><http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://g
> > > roups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > > >
> > > > >
> > > > >Your use of Yahoo! Groups is subject to the 
> > > > ><http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
> > > > >---
> > > > >Incoming mail is certified Virus Free.
> > > > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > >Version: 6.0.481 / Virus Database: 277 - Release Date: 
> 5/13/2003
> > > > 
> > > > 
> > > > 
> > > > ---
> > > > Outgoing mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.481 / Virus Database: 277 - Release Date: 
5/13/2003
> > >  
> > >  
> > > Yahoo! Groups Sponsor
> > >  
> > >  
> > >  
> > >  
> > >  
> > > 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 the Yahoo! Terms of 
> Service.
> >  
> >  
> > Yahoo! Groups Sponsor
> >  
> >  
> >  
> > 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 the Yahoo! Terms of 
Service.
>  
>  
> Yahoo! Groups Sponsor
>  
> Enter:
>  
>  
>  
>  
>  
>  
>  
> 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 the Yahoo! Terms of Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/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/