Cumulative Volume Watchlist Column for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Here is a watchlist column that shows cumulative volume during an active period.

9j6coTD.png


Code:
# Archive Name: Volume - Cumulative Volume During An Active Period_Mobius
#  Archive Section: Watchlists
# Suggested Tos Name: Volume_CumulativeActivePeriod_Mobius

# Cumulative Volume During An Active Period
# Mobius
# Chat Room Request 05.01.2018

input startTime = 0930;
input endTime = 1600;

def Active = SecondsFromTime(startTime) >= 0 and
SecondsTillTime(endTime) >= 0;
def v = volume;
def cumulative = if Active and !Active[1]
then v
else if Active
then cumulative[1] + v
else cumulative[1];
addLabel(1, "Volume = " + cumulative, color.white);

Credits:
 

lambda100

New member
Hello good people,

I would like to ask if anyone knows if there's such a script for cumulative volume that calculates the cumulative volume of the day?

For example (from TradingView):


Thank you!!
 
Top