Splitting volume profile into RTH and ETH



New member
Do any of you have an indicator that separates volume profile (or monkey bars) into RTH and ETH?

I am trading ES and I like to know if overnight inventory is long or short.



Active member
probably just change the conditions below so that one case starts and stops during regular market hours and the other case runs the extended hours. Leave them both on to see differences???
I will try this if you still want it.
def period;
def yyyymmdd = GetYYYYMMDD();
def seconds = SecondsFromTime(0);
def month = GetYear() * 12 + GetMonth();
def year = GetYear();
def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
def dom = GetDayOfMonth(yyyymmdd);
def dow = GetDayOfWeek(yyyymmdd - dom + 1);
def expthismonth = (if dow > 5 then 27 else 20) - dow;
def exp_opt = month + (dom > expthismonth);
switch (timePerProfile) {
case Chart:
    period = 0;
case Hour:
    period = Floor(seconds / 3600 + day_number * 24);
case Day:
    period = CountTradingDays(Min(First(yyyymmdd), yyyymmdd), yyyymmdd) - 1;
case Week:
    period = Floor(day_number / 7);
case Month:
    period = Floor(month - First(month));
case Year:
    period = Floor(year - First(year));
case "Opt Exp":
    period = exp_opt - First(exp_opt);


New member
hnmw, did it work? I'd like to do the same thing.
Thread starter Similar threads Forum Replies Date
X Daily Sum of Volume Question Questions 7
T Volume by minute Questions 2
A Forex Volume on thinkorswim Android Mobile App Questions 0
B Volume over last hour Questions 0
H Current VWAP with current volume Questions 2

Similar threads