Whenever a buy order succeeds, I setup a StopMarketOrder. However I noticed when back-testing I keep getting the following error:

Insufficient buying power to complete order (Value:-4748.744)

As you can see the value is negative, so I don't understand why it's saying insufficient buying power for a negative number?

Author