Library "ZigzagMethods" Object oriented implementation of Zigzag methods. Please refer to ZigzagTypes library for User defined types used in this library tostring(this, sortKeys, sortOrder, includeKeys) Converts ZigzagTypes/Pivot object to string representation Parameters: this : ZigzagTypes/Pivot sortKeys : If set to true, string output is...
Library "ZigzagTypes" Zigzag related user defined types. Depends on DrawingTypes library for basic types Indicator Indicator is collection of indicator values applied on high, low and close Fields: indicatorHigh : Indicator Value applied on High indicatorLow : Indicator Value applied on Low PivotCandle PivotCandle represents data of the...
Library "DrawingMethods" tostring(this, sortKeys, sortOrder, includeKeys) Converts DrawingTypes/Point object to string representation Parameters: this : DrawingTypes/Point object sortKeys : If set to true, string output is sorted by keys. sortOrder : Applicable only if sortKeys is set to true. Positive number will sort them in ascending...
Library "DrawingTypes" User Defined Types for basic drawing structure. Other types and methods will be built on these. Point Point refers to point on chart Fields: price : pivot price bar : pivot bar bartime : pivot bar time LineProperties Properties of line object Fields: xloc : X Reference - can be either xloc.bar_index or...
Library "WaveGenerator" Wave Generator Library max(source) max Parameters: source : is the input to take the maximum. Returns: foat min(source) min Parameters: source : is the input to take the minimum. Returns: foat min_max(src, height) min_max Parameters: src : is the input for the min/max height Returns:...
Library "CommonTypesMath" Provides a common library source for common types of useful mathematical structures. Includes: `complex, Vector2, Vector3, Vector4, Quaternion, Segment2, Segment3, Pole, Plane, M32, M44` complex Representation of a Complex Number, a complex number `z` is a number in the form `z = x + yi`, Fields: re : Real part of the...
Basic library for the visible range chart; with functions to allow plotting Fibs from body high/low as well as wick high/low -Thanks to code from @PineCoders Visible Chart library (PineCoders/VisibleChart/4), which is a much more comprehensive library than this, but which does not include some functions that I find useful: -Added the following exportable...
Library "eHarmonicpatternsLogScale" Library provides functions to scan harmonic patterns both or normal and log scale getSupportedPatterns() get_prz_range(x, a, b, c, patternArray, errorPercent, start_adj, end_adj, logScale) Provides PRZ range based on BCD and XAD ranges Parameters: x : X coordinate value a : A coordinate value b : B...
Library "FibRatios" Library with calculation logic for fib retracement, extension and ratios retracement(a, b, ratio, logScale, precision) Calculates the retracement for points a, b with given ratio and scale Parameters: a : Starting point a b : Second point b ratio : Ratio for which we need to calculate retracement c logScale : Flag...
Library "Bpa" TODO: library of Brooks Price Action concepts isBreakoutBar(atr, high, low, close, open, tail, size) TODO: check if the bar is a breakout based on the specified conditions Parameters: atr : TODO: atr value high : TODO: high price low : TODO: low price close : TODO: close price open : TODO: open price tail :...
Library "intersect" Find Line Intersection X/Y coordinates. Simple to use, will find intersection if it exists on the segments if the line segments do not cross on segment, an 'na' value will be returned if you plot new items with the output coords, they still plot. avoid this by setting a na(x) condition before plotting new items get(l1, l2, (...
Library "Trig" Trigonometric functions rt_get_angleAlpha(a, b, c, deg) Get angle α of a right triangle, given the lengths of its sides Parameters: a : length of leg a (float) b : length of leg b (float) c : length of hypotenuse (float) deg : flag to return angle in degrees (bool - default = false) Returns: angle α in radians (or...
Library "HelperFunctions" A collection of my most used functions apply_smoothing() Apply one of Pine Script's built-in smoothing functions to a series
Library "rzigzag" Recursive Zigzag Using Matrix allows to create zigzags recursively on multiple levels. After bit of consideration, decided to make this public. zigzag(length, ohlc, numberOfPivots, offset) calculates plain zigzag based on input Parameters: length : Zigzag Length ohlc : Array containing ohlc values. Can also contain custom...
Library "CommonMarkup" Provides functions for chart markup, such as indicating recession bands. markRecessionBands(showBands, lineY, labelY) Mark vertical bands and show recession band labels if argument showBands is true. Example "markRecessionBands(bar_index ,3.0" Parameters: showBands : - show vertical recession bands when true. Functionally...
Library "divergence" divergence: divergence algorithm with top and bottom kline tolerance regular_bull(series, series, simple, simple, simple, simple, simple) regular_bull: regular bull divergence, lower low src but higher low osc Parameters: series : float src: the source series series : float osc: the oscillator index simple : int lbL:...
Library "eHarmonicpatternsExtended" Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations. Republishing as new library instead of existing eHarmonicpatterns because I need that copy for existing scripts. scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic...