Trading Strategy, Cryptocurrency, Fmz Quant, Time Series Data, Threshold.
plot(dev_lower, 'lower deviation', color.silver, 2, plot.style_stepline) // plot(mean , 'basis' , color.purple, 1, plot.style_stepline) // plot(dev_upper, 'upper deviation', color.silver, 2, plot.style_stepline) if src > dev_upper strategy.entry('event', true, comment = 'on') if src < dev_lower