Quick question: how robust is LEAN in its ability to track settled cash/margin and fill orders if the user occasionally deposits or withdraws cash, or conducts trades, in the live trading account manually, assuming he or she does so while the algo is expected to be dormant during a particular time of the day?

Specifically, I'm wondering if the user retains the ability to do the following while an algo is live trading on an account:

-can he manually liquidate a bad position

-can he manually withdraw cash occasionally to pay for taxes on gains, or secure some gains he has made, etc.

-can he manually deposit additional funds to bolster buying power

Thanks!

Author