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 :...
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 "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()
Library "BE_CustomFx_Library" A handful collection of regular functions, Custom Tools & Utility Functions could be used in regular Scripts. hope these functions can be understood by a non programmer like me too. G_TextValOfNumber(ValueToConvert, RequiredDecimalPlaces, BeginingChar, EndChar) Function to return the String Value of Number with decimal precision...
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...
DEBUGGER is a library to help print debug messages to a console. This library provides an easy-to-use interface to print your debugging messages to a console in the chart. Special attention has been given to printing series and arrays easily. A debugger is a valuable tool when working on scripts and getting into trouble. Unfortunately, TradingView does not...
Library "log" A Library to log and display messages in a table, with different colours. The log consists of 3 columns: Bar Index / Message / Log Credits QuantNomad - for his idea on logging messages as Error/Warnings and displaying the color based on the type of the message setHeader(_t, _location, _header1, _header2, _header3, _halign, _valign, _size) Sets...
Library "cache" A simple cache library to store key value pairs. Fed up of injecting and returning so many values all the time? Want to separate your code and keep it clean? Need to make an expensive calculation and use the results in numerous places? Want to throttle calculations or persist random values across bars or ticks? Then you've come to...
Library "log" Logging library for easily displaying debug, info, warn, error and critical messages. No real need to explain why you might want to use this library! I'm sure you've all experienced the frustration of trying to understand the data state of your scripts... so, enjoy! More on it's way... (Don't forget to check the helpers in the script and the...
Library "assert" Production ready assertions and auto-reporting for unit testing pine scripts. This library was born from the need to maintain production level stability and catch regressions / bugs early and fast. I hope this help you trust your pine scripts too. More libraries and tools on their way... please follow for more. Please see the script for...