PINE LIBRARY

HT: Functions Lib

By hermes_trisme
Updated
Library "Functions"

is_date_equal(date1, date2, time_zone)
  Parameters:
    date1 (int)
    date2 (int)
    time_zone (string)

is_date_equal(date1, date2_str, time_zone)
  Parameters:
    date1 (int)
    date2_str (string)
    time_zone (string)

is_date_between(date_, start_year, start_month, end_year, end_month, time_zone_)
  Parameters:
    date_ (int)
    start_year (int)
    start_month (int)
    end_year (int)
    end_month (int)
    time_zone_ (string)

is_time_equal(time1, time2_str, time_zone)
  Parameters:
    time1 (int)
    time2_str (string)
    time_zone (string)

is_time_equal(time1, time2, time_zone)
  Parameters:
    time1 (int)
    time2 (int)
    time_zone (string)

is_time_between(time_, start_hour, start_minute, end_hour, end_minute, time_zone_)
  Parameters:
    time_ (int)
    start_hour (int)
    start_minute (int)
    end_hour (int)
    end_minute (int)
    time_zone_ (string)

is_time_between(time_, start_time, end_time, time_zone_)
  Parameters:
    time_ (int)
    start_time (string)
    end_time (string)
    time_zone_ (string)

is_close(value, level, ticks)
  Parameters:
    value (float)
    level (float)
    ticks (int)

is_inrange(value, lb, hb)
  Parameters:
    value (float)
    lb (float)
    hb (float)

is_above(value, level, ticks)
  Parameters:
    value (float)
    level (float)
    ticks (int)

is_below(value, level, ticks)
  Parameters:
    value (float)
    level (float)
    ticks (int)
Release Notes
v2

Added:
create_timezone(offset)
  Parameters:
    offset (int)
MATHtimesessions
hermes_trisme

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer