PureBytes Links
Trading Reference Links
|
Hello,
This is not really a limitation but a logical
consequence of the fact that one param allows the user to change ONE
value
and this value does not depend on any
condition.
It would not make too much sense to
implement it other way because each change of the condition
would need to reset all values to defaults which
would be very annoying.
So I suggest to use it this way:
value = IIF( Interval() == inDaily,
Param( "Interval (daily)", 5, 1, 50, 1 ), Param( "Interval (other)", 13, 2,
100, 1 ) );
This way not only default but also user-setting may
depend on interval.
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
wavemechanic
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">AmiBroker, User
Sent: Monday, July 05, 2004 3:33 AM
Subject: [amibroker] Param Function
As noted in the User's Guide default/min/max/step
values have to be a constant because the values are cached and not re-read
during subsequent executions. This eliminates using something like
IIF(COND, x, y) to define the default value where, for example, COND
could be Interval(), etc. Has anyone found a work around to this
limitation in Param() or have a suggestion as to how to
proceed?
BillCheck
AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|