Backtest Strategy Optimizer Adapter With this library, you will be able to run one or multiple backtests with different variables (combinations). For example, you can run 100 backtests of Supertrend at once with an increment factor of 0.1. This way, you can easily fetch the most profitable settings and apply them to your strategy. To get a better understanding...
Library ”StrategyDashboard” Hey, everybody! I haven’t done anything here for a long time, I need to get better ^^. In my strategies, so far private, but not about that, I constantly use dashboards, which clearly show how my strategy is working out. Of course, you can also find a number of these parameters in the standard strategy window, but I prefer to display...
Library "NetLiquidityLibraryMacF" The Net Liquidity Library provides daily values for net liquidity. Net liquidity is measured as Fed Balance Sheet - Treasury General Account - Reverse Repo. Time series for each individual component included too. get_net_liquidity(component) Gets the Net Liquidity time series for the last 250 trading days. Dates that are...
Library "Table" This library provides an easy way to convert arrays and matrixes of data into tables. There are a few different implementations of each function so you can get more or less control over the appearance of the tables. The basic rule of thumb is that all matrix rows must have the same number of columns, and if you are providing multiple...
PineUnit by Guardian667 A comprehensive testing framework for Pine Script on TradingView. Built with well-known testing paradigms like Assertions, Units and Suites. It offers the ability to log test results in TradingView's built-in Pine Protocol view, as well as displaying them in a compact table directly on your chart, ensuring your scripts are both robust and...
Make debugging easier during development in Pinescript by displaying debug variables on the chart. No need for explanations, you devs know how to use it :) Library "debug" label(_output, _delete, _position) - Debug label Parameters: _output (string) : Label output string _delete (bool) : Delete all labels and only show the last one ...
Library "TradeTrackerv2" This library can be used to track (hypothetical) trades on the chart. Enter the Open, SL, and TP prices (or TP in R to have it calculated) and then call Trade.TrackTrade(barIndex). Keep track of your trades in an array and then simply call TradeTracker.UpdateAllTrades(close) to update all trades based on the current close price. How...
Library "debug" Show Array or Matrix Elements In Table Use anytime you want to see the elements in an array or a matrix displayed. Effective debugger, particularly for strategies and complex logic structures. Look in code to find instructions. Reach out if you need assistance. Functionality includes: Viewing the contents of an array or matrix on screen....
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...
Library "Debug" Some debugging functions. label_on_each_bar(txt, y_position, label_size, label_color, txt_color) Prints a label on every bar to show text. By default, only the last 50 labels will be shown on the chart. You can increase this amount up to a maximum of 500 by using the max_labels_count parameter in your script’s indicator() or strategy()...
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...
█ 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...
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 •...
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....