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

RE: [amibroker] Hello AmiBroker / Vbscript Guru's



PureBytes Links

Trading Reference Links

Thanks Bob ... don't know why..., but it never occured to me ... guess I
need some time away from computer to clear my head

I will find the proper index number and use close[k] form.

This is a lot safer because it is very explicit ...

Ara
----- Original Message ----- 
From: "Bob Jagow" <bjagow@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, August 15, 2004 6:23 PM
Subject: RE: [amibroker] Static Variables - workaround for ...


> Ara,
> The problem is that Ref(Close,-1) is an array.
>
> Bob
>
> -----Original Message-----
> From: Ara Kaloustian [mailto:ara1@xxxxxxxxxx]
> Sent: Sunday, August 15, 2004 5:33 PM
> To: AB-Main
> Subject: [amibroker] Static Variables - workaround for ...
>
>
> I tried using
>
> StaticVarSet("VAR",Ref(Close,-1);   This does not work
>
> AB generated an error due to the referenced value.
>
> A workaround is to convert Ref(Close,-1) to string and then reconvert it
> to numeric!
>
> StaticVarSet("VAR",StrToNum(NumToStr(Ref(Close,-1))));  This works
>
>
> Ara
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> 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
>
>
>
>
>
>
>
>
> 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
>
>
>
>
>




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