Author(s) Jozzaboy and LeMogwai
study(title="Get Ready A Pretty Exit", shorttitle="GRAPE", overlay=true) source = close fastLength = input(10, minval=1), slowLength=input(30,minval=1) signalLength=input(9,minval=1) fastMA = ema(source, fastLength) slowMA = ema(source, slowLength) macd = fastMA - slowMA signal = sma(macd, signalLength) hist = macd - signal start = input(0.022) increment = input(0.005) maximum = input(2) out = sar(start, increment, maximum) plot(out, style=area, transp=80, color=white) plot(out, style=cross, linewidth = 2, color=hist>0?white:red)