![]() ![]() ![]() Period = CountTradingDays(Min(First(yyyymmdd), yyyymmdd), yyyymmdd) - 1 ĭef cond = close crosses above hva # count < count + period - period Period = Floor(seconds / 3600 + day_number * 24) Period = Floor(seconds / 60 + day_number * 24 * 60) Input pricePerRowHeightMode = ĭ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) You can do this in Tradingview but I just don't know a way around it in TOS. ![]() It always throws a compiler error saying that "var X has already been assigend". HVA = if IsNaN(vol.getHighestValueArea()) and con then hVA else vol.getHighestValueArea() īut in TOS there is no concept that I know of to initialize a variable in one place and then assign it again in another lower in the code. Profile vol = volumeProfile("startNewProfile" = cond. Def count = CompoundValue(1, if period != period then (count + period - period) % multiplier else count, 0) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |