This library provides a JavaScript-style debug console to Pine Coders. It supports the most commonly used utilities from the WHATWG Console Standard including the following: • console.log • console.debug • console.info • console.warn • console.error • console.assert • console.count • console.countReset • console.group • console.groupEnd •...
█ ARRAY BROWSER Add you arrays to the array browser window and scroll them away left and right. Flexible formatting options (see below). Many thanks to @kaigouthro for his beautiful matrixautotable library. (import kaigouthro/matrixautotable/14) How to use Copy the "ARRAY BROWSER" commented code section below to your script and uncomment. See DEMO...
You don't need to initialize anything.. After you import the library you can use .print() as easy as that..! Hope this helps * use a unique ID for each .print() call let me know if you run into any bugs by trying to make it as user friendly as possible i had to do some not ideal things so there's a chance it could present some bugs with a lot of labels...
Library "logger" ◼ Overview A dual logging library for developers. Tradingview lacks logging capability. This library provides logging while developing your scripts and is to be used by developers when developing and debugging their scripts. Using this library would potentially slow down you scripts. Hence, use this for debugging only. Once your code is as...
Library "typeandcast" Contains the following methods: _type() - Returns the type of the variable in the forms "int", "array", "matrix" _type_item() - Returns the type of the variable or of the element (for array/matrix). (e.g. `arrayFloat._type_item()` returns 'float'). _type_struct() - Returns the type of the structure only (i.e....
Library "tools" A library of many helper methods, plus a comprehensive print method and a printer object. This is a newer version of the helpers library. This script uses pinescripts v5 latest objects and methods.
📕 Console Library 🔷 Introduction This script is an adaptation of the classic JavaScript console script. It provides a simple way to display data in a console-like table format for debugging purposes. While there are many nice console/logger scripts out there, my personal goal was to achieve inline functionality and visual object (label, lines) logging...
Library "DiddlyUtility" TODO: add library description here getStringTimeMinus1Minute(london_ssth, london_sstm) Parameters: london_ssth london_sstm getLadderStepIncrement(_price) Parameters: _price getLadderIndexForPrice(_price, _ladderRange) Parameters: _price _ladderRange getLadderStartPriceRange(_price,...
Library "Logger" Logger Library based on types and methods. Debugging made easy with this simple utility. To enable debugging, we now just need to add 3 lines of code. import HeWhoMustNotBeNamed/Logger/1 as l var logger = l.Logger.new(minimumLevel = 'DEBUG') logger.init() Once done, use it anywhere in the script with simple logger messages. ...
Library "FrizBug" Debug Tools | Pinescript Debugging Tool Kit All in one Debugger - the benefit of wrapper functions to simply wrap variables or outputs and have the code still execute the same. Perfect for Debugging on Pine str(inp) Overloaded tostring like Function for all type+including Object Variables will also do arrays and matricies of all...
Library "columns" Error Tolerant Matrix Setter/Getter Operations. Easy ways to add/remove items into start and end of Columns as well as arrays to grow and shrink matrix. if mismatched sizes occur the typified NA value will be there to prevent catastrophic crashing. Rows and Columns are split into 2 libraries due to limitations on number of exports as well ...
Library "rows" Error Tolerant Matrix Setter/Getter Operations. Easy ways to add/remove items into start and end of rows as well as arrays to grow and shrink matrix. if mismatched sizes occur the typified NA value will be there to prevent catastrophic crashing. columns and rows are split into 2 libraries due to limitations on number of exports as well as...
Library "condition" True/False Condition tools and toggles for booleans and utility. suggested use is checking if a calculation is required, or can be skipped speeding up script calculations in realtime and historical scenarios. isonlywihtout(_first_cond, _second_cond) output is true only if first true and second false Parameters: _first_cond :...
Library "Console" █ OVERVIEW An easy way to output messages to a console like table using a a simple "print" function that can be called from anywhere in your code including functions. █ Supports: - Scrollable console messages - Customisable number of displayed messages - More than one "console" for different types of output if...
Library "Utilities" General utilities print_series(s, skip_na, position, show_index, from_index, to_index) Print series values Parameters: s : Series (string) skip_na : Flag to skip na values (optional bool, dft = false) position : Position to print the Table (optional string, dft = position.bottom_center) show_index : Flag to show...
Library "catchChecks" Type Check for Function Builders to allow Single item to be passed in, and determine what to do with the item, ie: need an x value? function that allows label, line, box, float, or even a string.. check item type? string ? 'str.tonumber(_item)' can be in the same switch as a 'line.get_price(_item, bar_index)' both outputting float or for...