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

Re: [amibroker] Re: Need help with error code



PureBytes Links

Trading Reference Links

SectorID(1) returns the name - a string.
SectorID() or SectorID(0) returns the number

Steve

----- Original Message ----- 
From: "goldwing01_1999" <goldwing01_1999@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, November 18, 2005 1:40 PM
Subject: [amibroker] Re: Need help with error code


>i am using yahoo EOD for data, so no data plugins 
> however, I was able to run code without errors, what I did was 
> change each SECTORID from a 1 to a 0 
> So now, question, what is the 1 and 0 doing different in the code?
> 
> x=SectorID(0);
> sym="~"+SectorID(0);
> isym="~i"+SectorID(0);
> Ad="~AD"+SectorID(0);
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Steve Dugas" <sjdugas@xxxx> wrote:
>>
>> What is your data source?
>> What did you do to assign your sector ID's?
>> Are you using any data plugins?
>> It appears you have somehow assigned some sectors an ID number 
> outside 
>> 0...63 range.
>> 
>> Steve
>> 
>> ----- Original Message ----- 
>> From: "goldwing01_1999" <goldwing01_1999@xxxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Friday, November 18, 2005 12:04 PM
>> Subject: [amibroker] Need help with error code
>> 
>> 
>> > How do I fix this problem?
>> >
>> > Error 44. SectorID() is outside 0..63 range.
>> > May occur during call to SectorID() function if external data 
> plugin
>> > sets sector IDs incorrectly (outide 0..63 range)
>> >
>> > x = SectorID(); // the formula is correct, but may fail with 
> error
>> > 44 if data plugin sets sectors incorrectly
>> >
>> > Basic Materials
>> > Capital Goods
>> > CONGLOMERATES
>> > Consumer Cyclical
>> > Consumer/Non-Cyclical
>> > Energy
>> > Financial
>> > Healthcare
>> > Services
>> > Technology
>> > Transportation
>> > Utilities
>> > INDEX
>> >
>> >
>> >
>> >
>> >
>> >
>> > Please note that this group is for discussion between users only.
>> >
>> > To get support from AmiBroker please send an e-mail directly to
>> > SUPPORT {at} amibroker.com
>> >
>> > For other support material please check also:
>> > http://www.amibroker.com/support.html
>> >
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
> 
> 
> 
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/