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

RE: [amibroker] Re: Subscript Out of Range Unusual Error



PureBytes Links

Trading Reference Links

&& = and

 

However, this won’t work how you are using it as you won’t be able to access array elements that have been save while another symbol was loaded.

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ken Close
Sent: Monday, May 26, 2008 6:17 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: Subscript Out of Range Unusual Error

 

I'll try it but what is the operator "&&" doing. Not possible to find the
definition in help.

Ken

-----Original Message-----
From: amibroker@xxxxxxxxxps.com [mailto:amibroker@xxxxxxxxxps.com] On Behalf
Of pftrader
Sent: Monday, May 26, 2008 5:22 PM
To: amibroker@xxxxxxxxxps.com
Subject: [amibroker] Re: Subscript Out of Range Unusual Error

Try:
for (i = 1; i <= WLQty && WLQty < barcount; i++)

--- In amibroker@xxxxxxxxxps.com, "Ken Close" <ken45140@xx.> wrote:
>
> I am running a ranking code (published here previously) which will
assign
> ordinal ranks to an indicator.
>
> This code has worked flawlessly until today when I ran it on a Watch
list
> containing 8800 symbols.
>
> In the following lines of code:
>
>
> for (i = 1; i <= WLQty; i++)
> {
> StaticVarSet("RSI_Rank_" + NumToStr(RSISymNo[i], 1.0), i);
> StaticVarSet("ROC_Rank_" + NumToStr(ROCSymNo[i], 1.0), i); }
>
> i shows a Subscript Out of Range error message "You must not access
array
> elements outside 0...Barcount -1 range.
>
> As the number of symbols in the Watch list will establish a value of
WLQty
> much in excess of the Barcount, then I guess the error is inevitable.
>
> Is the "i" subscript related to barcount instead of the quantity "WLQty"
> because it is an array variable in the NumToStr function?
>
> Is there a way to set up Static Variables related to symbol elements
well in
> excess of BarCount?
>
> Sure would appreciate some of the advanced programmers here offering
a hint
> on this issue.
>
> Thanks,
>
> Ken
>

------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links



I am using the free version of SPAMfighter for private users.
It has removed 460 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!
__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___