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 ...
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...
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...
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) ...
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...
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 ”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 "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 "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 "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 "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 "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...
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...
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 "TableUtils" Collection of table utility functions getTablePositionByLabel(tablePosition) Return the position for the table by given label. Useful if you want to control the position of the table with a pine script input selector that use a more human friendly labels Parameters: tablePosition (string) : (string) Label of the table position....
Library "WeightedSumIndex" WeightedSumIndex: Helper class to build indices. Index value is a normalized weighted sum of all its input signals. The value is from 0 to 100 fun(x) TODO: add function description here Parameters: x (float) : TODO: add parameter x description here Returns: TODO: add what function returns init() Initialize an...
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 :=...