Skip to content

Instantly share code, notes, and snippets.

@pequet
Created May 20, 2018 20:58
Show Gist options
  • Save pequet/b4e6d80ecd9edfadd0ed15686a4bf30c to your computer and use it in GitHub Desktop.
Save pequet/b4e6d80ecd9edfadd0ed15686a4bf30c to your computer and use it in GitHub Desktop.
// Created by @pequet (https://www.tradingview.com/u/pequet) May 20, 2018
// https://github.com/pequet/
// NOT FOR DISTRIBUTION
// @version=3
// References:
// https://www.youtube.com/watch?v=cq3gkwin1y4
study(title="Intraday Intensity v0.1", shorttitle="II", overlay=false, precision=8)
ii = (2*close-high-low) / (high-low) * volume
cumulativeIi = cum(ii)
plot(cumulativeIi, transp=0, color=#f97c97, title="Intraday Intensity")
// -
@greg-oire
Copy link

Hey, i use something a little different but works very well :)

hilow = ((high - low)*100)
openclose = ((close - open)*100)
vol = (volume / hilow)
spreadvol = (openclose * vol)
VPT = spreadvol + cum(spreadvol)

@greg-oire
Copy link

taking the open and close works better imo

@pequet
Copy link
Author

pequet commented May 20, 2018

getting rid of the wicks and tails might be a good idea 👍

https://www.tradingview.com/x/RppcC5QO/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment