Strategy Statistics This library will add a table with statistics from your strategy. With this library, you won't have to switch to your strategy tester tab to view your results and positions. Usage: You can choose whether to set the table by input fields by adding the below code to your strategy or replace the parameters with the ones you would like to use...
Finally getting around to releasing the library component to the SPTS indicator! This library is packed with a ton of great statistics functions to supplement SPTS, these functions add to the capabilities of SPTS including a forecast function. The library includes the following functions 1. Linear Regression (single independent and single dependent) ...
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...
This library introduces the `PolylinePlus` type, which is an enhanced version of the built-in PineScript `polyline`. It enables two features that are absent from the built-in type: 1. Developers can now efficiently add or remove points from the polyline. In contrast, the built-in `polyline` type is immutable, requiring developers to create a new instance of the...
Library "SessionVolumeProfile" Analyzes price & volume during regular trading hours to provide a session volume profile analysis. The primary goal of this library is to provide the developer with three values: the value area high, low and the point of control. The library also provides methods for rendering the value areas and histograms. To learn more about...
Library "ETFFinderLib" TODO: add library description here etf_search_ticker(ticker) searches the entire ETF library by ticker and identifies which ETFs hold a specific tickers. Parameters: ticker (string) Returns: returns 2 arrays, holding_array (string array) and compo_array(float array) etf_search_sectors(sector) searches the entire ETF...
Library "ETFHoldingsLib" spy_get() : pulls SPY ETF data Returns: : tickers held (string array), percent ticker holding (float array), sectors (string array), percent secture positioning (float array) qqq_get() : pulls QQQ ETF data Returns: : tickers held (string array), percent ticker holding (float array), sectors (string array), percent secture...
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 "A_Traders_Edge__Library" - A Trader's Edge (ATE)_Library was created to assist in constructing Market Overview Scanners (MOS) LabelLocation(_firstLocation) This function is used when there's a desire to print an assets ALERT LABELS at a set location on the scale that will NOT change throughout the progression of the script. This is created so that...
Library "Gauge" The gauge library utilizes a gaugeParams object, encapsulating crucial parameters for gauge creation. Essential attributes include num (the measured value) , min (the minimum value equating to 100% on the gauge's minimum scale) , and max (the maximum value equating to 100% on the gauge's maximum scale) . The size attribute ...
Prices With this library, you can easily manage prices such as stop loss, take profit, calculate differences, prices from a lower timeframe, and get the order size and commission from the strategy properties tab. Note that the order size and commission only work with strategies! Usage Take Profit & Stop Loss var bool open_trade = false open_trade :=...
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...
Library "chrono_utils" 📝 Description Collection of objects and common functions that are related to datetime windows session days and time ranges. The main purpose of this library is to handle time-related functionality and make it easy to reason about a future bar and see if it is part of a predefined user session and/or inside a datetime window. All existing...
Library "MarketHolidays" The MarketHolidays library compiles market holidays (including historical special market closures) into arrays, which can then be utilized in TradingView indicators and strategies to account for non-trading days. The datasets were split into different libraries to overcome compiling limitations, streamline the process of removing...
Margin This library calculates margin liquidation prices and quantities for long and short positions in your strategies. Usage example // ############################################################ // # INVESTMENT SETTINGS / INPUT // ############################################################ // Get the investment capital from the properties tab of the...
Library "ZigLib" Calculate the points for ZigZag++. You can use custom data and resolution for your ZigZag++. Sample Usage import DevLucem/ZigLib/1 as ZigZag = ZigZag.zigzag(low, high) bgcolor(direction<0? color.rgb(255, 82, 82, 80): color.rgb(0, 230, 119, 80)) line zz = line.new(z1.time, z1.price, z2.time, z2.price, xloc.bar_time, width=3) if...
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...
This is the library version of VAcc (Velocity & Acceleration), a momentum indicator published by Scott Cong in Stocks & Commodities V. 41:09 (8–15). It applies concepts from physics, namely velocity and acceleration, to financial markets. VAcc functions similarly to the popular MACD (Moving Average Convergence Divergence) indicator when using a longer lookback...