Thanks for your answer. Seems, I'm too stupid for this. 
The EA should start if the candles close over the set SMA (1) and close on the reverse of the SMA (2) or if profitable: 
So I tried this (just for a testrun):
But it does this: Open on random candles (1), dismissing the turn (2) and closing, as it seems randomly on (3):