It means that you don't have enough free margin.

You can add a condition before your ordersend functions to enter only if you have enough money.