This is pseudocode.
When the conditions are satisfied in the if statement too many positions have been opened. I only want one place to open even if the illness keeps being true.
What should I do?
Int start()
if (! ExistPositions())
if (BUY)
OpenBuy();
return(0);
if (SELL)
OpenSell();
return(0);
return (0);