Hans, you strategy has 17 indicator + logical groups!! How are you sure what exactly indicator makes the problem?
If you want to study the behavior of one indicator, the best is to use only that indicator in the corresponding role.
In your case the "Oscillator of MACD" indicator is used as a closing condition.
I made a simple strategy that opens only long positions and uses "Oscillator of MACD" for closing. I'm using the same parameters as yours.
It closes the positions successfully:
From my experiment I see that the indicators works well, so the problem must be other.
I see you use Day Closing indicator for closing point. This indicator detects the expected bar close for the day and sends a close signal 15 seconds earlier. However, if there are no ticks in that period, the indicator is not able to work. I suggest you to use Day Closing 2 indicator and to set closing time at least 1 minute earlier than the market close hour for the week days and Friday.
...
I'll edit the header of your topic because it is misleading ind offensive. We do not develop software for brokers to help them stealing the traders money.