PINE LIBRARY

SessionAndTimeFct_public

Library "SessionAndTimeFct_public"

is_in_session(sessionTime, sessionTimeZone)
  : Check if actual bar is in specific session with specific time zone
  Parameters:
    sessionTime
    sessionTimeZone

is_session_start(sessionTime, sessionTimeZone)
  : Check if actual bar the first bar of a specific session
  Parameters:
    sessionTime
    sessionTimeZone

is_new_day(timeZone)
  : Check if a new day started
  Parameters:
    timeZone

is_new_week(timeZone)
  : Check if a new week started
  Parameters:
    timeZone

is_new_month(timeZone)
  : Check if a new month started
  Parameters:
    timeZone

is_element_to_show_with_tf_up(base, value)
  : Check if an element is to show compared to a specific timeframe >
  Parameters:
    base
    value

is_element_to_show_with_tf_down(base, value)
  : Check if an element is to show compared to a specific timeframe <
  Parameters:
    base
    value
datesformattingsessionstimesessions

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