Ok, I see. Thanks for your answer, that was very helpful.

Is there a possibility to just close all trades before rotate(1) is been executed?