Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Average price in pre-calculated risk

Here a range of risk or standard deviation of price is built up at +/-5% and then moving average is used to trigger the buy/sell