Hi,

I have a few include modules that (I guess) do similar thing.
I'm not sure what you need so I tell what it does.

It reads in a "config file" for a security only once and stored the 
values in static vars of that sec. All static vars have names like 
<security name><parametername>. Each security has a config file or 
using an alias file their config file can be redirected to an other 
file. This way if I use a backtest symbol or I do live trading all 
the systems can use the same config file.

Using static vars named in this way it implies that if you use them 
and you change the security in a chart the used static vars will 
change as well and the parameter set is changed as well. All you need 
to do is access the static vars like  Name() + "<parametername>". 
E.g.: MA(Avg, StaticVarGet(Name()+"Period");

So if the chart shows X it will use X's config data. If you change it 
to Y it will use Y's config data. 

I hope it gives some idea.

Y

Reply via email to