If anyone is bored and would like to convert this simple script from Trading View over to ThinkScript I would greatly appreciate it. TIA!
study(title="haDelta by Dan Valcu", shorttitle="haDelta+SMA") delta = close - open plot(delta, color=black) s2=sma(delta, 3) plot(s2, color = red) plot(s2, color=red, style=area) c_color=s2 < 0 ? (s2 < s2 ? red : lime) : (s2 >= 0 ? (s2 > s2 ? lime : red) : na) plot(s2, color=c_color, style=circles, linewidth=2) h0 = hline(0)
Last edited by a moderator: