Library "loxxmas" TODO:loxx moving averages used in indicators kama(src, len, kamafastend, kamaslowend) KAMA Kaufman adaptive moving average Parameters: src : float len : int kamafastend : int kamaslowend : int Returns: array ama(src, len, fl, sl) AMA, adaptive moving average Parameters: src : float len : int ...
Library "UtilityFunctions" Utility functions written by me printLabelOnLastBar_string(string) Prints string in a label on the last bar Parameters: string : value to print Returns: void printLabelOnLastBar_float(float) Prints float in a label on the last bar Parameters: float : value to print Returns: void ...
Library "functionStringToMatrix" Provides unbound methods (no error checking) to parse a string into a float or int matrix. to_matrix_float(str, interval_sep, start_tk, end_tk) Parse a string into a float matrix. Parameters: str : , string, the formated string to parse. interval_sep : , string, cell interval separator token. start_tk : ,...
█ OVERVIEW This library is complementary for Cyclic RSI High Low With Noise Filter. █ CREDITS LoneSomeTheBlue WhenToTrade AlertFrequency() : AlertFrequency Parameters: : : _string Returns: : _freq CyclicRSI() : CyclicRSI Parameters: : : _source, _length, _expression Returns: : osc Credits to WhenToTrade AddToZigzag() :...
█ OVERVIEW This library is a Pine programmer’s tool containing functions that build an array of values meeting specific conditions. Its functions use concepts from our ConditionalAverages library , but instead of returning a single value, they return an array containing all the values meeting the conditions, which can then be processed as needed. This...
Library "utils" Few essentials captured together (subset of arrayutils) timer(timeStart, endTime) finds difference between two timestamps Parameters: timeStart : start timestamp endTime : end timestamp Returns: check_overflow(pivots, barArray, dir) finds difference between two timestamps Parameters: pivots : pivots array ...
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 "percentageLib" : every thing need anout percentage getPercentage(entry, exit) : get percentage change of of two value Parameters: entry : : value of entry price exit : : value of exit price Returns: : negative or positive value applyPercentageNoAddUp(price, percentage) : apply percentage change on value decrease or...
Library "drawcandles" simple utility to draw different candles using box and lines. Quite useful for drawing candles such as zigzag candles or MTF candles draw(o, h, l, c, oBar, cBar) draws candles based on ohlc values Parameters: o : Open Price h : High Price l : Low Price c : Close Price oBar : Open Time cBar : Close...
█ OVERVIEW This library is complementary for XABCD Harmonic Pattern Custom Range Interactive TupleSwitchHL() : Tuple Switch for High Low Parameters: : : _bool, low_X, high_X, low_A, high_A, low_B, high_B, low_C, high_C Returns: : price_X, price_A, price_B, price_C TupleSwitchStyleColor() : Tuple switch for style and color Parameters: :...
Library "curve" Regression array Creator. Handy for weights, Auto Normalizes array while holding curves. curve(_size, _power) Curve Regression Values Tool Parameters: _size : (float) Number of Steps required (float works, future consideration) _power : (float) Strength of value decrease Returns: (float ) Array of multipliers from 1 downwards to 0.
Library "srcCalc" Provides functions for converting input strings 'open','high','low','close','hl2','hlc3','ohlc4','hlcc4' to corresponding source values. get_src(src) Converts string to source float value Parameters: src : String to use (`close` is used if no argument is supplied). Returns: Returns the float value of the string
Library "xor" xor(a, b) xor: Exclusive or, or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false). Parameters: a : first argument b : second argument Returns: returns xor (true only if a and b are true, but not both) Example: true xor true = false true xor false =...
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...
Hash map's in Pinescript?? Absolutely This Library is the first step towards bringing a much needed data structure to the Pine Script community. "Object" allows Pine coders to finally create objects full or unique key:value pairs, which are converted to strings and stored in an array. Data can be stored and accessed using dedicated get and set methods. The...
Library "arrays" 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...
█ OVERVIEW This library is complementary for XABCD Harmonic Pattern Custom Range Interactive PriceDiff() : Price Difference Parameters: : : price_1, price_2 Returns: : PriceDiff TimeDiff() : Time Difference Parameters: : : time_1, time_2 Returns: : TimeDiff ReturnIndexOf3Arrays() : Return Index Of 3 Arrays Parameters: : :...
█ OVERVIEW This library was to showcase database for specifications of Harmonic Patterns using arrays. █ CREDITS Scott M Carney, author of Harmonic Trading : Volume Three animal_db(x) TODO: export animal_db Parameters: x : TODO: float value is set to default if not necessary Returns: TODO: