Library "_arrayutils" Library contains utility functions using arrays. delete(arr, index) remove an item from array at specific index. Also deletes the item Parameters: arr : - array from which the item needs to be deleted index : - index of item to be deleted Returns: void pop(arr) remove the last item from array. Also deletes the...
Library "harmonicpatterns" harmonicpatterns: methods required for calculation of harmonic patterns. These are customised to be used in my scripts. But, also simple enough for others to make use of :) isGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isGartleyPattern: Checks for harmonic pattern Gartley Parameters: xabRatio :...
Library "Signal_Data_2021_09_09__2021_11_18" Functions to support my timing signals system import_start_time(harmonic) get the start time for each harmonic signal Parameters: harmonic : is an integer identifying the harmonic Returns: the starting timestamp of the harmonic data import_signal(index, harmonic) access point for pre-processed data...
Library "ma_function" TODO: This library is a package of various MAs. ma_function(name, source, length) This function provides the MA specified in the argument. Parameters: name : MA's name source : Source value length : Look back periods Returns: Ma value
Library "TableColorTheme" TODO: This library provides the color for the table. monokai(name) theme: Provides the colors of monokai. Parameters: name : TODO: The name of the color group. Returns: TODO: Returns an array of colors. kolormark.com monokaipro(name) theme: Provides the colors of monokai pro. Parameters: name : TODO: The name of...
Library "LocalLimit" Calculates the local upper or local lower limit for a given series. Applying multiple passes produces what appears like support or resistance levels. See Local Limits for more detail. upper(src) Produces the recent local upper limit for a given series. Parameters: src : The source series to derive from. lower(src) Produces...
Library "UnicodeReplacementFunction" Unicode Characters Replacement function for strings. replaceFont(_str, _fontType) Unicode Character Replace Function Parameters: _str : String input _fontType : Font Type Selector Returns: Replaced Char String with any custom font type choosed
Library "SgjoeLibrary" Custom functions highest_when(float, float) Permits a condition to be used with highest(high,condition) Parameters: float : _high_series The High for the condition float : _when The condition such as close > high Returns: The high(s) at the point(s) the condition was true lowest_when(float, float) Permits a condition...
Library "MomentumSignals" Contains utilities varying algorithms for detecting key changes in momentum. Note: Momentum is not velocity and should be used in conjunction with other indicators. A change in momentum does not mean a reversal of velocity or trend. simple(primary, secondary, len) Compares two series for changes in momentum to derive signal...
Library "GenericTrading" This library aims to collect rare but useful operations for get_most_recent_long_or_short_position_closed_index() : returns most recent long/short closed bar index. get_most_recent_long_or_short_position_open_index() : returns most recent long/short closed bar index. These two functions designed to help to speed up the...
Library "Momentum" Contains utilities varying algorithms for measuring momentum. simple(fast, slow, src, fastType, slowType) Derives momentum from two moving averages of different lengths. Parameters: fast : The length of the fast moving average. slow : The length of the slow moving average. src : The series to measure from. Default is...
Library "arsenal" This library is a collection of weapons that will help us win the war against the market. isNewbar(res, timezone) Checks if the res is in new bar at the current timeframe Parameters: res : - resolution of the bar to check if new timezone : - timezone of the resolution Returns: ch: - 1=true, 0=false
Library "Time" Utilities for measuring time. bar() Gets the number of milliseconds per bar.
Library "Volatility" Functions for determining if volatility (true range) is within or exceeds normal. The "True Range" (ta.tr) is used for measuring volatility. Values are normalized by the volume adjusted weighted moving average (VAWMA) to be more like percent moves than price. current(len) Returns the current price adjusted volatitlity...
Library "DataCleaner" Functions for acquiring outlier levels and acquiring a cleaned version of a series. outlierLevel(src, len, level) Gets the (standard deviation) outlier level for a given series. Parameters: src : The series to average and add a multiple of the standard deviation to. len : The The number of bars to measure. level : The...
Library "LeoLibrary" A collection of custom tools & utility functions commonly used with my scripts getDecimals() Calculates how many decimals are on the quote price of the current market Returns: The current decimal places on the market quote price truncate(float, float) Truncates (cuts) excess decimal places Parameters: float : _number The...
Library "bench" A simple banchmark library to analyse script performance and bottlenecks. Very useful if you are developing an overly complex application in Pine Script, or trying to optimise a library / function / algorithm... Supports artificial looping benchmarks (of fast functions) Supports integrated linear benchmarks (of expensive scripts) One...