Indicator · Pine Script v5 · On the chart

Ultimate Buy and Sell Indicator

by webcrack4

This technical indicator plots multiple analytical components directly on the price chart, combining Bollinger Bands, moving averages, relative strength index calculations, and average true range measurements.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code760
Settings40inputs
LicenceNone stated
Last update9 months ago10 Jan 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Ultimate Buy and Sell Indicator generates buy and sell signals based on volatility and momentum thresholds, with optional visual states including colored candlesticks, warning backgrounds, and band fill zones. Inputs allow adjustment of source data, lookback periods, standard deviation multipliers, and display toggles for each graphical element. The script does not incorporate automated trade execution or position exit rules.

Details

Published by

webcrack4 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Oscillators & momentum, Volatility & bands, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Data Source for Pricesourcecloseultimate_src
Moving AveragesbooltrueshowAllMA
Bollinger Band BasisbooltrueshowBasisPlot
All Watch SignalsbooltrueshowWatchSignals
Bollinger BandsbooltrueshowBollingerBands
RSI Colored CandlesbooltrueshowRSICandleColors
DPO Colored CandlesboolfalseshowDPOCandleColors
Show Buy/Sell SignalsbooltrueultimateShowSignals
Show Buy/Sell CirclesbooltrueshowCircles
Buy/Sell Signal Warning BackgroundbooltrueshowSignalBackground
Bought/Sold State BackgroundboolfalseshowBSBackground
Show ATR fill color zoneboolfalseshowAtrFill
Show all 40 settings
SettingTypeDefaultVariable
Show ATR Moving Average and band linesboolfalseshowAtrLines
Require the use of Watch SignalsbooltruerequireWatchSignals
# of bars back to use Watch Signalsint35watchSignalLookback
Force a signal wait period?boolfalseuseSignalWaiting
# of bars before signals are allowed int5signalWaitPeriod
RSI Data SourcesourceclosersiSource
RSI Lengthint32rsiLength
Calculate RSI withstringRMArsiMaType
Rsi Basis Moving Average TypestringSMArsiMaType1
RSI Basis Lengthint32rsiBasisLength
RSI Band Multiplierfloat2rsiMultiplier
Use SmoothingboolfalseuseWmaSmoothing
Smoothing Lengthint3wmaLength
RSI Watch SignalsbooltrueuseRsiWatchSignals
Price BBand Basis Lengthint20priceBasisLength
Moving Average TypestringSMApriceMaType
Price Inner BB Multiplierfloat2priceInnerMultiplier
Price Outer BB Multiplierfloat2.5priceOuterMultiplier
Bullish colorcolorcolor.greenupColor
Bearish colorcolorcolor.reddownColor
Basis colorcolorcolor.orangebasisColor
Transparency Factorfloat0.5transparencyFactor
Price Bands for transparencybooltrueusePriceTransparency
Bollinger Band Watch SignalsbooltrueusePriceBandWatchSignals
ATR Periodint30atrPeriod
ATR MA Periodint10maPeriod
ATR Band multiplierfloat1.5atrMult
ATR Moving Average TypestringWMAatrMaType
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Moon Dev Lunar Sniper

by moondevonyt
92 stars

Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b

Indicator v6 TrendOscillators & momentum Repaints
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
14 stars

Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

Cerebr Wave

by jerryinyang
5 stars

Cerebr Wave is an overlay indicator that combines multi-timeframe Keltner Channels with a Wave Trend oscillator to analyze market structure and momentum. It calculates higher-timeframe and lower-timeframe Keltner Channels alongside Wave Trend crossover signals

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Cerebr Wave

Cyber HUD XAU

by panzmoravylab
3 stars

Cyber HUD XAU is an overlay indicator designed for XAUUSD that combines trend, momentum, and volatility filters. It calculates fast and slow ATR ratios alongside local price ranges to detect consolidation and chop filter states. The script evaluates candle bod

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Cyber HUD XAU

Setup-1

by IAMATOMIC001
3 stars

This indicator plots multiple technical analysis components directly on the price chart, including a Nadaraya-Watson envelope, pivot-based trendlines, and a kernel regression oscillator. It also renders visual overlay panels for the Relative Strength Index and

Indicator v5 TrendOscillators & momentum Repaints
Updated 12 months ago · None stated GitHub repository of Setup-1

Skew Weighted Average Price (SWAP) calculates a skew-weighted average price for nuanced analysis of price dynamics and potential trading opportunities. The script determines skew by comparing smoothed positive and negative true ranges derived from price direct

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Skew Weighted Average Price (SWAP)

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers