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

Re: [amibroker] Remove all static variables



PureBytes Links

Trading Reference Links



>From version 5.25:

StaticVarRemove(*)

On Mon, Sep 21, 2009 at 10:57 PM, Brenton Hill <bphill0105@xxxxxxxxxxxx> wrote:
 

Hi

Is there an easy way to remove all static variables at once?

I know I can use *StaticVarRemove( ''variablename'' ) *but as far as I
can see this require a call for each individual variable name.

The static variables are named after the symbol and the DateTime() of
the bar that I assigned them on, eg

StaticVarSet("StatVar1"+Name()+NumToStr(BarDateTime[i],1.0,False),StatVar1[i]);

I do this to allow referencing various bits of info later on in the
custom backtester.

I'm testing on a portfolio of more than 1000 stocks, so there could
potentially be thousands of static variables, which I'd like to remove
at the end of the backtest.

Regards
Brenton

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4445 (20090921) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





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

__,_._,___