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

[amibroker] Re: Problem with AddToComposite



PureBytes Links

Trading Reference Links

--- 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/