H

#### hashy

##### Member

If anyone is bored and would like to convert this simple script from Trading View over to ThinkScript I would greatly appreciate it. TIA!

source: https://www.tradingview.com/script/3gxRNmub-haDelta-developed-by-Dan-Valcu/

Thanks again

Code:

```
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[1] ? red : lime) : (s2 >= 0 ? (s2 > s2[1] ? lime : red) : na)
plot(s2, color=c_color, style=circles, linewidth=2)
h0 = hline(0)
```

Thanks again

Last edited by a moderator: