You can pass parameters in the tradeplan optimization and then pass them to the system not as arguments but as MarketVar. I am not sure if MarketVar need to be set on each bar or not, I don't remember but this is a solution so you can use optimization of the tradeplan to optimize your systems
So in tradeplan
IMarketObject.MarketVar("Parm1")=OptimParm1
In system we have a system with no argument but in the top of the code
Parm1=MarketVar("Parm1")
OptimParm1 is a optimizable parameter for a tradeplan |