Modified MacD with MA colour coded with the objective to keep you in a trend for longer custom settings included * this one is currently set for lower time frames 1m+
study(title="vdubus Oscillator4", shorttitle="vdubOsc4") ao = sma(hl2,14) - sma(hl2,200) plot(ao, color = change(ao) <= 0 ? blue : green, style=line, linewidth=2) hline(0, title="Zero", color = white, linewidth=1) h2 = hline(0.0000, color = white, linewidth=0) h3 = hline(-0.0000, color = white, linewidth=0) ma = sma(hl2,7) - sma(hl2,200) plot(ma, color = change(ma) <= 0 ? red : lime, style=line, linewidth=1)