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

Re: [amibroker] Remove Static Var



PureBytes Links

Trading Reference Links

Hello,

Param() can't be called conditionally. It is read only once 
by the AFL editor after you update the formula or press "Reset all".
All subsequent executions of the formula do NOT affect Parameters.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "vlanschot" <vlanschot@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, July 03, 2008 11:02 AM
Subject: [amibroker] Remove Static Var


> Hi,
> 
> I kindly request some help. I have created Static Vars by way of the 
> following:
> 
> WLSymbols = CategoryGetSymbols(categoryWatchlist,WLnr);
> 
> etc.
> 
> for ( x = 0 ; x<MaxNrSecs ; x++ ) 
> {
> Ticker = StrExtract ( WLSymbols, x );
>        E_r="Exp(R)_"+Ticker;
> StaticVarSet(E_r,Param(E_r,0,0,10));
>        
>        if (RemoveSV ==1)StaticVarRemove(E_r);
> }
> 
> The problem I experience is that I cannot seem to get rid of the 
> initial StaticVars-params in the Parameters-window after I switch to 
> a different watchlist, not by coding this as above via StaticVarRemove
> (E_r) within the loop, nor by calling it in a seperate loop.
> 
> Any help appreciated.
> 
> PS
> 
> 
> ------------------------------------
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
> 
> 
> 

------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
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/