Hi all,

I am experimenting a bit with some algorithms. Here I wanted to add the feature to liquidate all holdings if the spy index dropped by 10% in three days, to a PEG algo which buys new stocks each year. From the backtest it seems, it liquidates everything after one day each year? Can someone please enlighten me, what am I missing here?