Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 65)

Open-source Pine scripts that draw levels: pivot points, automatic support and resistance, supply and demand zones, Fibonacci and previous highs and lows.

Pine scripts3,142
Code shown here1,440open licence
Updated in a year2,416
No repaint flag2,547

Support & resistance: Indicators, Strategies and Libraries

Psych Levels

by g-moe
3 stars

This TradingView indicator overlays horizontal zones on the price chart to highlight psychological rounding levels. It analyzes the close price's decimal length and mintick to compute baseline values for singles, tens, hundreds, and thousands zones. These leve

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Psych Levels
3 stars

Psychological Levels is a strategy that plots horizontal grid lines based on whole, half, and quarter psychological price levels directly on the chart. It triggers trades during designated intraday session windows, filtering signals using a multi-timeframe mov

Strategy v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Psychological Levels
3 stars

Psychological Levels is a chart overlay indicator that draws horizontal quarter, half, and whole round-number levels. It marks buy and sell signals when volume crosses user thresholds near those levels, with an optional moving-average filter, a delay between s

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Psychological Levels
3 stars

Psychological Levels is a price-chart strategy that draws quarter, half, and whole rounded price levels. A rounding value sets the level spacing, and each level type can be toggled with its own color, line style, and width. Buy and sell volume thresholds, a pr

Strategy v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Psychological Levels
106 stars

Breakout Trend Follower V2 is a price-chart strategy that enters long when price breaks a recent swing high. It uses the recent swing low as the stop and moves that stop up as higher lows form, exiting when a higher low is breached. Users set the backtest date

Strategy v4 BreakoutTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Breakout Trend Follower V2
3 stars

Psychological Levels calculates and overlays key rounded price thresholds on the main chart, distinguishing between whole, half, and quarter price levels. It identifies potential trade setups filtered by defined session time windows, prior-day range conditions

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Psychological Levels
3 stars

Psychological Lines draws a grid of horizontal round-number levels on the price chart. It rounds a baseline price by the Rounding Value, then plots whole, half, and quarter steps above and below that baseline, up to ten steps on each side. Each group can be tu

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Psychological Lines
2 stars

The McDonald's Pattern indicator detects specific price patterns on the chart by finding top and bottom points using highest and lowest values over a user-defined length. It plots fries above top points and hamburgers below bottom points, then connects selecte

Indicator v5 Support & resistanceCandlestick patterns
Updated 8 months ago · None stated GitHub repository of McDonald's Pattern [LuxAlgo]

The Range Percent Breakout Strategy identifies range contraction and inside bar patterns where the current bar's range is within a specified percentage threshold of the previous bar. When this condition is met while flat, breakout levels are established above

Strategy v5 BreakoutVolatility & bands
Updated 5 months ago · None stated GitHub repository of Range Percent Breakout Strategy
2 stars

The Moving Regression Prediction Bands indicator calculates polynomial regression bands from historical price data using a moving window. It fits a polynomial curve of specified degree to generate upper and lower bands representing expected price ranges with p

Indicator v5 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Moving Regression Prediction Bands

BTC Bot

by hasnocool
106 stars

BTC Bot is a trading strategy designed for cryptocurrency charts. It calculates Weekly Pivot Points and a smoothed momentum oscillator based on RSI and EMA. Long entries trigger when the oscillator crosses above zero, while short entries trigger when price bre

Strategy v4 Oscillators & momentumSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of BTC Bot
1 stars

A long-only strategy that plots the prior day's high, low and midpoint on the price chart. It enters long when the close crosses above the prior daily high, provided the prior day's range met a minimum percentage. It closes when price falls below the prior dai

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge Rangefinder Daily Reference
99 stars

Regression Channels calculates a linear regression trend line and standard deviation channel bands over a specified lookback period. It computes standard deviations from the residuals to form symmetrical upper and lower channel bands around the central regress

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Regression Channels (REGCHANNEL)

SEDG-tracker

by Allen1212
303 stars

This indicator plots labels on the SEDG price chart to mark ARK Invest buy and sell trades from November 2019 onward. Labels indicate share volume changes at each trade date. The main input setting selects an ETF type to filter which trades are visualized. Lab

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of SEDG-tracker

S/R Average

by g-moe
3 stars

This indicator detects confirmed pivot highs and lows using a user-set pivot length and stores those prices in rolling arrays. It optionally draws extended horizontal support and resistance lines for each stored level and plots the average of the stored resist

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of S/R Average

