I have a problem with the strategy I am running.
There is possibility to get two entries, one from entry position and one from exit position (overfill?) and the next exit position can't handle both of them.
I have now added "position.quanitity == 0" to my code inside of if sentence that blocks entries if there is already entry inside the strategy.
This will force strategy wait "flat position" before it can entry again and fixes the double entry problem. But I am losing some potential entries because of it.
Is there away block exit position if reverse position entry happens as it closes the existing position already.
Can I add "position.quanitity > 0" to exit position if sentence or how would you approach this?
Br
Gelotuz
Comment