>From version 5.25: StaticVarRemove(*)
On Mon, Sep 21, 2009 at 10:57 PM, Brenton Hill <[email protected]>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 > > >
