I've been doing some optimisation and backtesting with various strategies and noticed that each of them contains slightly different parameters for managing things like:
- position size: some only allow selection of 1-10,000 "lots". Others, e.g. the "Ultimate Oscillator" seem to allow selection of position size as a percentage of total equity or usable margin, which I find preferable to a constant value. Maybe minimum/maximum position size parameters could be added, to reduce the risk of miscalculation there.
- whether trades can be opened in buy/sell/both directions
- limits to the number of open trades in either or both directions.
These seem like very useful features that would apply to almost all strategies, so it would be a pity to have to re-implement them each time.
Would it be possible to create a meta-strategy that takes these parameters and also takes any other underlying strategy (which will have its own specific parameters, of course)? This would be a way to re-use the position management logic via composition, dynamically.
If something like this already exists, then apologies for the noise!