This transaction is handled slightly differently depending on whether or not a loan account has been set up in Quicken to handle your margin loan.
Recording a transaction in Quicken does not execute a real-world trade, transfer, or other transaction. Contact your broker to execute trades or transfers, and then manually record the transactions in Quicken—better yet, download them directly from your participating financial institution.