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.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Data Source for Price
source
close
ultimate_src
Moving Averages
bool
true
showAllMA
Bollinger Band Basis
bool
true
showBasisPlot
All Watch Signals
bool
true
showWatchSignals
Bollinger Bands
bool
true
showBollingerBands
RSI Colored Candles
bool
true
showRSICandleColors
DPO Colored Candles
bool
false
showDPOCandleColors
Show Buy/Sell Signals
bool
true
ultimateShowSignals
Show Buy/Sell Circles
bool
true
showCircles
Buy/Sell Signal Warning Background
bool
true
showSignalBackground
Bought/Sold State Background
bool
false
showBSBackground
Show ATR fill color zone
bool
false
showAtrFill
Show all 40 settings
Setting
Type
Default
Variable
Show ATR Moving Average and band lines
bool
false
showAtrLines
Require the use of Watch Signals
bool
true
requireWatchSignals
# of bars back to use Watch Signals
int
35
watchSignalLookback
Force a signal wait period?
bool
false
useSignalWaiting
# of bars before signals are allowed
int
5
signalWaitPeriod
RSI Data Source
source
close
rsiSource
RSI Length
int
32
rsiLength
Calculate RSI with
string
RMA
rsiMaType
Rsi Basis Moving Average Type
string
SMA
rsiMaType1
RSI Basis Length
int
32
rsiBasisLength
RSI Band Multiplier
float
2
rsiMultiplier
Use Smoothing
bool
false
useWmaSmoothing
Smoothing Length
int
3
wmaLength
RSI Watch Signals
bool
true
useRsiWatchSignals
Price BBand Basis Length
int
20
priceBasisLength
Moving Average Type
string
SMA
priceMaType
Price Inner BB Multiplier
float
2
priceInnerMultiplier
Price Outer BB Multiplier
float
2.5
priceOuterMultiplier
Bullish color
color
color.green
upColor
Bearish color
color
color.red
downColor
Basis color
color
color.orange
basisColor
Transparency Factor
float
0.5
transparencyFactor
Price Bands for transparency
bool
true
usePriceTransparency
Bollinger Band Watch Signals
bool
true
usePriceBandWatchSignals
ATR Period
int
30
atrPeriod
ATR MA Period
int
10
maPeriod
ATR Band multiplier
float
1.5
atrMult
ATR Moving Average Type
string
WMA
atrMaType
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.
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
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
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
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
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
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