PureBytes Links
Trading Reference Links
|
Jason,
As I see you use AddToComposite to add O, H, L, C, V for a group of
stocks.
I would
a. move these stocks in WL10, for example, and scan ONLY WL10 with
AddToComposite(O, "~NYSE Wave", "O" );
AddToComposite(H, "~NYSE Wave", "H" );
AddToComposite(L, "~NYSE Wave", "L" );
AddToComposite(C, "~NYSE Wave", "C" );
AddToComposite(V, "~NYSE Wave", "V" );
AddToComposite( 1, "~NYSE Wave", "I" );
Buy = 0;
instead of scanning the whole universe of tickers.
Note that the counter will work, because you scan ONLY WL10.
b.
If you dont want WL solution [you should loose time by scanning all
stokes !!], then try to have a simple formula.
t=Name();
w=IIF(t=="C" OR t=="KO" OR t=="WMT",1,0);//add the names here
AddToComposite(w*O, "~NYSE Wave", "O" );
AddToComposite(w*H, "~NYSE Wave", "H" );
AddToComposite(w*L, "~NYSE Wave", "L" );
AddToComposite(w*C, "~NYSE Wave", "C" );
AddToComposite(w*V, "~NYSE Wave", "V" );
Buy = 0;
The counter now needs your attention : The
AddToComposite( 1, "~NYSE Wave", "I" );
will count ALL the tickers of the selected database in AA settings,
not only your group !!
You should replace it with
AddToComposite( w, "~NYSE Wave", "I" );
This will add +1 ONLY for your the stocks of your group, since w is 0
for the rest.
Read also the Example1 from "Calculating multiple-security statistics
with AddToComposite function". It describes exactly what you try to
do.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "aereoplain" <aereoplain@xxxx>
wrote:
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS"
> <TSOKAKIS@xxxx> wrote:
> > Let me ask you another question : Did you create "correct"
> composite
> > tickers with some other T/A software on the same database ?
>
> Thanks to all who responded to my question.
>
> To answer Dimitris Tsokakis' question above, no I didn't create any
> composites with any other software. I only use this database with
> AmiBroker, since my eSignal software doesn't require me to store
> data on the hard drive to use eSignal charts.
>
> Since Yahoo no longer stores attachments, I wasn't able to access
> the file called "IntroToAtc" that Udo provided. Udo, if I'm not
> mistaken, that's the same file that's available on Amibroker's
> website. I've read it at least 10 times and tried to follow the
> instructions to the letter, all to no avail. If this file is
> different from the one supplied on the Amibroker website, then
maybe
> you could provide a link to it?
>
> At the suggestion of some of you, I'm pasting the code below, and
> I'll try to attach a screenshot. But I don't think anyone will be
> able to see the screenshot unless you receive posts from this group
> by email. As I stated earlier, Yahoo is no longer storing
> attachments.
>
> Thanks to anyone who takes time out of their busy schedule to help
> me (including those of you who have already done so!),
>
> Jason
>
> My code for one particular composite:
>
> t = Name();
> if( t == "C" ) w = 1;
> if( t == "KO" ) w = 1;
> if( t == "DOW" ) w = 1;
> if(t== "EXC" ) w = 1;
> if(t== "XOM" ) w = 1;
> if(t== "GE" ) w = 1;
> if(t== "PFE" ) w = 1;
> if(t== "PG" ) w = 1;
> if(t== "UPS" ) w = 1;
> if(t== "WMT" ) w = 1;
>
> /* AddToComposite statements are for Automatic Analysis -> Scan */
> /* add Close price to our index OHLC fields */
> AddToComposite(w*O, "~NYSE Wave", "O" );
> AddToComposite(w*H, "~NYSE Wave", "H" );
> AddToComposite(w*L, "~NYSE Wave", "L" );
> AddToComposite(w*C, "~NYSE Wave", "C" );
> AddToComposite(w*V, "~NYSE Wave", "V" );
>
> /* add one to open intest field (we use this field as a counter) */
> AddToComposite( 1, "~NYSE Wave", "I" );
>
>
> Buy = 0; // required by scan mode
>
> /* this part is for Indicator Builder */
> Graph0 = Foreign( "~NYSE Wave", "C" )/Foreign( "~NYSE Wave", "I" );
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|