Library "MiteTricks" Matrix Global Registry. Get, Set, automatic growing, universal get/set, multi-matrix dictionaries, multi-dictionary matrixes.. add slice matrixes of any type, share one common global key registry pull up an item from a category, and item name ie a table of info. same cell needs a color, a size, a string, a value, etc.. all of which can be...
Library "threengine_global_automation_library" A collection of functions used for trade automation getBaseCurrency() Gets the base currency for the chart's ticker. Supported trade pairs are USD, USDT, USDC, BTC, and PERP. Returns: Base currency as a string getChartSymbol() Get the current chart's symbol without the base currency appended to it....
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 "ArrayMatrixHUD" Show Array or Matrix Elements In Table For Arrays: Set the number of rows you want the data displayed in and it will generate a table, calculating the columns based on the size of the array being displayed. For Matrix: It will automatically match the Rows and Columns to the values in the matrix. Note: On the left, the table shows the...
Library "HTV_LibraryV2" up_bar() 'up_bar' checks true for every candle that closed above open price. Returns: custom Series Bool last_up_bar() 'last_up_bar' checks true for every last candle that closed above open price. Returns: custom Series Bool down_bar() 'down_bar' checks true for every candle that closed below open price. Returns: custom...
This is a collection of functions either found on the internet, or made by me. This is only public so my other scripts that reference this can also be public. If you find anything useful for you here, be my guest.
Library "console" Simple debug console to print messages from your strategy code. USAGE : Make sure your strategy overlay is false Import the library : import keio/console/1 as console init(lines, panes) Initialise function. USAGE : var log = console.init() Parameters: lines : Optional. Number of lines to display panes :...
Library "_helpers" A library containing helper functions. _arrayFill(int, string) Fill a string array with given size and value. Parameters: int : size Total size of array. string : value The value used for filling. (`NaN` is used if no argument is supplied). Returns: A string array filled with given value. _arrayFill(int, float) Fill a...
This is a draft version of a library intended to clean up my other indicators, thats why probably it won't be heplful for others, and I won't focus on documenting it at the moment. However, if by any chance you plan to use this library, let me know if you need me to document anything.
Library "Toolbelt" changePercentExp(float, int) Get change percent expression for given source Parameters: float : source Source used to generate the change percent value int : barIdx The bar index to use Returns: Change percent expression allTimeHighExp(series) Get data from the bar that cointains all time high of the given...
Library "lib_Militzer" // This is a collection of functions either found on the internet, or made by me. // This is only public so my other scripts that reference this can also be public. // But if you find anything useful here, be my guest. print() strToInt() timeframeToMinutes()
Library "easytable" Create tables easily, with minimal code ▦ FEATURES ▦ █ Create tables █ JSON To Table █ Change Colors █ Array to Rows/Columns █ Pre-Styles █ Change Text Size █ Delete Rows/Columns █ Blink Cells indentify_table_id() Identifies all tables ID number in each cell(0,0). ...
Library "LoggerLib" This is a logging library for Pinescript. It is aimed to help developers testing and debugging scripts with a simple to use logger function. Pinescript lacks a native logging implementation. This library would be helpful to mitigate this insufficiency. This library uses table to print outputs into its view. It is simple, customizable and...
Library "ObjectStack" init() push() push() push() push() push() nextIndex() nextIndex() nextIndex() nextIndex() nextIndex() delete() delete() delete() delete() delete() cleanOldest() cleanOldest() cleanOldest() cleanOldest() cleanOldest()
Currently in PineScript you cannot modify global variables in functions because of scope limitations. One way to work around that is to use arrays. This Library simplifies the use of arrays as global variables to make your code look cleaner. If you're coming from other programming languages, I'm sure you will come across this issue in your PineScript journey at...
Library "Debug_Window_Library" Provides a framework for logging debug information to a window on the chart. consoleWrite(txt, maxLines) Adds a line of text to the debug window. The text is rolled off the bottom of the window as it fills up. Parameters: txt : - this is the text to be appended to the window maxLines : - this is the size of the...
Library "ThangeVault" Thange Vault is a collection of utility functions required by the Thange Woodwind Playbook. debug(msg) Print debug information Parameters: msg : message to be logged on console Returns: nothing tickFormat() Create a string template to restrict stop-loss, take-profit level precision to ticks. Returns: A string format template
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...