grid parameters.
You're building a family of strategies that need to cooperate on
a common set of some family-based parameters, right?
I'd say use an external text based configuration file.
Anything will do, XML, or JSON, or an Ini file, or something home
grown. The Ini file is pretty darn simple, and is easy to maintain
and update by hand. That's what I use.
I'd suggest using an Ini file, then make each strategy read the Ini
file to get the MaxAcctDailyLoss=300 parameter ... all strats read
and share the same Ini config file.
The idea is:
A single point of control (the text based config file) is the simplest
way to guarantee all strategies are running with the same set of
'common' values.
Comment