Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Need some advice how to run away from certain technical patterns

The $spy sometimes drop a lot suddenly such as march 21st 2017. And afterwards we could see technically from the plot it drops out of one rectangle.

Is there any good way to detect this kind of behavior and do a coding about certain patterns ? I had a spy plot posted at SPY RUN RUN