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

Re: [amibroker] Dynamically update Parameters list



PureBytes Links

Trading Reference Links

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" <rollyzhang@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 



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/