So my algorithm is mean to place an ATM option order whenever the BB fall between the Keltner Channels and certain conditions are meant and exits the option position a day before expiration or when a different set of conditions are met. However, my algorithm, after placing three orders won't place any more orders. Before after closing an option position it would short that same position. multilple times. I have been tring for weeks to get the option order  in my algorithm to work but to no avail. Any hel;p is greatly appreciated.