OPEN-SOURCE SCRIPT
Updated Cumulative Tick

This is a script that I use to plot the cumulative TICKS. It resets at the beginning of the session (or whatever time is entered on the input variable) and then starts adding, or subtracting if negative).
Release Notes
This version actually does what was intended. The old version was full of bugsRelease Notes
Updated color of bar will be in relation to Moving Average and not whether it is above or below 0.Fixed Moving Average bug
Release Notes
Change Log:- Updated to version 4 (from version 2)
- changed code-base to one that works on version 4. Thanks to PineCoders-LucF!
- Added a range for reset time
- added label to measure the gap between a moving average and the cumulative tick
More Info:
- The gap between the moving average and the cumulative tick is an improvement over previous versions. I use this spot changes in sentiment to plan my entry/exit. If the market is trending and the gap starts getting narrower (closer to zero) then I may start taking a few contracts off my position. If I am trying to play a countertrend trade, I may use the gap to start planning my entry.
Release Notes
Fixed Average GapOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.