ScarAlgo v1

by g-moe
3 stars

ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os

Strategy v5 TrendSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of ScarAlgo v1

This strategy draws up to three session range boxes and optional backgrounds on the price chart. It records each session high and low, then looks for a breakout during a later trading window after a set number of candles close outside the range. Entries can be

Strategy v5 Sessions & timeBreakout
Updated 5 months ago · None stated GitHub repository of Session Breakout Box Strategy

This indicator tracks key price levels and range boundaries across user-defined trading sessions on the main price chart. It calculates session extremes, including highest high, lowest low, session midpoint, and highest or lowest candle body levels during a sp

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session High Low Levels with Session Breakout Box Strategy

Session High Low Levels with Session Breakout Box Strategy tracks customizable trading sessions to calculate and display key price levels directly on the main chart overlay. It identifies the highest high, lowest low, highest candle body, lowest candle body, a

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session High Low Levels with Session Breakout Box Strategy

Pivot and Price Discovery

by regalouisei
2 stars

This indicator overlays a population-sampled linear regression channel with standard deviation bounds onto the price chart to evaluate price distribution and pivot momentum. It calculates statistical moments including mean, variance, skewness, and kurtosis to

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Pivot and Price Discovery

Sessions Toolbox

by g-moe
3 stars

Sessions Toolbox overlays key intraday trading sessions—Asia, Euro, and USA—directly on the price chart. It features optional background highlighting, markers for session open and close levels, and session-specific Volume Weighted Average Price (VWAP) lines wi

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Sessions Toolbox

Squeeze Momentum

by g-moe
3 stars

This overlay indicator combines classic Bollinger Band and Keltner Channel squeeze detection with linear regression momentum and pivot-based support and resistance levels. It plots a long-term moving average filter and tracks squeeze compression and release co

Indicator v5 Volatility & bandsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Squeeze Momentum

SLGL-tracker

by Allen1212
303 stars

The SLGL-tracker is an indicator that plots labels on the price chart to visualize ARK Invest's purchases and sales of stocks from November 2019 to the present. It draws buy and sell labels showing share volume and ETF weight for selected ETFs. Users can choos

Indicator v4 Support & resistance
Updated 2 years ago · None stated GitHub repository of SLGL-tracker
2 stars

The R:R Trading System Framework is a TradingView Pine Script indicator that overlays on the price chart. It lets users select a backtest method such as Stochastic or 2x MA Cross. Multiple risk-reward levels can then be configured with adjustable stop loss per

Indicator v5 Support & resistanceOscillators & momentum
Updated 8 months ago · None stated GitHub repository of R:R Trading System Framework

Buy The Dip

by hasnocool
106 stars

Calculates a historical dip level based on the lowest low over a specified lookback period. It enters a long strategy position when the current bar close falls below the previous dip level. Positions are managed with take profit and stop loss exits placed at f

Strategy v4 Mean reversionVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Buy The Dip
2 stars

This overlay indicator builds a sentiment profile across the highest-to-lowest price range of a lookback window. It splits that range into rows and draws boxes whose length reflects bullish or bearish candle bodies, optionally using lower-timeframe intrabar op

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Range Sentiment Profile [LuxAlgo]
1 stars

This strategy plots adaptive upper and lower triggers on the price chart. It builds the channel from the highest high and lowest low over channelLength bars, then adjusts the width by the average logarithmic price movement captured across the lookback period u

Strategy v6 BreakoutVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Forge Loop Channel
2 stars

This indicator logs realtime bar updates across five dimensions: volume, price, time, activity, and age to plot interactive profiles directly on the price chart. It aggregates ticks, volume, and polarity into customizable level buckets, displaying double-sided

Indicator v5 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Realtime 5D Profile [LucF]
106 stars

This strategy calculates higher-timeframe pivot points, defaulting to Fibonacci calculations across configurable resolutions or symbol-based multipliers. It evaluates price interactions against these pivot levels to execute trades according to the selected tra

Strategy v4 Support & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of BuyHighSellLow - Pivot points
3 stars

This overlay indicator plots ATR-based horizontal levels around the previous close of a selected higher timeframe. A trading-type input maps day, multiday, swing, position, and long-term modes to daily through yearly periods. It draws trigger bands from a perc

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of ATR Levels + CALL/PUT

Gap Filling Strategy

by regalouisei
2 stars

This strategy detects daily opening gaps and trades them on the price chart. It marks an up or down gap from the current open and close versus the previous bar, then stores the prior extreme as the fill level. By default it buys down gaps and shorts up gaps, e

