inSession(session, timezone, period) Parameters: session (simple string) timezone (simple string) period (simple string) Returns: bool inSession Whether the current time is within the defined time session
inDateRange(startDate, endDate) Parameters: startDate (int) endDate (int) Returns: bool inRange Whether the current time is within the defined date range
isWeekDay(weekDay, timezone) Parameters: weekDay (int) timezone (simple string) Returns: bool isWeekDay Whether the provided day is the current day of the week
inWeek(useMon, useTue, useWed, useThu, useFri, useSat, useSun, timezone) Parameters: useMon (bool) useTue (bool) useWed (bool) useThu (bool) useFri (bool) useSat (bool) useSun (bool) timezone (simple string) Returns: bool inWeek Whether the current time is one of the defined days
filter(useRange, useSession, useWeek, inRange, inSession, inWeek) Parameters: useRange (bool) useSession (bool) useWeek (bool) inRange (bool) inSession (bool) inWeek (bool) Returns: bool filter Whether the filter matches or not
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。