Rec SetTimeValue = if(secondstilltime(SettleTime)= 0,close(),SetTimeValue) ĭef SetAtTime = if(SetTimeValue = 0, double.nan,SetTimeValue) ĭef Set = if SetMode = SetMode.'Manual' and NewDay then Settlement else SetAtTime Input CustomDev = 3.5 #Hint CustomDev: Enter custom deviation lineĭef CloseTime2 = SecondsTillTime(0000) >= 0 ĭef OpenTime2 = SecondsFromTime(1700) >= 0 ĭef MarketOpen = OpenTime2 and CloseTime2 ĭef NewDay = IsNaN(close(period = “Day”))
Input profileType = #Hint ShowVWAP: Show daily VWAP