Free Support and Resistance Pine Scripts (page 66)
Open-source Pine scripts that draw levels: pivot points, automatic support and resistance, supply and demand zones, Fibonacci and previous highs and lows.
A minimal strategy using the built-in Traditional pivot point levels. Each bar's levels are computed from the previous bar's high, low and close. It enters long when the close crosses above the first resistance level and short when it crosses below the first s
Swing High/Low Detection identifies local price peaks and troughs by comparing a central bar against surrounding bars within a user-defined lookback window. Once a pivot point is confirmed after the required lookback period, the indicator updates and plots con
This overlay indicator plots a volume-weighted average price from a chosen source, defaulting to the average of high, low, and close. It resets the cumulative volume sums at a selectable anchor such as the session, week, month, quarter, year, decade, century,
This indicator renders Ichimoku cloud components consisting of conversion line, base line, leading span A and leading span B. It tracks Tenkan-Kijun crosses and assigns a numeric score to each based on whether the cross occurs below, inside or above the Kumo c
TTM Scalper Alert marks three-bar pivot highs and lows on the price chart. It treats the prior bar as a pivot high when its high exceeds both neighboring highs, and as a pivot low when its low is below both neighboring lows. An optional setting uses closes ins
A test strategy from a reference corpus that builds a VWAP restarted on the first bar of each trading session, using typical price times volume during market hours. It buys one unit when the close crosses above this session VWAP and closes the long when the cl
This strategy demonstrates how to place and cancel pending stop orders with syntax formatted for MT4 and MT5 webhook bridges. It generates entries using a smoothed Stochastic oscillator crossover and crossunder. Stop orders are placed at a configurable tick di
This overlay indicator builds a volume profile from a chosen number of recent bars and splits the price range into rows. It draws a horizontal volume histogram on the price chart, highlights the point of control, and can optionally show a rolling point of cont
The TRMB-tracker indicator plots labels directly on the TRMB stock price chart to mark ARK Invest buy and sell trades. It displays specific dates with "Buy X1" or "Sell X1" text in green and red colors. The input setting selects an ETF type from ARKK, ARKQ, AR
Swing Pivot ATR is a trend-breakout strategy that identifies swing highs and lows using pivot points and enters positions on price breakouts. It tracks historical pivot high and low levels, plotting them as steplines directly on the price chart. When price clo
This indicator plots a custom volume profile on the price chart. It divides the price range into rows and calculates volume distribution by summing bar volumes that fall within each price level over a lookback period. Horizontal bars represent volume at each l
This overlay indicator plots ATR-based trigger, target and Fibonacci levels around a prior close taken from a higher timeframe chosen by the trading type. Day, multiday, swing, position and long-term modes map to daily through yearly data. Optional CALL and PU
Tracks local swing highs and lows to determine market structure and current market bias. It draws horizontal price lines required to break structure, labels structural reversals or breaks, and highlights Buy The Dip and Sell The Rally setup points. Settings al
This strategy identifies pivot highs and pivot lows using standard pivot detection functions to evaluate market structure. Plotted directly overlaying the price chart, it enters a fixed long position on the exact bar where a pivot low is confirmed. The long po
Williams Fractals detects classic five-bar reversal patterns directly on the price chart. The indicator calculates up fractals when a candle high exceeds the two preceding and two succeeding highs, and down fractals when a low is lower than the surrounding low
SimpleBot is a Pine Script v4 overlay indicator that stores recent prior-bar opens and closes in rolling arrays and averages each series. It draws two horizontal lines on the price chart, one for the average open and one for the average close, both extended to
Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during
Blastoise's Indicator draws dynamic support and resistance trend lines on the price chart. It locates swing highs and swing lows with a fixed 20-bar pivot and joins the last three of each into rising lower lines and falling upper lines. A line is kept only whe
This integration strategy combines seven analytical layers into a single system drawn directly on the main price chart. It calculates pivot highs and lows, Fair Value Gaps (FVG) scaled by ATR, smoothed RSI momentum, volume z-score anomalies, cumulative volume
The Divergence Scanner is an indicator that detects divergences using the Hull Moving Average. It calculates the high-low average price as the source and applies a Hull Moving Average with length 21 and a lookback of 2. Users can enable the display of Hull sup
Rolling Minimum Index calculates and plots the bar offset to the lowest closing price over a user-defined lookback window using Pine Script's built-in lowestbars function. Plotted in a separate indicator pane, it outputs a negative integer representing how man
The Volatility Stop indicator calculates a trailing stop level based on Average True Range (ATR) to help identify trend direction and reversal levels. It tracks price changes over a user-defined ATR period and multiplier, plotting a green line during uptrends
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.