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"
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 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 ATR FROM 小童
//@version=6
indicator("Supertrend", overlay=true, timeframe="", timeframe_gaps=true)
atrPeriod = input(11, "ATR Length")
factor = input.float(2.0, "Factor", step = 0.01)
= ta.supertrend(factor, atrPeriod)
bodyMiddle = plot((open + close) / 2, display=display.none)
upTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color = color.green, style=plot.style_linebr)
downTrend = plot(direction < 0? na : supertrend, "Down Trend", color = color.red, style=plot.style_linebr)
fill(bodyMiddle, upTrend, color.new(color.green, 90), fillgaps=false)
fill(bodyMiddle, downTrend, color.new(color.red, 90), fillgaps=false)
atr_2 = input(10, "ATR Length 2")
factor_2 = input.float(1.0, "Factor 2", step = 0.01)
= ta.supertrend(factor_2, atr_2)
bodyMiddle_2 = plot((open + close) / 2, display=display.none)
upTrend_2 = plot(direction_2 < 0 ? supertrend_2 : na, "Up Trend", color = color.green, style=plot.style_linebr)
downTrend_2 = plot(direction_2 < 0? na : supertrend_2, "Down Trend", color = color.red, style=plot.style_linebr)
fill(bodyMiddle_2, upTrend_2, color.new(color.green, 90), fillgaps=false)
fill(bodyMiddle_2, downTrend_2, color.new(color.red, 90), fillgaps=false)
atrPeriod_3 = input(12, "ATR Length 3")
factor_3 = input.float(3.0, "Factor 3", step = 0.01)
= ta.supertrend(factor_3, atrPeriod_3)
bodyMiddle_3 = plot((open + close) / 2, display=display.none)
upTrend_3 = plot(direction_3 < 0 ? supertrend_3 : na, "Up Trend", color = color.green, style=plot.style_linebr)
downTrend_3 = plot(direction_3 < 0? na : supertrend_3, "Down Trend", color = color.red, style=plot.style_linebr)
fill(bodyMiddle_3, upTrend_3, color.new(color.green, 90), fillgaps=false)
fill(bodyMiddle_3, downTrend_3, color.new(color.red, 90), fillgaps=false)
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 (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.
SuperTrend Entry(My goal creating this indicator) : Provide a way to enter the market systematically, automatically create Stop Loss Levels and Take Profit Levels, and provide the position size of each entry based on a fix Percentage of the traders account.
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 candle closes on the current chart and when there is a shift in momentum (price closes below or above SUPERTREND) it notifies the trader with a Bar Color change.
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.
Display Inputs
- The indicator has a candle overlay option you can toggle ON or OFF. If toggled ON the candles color will represent the momentum of your current chart ( bullish or bearish Momentum)
your able to change the colors that represent bullish or bearish to your preference
- You can toggle on which shows the exact candle momentum switched sides
your able to change the colors that represent a bullish switch or bearish switch to your preference
- The trader can specify which point you would like your stop loss to reference. (Low and High) Which uses the Low of the Momentum signal as the reference for your Stop Loss during buy signals and the High as the reference during sell signals. Or (Lowest Close and Highest Close) which uses the Lowest Close of the Momentum signal as the reference for your Stop Loss during buys and the Highest Close as the reference during sells.
- The colors that represent your Stop Loses and Take Profits can also be changed
Risk Management Inputs
- Your Risk MANAGMENT section is used to set up how your Stop Loss and Take Profit are calculated
- You have the option to take in account Volatility when calculating your Stop Loss. A adjusted ATR formula is used to achieve this. Increase Stop Loss Multiplier from 0 to widen stops.
- Increase Take Profit Multiplier from 0 to access visual Take Profit Levels based on your Stop Loss. This will be important for traders that Prefer trading using risk rewards. For Example: If the the Take Profit Multiplier is 3 a Take Profit level 3 times the size or your stop loss from your entry will be shown and a price number corresponding to that Take Profit Level becomes available.
- Enter your current Account size, Bet Percentage and Fixed Spread to get your Position Size for each trade
-Toggle on the Current Trade Chart and easily get the size of your Position and the exact price of your Take Profit and Stop Loss.
You can increase the Size of the Current Trade Chart= Tiny, Small, Normal, Large, Huge and change the Position of the Current
trade Chart to your preference, (Top- Right, Center, Left) (Middle- Right, Center, Left) (Bottom- Right, Center, Left).
How it can be used ?
- Enter Trades and always know where your stop is going to be
- Eliminate the need to manual calculate Position Size
- Get a consistent view of the current charts momentum
- Systematical enter trades
- Reduce information overload
Supertrend with Target Price & ATREE [SS]Hey everyone,
Releasing this supertrend mashup indicator.
This is your basic supertrend, but with two additions:
1. The integration of the ATREE technical probability modeller; and
2. The use of ATR price targets for crossovers
ATREE
ATREE stands for Advanced Technical Range Expectancy Estimator. It has its very own indicator available here . If you are not that familiar with it, I would suggest heading over to that page and reading about it, because it gives you the in-depth details.
But for a recap, ATREE uses technical indicators such as RSI, Stochastics or Z-Score to predict the likely sentiment, whether it be bullish or bearish. The indicator allows you to select the ATREE model type and supports 3 separate probability models based on either:
1. RSI
2. Stochastics; or
3. Z-Score
If you want to know which model is most effective for the ticker and timeframe you are using, you can launch up the native ATREE indicator and review the backtesting results to ascertain which model performs optimally for that particular ticker on that particular timeframe.
When ATREE assesses the sentiment as bearish, you will get a red fill. When it assesses the sentiment as bullish, you will get a green fill. This will help you adjust your bias to focus on either dip buying or rip shorting.
The ATREE timeframe is also customizable, so you can pull data from higher timeframes than you are on.
ATR Price Targets
As with my EMA 9/21 crossover with the target price, this is essentially the same concept. When the trend shifts to bullish or bearish, bull and bear targets will be printed so you know where to look for potential reversal and you can also set realistic target prices if you are scalping or day trading.
Supertrend
The last and base feature is the supertrend. The supertrend settings are customizeable.
It will provide a green line for uptrend and a redline for downtrend, the basic supertrend functionality.
And that's the indicator!
Let me know what you think and hope you enjoy!
Safe trades as always!
SuperTrend Adaptive (STD Smooth)Supertrend Adaptive (Smoothed StdDev)
Supertrend Adaptive is a refined trend-following indicator based on the classic Supertrend. It enhances the original by incorporating smoothed standard deviation into the volatility calculation, instead of relying solely on ATR. This hybrid approach enables more responsive and adaptive trend detection, reducing noise and false signals in volatile or ranging markets. The indicator also features confidence-weighted signal labels and a clean, uncluttered display, making it practical for any trading timeframe.
🔍 Detailed Methodology and Conceptual Foundation
Unlike traditional Supertrend indicators that use only absolute volatility (ATR) to define trend bands, this version blends standard deviation — a relative volatility measure — into the calculation. Standard deviation helps capture the dispersion of price, not just its range, and when smoothed, it filters out erratic jumps caused by sudden spikes or drops.
This fusion creates trend bands that expand and contract dynamically based on recent price variability. As a result:
Fewer whipsaws : The trend bands adjust to both low and high volatility environments, which helps avoid unnecessary signal flips during consolidation.
Stronger trend adherence : Signals are less reactive to momentary price movements. This allows the indicator to hold positions longer in trending markets, giving traders the opportunity to ride extended moves.
Bollinger Band-style adaptation : By including standard deviation, this indicator behaves similarly to Bollinger Bands — accounting for relative price change rather than absolute moves alone.
These enhancements make the tool suitable not only for identifying directional bias, but also for refining entries and exits with more context-aware volatility filtering.
📈 How to Use the Indicator
Trend Direction: The script draws a colored line beneath (uptrend) or above (downtrend) price. Green indicates bullish trend, red indicates bearish.
Buy/Sell Labels: Only the most recent signal is shown to reduce clutter:
🟢 Green "Buy" label = trend reversal to bullish, with strong confidence.
🔵 Blue "Buy" label = same reversal, but with lower volume confidence.
🔴 Red "Sell" label = trend reversal to bearish, with strong confidence.
🟠 Orange "Sell" label = bearish signal with lower volume confidence.
These color codes are derived from comparing current volume to its average — a higher-than-average volume gives greater confidence to the signal.
Settings:
ATR Period: Controls the smoothing window for volatility calculation.
ATR Multiplier: Adjusts the size of the trend bands.
Std Smooth: Controls smoothing applied to standard deviation to reduce jitter.
Change ATR Method: Option to toggle between default and smoothed ATR.
Show Signals: Toggle for label display.
📢 Alerts
The script includes three built-in alert conditions:
Buy Signal: Triggered when the trend flips to bullish.
Sell Signal: Triggered when the trend flips to bearish.
Trend Direction Change: Alerts on any switch in trend regardless of confidence level.
These alerts allow traders to automate notifications or integrations with bots or trading platforms.
🧼 Clean Chart Display
To ensure clarity and comply with best practices:
The chart shows only this indicator.
Trend lines are drawn in real time for visual context.
Only one label per direction is shown — the most recent one — to keep the chart readable.
No drawings or unrelated indicators are included.
This setup ensures the script’s signals and structure are immediately understandable at a glance.
📌 Best Use Cases
This tool is designed for:
Traders who want adaptive volatility filters instead of rigid ATR-based models.
Scalpers and swing traders who prefer clean charts with minimal lag and fewer false signals.
Any asset class — works well on crypto, FX, and equities.
Shortcoming of this tool is sideway price action (will be tackled in next versions).
Credit for www.tradingview.com the version which this script extends.
SuperTrend Support & Resistance(My goal creating this indicator) : Provide a way to categorize and label key structures on multiple time frames so I can create a plan based on those observable facts.
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. On the first bar bearish momentum is detected a resistance Level is made at the highest point of the previous bullish condition. On the first bar bullish momentum is detected a support Level is made at the lowest point of the previous bearish condition. As I become a better analyst I will find better techniques and this source code may become open-source, but as of now it remains protected. 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 Supply or Demand level with a unique color and Size to signify the severity of said level.
What is Severity?
Severity is How we differentiate the importance of different Highs and Lows. If Momentum is detected on a higher timeframe the Supply or Demand Level is updated. The Color and Size representing that higher timeframe will be shown. Demand and Supply Levels made by higher Timeframes are more SEVERE then a demand level made by a lower Timeframe.
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.
- to ensure the correct calculation of Support and Resistance levels change BAR_INDEX. BAR_INDEX creates a buffer at the start of the chart. For example: If you set BAR_INDEX to 300. The script will wait for 300 bars to elapse on the current chart before running. This allows the script more time to gather data. Which is needed in order for our dynamic lookback length to never return an error(Dynamic lookback length cant be negative or zero). The lower the timeframe the greater the amount of bars need. For Example if I open up a 30 sec chart I would enter 5000 as my BAR_INDEX since that will provide enough data to ensure the correct calculation of Support and Resistance levels.
Time Frame Inputs
- The indicator has 3 Time Frame Displays where you can choose how SEVERE You want the Supply and Demand Levels. For Example: 1min, 3min, 5min, 15 min Levels, 60 min levels Weekly Levels, etc.....The higher the Timeframe Selected the more SEVERE the Level.
- Use the Amount of time Frames input to increase or limit the amount of time frames that will be displayed onto the chart.
Display Inputs
- The toggle (Trend or Basic) option Lets the trend determine the colors of the Support and Resistance Levels or Basic where the color is strictly based on if its a high or a low ( Trend = HH,HL,LL,LH)
- Toggle options (Close) and (High & Low) creates Support and Resistance Levels using the Lowest close and Highest close or using the Lowest low and Highest high.
Toggle on both or toggle off both in order to use both these values when determining the trend of your chart. For Example this would mean (Price has to close higher then the highest high. Not only make a higher high or a
higher close) and the inverse (Price has to close lower then the lowest low. Not only make a lower low or a lower close)
How Trend Is being Determined ?
(Previous Supply Level > Current Supply Level ) if this statement is true then its s LH so the trend is bearish if this statement is false then its a HH so the trend is bullish
(Previous Demand Level > Current Demand Level ) if this statement is true then its a LL so the trend is bearish if this statement is false then its a HL so the trend is bullish
(Close > Current Supply Level ) if this statement is true technically price made a HH so the trend is bullish
(Close < Current Demand Level ) if this statement is true technically price made a LL so the trend is bearish
- Fully customize how you display and label Market Structure in specific timeframes. Line Length, Line Width, Line Style, Label Distance, Label Size, Label Background Size, and Background Color can all be customized.
- Lastly Is the Trend Chart. To Easily verify the current trend of any timeframes displayed by this indicator toggle on Chart On/Off . You also get the option to change the Chart Position and the size of the Trend Chart
*****The Current charts timeframe has to lower then a month to ensure correct calculation of Supply and Demand Levels*****
How it can be used ?
(Examples of Different ways you can use this indicator) : Easily categorize the severity of each and every Supply or Demand Level in the market (The higher the time frame the stronger the level)
: Quickly Determine the trend of any Timeframe
: Get a consistent view of a market and how different time frames are behaving but just use one chart.
: Take the discretion from hand drawing support and resistance lines out of your trading
: Find and categorize strong levels for potential breakouts
: Trend Analysis, Use multiple time frames to create a narrative based on observable facts from these time frames
: Different Targets to take money off the table
: Use labels to differentiate between different trend line setups
: Find Great places to move your stop loss too.
Supertrend Alert with Arrows and Time FilterOverview
This script is designed to generate trading signals based on the Supertrend indicator, a popular technical analysis tool. The Supertrend indicator is used to identify the direction of the market trend and potential reversal points.
Supertrend Settings
The script uses two sets of Supertrend settings:
Small Supertrend
Factor: 3.0
ATR Period: 10
Big Supertrend
Factor: 10.0
ATR Period: 30
These settings are fixed and should not be altered to maintain the integrity of the signal generation process.
Configurable Parameters
startHour: The hour at which signal generation begins.
endHour: The hour at which signal generation ends.
These parameters allow users to focus on specific trading hours, optimizing the signal relevance to their trading strategy.
Signal Types
The script generates two types of signals:
Type 1: Reversal Signal
Long Signal: Triggered when the big Supertrend is in an uptrend, and the small Supertrend transitions from a downtrend to an uptrend.
Short Signal: Triggered when the big Supertrend is in a downtrend, and the small Supertrend transitions from an uptrend to a downtrend.
Type 2: Trend Change Signal
Long Signal: Triggered when the big Supertrend changes from a downtrend to an uptrend.
Short Signal: Triggered when the big Supertrend changes from an uptrend to a downtrend.
How the Script Works
Initialization: The script initializes with predefined Supertrend settings.
Data Input: Market data (e.g., price data) is fed into the script.
Supertrend Calculation: The script calculates the Supertrend values using the predefined factors and ATR periods.
Signal Detection: The script monitors the Supertrend values and detects the defined signals based on the conditions mentioned above.
Time Filtering: Signals are filtered based on the specified startHour and endHour, ensuring only relevant signals are displayed within the desired timeframe.
Usage
Set Parameters: Define startHour and endHour according to your trading schedule.
Run Script: Execute the script with market data input.
Interpret Signals: Monitor the generated signals and use them to inform your trading decisions.
Originality
Dual Supertrend Usage: The use of both a small and a big Supertrend to generate signals adds a layer of complexity and reliability to the signals.
Time-Based Filtering: Allows traders to focus on specific trading hours, enhancing the relevance and accuracy of signals.
Two Signal Types: The combination of reversal signals and trend change signals provides comprehensive market insights.
Conclusion
This Supertrend Signal Generator is a robust tool for traders seeking to leverage the Supertrend indicator for more informed trading decisions. By combining dual Supertrend settings and configurable trading hours, the script offers unique and flexible signal generation capabilities.
Supertrend + Stochastic RSIThe Supertrend + Stochastic RSI indicator is designed for scalping and short-term trading, combining the trend-following power of the Supertrend with the momentum insights of the Stochastic RSI to generate reliable buy and sell signals. This indicator aims to reduce false signals by requiring confirmation from both trend direction and momentum, making it suitable for traders targeting quick, high-probability trades in fast-moving markets on lower timeframes (e.g., 1-minute to 15-minute charts).
How It Works
The indicator integrates two technical components to produce actionable signals:
Supertrend for Trend Direction:
The Supertrend, calculated with a default length of 10 and a factor of 3.0, identifies the prevailing trend. It plots a line above or below the price, turning green when the trend is bullish (price above Supertrend) and red when bearish (price below Supertrend). This helps traders stay aligned with the market’s direction, reducing trades against the trend.
Stochastic RSI for Momentum Confirmation:
The Stochastic RSI, computed over a 14-period RSI with 3-period smoothing for %K and %D lines, measures momentum. A buy signal is generated when the %K line crosses above the oversold level (default: 20), indicating potential upward momentum, while a sell signal occurs when %K crosses below the overbought level (default: 80), suggesting downward momentum.
Signal Generation
Signals are produced only when both conditions align, using the previous bar’s values to prevent repainting:
Buy Signal: The Stochastic RSI %K crosses above the oversold level, and the Supertrend confirms a bullish trend (price above Supertrend). Displayed as a green upward triangle below the bar.
Sell Signal: The Stochastic RSI %K crosses below the overbought level, and the Supertrend confirms a bearish trend (price below Supertrend). Displayed as a red downward triangle above the bar.
Supertrend with Stochastic OB/OS Arrows @KING
TradingView Idea: Supertrend with Stochastic Arrows @KING
Overview:
- Combining the Supertrend indicator with Stochastic arrows for a comprehensive market
view, providing insights into trend direction and potential reversal points.
Supertrend Settings:
- ATR Length: The length parameter for calculating the Average True Range (ATR).
- Factor: A multiplier used to determine the distance of the Supertrend line from the
price.
Supertrend Display:
The Supertrend is color-coded:
- During an uptrend, it is displayed in green .
- During a downtrend, it is displayed in red .
- The body of the candlesticks is filled with color during the corresponding trend direction.
Stochastic Settings:
- K Length: The period length for the %K line in the Stochastic oscillator.
- K Smoothing: Smoothing factor for %K.
- D Smoothing: Smoothing factor for %D.
- Overbought Level: The threshold indicating an overbought condition.
- Oversold Level: The threshold indicating an oversold condition.
Arrows:
- Buy arrows are displayed below the bars during a downtrend when Stochastic is below the
oversold level.
- Sell arrows are displayed above the bars during an uptrend when Stochastic is above the
overbought level.
Supertrend Display:
- The Supertrend line is plotted with a color change based on its direction.
- The body of the candlesticks is filled with green during an uptrend and red during a downtrend.
Usage:
- Traders can use this script to identify potential entry and exit points, leveraging the
insights provided by both the Supertrend indicator and Stochastic oscillator. This
combination aims to capture trend strength and potential reversal opportunities.
Supertrend with EMAs (288 & 50)This indicator combines the Supertrend with two key Exponential Moving Averages (EMAs) — the 50 EMA and the 288 EMA — to help traders identify trends and possible entry or exit points in the market.
Key Features:
Supertrend Indicator:
The Supertrend indicator is a widely used trend-following tool. It helps determine whether the market is in an uptrend or downtrend by adjusting based on the Average True Range (ATR).
In this indicator, green represents an uptrend, and red represents a downtrend.
288 EMA:
The 288-period Exponential Moving Average is plotted to show the long-term market trend. It reacts more quickly to recent price changes than a simple moving average, offering an effective way to gauge long-term market direction.
50 EMA:
The 50-period Exponential Moving Average is commonly used as a short-term trend indicator. It helps identify shorter-term trends and serves as a dynamic support/resistance level.
EMA Crossover Alerts:
This indicator includes alerts for when the 50 EMA crosses above the 288 EMA (bullish signal) and when it crosses below (bearish signal), helping traders catch trend reversals or confirmation of current trends.
Supertrend Alerts:
Alerts are triggered when the Supertrend indicator switches from uptrend to downtrend or downtrend to uptrend, indicating a potential shift in market direction.
Usage:
Uptrend Confirmation: When the Supertrend is green and the 50 EMA is above the 288 EMA, it signals that the market is in a strong bullish trend.
Downtrend Confirmation: When the Supertrend is red and the 50 EMA is below the 288 EMA, it indicates that the market is in a bearish trend.
Crossover Signals: The indicator provides alerts when the 50 EMA crosses above or below the 288 EMA, helping traders spot trend changes.
Best For:
Trend-following strategies
Identifying potential trend reversals and market shifts
Traders looking for a combination of short-term and long-term trend analysis
Note: This indicator is most effective when used in conjunction with other technical analysis tools and should be considered alongside other factors such as volume, support/resistance levels, and price action.
SuperTrend - Dynamic Lines and ChannelsSuperTrend Indicator: Comprehensive Description
Overview
The SuperTrend indicator is Pine Script V6 designed for TradingView to plot dynamic trend lines & channels across multiple timeframes (Daily, Weekly, Monthly, Quarterly, and Yearly/All-Time) to assist traders in identifying potential support, resistance, and trend continuation levels. The script calculates trendlines based on high and low prices over specified periods, projects these trendlines forward, and includes optional reflection channels and heartlines to provide additional context for price action analysis. The indicator is highly customizable, allowing users to toggle the visibility of trendlines, projections, and heartlines for each timeframe, with a focus on the DayTrade channel, which includes unique reflection channel features.
This description provides a detailed explanation of the indicator’s features, functionality, and display, with a specific focus on the DayTrade channel’s anchoring, the role of static and dynamic channels in projecting future price action, the heartline’s potential as a volume indicator, and how traders can use the indicator for line-to-line trading strategies.
Features and Functionality
1. Dynamic Trend Channels
The SuperTrend indicator calculates trend channels for five timeframes:
DayTrade Channel: Tracks daily highs and lows, updating before 12 PM each trading day.
Weekly Channel: Tracks highs and lows over a user-selected period (1, 2, or 3 weeks).
Monthly Channel: Tracks monthly highs and lows.
Quarterly Channel: Tracks highs and lows over a user-selected period (1 or 2 quarters).
Yearly/All-Time Channel: Tracks highs and lows over a user-selected period (1 to 10 years or All Time).
Each channel consists of:
Upper Trendline: Connects the high prices of the previous and current periods.
Lower Trendline: Connects the low prices of the previous and current periods.
Projections: Extends the trendlines forward based on the trend’s slope.
Heartline: A dashed line drawn at the midpoint between the upper and lower trendlines or their projections.
DayTrade Channel Anchoring
The DayTrade channel anchors its trendlines to the high and low prices of the previous and current trading days, with updates restricted to before 12 PM to capture significant price movements during the morning session, which is often more volatile due to market openings or news events. The "Show DayTrade Trend Lines" toggle enables this channel, and after 12 PM, the trendlines and projections remain static for the rest of the trading day. This static anchoring provides a consistent reference for potential support and resistance levels, allowing traders to anticipate price reactions based on historical highs and lows from the previous day and the morning session of the current day.
The static nature of the DayTrade channel after 12 PM ensures that the trendlines and projections do not shift mid-session, providing a stable framework for traders to assess whether price action respects or breaks these levels, potentially indicating trend continuation or reversal.
Static vs. Dynamic Channels
Static Channels: Once set (e.g., after 12 PM for the DayTrade channel or at the start of a new period for other timeframes), the trendlines remain fixed until the next period begins. This static behavior allows traders to use the channels as reference levels for potential price targets or reversal points, as they are based on historical price extremes.
Dynamic Projections: The projections extend the trendlines forward, providing a visual guide for potential future price action, assuming the trend’s momentum continues. When a trendline is broken (e.g., price closes above the upper projection or below the lower projection), it may suggest a breakout or reversal, prompting traders to reassess their positions.
2. Reflection Channels (DayTrade Only)
The DayTrade channel includes optional lower and upper reflection channels, which are additional trendlines positioned symmetrically around the main channel to provide extended support and resistance zones. These are controlled by the "Show Reflection Channel" dropdown.
Lower Reflection Channel:
Position: Drawn below the lower trendline at a distance equal to the range between the upper and lower trendlines.
Projection: Extends forward as a dashed line.
Heartline: A dashed line drawn at the midpoint between the lower trendline and the lower reflection trendline, controlled by the "Show Lower Reflection Heartline" toggle.
Upper Reflection Channel:
Position: Drawn above the upper trendline at the same distance as the main channel’s range.
Projection: Extends forward as a dashed line.
Heartline: A dashed line drawn at the midpoint between the upper trendline and the upper reflection trendline, controlled by the "Show Upper Reflection Heartline" toggle.
Display Control: The "Show Reflection Channel" dropdown allows users to select:
"None": No reflection channels are shown.
"Lower": Only the lower reflection channel is shown.
"Upper": Only the upper reflection channel is shown.
"Both": Both reflection channels are shown.
Purpose: Reflection channels extend the price range analysis by providing additional levels where price may react, acting as potential targets or reversal zones after breaking the main trendlines.
3. Heartlines
Each timeframe, including the DayTrade channel and its reflection channels, can display a heartline, which is a dashed line plotted at the midpoint between the upper and lower trendlines or their projections. For the DayTrade channel:
Main DayTrade Heartline: Midpoint between the upper and lower trendlines, controlled by the "Show DayTrade Heartline" toggle.
Lower Reflection Heartline: Midpoint between the lower trendline and the lower reflection trendline, controlled by the "Show Lower Reflection Heartline" toggle.
Upper Reflection Heartline: Midpoint between the upper trendline and the upper reflection trendline, controlled by the "Show Upper Reflection Heartline" toggle.
Independent Toggles: Visibility is controlled by:
"Show DayTrade Heartline": For the main DayTrade heartline.
"Show Lower Reflection Heartline": For the lower reflection heartline.
"Show Upper Reflection Heartline": For the upper reflection heartline.
Potential Volume Indicator: The heartline represents the average price level between the high and low of a period, which may correlate with areas of high trading activity or volume concentration, as these midpoints often align with price levels where buyers and sellers have historically converged. A break above or below the heartline, especially with strong momentum, may indicate a shift in market sentiment, potentially leading to accelerated price movement in the direction of the break. However, this is an observation based on the heartline’s position, not a direct measure of volume, as the script does not incorporate volume data.
4. Alerts
The script includes alert conditions for all timeframes, triggered when a candle closes fully above the upper projection or below the lower projection. For the DayTrade channel:
Upper Trend Break: Triggers when a candle closes fully above the upper projection.
Lower Trend Break: Triggers when a candle closes fully below the lower projection.
Alerts are combined across all timeframes, so a break in any timeframe triggers a general "Upper Trend Break" or "Lower Trend Break" alert with the message: "Candle closed fully above/below one or more projection lines." Alerts fire once per bar close.
5. Customization Options
The script provides extensive customization through input settings, grouped by timeframe:
DayTrade Channel:
"Show DayTrade Trend Lines": Toggle main trendlines and projections.
"Show DayTrade Heartline": Toggle main heartline.
"Show Lower Reflection Heartline": Toggle lower reflection heartline.
"Show Upper Reflection Heartline": Toggle upper reflection heartline.
"DayTrade Channel Color": Set color for trendlines.
"DayTrade Projection Channel Color": Set color for projections.
"Heartline Color": Set color for all heartlines.
"Show Reflection Channel": Dropdown to show "None," "Lower," "Upper," or "Both" reflection channels.
Other Timeframes (Weekly, Monthly, Quarterly, Yearly/All-Time):
Toggles for trendlines (e.g., "Show Weekly Trend Lines," "Show Monthly Trend Lines") and heartlines (e.g., "Show Weekly Heartline," "Show Monthly Heartline").
Period selection (e.g., "Weekly Period" for 1, 2, or 3 weeks; "Yearly Period" for 1 to 10 years or All Time).
Separate colors for trendlines (e.g., "Weekly Channel Color"), projections (e.g., "Weekly Projection Channel Color"), and heartlines (e.g., "Weekly Heartline Color").
Max Bar Difference: Limits the distance between anchor points to ensure relevance to recent price action.
Display
The indicator overlays the following elements on the chart:
Trendlines: Solid lines connecting the high and low anchor points for each timeframe, using user-specified colors (e.g., set via "DayTrade Channel Color").
Projections: Dashed lines extending from the current anchor points, indicating potential future price levels, using colors set via "DayTrade Projection Channel Color" or equivalent.
Heartlines: Dashed lines at the midpoint of each channel, using the color set via "Heartline Color" or equivalent.
Reflection Channels (DayTrade Only):
Lower reflection trendline and projection: Below the lower trendline, using the same colors as the main channel.
Upper reflection trendline and projection: Above the upper trendline, using the same colors.
Reflection heartlines: Midpoints between the main trendlines and their respective reflection trendlines, using the "Heartline Color."
Visual Clarity: Lines are only drawn if the relevant toggles (e.g., "Show DayTrade Trend Lines") are enabled and data is available. Lines are deleted when their conditions are not met to avoid clutter.
Trading Applications: Line-to-Line Trading
The SuperTrend indicator can be used to inform trading decisions by providing a framework for line-to-line trading, where traders use the trendlines, projections, and heartlines as reference points for entries, exits, and risk management. Below is a detailed explanation of how to use the DayTrade channel and its reflection channels for trading, focusing on their anchoring, static/dynamic behavior, and the heartline’s role.
1. Why DayTrade Channel Anchoring
The DayTrade channel’s anchoring to the previous day’s high/low and the current day’s high/low before 12 PM, controlled by the "Show DayTrade Trend Lines" toggle, captures significant price levels during high-volatility periods:
Previous Day High/Low: These represent key levels where price found resistance (high) or support (low) in the prior session, often acting as psychological or technical barriers in the current session.
Current Day High/Low Before 12 PM: The morning session (before 12 PM) often sees increased volatility due to market openings, news releases, or institutional activity. Anchoring to these early highs/lows ensures the channel reflects the most relevant price extremes, which are likely to influence intraday price action.
Static After 12 PM: By fixing the anchor points after 12 PM, the trendlines and projections become stable references for the afternoon session, allowing traders to anticipate price reactions at these levels without the lines shifting unexpectedly.
This anchoring makes the DayTrade channel particularly useful for intraday traders, as it provides a consistent framework based on recent price history, which can guide decisions on trend continuation or reversal.
2. Using Static Channels and Projections
The static nature of the DayTrade channel after 12 PM, enabled by "Show DayTrade Trend Lines," and the dynamic projections, set via "DayTrade Projection Channel Color," provide a structured approach to trading:
Support and Resistance:
The upper trendline and lower trendline act as dynamic support/resistance levels based on the previous and current day’s price extremes.
Traders may observe price reactions (e.g., bounces or breaks) at these levels. For example, if price approaches the lower trendline and bounces, it may indicate support, suggesting a potential long entry.
Projections as Price Targets:
The projections extend the trendlines forward, offering potential price targets if the trend continues. For instance, if price breaks above the upper trendline and continues toward the upper projection, traders might consider it a bullish continuation signal.
A candle closing fully above the upper projection or below the lower projection (triggering an alert) may indicate a breakout, prompting traders to enter in the direction of the break or reassess if the break fails.
Static Channels for Breakouts:
Because the trendlines are static after 12 PM, they serve as fixed reference points. A break above the upper trendline or its projection may suggest bullish momentum, while a break below the lower trendline or projection may indicate bearish momentum.
Traders can use these breaks to set entry points (e.g., entering a long position after a confirmed break above the upper projection) and place stop-losses below the broken level to manage risk.
3. Line-to-Line Trading Strategy
Line-to-line trading involves using the trendlines, projections, and reflection channels as sequential price targets or reversal zones:
Trading Within the Main Channel:
Long Setup: If price bounces off the lower trendline and moves toward the heartline (enabled by "Show DayTrade Heartline") or upper trendline, traders might enter a long position near the lower trendline, targeting the heartline or upper trendline for profit-taking. A stop-loss could be placed below the lower trendline to protect against a breakdown.
Short Setup: If price rejects from the upper trendline and moves toward the heartline or lower trendline, traders might enter a short position near the upper trendline, targeting the heartline or lower trendline, with a stop-loss above the upper trendline.
Trading to Reflection Channels:
If price breaks above the upper trendline and continues toward the upper reflection trendline or its projection (enabled by "Show Reflection Channel" set to "Upper" or "Both"), traders might treat this as a breakout trade, entering long with a target at the upper reflection level and a stop-loss below the upper trendline.
Similarly, a break below the lower trendline toward the lower reflection trendline or its projection (enabled by "Show Reflection Channel" set to "Lower" or "Both") could signal a short opportunity, with a target at the lower reflection level and a stop-loss above the lower trendline.
Reversal Trades:
If price reaches the upper reflection trendline and shows signs of rejection (e.g., a bearish candlestick pattern), traders might consider a short position, anticipating a move back toward the main channel’s upper trendline or heartline.
Conversely, a rejection at the lower reflection trendline could prompt a long position targeting the lower trendline or heartline.
Risk Management:
Use the heartline as a midpoint to gauge whether price is likely to continue toward the opposite trendline or reverse. For example, a failure to break above the heartline after bouncing from the lower trendline might suggest weakening bullish momentum, prompting a tighter stop-loss.
The static nature of the channels after 12 PM allows traders to set precise stop-loss and take-profit levels based on historical price levels, reducing the risk of chasing moving targets.
4. Heartline as a Volume Indicator
The heartline, controlled by toggles like "Show DayTrade Heartline," "Show Lower Reflection Heartline," and "Show Upper Reflection Heartline," may serve as an indirect proxy for areas of high trading activity:
Rationale: The heartline represents the average price between the high and low of a period, which often aligns with price levels where significant buying and selling have occurred, as these midpoints can correspond to areas of consolidation or high volume in the order book. While the script does not directly use volume data, the heartline’s position may reflect price levels where market participants have historically balanced supply and demand.
Breakout Potential: A break above or below the heartline, particularly with a strong candle (e.g., wide range or high momentum), may indicate a shift in market sentiment, potentially leading to accelerated price movement in the direction of the break. For example:
A close above the main DayTrade heartline could suggest buyers are overpowering sellers, potentially leading to a move toward the upper trendline or upper reflection channel.
A close below the heartline could indicate seller dominance, targeting the lower trendline or lower reflection channel.
Trading Application:
Traders might use heartline breaks as confirmation signals for trend continuation. For instance, after a bounce from the lower trendline, a close above the heartline could confirm bullish momentum, prompting a long entry.
The heartline can also act as a dynamic stop-loss or trailing stop level. For example, in a long trade, a trader might exit if price falls below the heartline, indicating a potential reversal.
For reflection heartlines, a break above the upper reflection heartline or below the lower reflection heartline could signal strong momentum, as these levels are further from the main channel and may require significant buying or selling pressure to breach.
5. Practical Trading Considerations
Timeframe Context: The DayTrade channel, enabled by "Show DayTrade Trend Lines," is best suited for intraday trading due to its daily anchoring and morning update behavior. Traders should consider higher timeframe channels (e.g., enabled by "Show Weekly Trend Lines" or "Show Monthly Trend Lines") for broader context, as breaks of the DayTrade channel may align with or be influenced by larger trends.
Confirmation Tools: Use additional indicators (e.g., RSI, MACD, or volume-based indicators) or candlestick patterns to confirm signals at trendlines, projections, or heartlines. The script’s alerts can help identify breakouts, but traders should verify with other technical or fundamental factors.
Risk Management: Always define risk-reward ratios before entering trades. For example, a 1:2 risk-reward ratio might involve risking a stop-loss below the lower trendline to target the heartline or upper trendline.
Market Conditions: The effectiveness of the channels and heartlines depends on market conditions (e.g., trending vs. ranging markets). In choppy markets, price may oscillate within the main channel, favoring range-bound strategies. In trending markets, breaks of projections or reflection channels may signal continuation trades.
Limitations: The indicator relies on historical price data and does not incorporate volume, news, or other external factors. Traders should use it as part of a broader strategy and avoid relying solely on its signals.
How to Use in TradingView
Add the Indicator: Copy the script into TradingView’s Pine Editor, compile it, and add it to your chart.
Configure Settings:
Enable "Show DayTrade Trend Lines" to display the main DayTrade trendlines and projections.
Use the "Show Reflection Channel" dropdown to select "Lower," "Upper," or "Both" to display reflection channels.
Toggle "Show DayTrade Heartline," "Show Lower Reflection Heartline," and "Show Upper Reflection Heartline" to control heartline visibility.
Adjust colors using "DayTrade Channel Color," "DayTrade Projection Channel Color," and "Heartline Color."
Enable other timeframes (e.g., "Show Weekly Trend Lines," "Show Monthly Trend Lines") for additional context, if desired.
Set Alerts: Configure alerts in TradingView for "Upper Trend Break" or "Lower Trend Break" to receive notifications when a candle closes fully above or below any timeframe’s projections.
Analyze the Chart:
Monitor price interactions with the trendlines, projections, and heartlines.
Look for bounces, breaks, or rejections at these levels to plan entries and exits.
Use the heartline breaks as potential confirmation of momentum shifts.
Test Strategies: Backtest line-to-line trading strategies in TradingView’s strategy tester or demo account to evaluate performance before trading with real capital.
Conclusion
The SuperTrend indicator provides a robust framework for technical analysis by plotting dynamic trend channels, projections, and heartlines across multiple timeframes, with advanced features for the DayTrade channel, including lower and upper reflection channels. The DayTrade channel’s anchoring to previous and current day highs/lows before 12 PM, enabled by "Show DayTrade Trend Lines," creates a stable reference for intraday trading, while static trendlines and dynamic projections guide traders in anticipating price movements. The heartlines, controlled by toggles like "Show DayTrade Heartline," offer potential insights into high-activity price levels, with breaks possibly indicating momentum shifts. Traders can use the indicator for line-to-line trading by targeting moves between trendlines, projections, and reflection channels, while managing risk with stop-losses and confirmations from other tools. The indicator should be used as part of a comprehensive trading plan.
SuperTrend CorregidoThis script implements a SuperTrend indicator based on the Average True Range (ATR). It is designed to help traders identify trend direction and potential buy/sell opportunities with visual signals on the chart.
🔧 Key Features:
ATR-Based Trend Detection: Calculates trend shifts using the ATR and a user-defined multiplier.
Buy/Sell Signals: Displays "Buy" and "Sell" labels directly on the chart when the trend changes direction.
Visual Trend Lines: Plots green (uptrend) and red (downtrend) SuperTrend lines to highlight the current market bias.
Trend Highlighting: Optionally fills the background to emphasize whether the market is in an uptrend or downtrend.
Customizable Settings:
ATR period and multiplier
Option to switch ATR calculation method
Toggle for signal visibility and trend highlighting
🔔 Alerts Included:
SuperTrend Buy Signal
SuperTrend Sell Signal
SuperTrend Direction Change
This indicator is useful for identifying entries and exits based on trend momentum and can be used across various timeframes.