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

Re: [amibroker] refresh all after exploration



PureBytes Links

Trading Reference Links

Herman
Thanks for the example, one thing I'm having trouble with though is this
part of your example
>else if(Task==3 AND Status("StockNum")==NumTickers)
> {
> // Do something during the last ticker in the WL
> AddColumn(Status("StockNum"),"StkNum",1.0,1,colorGreen);
> }

I never have this column added unless I somehow initiated it when
Status("StockNum")==0  .
Are you able to add columns part way though an exploration?  I can't seem
to.

Thanks
Andrew

Ps. Never taken the time to thank you for your HBT3A pluggin.  I use it all
the time but only as a substitute for a MA.  Do you have any other
applications for it? I notice you can vary the values of arguments 2 & 3, so
I guess adaptive Smoothing procedures are possible.


----- Original Message -----
From: "Herman vandenBergen" <psytek@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, December 21, 2003 2:14 PM
Subject: RE: [amibroker] refresh all after exploration


> You can do many different things using a loop combined with stocknumbers.
> Here is a simple example, it does nothing. The Explorer is nice in that it
> accumulate columns, meaning if you loop three time you can have data
output
> in consecutive columns for each pass.
>
> best regards,
> Herman.
>
> Buy=Sell=Short=Cover=0;
> Filter = BarIndex() > BarCount-11;
> WL=0;
> List = GetCategorySymbols( categoryWatchlist, WL);
> for( n=0; (Ticker=StrExtract( List, n))!= ""; n++); NumTickers=n-1;
> for(Task=0;Task<=3;Task++)
> {
> AddColumn(Task,"Task",1.0,1,0);
> if(Task==0)
> {
> // do pre-processing here
> Test0 = Task; // dummy code
> AddColumn(Test0,"Test0",1.0,1,colorBrightGreen);
> }
> else if(Task==1)
> {
> // Process normal code here
> Test1 = Task; // dummy code
> AddColumn(Test1,"Test1",1.0,1,colorLightBlue);
> }
> else if(Task==2)
> {
> // do post-processing here
> Test2 = Task; // dummy code
> AddColumn(Test2,"Test2",1.0,1,colorRed);
> }
> else if(Task==3 AND Status("StockNum")==NumTickers)
> {
> // Do something during the last ticker in the WL
> AddColumn(Status("StockNum"),"StkNum",1.0,1,colorGreen);
> }
> }
>
>
>
>
>
> -----Original Message-----
> From: Dave Merrill [mailto:dmerrill@xxxxxxx]
> Sent: December 21, 2003 11:10 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] refresh all after exploration
>
>
> Sorry I wasn't clearer. I know code doesn't run for stocks outside the
test.
>
> But if you had access to the total universe of stocks in the test, you
could
> calculate any stats you wanted on that population before processing began
> (Status("StockNum") == 0), and use that info to score individual stocks.
For
> example, you could calculate their average price beforehand, and filter
out
> or downgrade individual stocks below that. You could also count the number
> of stocks being processed, and so on. Top N anythings on the stocks being
> processed are possible too I think, without requiring that proicessing run
> on a watchlist, one whose number I know.
>
> Make sense?
>
> Dave
>
>
> > > A more flexible thing I'd love to see is a way to get the list
> > of all stocks
> > > in the current backtest or exploration, something like
> > > Status("IssuesInTest"), or a reserved variable, maybe
> > IssuesInTest. Those
> > > would be very useful in any case, for calculating averages or other
> > > quasi-composites on the stocks being tested.
> >
> >
> > But... in AA window your code is executed ONLY for stocks that
> > are "InTest". Symbols not included in "apply to" group are SKIPPED
> > automatically and your code is never executed on such stocks.
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
>
>
> 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 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:
>  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
>
> 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:
>  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 

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:
 http://docs.yahoo.com/info/terms/