Below is my Trading View Setup. Some key things when signing up for Trading View
You need to subscribe to additional exchanges, NYSE, NASDAQ and ARCA in order to have relevant data
You to need to activate extended hours in the bottom right of the charts for PM and AH hours
I believe you need Pro+ to get the VPVR, but I could be wrong.
If you use my referral code to sign up, send me a screen grab of it, and I will send you my setup, and help you walk through how to use it. This isn't a cash grab, but just small compensation for my time via the referral code
TMO Python Source Code:
// TMO ((T)rue (M)omentum (O)scilator) based on Thinkscript by Mobius.
// TMO calculates momentum using the delta of price. Giving a much better picture of trend, tend reversals and divergence than momentum oscillators using price.
//@version=4
study("True Momentum Oscillator", shorttitle="TMO")
length = input(title="Length", defval=21, minval=1, step=1)
calcLength = input(title="Length of EMA for main wave", type=input.integer, defval=5, minval=1, step=1)
smoothLength = input(title="Smooth parameter for signal", type=input.integer, defval=3, minval=1, step=1)
data = 0
for i = 1 to length-1
if close > open[i]
data := data + 1
if close < open[i]
data := data - 1
EMA5 = ema(data, calcLength)
Main = ema(EMA5, smoothLength)
Signal = ema(Main, smoothLength)
cBias = Main > Signal ? color.green : color.red
MainLine = plot(Main, color = cBias)
SignalLine = plot(Signal, color = cBias)
fill(MainLine, SignalLine, cBias, transp = 15)
ob = round(length * 0.7)
middle = 0
os = - round(length * 0.7)
topline = hline(length, title="OB", color=#858585, linestyle = hline.style_dotted)
obLevel = hline(ob, title="OB", color=#858585, linestyle = hline.style_dotted)
fill(topline,obLevel, color = color.red, transp = 90, title = "fill upper band")
hline(middle, title="Middle", color=#858585, linestyle = hline.style_dotted)
osLevel = hline(os, title="OS", color=#858585, linestyle = hline.style_dotted)
bottomline = hline(-length, title="OS", color=#858585, linestyle = hline.style_dotted)
fill(osLevel, bottomline, color = color.green, transp = 90, title = "fill lower band")