RSI -SUPERTRENDThis is hybrid of Super trend and RSI
the green and red zones are by the supertrend
so it seems the two indicator can compleemnt each other
Поиск скриптов по запросу "supertrend"
TUX EMA Scalper+SuperTrendI sum up scripts TUX Ema Scalper by tux and Supertrend by abhi.shri2702
This script is just created for backtesting xbtusd.
Buy / Sell signal : Tux Ema Scalper mechanism ( ema 20 : up /down)
Green Arrow : Long
Pink Arrow : Short
Thank you for creators.
Supertrend Long/Short with 1.5R Checkmarks & Adjustable RSISupertrend long/short entries
EMA trend filters (21 ≥ 50 ≥ 200 for longs, 21 ≤ 50 ≤ 200 for shorts)
Adjustable RSI filter
Max capital per trade filter
Position sizing
1.5x risk/reward targets
Labels for entries
Alerts for trades
✅ Check mark when a trade hits 1.5R before hitting the stop
SuperTrendSAP1212This indicator combines Supertrend, VWAP with bands, and an optional RSI filter to generate Buy/Sell signals.
How it works
Supertrend Flip (ATR-based): Detects when trend direction changes (from bearish to bullish, or bullish to bearish).
VWAP Band Filter: Signals only trigger if the candle close is beyond the VWAP bands:
Buy = Supertrend flips up AND close > VWAP Upper Band
Sell = Supertrend flips down AND close < VWAP Lower Band
Optional RSI Filter:
Buy requires RSI < 20
Sell requires RSI > 80
Can be enabled/disabled in settings.
Features
Choice of VWAP band calculation mode: Standard Deviation or ATR.
Adjustable ATR/StDev length and multiplier for VWAP bands.
Toggle Supertrend, VWAP lines, and Buy/Sell labels.
Alerts included: add alerts on BUY or SELL conditions (use Once Per Bar Close to avoid intrabar signals).
Use
Works best on intraday or higher timeframes where VWAP is relevant.
Use the RSI filter for more selective signals.
Can be combined with your own stop-loss and risk management rules.
⚠️ Disclaimer: This script is for educational and research purposes only. It is not financial advice. Always test thoroughly and trade at your own risk.
Supertrend0913This Pine Script (`@version=6`) combines **two Supertrend indicators** and a set of **moving averages (EMA & MA)** into one overlay chart tool for TradingView.
**Key features:**
* **Supertrend \ & \ :**
* Each has independent ATR period, multiplier, and ATR calculation method.
* Plots trend lines (green/red for \ , blue/yellow for \ ).
* Generates **buy/sell signals** when trend direction changes.
* Includes **alert conditions** for buy, sell, and trend reversals.
* **Moving Averages:**
* 6 EMAs (lengths 21, 55, 100, 200, 300, 400).
* 5 SMAs (lengths 11, 23, 25, 39, 200).
* Each plotted in different colors for trend visualization.
👉 In short: it’s a **combined trading tool** that overlays two configurable Supertrend systems with alerts plus multiple EMAs/SMAs to help identify trend direction, signals, and potential entry/exit points.
Supertrend3n1it combines the 3 super trend indicator values to save space for more indicators in the chart , and it works perfectly with the stochastic RSI indicator
SuperTrend++@version = 4
@Release: TradersVenue TrendFollower
SuperTrend Study Alert
@Author: Prasuna.Barik (@TradersVenue)
It internally uses SuperTrend logic. It can be used for TrendFollowing trading and also as a TrailingSL indicator. Internally it takes the ATR value for the no of periods mentioned and uses the multiplier to derive the ATROffset. And if the stock is making higher high and trading above the Long TSL then it considers bullish else bearish . Accordingly it generates buy/sell signal.
Main difference between the standard supertrend indicator and this supertrend indicator is as follows:
1. This indicator dynamically changes the ATR period and multiplier basis the timeframe selected for optimal results against NSE/BSE stocks or indexes.
Indicator has been tested across almost all scripts and has done fairly well in backtesting for liquid stocks. Generates buy/sell alerts too.
2. If you want to use your own input parameters then you can provide it from front end and use option "Force Above Input Settings?"
3. Added background color for easy trend recognition (Green = Bullish | Red = Bearish . You may enable/disable it using the settings option "Change BGColor Basis Trend?".
4. You may use 'USE Multi-Color Bullish Candle?' setting where it changes candle color basis trend. It changes color as per below logic.
Green - Strong Above SuperTrend and Blue - Weak Below SuperTrend
Orange - Weak Bear Candle and Red - Strong Bear Candle
5. Also it displays quantity basis the 90% of initial capital (50k) dividing with highest high of previous day/week depending on intraday or positional
Supertrend with Correct Y-axis Scaling OLEG_SLSThe functionality of the script:
1. Supertrend Calculation:
-The trend (Supertrend line) is updated dynamically:
-If the price is above the previous trend, the line follows the upper limit.
-If the price is lower, the line follows the lower boundary.
2. Calculation of the Supertrend for the higher timeframe:
-The function is used to calculate the Supertrend for the hourly, regardless of the current timeframe on the chart.
3. Buy and Sell Signals:
-Buy signal: When the price crosses the Supertrend line up and is above the Supertrend line.
-A sales signal: When the price crosses the Supertrend line down and is below the Supertrend line.
4. Display on the chart
-The Supertrend line is displayed:
-Green if the price is above the Supertrend line.
-Red if the price is below the Supertrend line.
-The Supertrend line for the hourly timeframe is displayed in blue.
5. Alerts
Two types of alerts are created:
-Buy Alert: When there is a buy signal.
-Sell Alert: When there is a sell signal.
Features and recommendations:
-Supertrend works best in trending markets. In a sideways movement, it can give false signals.
-Check the signals on multiple timeframes for confirmation.
-Add additional indicators (for example, RSI or MACD) to filter the signals.
-Test the strategy on historical data before using it in real trading.
_________________________________________________________________________________
Функционал скрипта:
1. Расчет Supertrend:
-Тренд (линия Supertrend) обновляется динамически:
-Если цена выше предыдущего тренда, линия следует за верхней границей.
-Если цена ниже, линия следует за нижней границей.
2. Расчет Supertrend для старшего таймфрейма:
-Используется функция чтобы рассчитать Supertrend для часового,независимо от текущего таймфрейма на графике.
3. Сигналы покупки и продажи:
-Сигнал покупки: Когда цена пересекает линию Supertrend вверх и находится выше линии Supertrend.
-Сигнал продажи: Когда цена пересекает линию Supertrend вниз и находится ниже линии Supertrend.
4. Отображение на графике
-Линия Supertrend отображается:
-Зеленым, если цена выше линии Supertrend.
-Красным, если цена ниже линии Supertrend.
-Линия Supertrend для часового таймфрейма отображается синим цветом.
5. Оповещения
Создаются два типа оповещений:
-Buy Alert: Когда возникает сигнал на покупку.
-Sell Alert: Когда возникает сигнал на продажу.
Особенности и рекомендации:
-Supertrend лучше всего работает в трендовых рынках. В боковом движении может давать ложные сигналы.
-Проверяйте сигналы на нескольких таймфреймах для подтверждения.
-Добавьте дополнительные индикаторы (например, RSI или MACD) для фильтрации сигналов.
-Тестируйте стратегию на исторических данных перед использованием в реальной торговле.
SuperTrend Cyan — Split ST & Triple Bands1) 개요
추세 필터 (SuperTrend)와 3중 밴드 (Outer A / Inner B / Core C)를 결합한 시각화 지표입니다.
추세 방향: SuperTrend로 업/다운을 명확히 구분
밴드 구조: A(바깥)–B(중간)–C(코어) 3개 라인, A↔B, B↔C 두 개의 갭만 채움 (겹침 없음)
표시 정책: 업추세일 때는 하단 밴드만, 다운추세일 때는 상단 밴드만 오버레이
MTF 테이블: 5m / 15m / 1h / 4h / 1D, 상위 타임프레임 추세 컨플루언스 확인
목적은 추세 추종(방향) + 변동성 컨텍스트(채널)를 동시에 제공하여
추세별 단 방향성 매매의 진입/청산/리스크 관리를 더 직관적으로 돕는 것입니다.
2) 핵심 아이디어
Split SuperTrend: 추세에 맞는 한쪽 라인만 강조해 노이즈를 줄이고 방향성 가독성을 높입니다.
Triple Bands: 변동성 폭을 세 층으로 나눠 확장(추세 가속) vs 복귀(평균회귀) 패턴을 명확히 관찰합니다.
Non-overlapping Fill: A↔B(진하게), B↔C(연하게)로 층차를 주어 의미 있는 영역만 강조합니다.
3) 시각화 규칙
업추세(초록) → 하단 A/B/C 라인만 표시, A↔B(진), B↔C(연) 채움
다운추세(빨강) → 상단 A/B/C 라인만 표시, A↔B(진), B↔C(연) 채움
라인 스타일은 기본 linebreak로 설정되어, 추세 흐름을 끊김 없이 보여줍니다.
가격과 밴드 사이는 채우지 않습니다. (밴드 간 영역만 채움)
4) 입력값(Parameters)
SuperTrend Factor: ST에 곱해지는 ATR 배수(버퍼 두께).
값이 클수록 전환이 느려지고 안정적, 작을수록 민감.
Super Trend
SuperTrend ATR Length: ATR 기간. 짧을수록 최근 변동성에 더 민감.
Show Opposite ST Line: 반대편 라인도 표시(기본 Off).
Triple Bands (A/B/C)
Band A: Outer Multiplier: 가장 바깥 밴드 두께(ATR 배수).
Band B: Inner Multiplier: 중간 밴드 두께(ATR 배수).
Band C: Core Multiplier: 가장 안쪽(코어) 밴드 두께(ATR 배수).
Band ATR Length: 밴드용 ATR 기간(추세용 ATR과 독립).
Smoothing (EMA): 밴드 라인 스무딩 길이(1이면 스무딩 없음).
Show Bands: 밴드 표시/숨김 토글.
Outer Gap Opacity (A↔B): 바깥 갭 채움 투명도(0=진함, 100=투명).
Inner Gap Opacity (B↔C): 안쪽 갭 채움 투명도(0=진함, 100=투명).
MTF Table
Show MTF SuperTrend Table: 우상단 테이블 표시(5m/15m/1h/4h/1D).
각 셀: UP ▲(초록) / DOWN ▼(빨강)
5) 해석 & 활용 팁
레짐 확인(필수)
ST가 UP일 때만 롱 시나리오, DOWN일 때만 숏 시나리오로 필터링하세요.
MTF 테이블에서 상위 TF와 방향이 일치하면 신뢰도↑.
변동성 컨텍스트
A↔B(진): 강한 확장 영역. 터치/돌파 빈도↓, 의미↑.
B↔C(연): 완충/되돌림 영역. 단기 급등·급락 후 복귀 스냅백 피봇 관찰에 유용.
진입/추가/축소 아이디어(예시)
업추세: C~B 부근 눌림에서 분할 진입, B~A 확장 시 리스크 조절(축소/트레일).
다운추세: 반대로 대칭 적용.
추세 강도에 따라 A·B·C 배수를 동적으로 조정하면 변동성 상이한 종목에도 쉽게 적응.
라인/투명도 가이드
라인을 은은하게(높은 투명), 갭 채움으로 영역 강조.
A↔B를 더 진하게, B↔C는 연하게 두면 시야 피로도가 낮습니다.
6) 권장 프리셋(시작점)
ST Factor = 5~7 / ST ATR = 5~10
Bands: A=3.0, B=2.0, C=1.0 / ATR=14 / EMA=10
Opacity: Outer=60, Inner=85
시간 프레임: 메인 5m~1h, 컨펌 4h~1D 권장
7) 한계 및 주의
본 지표는 신호(매수/매도) 발생기를 제공하지 않습니다.
밴드/추세는 ATR 기반이라 변동성 급등 시 지연/오버슈트가 발생할 수 있습니다.
레인지 장세에서는 밴드 간 빈번한 왕복으로 해석 난이도가 올라갈 수 있습니다.
백테스트는 상품·타임프레임별 최적화가 필수입니다
1) Overview
A hybrid indicator combining SuperTrend (trend filter) with a Triple Band System (A/B/C) — designed to visualize both trend direction and volatility structure in a single view.
Trend Core : SuperTrend defines directional regime (Up/Down).
Triple Bands : Three volatility layers — A (Outer), B (Inner), C (Core).
Directional Overlay : Only lower bands are shown during uptrend, and upper bands during downtrend.
Non-overlapping Fills : Two distinct fill zones (A↔B and B↔C) highlight market expansion vs. contraction phases.
MTF Table : Displays higher-timeframe SuperTrend states (5m / 15m / 1h / 4h / 1D).
The result is a clean , regime-based volatility visualization useful for entry/exit timing, trend confirmation, and contextual awareness.
2) Core Concept
Split SuperTrend : Shows only the active line (Up or Down) — removing noise and clarifying direction.
Layered Volatility Bands : The three layers form a visual “volatility map,” helping identify expansions, retracements, and reversion points.
Regime-Linked Visibility : Dynamic display ensures bands match current trend regime (up = lower zone, down = upper zone).
3) Visual Rules
Uptrend (Green) : Only lower bands (A/B/C) are visible.
A↔B: darker fill = outer zone (momentum expansion)
B↔C: lighter fill = inner zone (pullback area)
Downtrend (Red) : Only upper bands (A/B/C) are visible.
A↔B: darker fill
B↔C: lighter fill
Default line style: linebreak (no gaps, no price fill).
Fill zones never overlap, maintaining a clear layer hierarchy.
4) Parameters
SuperTrend
| Parameter | Description |
| -----------------------------| ------------------------------------------------------------ |
| SuperTrend Factor | ATR multiplier (higher = slower, smoother trend). |
| SuperTrend ATR Length | ATR period used in SuperTrend. |
| Show Opposite ST Line | Displays opposite side line (default = off). |
Triple Bands (A/B/C)
| Parameter | Description |
| ----------------------------- | -------------------------------------------------------------------------------- |
| Band A (Outer Multiplier) | Defines outer band width (ATR × A). |
| Band B (Inner Multiplier) | Defines middle band width (ATR × B). |
| Band C (Core Multiplier) | Defines core band width (ATR × C). |
| Band ATR Length | ATR period for band calculation. |
| Smoothing (EMA) | EMA smoothing applied to all bands. |
| Show Bands | Toggle band visibility. |
| Outer Gap Opacity (A↔B) | Fill transparency between A and B (0=opaque, 100=transparent). |
| Inner Gap Opacity (B↔C) | Fill transparency between B and C. |
MTF Table
| Parameter | Description |
| ----------------------------- | ------------------------------------------------------------------------------- |
| Show MTF SuperTrend Table | Displays SuperTrend direction from 5m / 15m / 1h / 4h / 1D timeframes. |
| UP ▲ (Green) | Bullish regime. |
| DOWN ▼ (Red) | Bearish regime. |
5) Interpretation & Usage Tips
Trend Regime Filter
Only take long positions when SuperTrend = Uptrend, shorts when = Downtrend.
Use the MTF table for higher timeframe confluence.
Volatility Context
Outer zone (A↔B): Expansion area — high momentum, breakout potential.
Inner zone (B↔C): Reversion zone — pullbacks and mean reversion setups.
Trade Management Ideas
Uptrend: scale in near C→B, scale out near B→A.
Downtrend: mirror logic.
Adjust band multipliers dynamically for different asset volatility.
Visual Tips
Outer fill darker, inner fill lighter → better visual layering and focus.
6) Recommended Presets
SuperTrend Factor: 5–7
ATR Length: 5–10
Bands: A=3.0 / B=2.0 / C=1.0 / ATR=14 / EMA=10
Opacity: Outer=60 / Inner=85
Best Timeframes: 5m to 1h (confirmed by 4h–1D)
7) Notes & Limitations
This script does not generate trade signals; it’s a visual framework for discretionary or systematic strategies.
Band and ST signals are ATR-based, so rapid volatility shifts can cause overshoot or lag.
Performance may vary in low-volatility ranges or chop conditions.
Always validate with backtesting or forward-testing before live use.
Supertrend X2 + CalcSize Calculator:
Size Calculator is a risk management tool that helps traders position themselves intelligently by calculating optimal position size, stop loss, and take profit levels based on account capital, ATR volatility, and personal risk tolerance. It takes the guesswork out of sizing so you can focus on execution.
Features:
✅ Risk-based position sizing
✅ ATR-based stop loss & take profit levels
✅ Dynamic leverage estimation
✅ Support for long and short positions
✅ Visual display of key levels and metrics via table
✅ Works across any timeframe with locked timeframe support
How It Works:
This tool computes the ideal position size as a % of account capital based on how much you're willing to risk per trade and how far your stop loss is (in ATR units). It calculates corresponding stop loss and take profit prices, and visually plots them along with a floating table of metrics. You can lock the timeframe used for ATR and price, keeping your risk logic stable even when changing chart views.
Customizable Inputs:
Account capital and risk tolerance
ATR-based stop loss & take profit multiples
Trade direction (Long or Short)
ATR period and locked timeframe
Optional detailed metrics display
Dual SuperTrend:
The Dual Supertrend indicator enhances the classic Supertrend strategy by layering two customizable Supertrend signals with independent ATR settings. This setup gives you a deeper, more nuanced read on trend strength and potential entry zones.
Features:
✅ Two Supertrend lines (each with adjustable ATR periods and multipliers)
✅ Optional Heikin Ashi candle smoothing for noise reduction
✅ Color-coded trend background for fast visual analysis
✅ Multi-timeframe trend table overlay (customizable)
✅ Built-in signal logic to identify "Long", "Short", or "N/A" zones
✅ Built-in alerts from Long and Short Entry Zones
How It Works:
The script calculates two Supertrend levels using separate ATR settings. Trend direction is derived from the relationship between price and each band. When the larger (slower) Supertrend flips and the smaller (faster) confirms, it signals a potential entry. The multi-timeframe table helps you align trades across different timeframes.
Customizable Inputs:
ATR Periods & Multipliers for both Supertrends
Timeframes for entry zone detection (up to 4)
Enable/disable Heikin Ashi candles for smoother trend detection
Supertrend with Extreme SignalsOriginality and Usefulness
The "Supertrend with Extreme Signals" indicator is an innovative tool I've developed to combine the strengths of the Supertrend indicator with the RSI (Relative Strength Index). This combination enhances the accuracy of entry and exit signals, making it more useful for traders looking to gain a comprehensive understanding of market conditions.
Justification for Mashup:
Supertrend: This is a trend-following indicator that identifies the current market trend and potential reversal points by adjusting dynamically based on market volatility.
RSI: A momentum oscillator that measures the speed and change of price movements. It helps pinpoint overbought and oversold conditions, adding an extra layer of confirmation to trend signals.
By merging these two indicators, the script filters out false signals and improves the precision of trade entries and exits. The Supertrend identifies the trend direction, while the RSI confirms the strength and potential reversals within that trend.
Description
Overview
The "Supertrend with Extreme Signals" indicator is a powerful hybrid tool that brings together the trend-following capability of the Supertrend and the momentum analysis of RSI. This integration provides clear buy and sell signals, helping traders make more informed decisions.
What It Does
Trend Identification: Utilizes the Supertrend to determine the prevailing market trend.
Signal Confirmation: Uses RSI to confirm signals by identifying overbought and oversold conditions.
Buy and Sell Signals: Generates buy signals when the price crosses above the Supertrend line and RSI indicates oversold conditions. Generates sell signals when the price crosses below the Supertrend line and RSI indicates overbought conditions.
How It Works
Supertrend Calculation:
Calculates the Average True Range (ATR) to assess market volatility.
Computes upper and lower levels based on the mid-price and ATR.
Determines trend direction by smoothing these levels over a specified period.
Dynamically adjusts the Supertrend value based on market conditions.
RSI Calculation:
Calculates the RSI over a defined period to measure price momentum.
Uses RSI levels to identify overbought (above 70) and oversold (below 30) conditions.
Signal Generation:
Buy Signal: Triggered when the price crosses above the Supertrend line and RSI is below the oversold threshold.
Sell Signal: Triggered when the price crosses below the Supertrend line and RSI is above the overbought threshold.
How to Use It
Trend Following: Use the Supertrend color to identify the current trend (green for uptrend, red for downtrend).
Entry Signals: Look for buy signals (green label) when the price crosses above the Supertrend line and RSI is in the oversold zone.
Exit Signals: Look for sell signals (red label) when the price crosses below the Supertrend line and RSI is in the overbought zone.
Visual Confirmation: The background color changes based on the trend direction, providing a quick visual cue for the current market state.
This script is especially useful for traders who combine trend-following strategies with momentum indicators. It helps filter out false signals and provides a robust framework for identifying profitable trading opportunities.
Concepts Underlying Calculations
ATR (Average True Range): Measures market volatility by calculating the average range of price movements over a specified period.
Supertrend: A trend-following indicator that adjusts dynamically based on market volatility.
RSI (Relative Strength Index): A momentum oscillator that measures the speed and change of price movements, helping to identify overbought and oversold conditions.
By combining these concepts, the "Supertrend with Extreme Signals" indicator offers a balanced approach to trading. It considers both trend direction and market momentum, making it a powerful tool for improving trading performance through informed market analysis.
Supertrend Dual Timeframe Signals (QuantZee)This indicator generates precise Buy & Sell signals by combining the Supertrend trend direction from two selectable timeframes — a higher timeframe for primary trend bias and a lower timeframe for confirmation.
A trade signal is triggered only when both timeframes align in the same direction:
BUY Signal → Both higher and lower timeframe Supertrends are bullish.
SELL Signal → Both higher and lower timeframe Supertrends are bearish.
In addition, the script plots the Stop-Loss (SL) line from the higher timeframe Supertrend, helping traders manage risk effectively.
The SL line automatically changes color:
Green in bullish trend
Red in bearish trend
Key Features:
Custom Timeframe Selection: Choose any combination of higher & lower timeframes from the Inputs menu.
No Repainting: Signals are confirmed only after the higher timeframe bar closes.
Visual SL Reference: Higher timeframe Supertrend line for clear stop-loss guidance.
Clean Chart: Only key buy/sell labels and SL line are displayed — no clutter.
Alerts Ready: Set alerts for Buy/Sell signals directly from the TradingView alerts menu.
Usage Tips:
Recommended to keep chart on a lower timeframe (e.g., 15m, 30m, 1H) for better entry precision while higher TF confirms the trend.
Adjust ATR period and multiplier in settings to fit your instrument’s volatility.
Works on all assets — stocks, forex, crypto, indices, and commodities.
Website: quantzee.com
Subscribe: quantzee.com/contact/
Supertrend Channel Histogram OscillatorThis histogram is based on the script "Supertrend Channels "
The idea of the indicator is to visually represent the interaction of price with several different supertrend channels of various lengths in an oscillator in order to make it much more clear to the trader how the longer trends are interacting with shorter trends of the price movement of an asset. I got this idea from the "Kurutoga Cloud" and "Kurutoga Histogram" by D7R which is based on the centerlines of 3 Donchian Channels, however after I started using the Supertrend Channel by LuxAlgo I found that it was a more reliable price range channel than a standard Donchian Channel and I made this indicator to accompany it.
This indicator plots a positive value above 0 when the price is above the centerline of the supertrend channel and a negative value below 0 when the price is below the centerline.
The first supertrend's length and multiple can be adjusted in the settings.
The given supertrend input is then doubled and quadrupled in both length and multiplication so that a supertrend histogram with the values of 3, 3 will be accompanied by 2 additional supertrend histograms with the values of 6, 6 and 12, 12.
The larger price trend histograms are clearly visible behind the short term supertrend channel's histogram, giving traders a balanced view of short and long term trends interacting. The less visible columns of the larger trend remain above or below the 0 line behind the more visible short term channel trend, helping to spot pullbacks within a larger trend.
Additionally, when the 3 separate histograms are all positive or all negative but the histogram columns are separating from each other this can indicate a potential trend exhaustion leading to reversal or pullback about to happen.
The overbought and oversold lines at 50 and -50 are representative primarily of the short term trend with above 50 or below -50 indicating that the price is pushing the boundary and potentially beginning a new short term supertrend in the opposite direction. If values do not noticably exceed these levels, then the current short term trend movement can be viewed as a pullback within a larger trend, with continuation potentially to follow.
I have had troubles converting the original code to v6 so this will be published here in v5 of pinescript to be used in conjunction with the original. I was intending to create a companion indicator for this oscillator that represents 3 supertrends with corresponding 2x and 4x calculations based on LuxAlgo's script, but I can't seem to get it to work correctly in v5.
For best visualization of the trends 3 LuxAlgo Supertrend channels with 2x and 4x values should be used in conjunction with each other to fully visualize the histogram.
Used in conjunction with other indicators this can be a very effective strategy to capture larger trend moves and pullbacks within trends, as well as warn of potential price trend exhaustion.
Supertrend DashboardOverview
This dashboard is a multi-timeframe technical indicator dashboard based on Supertrend. It combines:
Trend detection via Supertrend
Momentum via RSI and OBV (volume)
Volatility via a basic candle-based metric (bs)
Trend strength via ADX
Multi-timeframe analysis to see whether the trend is bullish across different timeframes
It then displays this info in a table on the chart with colors for quick visual interpretation.
2️⃣ Inputs
Dashboard settings:
enableDashboard: Toggle the dashboard on/off
locationDashboard: Where the table appears (Top right, Bottom left, etc.)
sizeDashboard: Text size in the table
strategyName: Custom name for the strategy
Indicator settings:
factor (Supertrend factor): Controls how far the Supertrend lines are from price
atrLength: ATR period for Supertrend calculation
rsiLength: Period for RSI calculation
Visual settings:
colorBackground, colorFrame, colorBorder: Control dashboard style
3️⃣ Core Calculations
a) Supertrend
Supertrend is a trend-following indicator that generates bullish or bearish signals.
Logic:
Compute ATR (atr = ta.atr(atrLength))
Compute preliminary bands:
upperBand = src + factor * atr
lowerBand = src - factor * atr
Smooth bands to avoid false flips:
lowerBand := lowerBand > prevLower or close < prevLower ? lowerBand : prevLower
upperBand := upperBand < prevUpper or close > prevUpper ? upperBand : prevUpper
Determine direction (bullish / bearish):
dir = 1 → bullish
dir = -1 → bearish
Supertrend line = lowerBand if bullish, upperBand if bearish
Output:
st → line to plot
bull → boolean (true = bullish)
b) Buy / Sell Trigger
Logic:
bull = ta.crossover(close, supertrend) → close crosses above Supertrend → buy signal
bear = ta.crossunder(close, supertrend) → close crosses below Supertrend → sell signal
trigger → checks which signal was most recent:
trigger = ta.barssince(bull) < ta.barssince(bear) ? 1 : 0
1 → Buy
0 → Sell
c) RSI (Momentum)
rsi = ta.rsi(close, rsiLength)
Logic:
RSI > 50 → bullish
RSI < 50 → bearish
d) OBV / Volume Trend (vosc)
OBV tracks whether volume is pushing price up or down.
Manual calculation (safe for all Pine versions):
obv = ta.cum( math.sign( nz(ta.change(close), 0) ) * volume )
vosc = obv - ta.ema(obv, 20)
Logic:
vosc > 0 → bullish
vosc < 0 → bearish
e) Volatility (bs)
Measures how “volatile” the current candle is:
bs = ta.ema(math.abs((open - close) / math.max(high - low, syminfo.mintick) * 100), 3)
Higher % → stronger candle moves
Displayed on dashboard as a number
f) ADX (Trend Strength)
= ta.dmi(14, 14)
Logic:
adx > 20 → Trending
adx < 20 → Ranging
g) Multi-Timeframe Supertrend
Timeframes: 1m, 3m, 5m, 10m, 15m, 30m, 1H, 2H, 4H, 12H, 1D
Logic:
for tf in timeframes
= request.security(syminfo.tickerid, tf, f_supertrend(ohlc4, factor, atrLength))
array.push(tf_bulls, bull_tf ? 1.0 : 0.0)
bull_tf ? 1.0 : 0.0 → converts boolean to number
Then we calculate user rating:
userRating = (sum of bullish timeframes / total timeframes) * 10
0 → Strong Sell, 10 → Strong Buy
4️⃣ Dashboard Table Layout
Row Column 0 (Label) Column 1 (Value)
0 Strategy strategyName
1 Technical Rating textFromRating(userRating) (color-coded)
2 Current Signal Buy / Sell (based on last Supertrend crossover)
3 Current Trend Bullish / Bearish (based on Supertrend)
4 Trend Strength bs %
5 Volume vosc → Bullish/Bearish
6 Volatility adx → Trending/Ranging
7 Momentum RSI → Bullish/Bearish
8 Timeframe Trends 📶 Merged cell
9-19 1m → Daily Bullish/Bearish for each timeframe (green/red)
5️⃣ Color Logic
Green shades → bullish / trending / buy
Red / orange → bearish / weak / sell
Yellow → neutral / ranging
Example:
dashboard_cell_bg(1, 1, colorFromRating(userRating))
dashboard_cell_bg(1, 2, trigger ? color.green : color.red)
dashboard_cell_bg(1, 3, superBull ? color.green : color.red)
Makes the dashboard visually intuitive
6️⃣ Key Logic Flow
Calculate Supertrend on current timeframe
Detect buy/sell triggers based on crossover
Calculate RSI, OBV, Volatility, ADX
Request Supertrend on multiple timeframes → convert to 1/0
Compute user rating (percentage of bullish timeframes)
Populate dashboard table with colors and values
✅ The result: You get a compact, fast, multi-timeframe trend dashboard that shows:
Current signal (Buy/Sell)
Current trend (Bullish/Bearish)
Momentum, volatility, and volume cues
Trend across multiple timeframes
Overall technical rating
It’s essentially a full trend-strength scanner directly on your chart.
SuperTrend (5,1,5) By satish SWhy 3 Supertrends?
Short-term Supertrend (7, 1, 3) → reacts quickly, catches early trend changes but can give more false signals.
Medium-term Supertrend (14, 1, 2) → smoother, filters out noise.
Long-term Supertrend (21, 1, 3) → confirms major trend direction, fewer whipsaws.
How it Works
Trend Reversal Detection
If all three flip in the same direction → strong confirmation of trend change.
If only the short-term flips but others don’t → possible false signal, wait for confirmation.
Entry Signal Example
Buy when all three turn green (Supertrend below price).
Sell/short when all three turn red (Supertrend above price).
Exit / Partial Profit
Exit when the shortest one (7, 1, 3) flips against your position — protects profits in choppy markets.
TradingView Setup
You can do this by:
Adding Supertrend three times.
Setting their (Period, Multiplier, ATR Type) to:
ST1: 7, 1, 3
ST2: 14, 1, 2
ST3: 21, 1, 3
Use different colors or line styles for each so you can spot alignment quickly.
SuperTrend (5,1,5) BY Satish SWhy 3 Supertrends?
Short-term Supertrend (7, 1, 3) → reacts quickly, catches early trend changes but can give more false signals.
Medium-term Supertrend (14, 1, 2) → smoother, filters out noise.
Long-term Supertrend (21, 1, 3) → confirms major trend direction, fewer whipsaws.
How it Works
Trend Reversal Detection
If all three flip in the same direction → strong confirmation of trend change.
If only the short-term flips but others don’t → possible false signal, wait for confirmation.
Entry Signal Example
Buy when all three turn green (Supertrend below price).
Sell/short when all three turn red (Supertrend above price).
Exit / Partial Profit
Exit when the shortest one (7, 1, 3) flips against your position — protects profits in choppy markets.
TradingView Setup
You can do this by:
Adding Supertrend three times.
Setting their (Period, Multiplier, ATR Type) to:
ST1: 7, 1, 3
ST2: 14, 1, 2
ST3: 21, 1, 3
Use different colors or line styles for each so you can spot alignment quickly.
SuperTrend with 3 Inputs SatishWhy 3 Supertrends?
Short-term Supertrend (7, 1, 3) → reacts quickly, catches early trend changes but can give more false signals.
Medium-term Supertrend (14, 1, 2) → smoother, filters out noise.
Long-term Supertrend (21, 1, 3) → confirms major trend direction, fewer whipsaws.
How it Works
Trend Reversal Detection
If all three flip in the same direction → strong confirmation of trend change.
If only the short-term flips but others don’t → possible false signal, wait for confirmation.
Entry Signal Example
Buy when all three turn green (Supertrend below price).
Sell/short when all three turn red (Supertrend above price).
Exit / Partial Profit
Exit when the shortest one (7, 1, 3) flips against your position — protects profits in choppy markets.
TradingView Setup
You can do this by:
Adding Supertrend three times.
Setting their (Period, Multiplier, ATR Type) to:
ST1: 7, 1, 3
ST2: 14, 1, 2
ST3: 21, 1, 3
Use different colors or line styles for each so you can spot alignment quickly.
Supertrend + MACD Trend Change with AlertsDetailed Guide
1. Indicator Overview
Purpose:
This script combines the Supertrend and MACD indicators to help you detect potential trend changes. It plots a Supertrend line (green for bullish, red for bearish) and marks the chart with shapes when a trend reversal is signaled by both indicators. In addition, it includes alert conditions so that you can be notified when a potential trend change occurs.
How It Works:
Supertrend: Uses the Average True Range (ATR) to determine dynamic support and resistance levels. When the price crosses these levels, it signals a possible change in trend.
MACD: Focuses on the crossover between the MACD line and the signal line. A bullish crossover (MACD line crossing above the signal line) suggests upward momentum, while a bearish crossover (MACD line crossing below the signal line) suggests downward momentum.
2. Supertrend Component
Key Parameters:
Factor:
Function: Multiplies the ATR to create an offset from the mid-price (hl2).
Adjustment Impact: Lower values make the indicator more sensitive (producing more frequent signals), while higher values result in fewer, more confirmed signals.
ATR Period:
Function: Sets the number of bars over which the ATR is calculated.
Adjustment Impact: A shorter period makes the ATR react more quickly to recent price changes (but can be noisy), whereas a longer period provides a smoother volatility measurement.
Trend Calculation:
The script compares the previous close with the dynamically calculated upper and lower bands. If the previous close is above the upper band, the trend is set to bullish (1); if it’s below the lower band, the trend is bearish (-1). The Supertrend line is then plotted in green for bullish trends and red for bearish trends.
3. MACD Component
Key Parameters:
Fast MA (Fast Moving Average):
Function: Represents a shorter-term average, making the MACD line more sensitive to recent price movements.
Slow MA (Slow Moving Average):
Function: Represents a longer-term average to smooth out the MACD line.
Signal Smoothing:
Function: Defines the period for the signal line, which is a smoothed version of the MACD line.
Crossover Logic:
The script uses the crossover() function to detect when the MACD line crosses above the signal line (bullish crossover) and crossunder() to detect when it crosses below (bearish crossover).
4. Combined Signal Logic
How Signals Are Combined:
Bullish Scenario:
When the MACD shows a bullish crossover (MACD line crosses above the signal line) and the Supertrend indicates a bullish trend (green line), a green upward triangle is plotted below the bar.
Bearish Scenario:
When the MACD shows a bearish crossover (MACD line crosses below the signal line) and the Supertrend indicates a bearish trend (red line), a red downward triangle is plotted above the bar.
Rationale:
By combining the signals from both indicators, you increase the likelihood that the detected trend change is reliable, filtering out some false signals.
5. Alert Functionality
Alert Setup in the Code:
The alertcondition() function is used to define conditions under which TradingView can trigger alerts.
There are two alert conditions:
Bullish Alert: Activated when there is a bullish MACD crossover and the Supertrend confirms an uptrend.
Bearish Alert: Activated when there is a bearish MACD crossover and the Supertrend confirms a downtrend.
What Happens When an Alert Triggers:
When one of these conditions is met, TradingView registers the alert condition. You can then create an alert in TradingView (using the alert dialog) and choose one of these alert conditions. Once set up, you’ll receive notifications (via pop-ups, email, or SMS, depending on your settings) whenever a trend change is signaled.
6. User Adjustments and Their Effects
Factor (Supertrend):
Adjustment: Lowering the factor increases sensitivity, resulting in more frequent signals; raising it will filter out some signals, making them potentially more reliable.
ATR Period (Supertrend):
Adjustment: A shorter ATR period makes the indicator more responsive to recent price movements (but can introduce noise), while a longer period smooths out the response.
MACD Parameters (Fast MA, Slow MA, and Signal Smoothing):
Adjustment:
Shortening the Fast MA increases sensitivity, generating earlier signals that might be less reliable.
Lengthening the Slow MA produces a smoother MACD line, reducing noise.
Adjusting the Signal Smoothing changes how quickly the signal line responds to changes in the MACD line.
7. Best Practices and Considerations
Multiple Confirmation:
Even if both indicators signal a trend change, consider confirming with additional analysis such as volume, price action, or other indicators.
Market Conditions:
These indicators tend to perform best in trending markets. In sideways or choppy conditions, you may experience more false alerts.
Backtesting:
Before applying the indicator in live trading, backtest your settings to ensure they suit your trading style and the market conditions.
Risk Management:
Always use proper risk management, including stop-loss orders and appropriate position sizing, as alerts may occasionally produce late or false signals.
Happy trading!
SuperTrend Momentum TableMy goal creating this indicator : Provide a way to see the Past and Current Momentum of multiple different timeframes without using multiple charts.
The Underlying Concept / What is Momentum?
The Momentum shown is derived from a Mathematical Formula, SUPERTREND. When price closes above Supertrend Its bullish Momentum when its below Supertrend its Bearish Momentum.This indicator scans for bullish & bearish Momentum on the Timeframes selected by the user and when there is a shift in momentum on any of those time frames (price closes below or above SUPERTREND ) it notifies the trader with a color change on the Momentum Table.
Back Testing: This indicator will be key for back testing with the since the SuperTrend Momentum Table shows you the visual shift in momentum. Giving the Trader a Clear visual on how Each Support and Resistance Level was made .
Technical Inputs
- If you want to optimize the rate of signals to better fit your trading plan you would change the Factor input and ATR Length input. Increase factor and ATR Length to decrease the frequency of signals and decrease the Factor and ATR Length to increase the frequency of signals.
Quick TIP! : You can Sync all VFX SuperTrend Indicators together! All VFX SuperTrend indicators display unique information but its all derived from that same Momentum Formula. Keep the Factor input and ATR Length the same on other VFX SuperTrend indicators to have them operating on the same data.
Timeframe Inputs
- The indicator has 7 Time frame Displays where you can choose which Time Frames you would like to monitor.
- You can limit the amount of time frames being displayed by changing the Time Frame Amount
Display Inputs
- The trader can specify the bullish and bearish color of all 7 Timeframes
- You can toggle (on or off) the Momentum Switch if you want to highlight the exact candle where momentum switched from bullish to bearish and from bearish to bullish .
How it can be Used ? Check the momentum of other Timeframes and use that information as a variable to structure your trading plan.
- Use Momentum information to track the trend
- Plan and limit trades based on the current Momentum of multiple timeframes
- See if you have higher momentum to fuel your trades
- See breakouts on Multiple Time Frames
Supertrend Targets [ChartPrime]The Supertrend Targets indicator combines the concepts of trend-following with dynamic volatility-based target levels. It takes core simple and classical concepts and provides actionable insights. The core of this indicator revolves around the "Supertrend" algorithm, which essentially uses the Average True Range (ATR) and a multiplier to determine if the price of a financial instrument is in an uptrend or downtrend. The indicator generates various plot points on the trading chart, which traders can use to make informed trading decisions.
Users can set several input parameters such as the source price, custom levels, multiplier scale, length of the average true range, and the window length. Traders can also opt to enable a table that shows numeric target data by percentiles, risk ratio, take profit and stop loss points.
The generated plots and fills on the chart represent various levels of potential gains and drawdowns, acting as potential targets for taking profit or stopping losses. These include the 25th, 50th, 75th, 90th, and 100th percentiles, which are adjustable by scale. There are also plots for average gain and drawdown levels, enhanced by standard deviation curves if enabled.
The Supertrend line indicators are color-coded for ease of understanding: blue for bullish performance and orange for bearish performance. The "Center Line" represents the point at which traders might consider entering a position.
Lastly, the script presents a summary table (when enabled) at the right side of the chart displaying numeric data of the plotted targets. This data provides additional insights on the risk-reward balance for each percentile, helping traders to execute their strategies more effectively.
Here's a comprehensive breakdown of its functionalities and features:
Inputs:
Source: Determines the price series type (e.g., Close, Open, High, Low, etc.).
Show Trailing Stop: Option to display the trailing stop on the chart.
Levels: Sets the number of target levels you want to display. Can range from -5 to 5.
Scale: A scaling factor for adjusting targets, can be between 1 to 100.
Window Length: Length for the target computation, determines how many bars will be considered.
Unique: Ensures every data point used in calculations is unique.
Multiplier: Multiplier for the ATR (Average True Range) to compute the SuperTrend.
ATR Length: Period for the ATR computation.
Custom Level: Allows users to set their own levels using various statistics like Average, Average + STDEV, Percentile, or can be disabled.
Percent Rank: Determines the percentile rank for targeting.
Enable Table: Enables or disables a table display.
Methods:
Flag: Identifies bullish and bearish trend reversals.
Target Percent: Determines the expected price movement (both gains and drawdowns) based on historical trend reversals.
Value Percent: Computes the percentage difference between the current price and the entry price during trend reversals.
Plots:
Multiple target lines are plotted on the chart to visualize potential gain and drawdown levels. These levels are adjusted based on user settings. Additionally, the main Supertrend line is plotted to indicate the prevailing trend direction.
Gain Levels: Target levels which show potential upside from the current price.
Drawdown Levels: Target levels which represent potential downside from the current price.
SuperTrend Line: A line that adjusts based on price volatility and trend direction, acting as a dynamic support or resistance.
In conclusion, the "Supertrend Targets " indicator is a powerful tool that combines the principle of trend-following with dynamic targets, providing traders with insights into potential future price movements. The range of customization options allows traders to adapt the indicator to different trading strategies and market conditions.






















