Hi guys, I'm trying to identify the cause of the closing order filled on the 2005-1-21. The alpha model did not emit any new signals once it went long in the market around 2004-08 and I was not expecting it to flatten until the SMA casued ‘TurningDown’ to become True. I'm currently debugging the algorithm and the activeinsights variable gets cleared for some reason and so this results in target weights ending up to be 0 around that time [2005-1-21.] . I am failing to understand why the algorithm would be setting the active insights to empty, given that I am long in the market and hte flattening condition has not been met. I have tried stepping through while setting the rebalancing parameter to None, within the equal weighting construction model but that doesn't seem to fix matters. What mechanism is causing the activeinsights object to become a length(0) please? . Any ideas would be hugely helpful. Many thanks, Alun