indicator · own pane · open source

QStick indicator

QStick is a free open-source indicator. QStick averages the difference between close and open over a window. Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What QStick does

QStick averages the difference between close and open over a window. Above zero = bullish candles dominating; below zero = bearish.

  • Crosses of zero flag short-term sentiment shifts.
  • Magnitude reflects how decisive recent candles have been.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("QStick", overlay=false)
len = input.int(14, "Length", minval=2, maxval=200)
colorUp = input.color("color.green", "Color  Up")
colorDown = input.color("color.red", "Color  Down")
colorNeutral = input.color("color.gray", "Color  Neutral")
qs = ta.sma(close - open, len)
hline(0, "Zero", color=colorNeutral, linestyle=hline.style_dashed)
p_QStick = plot(qs, "QStick", color=qs >= 0 ? colorUp : colorDown, linewidth=2)
alertcondition(ta.crossover(qs, 0), "QStick turns up", "QStick crossed above zero")
alertcondition(ta.crossunder(qs, 0), "QStick turns down", "QStick crossed below zero")

Comments

No comments yet.

Sign in to comment.