![]() ![]() ![]() 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) ![]() maybe easier to change criteria in the future by replacing parts of the 'or' statement to by what is desired (used notepad to find and replace criteria) modified original c crosses criteria to high/low crosses/touches criteria. #Black lines are extended until POC crossed using parts of TOS VolumeProfile study to define POC #Example_Prior Day_POC_Extended_until_Crossed_v1 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |