Library "TimeFilter"

provides utilities for dates and times

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 kitaplığı

Gerçek TradingView ruhuyla yazar, topluluğumuzdaki diğer Pine programcılarının yeniden kullanabilmesi için bu Pine kodunu açık kaynaklı bir kitaplık olarak yayınladı. Yazarın eline sağlık! Bu kitaplığı özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından yönetilir.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu kütüphaneyi kullanmak ister misiniz?

Metni panoya kopyalayın ve komut dosyanıza yapıştırın.