Hello! I am backtesting a BBands breakout strategy. Found out that Zorro enters a new position every time a breakout happens regardless if the previous positions are closed or not meanwhile I need only one position at a time till the position either closes in loss or profit. What I need is a simple reverse strategy
Here is the code for the strategy. I just need the code to prevent multi-positions till a reverse happens