The optimizer is a tool that will attempt to make the current strategy better. It will decide if the strategy is better, depending on the options you choose in the optimizer settings.
Always optimize only profitable strategies!
It is a bad idea to optimize a losing strategy. The optimizer will try to “rectify” the strategy by making it trade less which in turn will result in less money lost but this will not make the strategy profitable.