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

Re: [amibroker] Re: Value Area



PureBytes Links

Trading Reference Links

Geo Singleman wrote:

>I get the error only for first two days. Once there are two days worth of
>data, it plots okay. I suspect it has something to do with getting prior
>days daily range when there is none available. The code is clever, but
>haven't analyzed it yet to understand the mechanics.
>
>Geo
>----- Original Message ----- 
>From: "Anthony Faragasso" <ajf1111@xxxxxxxx>
>To: <amibroker@xxxxxxxxxxxxxxx>
>Sent: Saturday, September 18, 2004 05:16 PM
>Subject: Re: [amibroker] Re: Value Area
>
>
>  
>
>>any help with this....I get Subscript out of range error....
>>
>>Thanks
>>Anthony
>>    
>>
>
>
>
>
>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
>
>
>
> 
>
>
>
>  
>
Found the error and fixed. Just replace the original line

--->	 for(i = BB -300; i <  BB - 1 ; i++)  

with the code below.

    for(i = IIf(BB > 300, BB - 300, 0); i <  BB - 1; i++)   

Cheers,
Scott



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