This indicator calculates the Supertrend direction across multiple selected symbols on the active timeframe using custom ATR length and multiplier settings.
1Copy the scriptPress Copy script above, or the copy button on the code below.
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
261 lines of Pine Script v5 from multi/Multi Supertrend.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
When the trend switches between bullish and bearish for any enabled asset, the script triggers formatted JSON alert messages containing the trade action, ticker, and timeframe. If the active chart matches a monitored symbol, it draws Buy or Sell labels directly on price bars upon bar close. Users can configure ATR parameters and enable or select different asset tickers.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Length
int
10
atrPeriod
Factor
float
3.0
factor
e01
bool
true
e01
s01
symbol
BTCUSDT
s01
e02
bool
true
e02
s02
symbol
ETHUSDT
s02
e03
bool
true
e03
s03
symbol
BNBUSDT
s03
e04
bool
true
e04
s04
symbol
ADAUSDT
s04
e05
bool
true
e05
s05
symbol
XRPUSDT
s05
Show all 40 settings
Setting
Type
Default
Variable
e06
bool
true
e06
s06
symbol
SOLUSDT
s06
e07
bool
true
e07
s07
symbol
DOTUSDT
s07
e08
bool
true
e08
s08
symbol
DOGEUSDT
s08
e09
bool
true
e09
s09
symbol
UNIUSDT
s09
e10
bool
true
e10
s10
symbol
LUNAUSDT
s10
e11
bool
true
e11
s11
symbol
AVAXUSDT
s11
e12
bool
true
e12
s12
symbol
LTCUSDT
s12
e13
bool
true
e13
s13
symbol
SHIBUSDT
s13
e14
bool
true
e14
s14
symbol
LINKUSDT
s14
e15
bool
true
e15
s15
symbol
BCHUSDT
s15
e16
bool
true
e16
s16
symbol
ALGOUSDT
s16
e17
bool
true
e17
s17
symbol
XLMUSDT
s17
e18
bool
true
e18
s18
symbol
MATICUSDT
s18
e19
bool
true
e19
s19
symbol
AXSUSDT
s19
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.
The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec
This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult
This indicator classifies each bar as bull, bear, or sideways from a rolling log return compared with adjustable percentage thresholds. It paints a regime ribbon on the price chart, shows a current-regime banner, and labels state changes after a minimum hold.
This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos
All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an
This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre