Pine Library · 198 open-source scripts

Free Pine Script Libraries (page 5)

Open-source Pine Script libraries: collections of functions that other indicators and strategies import, so you do not write the same code twice.

Pine scripts198
Code shown here159open licence
Updated in a year73
No repaint flag189

Libraries: All

Utils

by mushroom-men-Trading
2 stars

This Pine Script v5 library supplies utility functions and types for indicators on TradingView. The core feature is the valueColorSpectrum object, which maps oscillator values to colors using configurable level thresholds for custom visual themes. It supports

Library v5
Updated 9 months ago · None stated GitHub repository of Utils

libhl

by ivansoft
1 stars

A Pine Script v5 library that records the open, high, low and close points of successive periods and keeps the latest few in an array. It exports types for period contexts and alignment, a helper that detects when a period such as a week or month changes relat

Library v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of libhl

LibraryStopwatch

by g-moe
3 stars

LibraryStopwatch is a Pine Script library designed to measure and benchmark script execution timing. It tracks the time elapsed since the script started running using built-in system time variables and estimates execution metrics across processed bars. The lib

Library v5
Updated 5 months ago · None stated GitHub repository of LibraryStopwatch

Zignaly2Beta

by ruckard
13 stars

This library provides helper functions to format and build JSON webhook alert payloads for the Zignaly automated trading platform. It constructs formatted messages containing parameters such as trading pair, exchange, account type, leverage, margin mode, hedge

Library v5
Updated 1 year ago · None stated GitHub repository of Zignaly2Beta

ZignalyBeta

by ruckard
13 stars

This Pine Script v5 library provides functions to generate Zignaly alert messages. It includes utilities for selecting separators and quotes based on alert type (webhook or email), extracting the pair from syminfo, creating common alert messages with exchange,

Library v5
Updated 1 year ago · None stated GitHub repository of ZignalyBeta

TNSovereignLib

by raybird
1 stars

TNSovereignLib is a Pine Script v6 library providing modular components for trading systems. It defines custom data structures including an execution regime enumeration and a signal payload user-defined type containing price, validity flags, and metadata tags.

Library v6
Updated 2 months ago · None stated GitHub repository of TNSovereignLib

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers