Library "lib_unit" functions for assertions and unit testing method init(this) Namespace types: Test Parameters: this (Test) method is_true(this, expression, message) assert that expression is true, if it's false a runtime error will be thrown Namespace types: Test Parameters: this (Test) expression (bool) : The value to be...
Library "lib_log" library for logging and debugging pine scripts method init(this) Namespace types: Logger Parameters: this (Logger) method debug(this, message, condition) Namespace types: Logger Parameters: this (Logger) : Logger to add the entry to message (string) : The Message to add condition (bool) : optional flag to...
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 •...
📕 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 "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 "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...