I do set it to zero, just as the gentlemen in the thread below was doing. I have the exact same problem as him -- when I add day bars to my multi instrument strategy, if you backtest for just the most recent day, it wont process anything. If you backtest just a few days back, it will process everything.
unfortunately, it seems when i run my strategy live it also won't get any signals. Im sure if i let it run for several days it would work, but it has to be restarted daily due to broker disconnects, etc.
This seems like such a common use case i am surprised it hasn't happened to other folks. Basically, it seems specifically related to using day bars in a multi time frame/multi instrument strategy. I commented out the day bars add, and it immediately works properly. I should note that i am also using minute bars, 5 minute bars, and hour bars. None of those seem to cause a problem.
Thanks!

Comment