Created
May 20, 2018 20:58
-
-
Save pequet/b4e6d80ecd9edfadd0ed15686a4bf30c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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") | |
// - |
taking the open and close works better imo
getting rid of the wicks and tails might be a good idea 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)