I am not sure you can dynamically modify parameters, but you can create a 
two tier param menu so you can only see parameters that apply to the 
indicator of interest.

Example:

Stoc    = Param("Stoc",0,0,1,1);
MAC  = Param("MAC",0,0,1,1);
etc

if (Stoc ==1)
{
StocP1 = Param("StocP1",13,6,20,1);
etc
}

if (MAC ==1)
{
etc

}

----- Original Message ----- 
From: "rollyzhang" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, September 16, 2007 1:31 PM
Subject: [amibroker] Dynamically update Parameters list


>I have multiple indicators each may have different number of and
> different kind/names of parameters. They are used by #include in my
> trade strategy code one at a time. When backtesting a trade strategy
> against various indicators, I have to manually modify the #include code
> to get the indicator. Now I put them all in the ParamList, like
>     indicator = ParamList("Select an indicator", "MACD | 30-day hight
> | Elder's 3-screen|...")
> So I can select the indicator from the Parameters popup dialog. The
> problem is that each indicator has its own set of parameters that
> should be dynamically displayed when the indicator is selected. How do
> I achieve that? - update the Parameters list dynamically?
>
> Thanks,
> Rolly
>
>
>
>
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 

Reply via email to