Hi Everyone,
I was writing a simple algorithm to day trade some stocks for me, and I ran into a slight problem. I don't want the algorithm to purchase more than a hundred shares. Basically, it buys 1 share every minute that a certain condition is true, but I don't want it to buy a share if it already has 100 or more. Basically, I'm trying to find out how to get the number of currently owned shares. Could anyone help me out with this?