It ended up being somewhat close, but not exact, but the result is that you get a pseudo-vwap without a need for data, that isn't cumulative and can indicate trend direction, or if the market's ranging.
This is very powerful information!
I highlight a trade setup we get here, derived from observing the indicator's slope and knowing how to read price action, assisted by rgmov and readings.
To get the code for the other indicator's you will have to click on share, and then on 'Make it mine' so you get the whole layout.
Good luck and hope you find these of use.
A few uses...
study(title = "POC bands 2.0", shorttitle="POCB", overlay=true) resCustom = input(title="Timeframe", type=resolution, defval="240") Length = input(6, minval=1) xPrice = security(tickerid, resCustom, hlc3) xvnoise = abs(xPrice - xPrice) nfastend = 0.666 nslowend = 0.0645 nsignal = abs(xPrice - xPrice[Length]) nnoise = sum(xvnoise, Length) nefratio = iff(nnoise != 0, nsignal / nnoise, 0) nsmooth = pow(nefratio * (nfastend - nslowend) + nslowend, 2) nAMA = nz(nAMA) + nsmooth * (xPrice - nz(nAMA)) basis = nAMA atr = ema(tr,11) upper = basis + (atr*3) lower = basis - (atr*3) plot(basis, color=blue) plot(upper, color=blue) plot(lower, color=blue)