indicator · own pane · open source
Vortex Oscillator indicator
Vortex Oscillator is a free open-source indicator by @deepwick. Vortex Oscillator plots +VI and -VI — sums of upward vs downward range moves normalised by… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Vortex Oscillator does
Vortex Oscillator plots +VI and -VI — sums of upward vs downward range moves normalised by true range. When +VI crosses -VI up, the trend is bullish; the opposite for bearish.
- Crossover of the two VIs is the entry signal.
- Raise
Lengthfor steadier trend calls. - Pair with an ADX filter to confirm trend strength.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Vortex Oscillator", 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")
tr_ = math.max(high, close[1]) - math.min(low, close[1])
vip = math.abs(high - math.max(close[1], close[2])) / math.sum(tr_, len)
vim = math.abs(low - math.min(close[1], close[2])) / math.sum(tr_, len)
hline(1, "Balance", color=colorNeutral, linestyle=hline.style_dotted)
p__VI = plot(vip, "+VI", color=colorUp, linewidth=2)
p__VI = plot(vim, "-VI", color=colorDown, linewidth=2)
alertcondition(ta.crossover(vip, vim), "+VI crosses -VI up", "Vortex turned bullish")
alertcondition(ta.crossunder(vip, vim), "+VI crosses -VI down", "Vortex turned bearish")
No comments yet.
Sign in to comment.