Hello all. I wrote a simple script. But i faced difficult problem. If condition1 met, enter long also another condition2 met, enter short. All open short positions are closed when enter long. There is no code which closes all open short position when enter long in my script. How can i fix it?