█ 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...
Library "CalculatePercentageSlTp" This Library calculate the sl and tp amount in percentage sl_percentage(entry_price, sl_price) this function calculates the sl value in percentage Parameters: entry_price : indicates the entry level sl_price : indicates the stop loss level Returns: stop loss in percentage tp_percentage(entry_price,...
Library "AdxCalcHourly" getBars() getBars: Returns the number of bars to use in the historical lookback period Returns: simple int directionDown() directionDown: Calculates the direction down for bar_index Returns: series float directionUp() directionUp: Calculates the direction up for bar_index Returns: series float ...
Library "swap" Side / Boundary Based All Types Swapper - three automagical types for Arrays, Matrixes, and Variables -- no signal : Long/ Short position autoswap -- true / false : Boolean based side choice -- Src / Thresh : if source is above or below the threshold - two operating modes for variables, Holding mode only for arrays/matrixes -- with two ...
Library "RouterOrdersIron" Library for routing orders to the Binance exchange. MsgDoLongMKT(id, symbol, balance) Returns json for Iron to buy a symbol for the amount of the balance with market order. Parameters: id : ID of your Iron router. symbol : Symbol for a trade, BTC example balance : The amount for which to carry out the...
Library "Moving_Averages" This library contains majority important moving average functions with int series support. Which means that they can be used with variable length input. For conventional use, please use tradingview built-in ta functions for moving averages as they are more precise. I'll use functions in this library for my other scripts with dynamic...