Period = CountTradingDays(Min(First(yyyymmdd), yyyymmdd), yyyymmdd) - 1 ĭef count = CompoundValue(1, if period != period then (count + period - period) % multiplier else count, 0) ĭef cond = count < count + period - period Period = Floor(seconds / 3600 + day_number * 24) Period = Floor(seconds / 60 + day_number * 24 * 60) Input timePerProfile = ĭef day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd)) ĭef dow = GetDayOfWeek(yyyymmdd - dom + 1) ĭef expthismonth = (if dow > 5 then 27 else 20) - dow ĭef exp_opt = month + (dom > expthismonth) #Black lines are extended until POC crossed using parts of TOS VolumeProfile study to define POC
#Example_Prior Day_POC_Extended_until_Crossed_