theATR

SessionInBoxesPro

Library "SessionInBoxesPro"

get_time_by_bar(bar_count)
  Parameters:
    bar_count

get_positions_func(sessiontime_, duration_)
  Parameters:
    sessiontime_
    duration_

get_period(_session, _start, _lookback)
  Parameters:
    _session
    _start
    _lookback

is_start(_session)
  Parameters:
    _session

is_end(_session)
  Parameters:
    _session

draw_progress(_show, _session, _is_started, _is_ended, _color, _bottom, _delete_history)
  Parameters:
    _show
    _session
    _is_started
    _is_ended
    _color
    _bottom
    _delete_history

draw_label(_show, _session, _is_started, _color, _top, _bottom, _text, _delete_history, i_label_chg, i_label_size, i_label_position, i_tz, i_label_format_day)
  Parameters:
    _show
    _session
    _is_started
    _color
    _top
    _bottom
    _text
    _delete_history
    i_label_chg
    i_label_size
    i_label_position
    i_tz
    i_label_format_day

draw_fib(_show, _session, _is_started, _color, _top, _bottom, _level, _width, _style, _is_extend, _delete_history)
  Parameters:
    _show
    _session
    _is_started
    _color
    _top
    _bottom
    _level
    _width
    _style
    _is_extend
    _delete_history

get_op_stricts(_session, _is_started, top, bottom, i_o_minutes)
  Parameters:
    _session
    _is_started
    top
    bottom
    i_o_minutes

draw_op(_show, _session, _is_started, _color, top, bottom, _is_extend, _delete_history, i_o_minutes, i_o_opacity)
  Parameters:
    _show
    _session
    _is_started
    _color
    top
    bottom
    _is_extend
    _delete_history
    i_o_minutes
    i_o_opacity

get_pm_stricts(_show, _show_pm, tf, ctf, _is_started)
  Parameters:
    _show
    _show_pm
    tf
    ctf
    _is_started

draw_pm(_show, _show_pm, tf, ctf, _is_started, _is_ended, _delete_history, _color)
  Parameters:
    _show
    _show_pm
    tf
    ctf
    _is_started
    _is_ended
    _delete_history
    _color

draw_market(_show, _session, _is_started, _color, btr, _top, _bottom, _extend, _is_extend, _delete_history, i_sess_border_style, i_sess_border_width, i_sess_bgopacity)
  Parameters:
    _show
    _session
    _is_started
    _color
    btr
    _top
    _bottom
    _extend
    _is_extend
    _delete_history
    i_sess_border_style
    i_sess_border_width
    i_sess_bgopacity

draw(_show, _show_pm, pm_tf, ctf, _session, _color, btr, _label, _extend, _show_fib, _show_op, i_label_chg, i_label_size, i_label_position, i_o_minutes, i_o_opacity, i_sess_border_style, i_sess_border_width, i_sess_bgopacity, i_show_history, i_show_closed, i_label_show, i_f_linewidth, i_f_linestyle, top, bottom, i_tz, i_label_format_day)
  Parameters:
    _show
    _show_pm
    pm_tf
    ctf
    _session
    _color
    btr
    _label
    _extend
    _show_fib
    _show_op
    i_label_chg
    i_label_size
    i_label_position
    i_o_minutes
    i_o_opacity
    i_sess_border_style
    i_sess_border_width
    i_sess_bgopacity
    i_show_history
    i_show_closed
    i_label_show
    i_f_linewidth
    i_f_linestyle
    top
    bottom
    i_tz
    i_label_format_day
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

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.