New to python but enjoying the experience (must be a masochist). Can anybody tell me what's wrong with my end of day syntax in this daytrading scalping program? I noticed I was losing money due to overnight gaps, whereas I had intended to close all positions at 3:58 pm.
Noticed my positions were only ending on the last day of my period range, but can't figure out why.
Thanks