I threw in a basic algorithm idea and my initial results show me selling stock that I don't yet own. (also my returns are 1,330%) What am I doing wrong.
I have some logic followed by:
if highFlag == 1: ##some concern about order got it above
order(s, -20) #reverse this odd does better, if up to sat sell?
log.info("sell" + str(s))
if highFlag != 1:
order(s,20)
Why am I getting such insane values?