PureBytes Links
Trading Reference Links
|
Hello Peter and All,
> From: "Peter Carr" <pcarr@xxxx>
> Is it possible to modify the 'Market'/'Group' data using a script rather
> than having to re-import all the data again. I don't want to overwrite
> the entries I have already made to the Information sections of certain
> stocks. Setting the 'Market' for nearly 3000 entries is a bit daunting.
Yes, it is possible using scripting.
First please read the following issue of AmiBroker Tips newsletter:
04/2000 Tip of the week: How to automate assigning stocks to sectors/industries?
http://www.amibroker.com/newsletter/04-2000.html
The only difference is that you should create the file with group and market numbers
instead of industries and modify the script to use GroupID and MarketID instead of IndustryID.
If you need more advice just ask.
>
> Thanks in advance.
>
> PS: Also, I notice there is no 'Sector' selector in the Stock
> Information dialogue. Or 'Sector' folder in the tree.
"It is important to understand the difference between a sector and an industry: industries "belong" to sectors, for example: "Air
Courier", "Airline", "Railroads", "Trucking" industries belong to "Transportation" sector. So if a stock is assigned to given
industry, it is "automatically" assigned also to the corresponding sector.
In the example DJIA database each stock is assigned to specific industry, for example GM (General Motors) is assigned to "Auto &
Truck Manufacturers" industry, and this implicates that GM belongs to "Consumer/Cyclical" sector. "
See:
07/2000 Tip of the week: Understanding sectors and industries
http://www.amibroker.com/newsletter/07-2000.html
Moreover Sectors and Industries will be added to the tree in version 3.5
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
|