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

Re: [amibroker] Re: Comment From a newbie



PureBytes Links

Trading Reference Links

Hello Dave

For sector composites use :
sym="~"+SectorID(1);
AddToComposite(L,sym,"L");
AddToComposite(O,sym,"O");
AddToComposite(H,sym,"H");
AddToComposite(C,sym,"C");
AddToComposite(V,sym,"V");
Buy=Sell=Short=Cover=0;
Filter=1;

For Industrygroup composites use :
sym="~"+IndustryID(1);
AddToComposite(L,sym,"L");
AddToComposite(O,sym,"O");
AddToComposite(H,sym,"H");
AddToComposite(C,sym,"C");
AddToComposite(V,sym,"V");
Buy=Sell=Short=Cover=0;
Filter=1;

Simply run a scan with either of the formulas. No Group filters or so
- just scan on the whole database.

You should find all composites in Groups folder 253.

For updating, run the scan everytime after updating your database.

This should do the trick, provided your data source is not corrupted
or full of dataholes.

I'm using AB 4.6 beta with TC2000 database and it works very well.

regards
Stefan


--- In amibroker@xxxxxxxxxxxxxxx, "davelansing2004" <d.ankrapp@xxxx>
wrote:
> 
> Hi Dimitris,
> 
> I've read the user's guide and also Herman's file on the multiple 
> uses of the AddToComposite function.. with that said, I copied a very 
> simple code that Tomasz had written to calculate composites for 
> Sectors (I replaced the Sectors ID with Industry ID):
> 
> sym = "~"+IndustryID(1);
> AddToComposite(C,sym,"X",27);
> AddToComposite(1,sym,"I",27);
> y = Foreign(sym,"X")/Foreign(sym,"I");
> Plot(y,sym,8);
> 
> Basically, the composite plots are very erratic; there are large 
> spikes in the plots day-to-day, and the plots basically oscillate 
> without apparent trends... I know that the underlying data is good.. 
> I purchase EOD data from Reuters...so my question is how to normalize 
> the data so that it's similar to the Dow Jones Indices...thanks!
> 
> Dave



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/