PureBytes Links
Trading Reference Links
|
Hello,
The answer is no.
Please read the function reference:
http://www.amibroker.com/f?params
It says:
WARNING: default/min/max/step parameters have to be CONSTANT numbers. This is because these values are cached and are not re-read
during subsequent formula evaluations.
The same applies to name and all other Param flavours.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "wecus" <member@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, May 21, 2004 2:51 PM
Subject: [amibroker] How to control behaviour of Paramstr() ?
> For relative comparison of two stocks I use this code to set up a
> default:
>
> if (GroupID() == 6 OR GroupID() == 7 )
> CompareTickerDefault = "^GDAXI";
> else
> CompareTickerDefault = "^IXIC";
>
> then I set the variable to be processed later using paramstr():
>
> CompareTicker = ParamStr( "Compare "+Name()+"
> with:",CompareTickerDefault);
>
> This way an individual variable get's initialized for each stock (as
> can be watched by pressing CTRL-R) as I cycle through my database. To
> get around this I tried dropping the 'name()':
>
> CompareTicker = ParamStr( "Compare with:",CompareTickerDefault);
>
> Unfortunately this doesn't refresh as it should, it looks like
> CompareTicker is evaluated only once and then cached from there on.
> Is there a way to tell AB to flush the cache or delete the variable
> every time I select a new stock?
>
> TIA
> Andreas
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> 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
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|