method initialize(id) Namespace types: levels_collection Parameters: id (levels_collection)
method create_level(id, name, value, level_start_bar, level_color, show) Namespace types: levels_collection Parameters: id (levels_collection) name (string) value (float) level_start_bar (int) level_color (color) show (bool)
method set_level(id, name, value, level_start_bar, show) Namespace types: levels_collection Parameters: id (levels_collection) name (string) value (float) level_start_bar (int) show (bool)
method find_resistance(id) Namespace types: levels_collection Parameters: id (levels_collection)
method find_support(id) Namespace types: levels_collection Parameters: id (levels_collection)
method draw_level(id) Namespace types: level_info Parameters: id (level_info)
method draw_all_levels(id) Namespace types: levels_collection Parameters: id (levels_collection)
level_info Fields: name (series__string) value (series__float) bar_num (series__integer) level_line (series__line) line_start_bar (series__integer) level_color (series__color) show (series__bool) ss (series__bool) sr (series__bool)
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.
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.