Strategy v4 Mean reversionSessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Gap Filling Strategy

SPCE-tracker

by Allen1212
303 stars

This indicator plots ARK Invest trade labels for SPCE stock on the price chart. It shows buy and sell actions with share volumes and marks multiple transactions per day when several ARK ETFs trade the stock. Users select an ETF type from the input settings to

Indicator v4 Screeners & dashboardsSupport & resistance
Updated 2 years ago · None stated GitHub repository of SPCE-tracker

Bands Indicator

by g-moe
3 stars

This indicator plots multiple deviation bands around the volume-weighted moving average and standard deviation. Upper bands R-1 to R-6 and lower bands S-1 to S-6 appear at Fibonacci ratios of the deviation from the mid-line on the price chart. The mid-line is

Indicator v5 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of Bands Indicator

Calculates a linear regression trend line and standard deviation bands based on the residuals over a user-defined lookback window. The script plots the central linear regression line along with upper and lower channel boundaries directly on the price chart, fi

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Standard Deviation Channel (SDCHANNEL)
3 stars

This strategy combines two sets of Bollinger Bands with a Laguerre RSI oscillator plotted on the price chart. It generates buy and sell signals when price touches the upper or lower bands or zones. The strategy allows enabling or disabling entries and includes

Strategy v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of BB + LaRSI Strategy

Grid Like Strategy

by regalouisei
2 stars

Grid Like Strategy calculates a dynamic baseline overlay that steps up or down whenever price moves beyond a defined point threshold. It enters long positions when the baseline moves upward and short positions when it moves downward, automatically placing take

Strategy v4 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of Grid Like Strategy

SRNG-tracker

by Allen1212
303 stars

This indicator plots ARK Invest trade labels on the SRNG stock price chart. It marks historical buy and sell dates with green or red labels and X1 or X2 multipliers that count how many ARK ETFs participated on each day. The script draws static vertical labels

Indicator v4 Support & resistance
Updated 2 years ago · None stated GitHub repository of SRNG-tracker

Fibs Limit Only

by hasnocool
106 stars

Fibs Limit Only is an automated limit order strategy designed for crypto futures trading. It calculates pivot highs and lows over a user-defined length to establish Fibonacci retracement and extension levels. Traders select a specific Fibonacci tier to place l

Strategy v4 Support & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Fibs Limit Only

PineForge — Terrace Pyramid

by pineforge-4pass
1 stars

This strategy plots the Trend EMA and Deep Terrace levels on the price chart to identify rising trends. It signals long pyramid entries in staged terraces when price crosses above the first, second, or third ATR-based levels during an upward trend, with up to

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Terrace Pyramid
3 stars

This indicator modifies traditional Donchian Channels by applying a weighted moving average to the highest high and lowest low over a customizable period, expanding the bands using twice the 14-period Average True Range. It calculates and plots upper, lower, a

Indicator v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Donchian Channels

SURF-tracker

by Allen1212
303 stars

SURF-tracker is an overlay indicator that plots buy and sell labels directly on the price chart to visualize ARK Invest trades. It marks historical purchase and sale dates with text labels indicating buy or sell actions along with share volume counts. The prim

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of SURF-tracker

Highs and lows

by hasnocool
106 stars

Calculates dynamic entry and exit price levels based on rolling lowest and highest bars with optional Average True Range (ATR) offsets. It places limit orders to enter long positions at the lowest price level and exits at the highest price level. An optional t

Strategy v4 Mean reversionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Highs and lows

Pivot Array Breakout

by pineforge-4pass
1 stars

Pivot Array Breakout is a breakout strategy that tracks dynamic pivot high resistance and pivot low support levels using array buffers. When a new pivot is identified, it is added to a size-limited array while older levels are removed. The strategy enters a lo

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of Pivot Array Breakout

Pivot Extension Break

by pineforge-4pass
1 stars

A strategy that detects confirmed swing highs and lows using left and right bar counts, remembers the latest of each, and trades breaks of them. It goes long when the close exceeds the last confirmed pivot high and short when the close falls below the last con

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of Pivot Extension Break

SuperTrend

by mihakralj
99 stars

This indicator calculates SuperTrend from an ATR-smoothed band around the midpoint of high and low. It plots the active band on the price chart, green in an uptrend and red in a downtrend. Trend flips when close crosses the opposite band and otherwise holds. A

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of SuperTrend

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