Tested in on SPY which has data going back to 1993 -- this system had 3 trades during that time. Actually this is not really even a system, as it just based on close price *1.1 and close price *.90 for the bands. That's not deviation, just fixed percentage values
HermanBrummer
⋅
ver 4 code
//@version=4
strategy(title="Moving Average Mean Reversion Strategy", shorttitle="MA-MR", overlay=true)
len = input(20, minval=1, title="Length")
src = input(close, title="Source")
out = sma(src, len)