Library "lib_retracement_patterns" types and functions for XABCD pattern detection and plotting method set_tolerances(this, tolerance_Bmin, tolerance_Bmax, tolerance_Cmin, tolerance_Cmax, tolerance_Dmin, tolerance_Dmax) sets tolerances for B, C and D retracements. This creates another Pattern instance that is set as tolerances field on the original and...
Library "lib_plot_composite_objects" library building on top of lib_plot_objects for composite objects such as Triangles and Polygons. heavily using chart.points method tostring(this, date_format) Namespace types: Triangle Parameters: this (Triangle) date_format (simple string) method tostring(this, date_format) Namespace types:...
Library "lib_profile" a library with functions to calculate a volume profile for either a set of candles within the current chart, or a single candle from its lower timeframe security data. All you need is to feed the method delete(this) deletes this bucket's plot from the chart Namespace types: Bucket Parameters: this (Bucket) method...
Library "lib_retracement_label" creates a retracement label between the origin and target of a retracement, updating it's position (via update + draw) when the target moves. create_tooltip(name, min, max, tol_min, tol_max) Parameters: name (string) min (float) max (float) tol_min (float) tol_max (float) method update(this)...
Library "lib_zig" Object oriented implementation of ZigZag method tostring(this, date_format) Namespace types: Zigzag Parameters: this (Zigzag) date_format (simple string) method update(this) Namespace types: Zigzag Parameters: this (Zigzag) method draw(this, colors) Namespace types: Zigzag Parameters: this (Zigzag)...
Library "lib_plot_objects" library wrapping basic builtin object constructors, to be able to do calculations with points/lines/boxes/triangles/polygons via libraries and on securities. inspired by Trendoscope's ( and ) with added update mechanism to not have to recreate objects on every iteration for continously drawn items, automated xloc selection for...
Library "lib_drawing_composites" methods to draw and manage composite obejects. Based on Trendoscope's added Triangle and Polygon composite objects, fixed tostring method output to be actual json method tostring(this, format_date, format, tz, pretty) Converts lib_drawing_types/LineProperties object to a json string representation Namespace types:...
Library "lib_drawing_composite_types" User Defined Types for basic drawing structure. Other types and methods will be built on these. (added type Triangle and Polygon to ) TriangleProperties TriangleProperties object Fields: border_color (series color) : Box border color. Default is color.blue fill_color (series color) : Fill color ...
Library "lib_priceaction" a library for everything related to price action, starting off with displacements displacement(len, min_strength, o, c) calculate if there is a displacement and how strong it is Parameters: len (int) : The amount of candles to consider for the deviation min_strength (float) : The minimum displacement strength to...
Library "lib_statemachine" simple state machine that allows tracking a state an manipulating it with conditions method step(this, before, after, condition) will step the state of the state machine from one to the next in case of condition Namespace types: StateMachine Parameters: this (StateMachine) : (StateMachine) the state machine to use ...
Library "lib_colors" offset_mono(original, offset, transparency) get offset color Parameters: original (simple color) : original color offset (float) : offset for new color transparency (float) : transparency for new color Returns: offset color
Library "lib_array" several array functions for chained calls, batch conversion, incrementing and comparing arrays. method sort(id, descending) Namespace types: int Parameters: id (int ) : The array to sort (and return again) descending (bool) : The sort order: order.ascending (default:false, meaning omit this param and just call...