I am wondering if someone would be able to help me put this algorithm into the Robinhood framework, it is using unsettled funds to make purchase orders causing my portfolio to have a negative value. I am still just learning how to build algorithms but since I want to go live with this algorithm I want to make sure its done the proper way.