This numerically identify trends in charting. It is calculated by taking an 'n' period moving average of the difference between the open and closing prices. A value greater than zero means that the majority of the last 'n' periods have been up, indicating that buying pressure has been increasing
I added more markings to clearly highlight the divergences (marked them in the chart above).
Appreciate any comments/feedback.
// // @author LazyBear // study(title = "Tushar Chande's QStick [LazyBear]", shorttitle="QStick_LB") length=input(8) hline(0) s2=sma((close-open),length) c_color=s2 < 0 ? (s2 < s2 ? red : lime) : (s2 >= 0 ? (s2 > s2 ? lime : red) : na) plot(s2, color=blue, style=area) plot(s2, color=c_color, style=circles, linewidth=3)