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

[amibroker] Remove all static variables



PureBytes Links

Trading Reference Links

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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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