█ 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:
█ OVERVIEW Delete array object according to array size such as label, line, linefill, box and table. █ CREDITS HeWhoMustNotBeNamed
█ OVERVIEW This library was intended to Get price of given time.input █ CREDITS Credits to TradingView for CAGR Custom Range. █ FUNCTIONS ohlc_time() : Get OHLC price of given time.input Parameters: : : Time (t) must be using time.input Returns: : OHLC hlc_time() : Get HLC price of given time.input Parameters: : : Time (t) must...
Library "Adxl" Functions to calculate the Average Directional Index getDirectionUp(bar, lookback) Bar high changed from open for bar Parameters: bar : series int The bar to calculate at lookback : series int The lookback period Returns: series float getDirectionDown(bar, lookback) Bar low changed from open for bar Parameters: bar...
Library "heikin_ashi_candles" This library is programmed to calculate the Heikin Ashi candles using the standard formula of Heikin Ashi Candles. Notice the Heikin Ashi chart type isn't 100% like the results from this calculation. You can import this library in your code to use it as a smoothing method for your strategy which operates on the standard chart...