Ok,
I am getting somewhere with my 1st algorithm. Just need to work through some bugs.
First, what does the algo do?
Captures the opening price and then waits until the current_price is between .10 and .20 above the open price.
The sell conditions are as follows:
If current_price falls below opening price by .10.
If current_price is > $1.10 above opening price.
If EOD is approaching.
I cannot figure out why the first two transactions are BUYS, I only want one open position at a time, so there should not be two BUYS in a row in the transaction table.
I also cannot figure out why the first SELL was for 100 shares, there were many more shares that should have been sold.
And finally, the log shows multiple "below open price sales" for a similar amount right in a row.