Centaur wrote: Sun Feb 19, 2023 6:23 pm
My pleasure, just a correction, the Vortex is a trademarked indicator by Etienne Botes and Douglas Siepman. The calculations shown was different calculations picked up for an indicator known as "buy sell pressure". The concept is pretty much the same.
Please share the TV version you implemented it on, for interest sake.
I apologize I missed your reply. I'll be sure to activate notifications. I found your version helpful to eliminate some of the choppier areas. Interesting note in your correction, however, using a calculation from the buy and sell pressure indicator? Does that imply that the when using such calculations the Vortex can become more of an indicator for open interest?
//@version=5
indicator(title = "Vortex Indicator", shorttitle="VI", format=format.price, precision=4, timeframe="", timeframe_gaps=true)
period_ = input.int(24, title="Length", minval=2)
VMP = math.sum( math.abs( high - low[1]), period_ )
VMM = math.sum( math.abs( low - high[1]), period_ )
STR = math.sum( ta.atr(1), period_ )
VIP = VMP / STR
VIM = VMM / STR
plot(VIP, title="VI +", color=#2962FF)
plot(VIM, title="VI -", color=#E91E63)