How is buying power calculated in my margin account?
Buying power in a margin account is calculated as:
Trade cash + loan value - value of open buy orders
To purchase a security in a margin account you need to have enough buying power to cover the margin requirement. You can't borrow more than your maximum debit limit.