Quantconnect setcash API not working with Alpaca

I am running my algorithm through quantconnect and I am not able to control the cash allocation for each algorithm. I used self.Portfolio.SetCash(1000); and self.SetCash(1000) individually, when I deploy it ended up using my entire cash in the account which was $2000.

Can you suggest if there is a way to restrict cash to each algorithm through quantconnect?