I going crazy here trying to produce equity curves for each optimization run. I've come to the conclusion that it´s probably not possible. At least not the way I'm trying. Can anyone confirm if this code should produce 3 different equity curves?
Yes, the Knowledge Base shows how to do that. It is important to remember that optimization is just a series of backtests. If you have custom backtester code it will run in both "Backtest" and "Optimization" modes the same way. Therefore any CBT technique used for backtest, works in optimization too.