Attached please find two versions of the Slingshot. The one shown below in the lower panel is Sevensa’s version with trendlines as histograms. I would rather use plots in TS for something like that as it is about 10x faster in code speed and the plots are a little cleaner. I would also use jtHMA (Hull Moving Average, open source) as the moving average instead of EMA – I took the liberty of changing the code; there is still an input option for using EMA.
The second version is similar except it used plot histogram and jtHMA plus an option for Bollinger band around the ‘medium MA’ with the option of turning off the plots.