You can do conditional includes as
follows:
_N(Chartype = ParamList("Mixed, Price or RSI
Chart:","Mixed|Price|RSI",0));
if (Chartype == "RSI") {#include
<Plot_RSI.afl>}
else if (Chartype == "Price")
{#include <Plot_Price.afl>}
else if (Chartype == "Mixed")
{#include <Plot_Mixed.afl>}
--
Terry
-----Original Message-----
From:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of
Chuck
Sent: Sunday, October 30, 2005 19:59
To:
amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Re: New User asking for
help!
Does anyone know what's the best way to use a
parameter to specify which
file to #include? I thought I could use
Paramlist, but it appears that
#include doesn't accept a string variable.
Thanks