A written agreement between a customer opening a margin account and a brokerage firm that pledges stock in the account as collateral for margin loans. The brokerage firm is permitted to sell the stock in the event that equity in the account falls below a stipulated level.