MarathiStockTraders AI//@version=5
indicator("MarathiStockTraders AI", overlay=true, format=format.price, precision=2)
// === INPUTS ===
// SuperTrend Inputs
atrPeriod = input.int(10, title="ATR Period")
multiplier = input.float(3.0, title="ATR Multiplier", step=0.1)
changeATR = input.bool(true, title="Change ATR Calculation Method?")
showSignals = input.bool(true, title="Show Buy/Sell Signals?")
highlighting = input.bool(true, title="Highlighter On/Off?")
// Bollinger Band Inputs
bbLength = input.int(20, title="BB Period (for SuperTrend source)")
bbSrc = input.source(close, title="BB Source")
showBB = input.bool(true, title="Show Bollinger Bands?")
bbMult = input.float(2.0, title="BB Multiplier", step=0.1)
// === Bollinger Band Calculation ===
bbBasis = ta.sma(bbSrc, bbLength)
bbUpper = bbBasis + bbMult * ta.stdev(bbSrc, bbLength)
bbLower = bbBasis - bbMult * ta.stdev(bbSrc, bbLength)
// === ATR Calculation ===
atr_standard = ta.atr(atrPeriod)
atr_sma = ta.sma(ta.tr, atrPeriod)
atr = changeATR ? atr_standard : atr_sma
// === SuperTrend Calculations using BB Basis ===
src = bbBasis
upperBand = src - (multiplier * atr)
lowerBand = src + (multiplier * atr)
upperBand := close > nz(upperBand ) ? math.max(upperBand, nz(upperBand )) : upperBand
lowerBand := close < nz(lowerBand ) ? math.min(lowerBand, nz(lowerBand )) : lowerBand
trend = 0
trend := nz(trend , 1)
trend := trend == -1 and close > nz(lowerBand ) ? 1 :
trend == 1 and close < nz(upperBand ) ? -1 : trend
// === Plotting SuperTrend Lines ===
upPlot = plot(trend == 1 ? upperBand : na, title="Up Trend", style=plot.style_linebr, linewidth=2, color=color.green)
dnPlot = plot(trend == -1 ? lowerBand : na, title="Down Trend", style=plot.style_linebr, linewidth=2, color=color.red)
// === Buy/Sell Signals ===
buySignal = trend == 1 and trend == -1
sellSignal = trend == -1 and trend == 1
plotshape(buySignal ? upperBand : na, title="UpTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green)
plotshape(buySignal and showSignals ? upperBand : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white)
plotshape(sellSignal ? lowerBand : na, title="DownTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red)
plotshape(sellSignal and showSignals ? lowerBand : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white)
// === Highlighting ===
basePlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
longFillColor = highlighting ? (trend == 1 ? color.new(color.green, 85) : na) : na
shortFillColor = highlighting ? (trend == -1 ? color.new(color.red, 85) : na) : na
fill(basePlot, upPlot, title="UpTrend Highlighter", color=longFillColor)
fill(basePlot, dnPlot, title="DownTrend Highlighter", color=shortFillColor)
// === Optional Bollinger Bands Display ===
plot(showBB ? bbBasis : na, title="BB Basis", color=color.gray)
plot(showBB ? bbUpper : na, title="BB Upper", color=color.blue)
plot(showBB ? bbLower : na, title="BB Lower", color=color.blue)
// === Alerts ===
alertcondition(buySignal, title="SuperTrend Buy", message="SuperTrend Buy!")
alertcondition(sellSignal, title="SuperTrend Sell", message="SuperTrend Sell!")
alertcondition(trend != trend , title="SuperTrend Direction Change", message="SuperTrend has changed direction!")
Cari dalam skrip untuk "supertrend"
Linear % ST | QuantEdgeB🚀 Introducing Linear Percentile SuperTrend (Linear % ST) by QuantEdgeB
🛠️ Overview
Linear % SuperTrend (Linear % ST) by QuantEdgeB is a hybrid trend-following indicator that combines Linear Regression, Percentile Filters, and Volatility-Based SuperTrend Logic into one dynamic tool. This system is designed to identify trend shifts early while filtering out noise during choppy market conditions.
By utilizing percentile-based median smoothing and customized ATR multipliers, this tool captures both breakout momentum and pullback opportunities with precision.
✨ Key Features
🔹 Percentile-Based Median Filtering
Removes outliers and normalizes price movement for cleaner trend detection using the 50th percentile (median) of recent price action.
🔹 Linear Regression Smoothing
A smoothed baseline is computed with Linear Regression to detect the underlying trend while minimizing lag.
🔹 SuperTrend Structure with Adaptive Bands
The indicator implements an enhanced SuperTrend engine with custom ATR bands that adapt to trend direction. Bands tighten or loosen based on volatility and trend strength.
🔹 Dynamic Long/Short Conditions
Long and short signals are derived from the relationship between price and the SuperTrend threshold zones, clearly showing trend direction with optional "Long"/"Short" labels on the chart.
🔹 Multiple Visual Themes
Select from 6 built-in color palettes including Strategy, Solar, Warm, Cool, Classic, and Magic to match your personal style or strategy layout.
📊 How It Works
1️⃣ Percentile Filtering
The source price (default: close) is filtered using a nearest-rank 50th percentile over a custom lookback. This normalizes data to reflect the central tendency and removes noisy extremes.
2️⃣ Linear Regression Trend Base
A Linear Regression Moving Average (LSMA) is applied to the filtered median, forming the core trend line. This dynamic trendline provides a low-lag yet smooth view of market direction.
3️⃣ SuperTrend Engine
ATR is applied with custom multipliers (different for long and short) to create dynamic bands. The bands react to price movement and only shift direction after confirmation, preventing false flips.
4️⃣ Trend Signal Logic
• When price stays above the dynamic lower band → Bullish trend
• When price breaks below the upper band → Bearish trend
• Trend direction remains stable until violated by price.
⚙️ Custom Settings
• Percentile Length → Lookback for percentile smoothing (default: 35)
• LSMA Length → Determines the base trend via linear regression (default: 24)
• ATR Length → ATR period used in dynamic bands (default: 14)
• Long Multiplier → ATR multiplier for bullish thresholds (default: 0.8)
• Short Multiplier → ATR multiplier for bearish thresholds (default: 1.9)
✅ How to Use
1️⃣ Trend-Following Strategy
✔️ Go Long when price breaks above the lower ATR band, initiating an upward trend
✔️ Go Short when price falls below the upper ATR band, confirming bearish conditions
✔️ Remain in trend direction until the SuperTrend flips
2️⃣ Visual Confirmation
✔️ Use bar coloring and the dynamic bands to stay aligned with trend direction
✔️ Optional Long/Short labels highlight key signal flips
👥 Who Should Use Linear % ST?
✅ Swing & Position Traders → To ride trends confidently
✅ Trend Followers → As a primary directional filter
✅ Breakout Traders → For clean signal generation post-range break
✅ Quant/Systematic Traders → Integrate clean trend logic into algorithmic setups
📌 Conclusion
Linear % ST by QuantEdgeB blends percentile smoothing with linear regression and volatility bands to deliver a powerful, adaptive trend-following engine. Whether you're a discretionary trader seeking cleaner entries or a systems-based trader building logic for automation, Linear % ST offers clarity, adaptability, and precision in trend detection.
🔹 Key Takeaways:
1️⃣ Percentile + Regression = Noise-Reduced Core Trend
2️⃣ ATR-Based SuperTrend = Reliable Breakout Confirmation
3️⃣ Flexible Parameters + Color Modes = Custom Fit for Any Strategy
📈 Use it to spot emerging trends, filter false signals, and stay confidently aligned with market momentum.
📌 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
📌 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Smart Buy/Sell Signal IndicatorOverview
The Smart Buy/Sell Signal Indicator is a multi-factor trading tool that i ntegrates Supertrend, Bollinger Bands, RSI, ADX, and Moving Averages to generate high-probability buy and sell signals. Unlike simple crossover-based strategies, this indicator leverages multiple layers of confirmation to reduce false signals and improve trade execution accuracy.
This indicator is designed for trend-following traders, scalpers, and swing traders, helping them identify key reversal points and momentum shifts with precise breakout conditions.
How It Works
The Smart Buy/Sell Signal Indicator filters out weak trade signals by combining trend, volatility, momentum, and strength indicators in the following manner:
✅ Supertrend-Based Trend Filtering:
• The script checks if the price is above or below the Supertrend level before confirming a buy or sell signal.
• Buy signals occur below the Supertrend Down level, confirming support.
• Sell signals occur above the Supertrend Up level, confirming resistance.
✅ Bollinger Bands for Overbought & Oversold Conditions:
• Buy signals are confirmed when price touches the Bollinger Lower Band (suggesting oversold conditions).
• Sell signals are confirmed when price touches the Bollinger Upper Band (suggesting overbought conditions).
• This ensures that trades occur at high-probability reversal zones, rather than random price action.
✅ RSI Momentum Confirmation:
• Buy trades trigger when RSI is below 50 (indicating strength building from an oversold region).
• Sell trades trigger when RSI is above 50 (indicating weakness forming in an overbought region).
• This ensures signals are momentum-backed and not counter-trend moves.
✅ ADX Strength Confirmation:
• The script filters signals using the ADX (Average Directional Index) to ensure that only trades with sufficient market strength are executed.
• If the ADX value is below a threshold (default: 15), the signal is ignored to prevent false breakouts in choppy markets.
✅ Confirmation Moving Average (MA) for Trend Validation:
• The script applies an additional confirmation filter using a Moving Average (SMA/EMA).
• Buy signals trigger only when the price is above the MA, aligning with trend direction.
• Sell signals trigger only when the price is below the MA, ensuring alignment with the broader market structure.
✅ Trade Cooldown Mechanism (Minimum Bars Between Signals):
• To avoid frequent signals in sideways markets, a cooldown period is implemented.
• Default: 5 bars between signals (adjustable).
• Prevents rapid consecutive trades, reducing false entries.
Key Features
✔️ Supertrend & Moving Average Confirmation – Ensures trades are taken only in the correct trend direction.
✔️ Bollinger Bands Integration – Helps identify high-probability reversal zones.
✔️ ADX Strength Filtering – Ensures trades are only executed when the market has enough strength.
✔️ Momentum-Based RSI Filtering – Avoids counter-trend trades and confirms directional strength.
✔️ Trade Cooldown Mechanism – Reduces overtrading and noise in sideways markets.
✔️ Webhook Alerts for Automation – Auto-execute trades or receive real-time notifications.
✔️ Customizable Inputs – Adjustable thresholds, EMA/SMA length, ADX filter, cooldown period for flexibility.
✔️ Works Across Multiple Timeframes – Suitable for scalping (5m, 15m), swing trading (1H, 4H), and position trading (Daily).
How to Use
📌 Scalping & Intraday Trading:
• Use on 5m, 15m, or 30m timeframes.
• Look for Bollinger Band touch + RSI confirmation + Supertrend support/resistance validation before entering trades.
📌 Swing Trading:
• Use on 1H or 4H timeframes.
• Enter only when ADX is strong and price aligns with Supertrend direction.
📌 Webhook Automation:
• Set up TradingView Alerts to auto-execute trades via Webhook-compatible platforms.
Why This Combination?
This indicator is not just a simple moving average crossover tool.
It is designed to filter out weak breakouts and only execute trades that have:
✅ Trend confirmation (Supertrend + Moving Average)
✅ Volatility filtering (Bollinger Bands for overbought/oversold confirmation)
✅ Momentum validation (RSI threshold filtering)
✅ Market strength requirement (ADX ensures sufficient momentum)
This multi-layered approach ensures that only the highest-quality setups are executed, improving both win rate and reliability.
Why It’s Worth Using?
🚀 Reduces False Breakouts – Avoids weak breakouts by requiring ADX confirmation.
🚀 Works in All Market Conditions – Trend-following logic for trending markets, volatility-based entries for reversals.
🚀 Customizable to Any Trading Style – Adjustable parameters for trend, momentum, and strength filtering.
🚀 Seamless Webhook Automation – Execute trades automatically with TradingView alerts.
🚀 Ready to trade smarter?
✅ Add the Smart Buy/Sell Signal Indicator to your TradingView chart today! 🎯🔥
Dynamic Momentum Shift Detector [Invesmate]Dynamic Momentum Shift Detector
Overview
The Dynamic Momentum Shift Detector is an advanced trend-following and momentum-based indicator designed to help traders identify high-probability trading opportunities. It combines RSI-based momentum detection, Supertrend confirmation, and EMA sentiment tracking to provide reliable buy and sell signals.
This indicator is useful for traders who rely on price action and momentum shifts to make informed trading decisions. The goal is to capture early trend reversals while filtering false signals using multiple confirmations.
Key Features & Unique Aspects
RSI (2-Period) for Momentum Detection
Uses an extremely short 2-period RSI to detect overbought (75) and oversold (25) conditions.
Buy Signal: RSI crosses above 25 and price is above the Supertrend line.
Sell Signal: RSI crosses below 75 and price is below the Supertrend line.
Supertrend for Trend Confirmation
A Supertrend (ATR 20, Factor 2) is used to validate the overall market trend.
Prevents false breakouts by ensuring buy signals occur above the Supertrend line and sell signals occur below it.
21-EMA Sentiment Filter
A 21-period Exponential Moving Average (EMA) acts as a market sentiment indicator.
Background color changes for quick visual cues:
Green Fill: Price is above EMA (bullish sentiment).
Red Fill: Price is below EMA (bearish sentiment).
Refined Buy/Sell Confirmation Criteria
To eliminate weak signals, additional price action conditions are applied:
Buy Confirmation: Higher high, bullish close, and strong candle body (>40% of range).
Sell Confirmation: Lower low, bearish close, and strong candle body (>40% of range).
Persistent Buy/Sell Levels
Displays persistent buy and sell levels (green/red dots) on the chart.
These remain active until invalidated by price action.
Bull & Bear Momentum (RSI-8 for Strong Reversals)
Bull M (Green Triangle): RSI (8) crosses above 72 with a strong bullish candle (>60% body).
Bear M (Red Triangle): RSI (8) crosses below 27 with a strong bearish candle (>60% body).
How to Use the Indicator
Buy Setup:
✅ Look for a green "Bull R" signal when:
RSI crosses above 25.
Price is above Supertrend & EMA 21.
Additional confirmation from bullish candle structure.
Sell Setup:
✅ Look for a red "Bear R" signal when:
RSI crosses below 75.
Price is below Supertrend & EMA 21.
Additional confirmation from bearish candle structure.
Observation Signals:
⚠️ "Obs Buy" (Orange Label) → Possible buy setup, but missing confirmation.
⚠️ "Obs Sell" (Orange Label) → Possible sell setup, but missing confirmation.
Momentum Reversal Markers (Strong Buy/Sell Signals)
🔺 "Bull M" (Green Triangle) → Strong bullish momentum shift detected.
🔻 "Bear M" (Red Triangle) → Strong bearish momentum shift detected.
Why This Indicator is Unique & Valuable
✔ Combines multiple indicators (RSI, Supertrend, EMA) with a structured approach.
✔ Avoids false signals by requiring confirmation from price action.
✔ Provides persistent support/resistance levels to track active trades.
✔ Visually clean and easy to use with minimal chart clutter.
This indicator is suitable for swing traders, intraday traders, and positional traders who want high-probability setups with clear trend direction.
[Rygel] Dual time frame Bollinger Bands with signals and alertsThis indicator displays two Bollinger Bands coming from two different time frames, chart's current one and a higher one.
It analyzes these two Bollinger Bands data and combines them with RSI, MFI and MACD divergences and SuperTrend to identify areas of opportunity where price is the most likely to be at a local top or bottom.
It uses probabilistic data, the Bollinger Bands, to identify convergence areas where the price is statistically overbought or oversold simultaneously at two different time frames, it then looks for signs of a trend exhaustion, using RSI, MFI and MACD divergences, and finally it looks for an early confirmation of a trend reversal, using SuperTrend data with aggressive settings.
This indicator does not produce buy and sell signals. You won't get a buy for every sell or a sell for every buy. In a bearish trend, you may get multiple consecutive bullish signals and in a bullish trend multiple bearish signals.
It is meant to help you to identify and to alert you about areas of opportunity where you could, for instance, consider taking some profits or opening a trade.
It is meant to support your investment or trading decisions, not to induce them.
SIGNALS
This indicator generated multiple types of signals. Diamonds are better than squares. Colored ones are better than grey ones.
Green square: a bullish signal confirmed by a regular divergence
Red square: a bearish signal confirmed by a regular divergence
Blue square: a bullish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Orange square: a bearish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Diamonds: same as the square signals but the signal is forming a divergence with a previous one. Diamond signals are always stronger (i.e. more reliable) than square signals.
Grey signals: same as the previous ones but for weaker signals. These signals appear when price in the current time frame is overbought or oversold but only close to be at the higher timeframe. (disabled by default as these signals are less reliable)
When a weak signal follows a strong one and creates a MACD divergence with it, it will be considered as a strong signal and displayed as a colored signal, even when weak signals are disabled.
When a strong signal follows a weak one, forming a MACD divergence, it will be shown as a diamond signal, even when weak signals are disabled.
Most reliable signals are green and red diamonds.
SETTINGS
Bollinger Bands
Source: the source used to calculate the Bollinger Bands ("close" by default)
Length: the moving-average length of the Bollinger Bands (20 by default)
You will most likely have no need to change these settings. If you're wondering what they actually do, you should most likely not touch them.
Main channel standard deviation: the standard deviation used to calculate the classical Bollinger Bands channel. (2.0 by default)
Outer bands standard deviation: additional channels outside the main one, using a larger standard deviation. (3.0 by default)
Theoretically, with a 1.0 standard deviation, around 68% of the price action should be contained within the Bollinger Bands.
With a 2.0 standard deviation, around 95%.
With a 3.0 standard deviation, around 99.7%.
With a 4.0 standard deviation, around 99.99%.
But as security prices returns have no actual statistical distribution, these probabilities don't strictly apply to Bollinger Bands. According to Wikipedia, studies have found that with a 2.0 standard deviation, only about 88% (85–90%) of the price data remain with the Bollinger Bands, instead of the theoretical 95%.
The higher you set the values, the less signals you'll get.
You should most likely keep the main channel standard deviation between 2 and 3 and add between +0.5 and +1 for the outer bands.
Most commonly used value for Bollinger Bands is 2.0.
Current time frame
Show current time frame Bollinger Bands: these are the Bollinger Bands you're used to. (enabled by default)
Show current time frame outer bands: add two additional bands outside the main channel using a larger standard deviation. (enabled by default)
Higher time frame
Show higher time frame Bollinger Bands: display secondary Bollinger Bands from a higher time frame. Time frames are configured in the below "Time frames" section. (enabled by default)
Show higher time frame outer bands: add two additional bands outside the main channel using a larger standard deviation (enabled by default)
Overbought and oversold
Show oversold and overbought background: add a background to the higher time Bollinger Bands whose color depends on the dual time frame Bollinger Bands oversold / overbought status. (enabled by default)
Asset is considered overbought/oversold when its price is outside of the Bollinger Bands' main channel.
Asset is considered strongly overbought/oversold when its price is outside of the Bollinger Bands' outer bands.
Dark red: both time frame are overbought (outside the main channel)
Red: one time frame is strongly overbought (outside the outer bands) and the other one is overbought (outside the main channel)
Bright red: both time frame are strongly overbought (outside the outer bands)
Dark green: both time frame are oversold (outside the main channel)
Green: one time frame is strongly oversold (outside the outer bands) and the other one is oversold (outside the main channel)
Bright green: both time frame are strongly oversold (outside the outer bands)
Signals
Show signals: display signals when an area of opportunity is detected. Read the introduction and the Signals section for more information. (enabled by default)
Show weak signals: display signals although at the higher time frame price is not yet overbought or oversold but close to be (disabled by default)
Divergences
Use MACD for divergences (enabled by default)
Use MFI for divergences (enabled by default)
Use RSI for divergences (enabled by default)
At least one source of divergences must be enabled for signals to work.
Enable hidden divergences: signals don't use hidden divergences by default as they generate more false positives than regular divergences. You can enable them to get more signals, it can be especially useful at high time frames (like weekly, monthly, etc.) where signals are rarer. (disabled by default)
Show divergences: draw MACD, MFI and RSI divergences on the chart. (disabled by default)
Green: regular bullish divergence
Red: regular bearish divergence
Blue: hidden bullish divergence
Orange: hidden bearish divergence
Confirmation
Confirmation speed: a faster confirmation speed will generate more false positive signals, a slower one will produce delayed but more reliable signals.
Fastest: don't wait for a SuperTrend confirmation, only wait for a divergence confirmation. Lot of false positives.
Fast: wait for a fast SuperTrend confirmation (SuperTrend factor = 1).
Medium: wait for a slower but more reliable SuperTrend confirmation (SuperTrend factor = 2). Fewer false positives but more lagging signals.
Slow: wait for an even slower but very reliable SuperTrend confirmation (SuperTrend factor = 3). Very few false positives but very late signals.
Time frames
You can define the higher time frames you wish to use here.
Default values try to adhere to a x6 to x8 ratio, x4 to x12 at maximum.
Some pairs are more significant than others, like 4 hour + daily, daily + weekly and weekly + monthly.
1 second: 10 seconds
5 seconds: 30 seconds
10 seconds: 1 minute
15 seconds: 2 minutes
30 seconds: 3 minutes
1 minute: 10 minutes
2 minutes: 15 minutes
3-4 minutes: 30 minutes
5-9 minutes: 45 minutes
10-11 minutes: 1 hour
12-14 minutes: 1 hour
15-29 minutes: 2 hours
30-44 minutes: 4 hours
45-59 minutes: 6 hours
1 hour: 8 hours
2 hours: 12 hours
3 hours: 1 day
4-5 hours: 1 day
6-7 hours: 2 days
8-11 hours: 3 days
12-23 hours: 4 days
1 day: 1 week
2 days: 2 weeks
3 days: 3 weeks
4 days: 1 month
5 days: 1 month
6 days: 1 month
1 week: 1 month
2 weeks: 2 months
3 weeks: 3 months
1 month: 6 months
2 months: 9 months
3 months: 12 months
4 months: 15 months
5 months: 21 months
6 months: 24 months
Time frames use the TradingView units:
s = seconds
h = hours
D = days
W = weeks
M = months
no unit = minutes
Time frame strings follow these rules:
They are composed of the multiplier and the time frame unit, e.g., “1S”, “30” (30 minutes), “1D” (one day), “3M” (three months).
The unit is represented by a single letter, with no letter used for minutes: “S” for seconds, “D” for days, “W” for weeks and “M” for months.
When no multiplier is used, 1 is assumed: “S” is equivalent to “1S”, “D” to “1D, etc. If only “1” is used, it is interpreted as “1min”, since no unit letter identifier is used for minutes.
There is no “hour” unit; “1H” is not valid. The correct format for one hour is “60” (remember no unit letter is specified for minutes).
The valid multipliers vary for each time frame unit:
- For seconds, only the discrete 1, 5, 10, 15 and 30 multipliers are valid.
- For minutes, 1 to 1440.
- For days, 1 to 365.
- For weeks, 1 to 52.
- For months, 1 to 12.
Styles
You can configure the appearance of the Bollinger Bands, the overbought / oversold background, the divergences and the signals here.
Advanced - MACD
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - MFI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - RSI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - SuperTrend
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
ALERTS
Any signal: a bullish or bearish signal has been detected.
Bullish signal: a bullish signal has been detected.
Bullish signal with divergence: a bullish signal forming a divergence with a previous bullish signal has been detected.
Bearish signal: a bearish signal has been detected.
Bearish signal with divergence: a bearish signal forming a divergence with a previous bearish signal has been detected.
Overbought/oversold = asset price is outside of the Bollinger Bands' main channel.
Strongly overbought/oversold = asset price is outside of the Bollinger Bands' outer bands.
Current time frame - Entering overbought: asset is now overbought at the current time frame.
Current time frame - Exiting overbought: asset is not overbought anymore at the current time frame.
Current time frame - Entering strongly overbought: asset is now strongly overbought at the current time frame.
Current time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the current time frame.
Current time frame - Entering oversold: asset is now oversold at the current time frame.
Current time frame - Exiting oversold: asset is not oversold anymore at the current time frame.
Current time frame - Entering strongly oversold: asset is now strongly oversold at the current time frame.
Current time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the current time frame.
Higher time frame - Entering overbought: asset is now overbought at the higher time frame.
Higher time frame - Exiting overbought: asset is not overbought anymore at the higher time frame.
Higher time frame - Entering strongly overbought: asset is now strongly overbought at the higher time frame.
Higher time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the higher time frame.
Higher time frame - Entering oversold: asset is now oversold at the higher time frame.
Higher time frame - Exiting oversold: asset is not oversold anymore at the higher time frame.
Higher time frame - Entering strongly oversold: asset is now strongly oversold at the higher time frame.
Higher time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the higher time frame.
Dual time frame - Entering overbought: asset is now overbought at current and higher time frames.
Dual time frame - Exiting overbought: asset is not overbought anymore at current and higher time frames.
Dual time frame - Entering oversold: asset is now oversold at current and higher time frames.
Dual time frame - Exiting oversold: asset is not oversold anymore at current and higher time frames.
Dual time frame - Entering strongly overbought: asset is now strongly overbought at current and higher time frames.
Dual time frame - Exiting strongly overbought: asset is not strongly overbought anymore at current and higher time frames.
Dual time frame - Entering strongly oversold: asset is now strongly oversold at current and higher time frames.
Dual time frame - Exiting strongly oversold: asset is not strongly oversold anymore at current and higher time frames.
ABOUT THE HIGHER TIME FRAME BOLLINGER BANDS
Using a classical higher time frame Bollinger Bands would produce lagging data. For instance, if we are using a weekly BB at the daily time frame, we'll have to wait up to 7 days for the weekly bar to close to get the actual final weekly BB values. Instead, this indicator generates real time higher time frame Bollinger Bands by multiplying the moving average length of the Bollinger Bands by the higher time frame / current time frame ratio. For instance, a weekly BB in the daily time frame will use a x7 ratio (i.e. a 20 * 7 = 140 days MA BB).
It produces slightly different but very similar bands that are as meaningful and can be used in real time at lower time frames.
Alternatives would have been to wait up to seven days for signals to be finalized, which would have render them meaningless. Or to use previous week data, which would have made the signal inaccurrate.
To sum up, weekly Bollinger Bands use a 20 weeks moving average updated one time a week. In the daily time frame, this indicator also use a 20 weeks (140 days) moving average but updated daily instead of weekly.
A comparison between a traditional higher time frame Bollinger Bands vs the ones used by this indicator:
Blue and orange lines are the actual weekly BBs, grey ones are the daily updated ones.
ABOUT THE DIVERGENCES
This indicator uses the same divergences algorithm as my other indicators:
- RSI with divergences
- MACD with divergences
- Trend Reversal Indicator
You'll find more information about this algorithm on my RSI page.
Miyagi STrendMiyagi: The attempt at mastering something for the best results.
Miyagi indicators combine multiple trigger conditions and place them in one toolbox for traders to easily use, produce alerts, backtest, reduce risk and increase profitability.
Miyagi STrend was created to allow traders the ability to both scalp and swing trade from as singular indicator. STrend aims to help traders catch more of the move.
STrend starts with the native TradingView SuperTrend indicator and adds in extra filtering in the form of the SuperTrend Oscillator (ST OSC), and an Adaptive Moving Average (AMA) - all of which are adjustable.
Entry conditions start with the following:
Long Entry: SuperTrend must be green (candles above SuperTrend), price above the Adaptive Moving Average (AMA), and lastly the SuperTrend Oscillator (ST OSC) at maximum +100.
Short Entry: SuperTrend must be red (candles below SuperTrend), price below the Adaptive Moving Average (AMA), and lastly the SuperTrend Oscillator (ST OSC) at maximum -100.
Exits are provided for both directions, long and short, when the SuperTrend Oscillator (ST OSC) hits maximum (+100/-100).
Please note the SuperTrend Oscillator (ST OSC) is not shown on the chart however is used for the final calculation to confirm entries.
We have added an "Entry on Exit" selector which allows users to enable entries on exit candles. This may allow more trades, however will incur more risk.
With "Entry on Exit" selected entry and exit alerts CAN fire in same candle and may require delays if using STrend as a swing indicator.
Without "Entry on Exit" selected entry and exit alerts CANNOT fire in same candle. This will produce less signals overall however may be safer for traders to use.
It would be best suited to utilize a stoploss when trading with Miyagi STrend to minimize risk.
Alerts are meant to fire on "Once per Bar Close" to confirm entry and exit signals.
Happy Trading!
Fixed Straddle with dynamic Res/Sup [BlueChip Algos]Fixed Straddle/Strangle with Dynamic Resistance and Support indicator is designed for options traders focusing on combined straddle and strangle premiums of particular strikes (without rolling). This script offers dynamic charting capabilities with integrated technical indicators, making it a valuable tool for traders in the Indian options market.
About the Indicator
This indicator allows traders to analyze straddle and strangle positions using pre-set strike prices. It dynamically plots resistance and support levels based on price movements using swing HIGHs and LOWs, plots potential stop-loss levels using ATR Stop Loss combined with other customizable indicators like Moving Averages, SuperTrend and VWAP
Features
Straddle and Strangle Analysis: Users can analyze options straddle or custom strangle positions by specifying the exact strike prices for both CE (Call) and PE (Put) options. Please note that one needs to give required strike in all 3 fields mandatorily (Fixes staddle, CE and PE) irrespective of whether you select straddle or strangle in the dropdown.
Dynamic Resistance and Support: The script dynamically adjusts support and resistance levels based on price movements, providing insights into potential price reversal points.
Comprehensive Indicator Suite: Includes popular indicators like Moving Averages, SuperTrend, ATR Stop Loss, and VWAP, each customizable to fit the trader's strategy.
Input Parameters
Chart Type: Choose between "Fixed Straddle" and "Fixed Strangle" for the analysis.
Symbol Selection: Select from various Indian indices such as NIFTY, BANKNIFTY, MIDCAP, FINNIFTY, SENSEX, BANKEX, or input a custom symbol.
Strike Prices: Set the exact strike prices for the fixed straddle or strangle analysis. Note to enter value in all 3 strike fields irrespective of straddle or strangle selection.
Expiry Date: Select the expiry date for the options.
Indicator Settings: Customize each indicator’s parameters, including Moving Averages, SuperTrend, ATR Stop Loss, VWAP, and Swing High/Low levels.
Understanding the Indicator
1. Dynamic Resistance and Support Levels using swing H/Ls
Purpose: This indicator identifies significant swing highs and lows, which are key levels for potential price reversals or continuation.
Parameters:
Swing Length: Number of bars used to confirm swing highs and lows.
How It Works: The Swing High/Low Levels are plotted based on past price action, marking the areas where the price has previously reversed, helping traders set their stop-loss or take-profit levels.
2. VWAP (Volume Weighted Average Price)
Purpose: VWAP provides the average price weighted by volume over a specified period. It is widely used by traders to identify the true average price of a security.
How It Works: VWAP is plotted as a line on the chart, which helps in understanding the price direction in relation to the day's volume-weighted average price.
3. ATR Stop Loss
Purpose: The ATR Stop Loss dynamically adjusts stop-loss levels based on the market’s volatility, calculated through the ATR.
Parameters:
ATR Period: Number of periods over which ATR is calculated.
Multiplier: Factor that determines the distance of the stop-loss from the current price.
How It Works: This indicator adjusts the stop-loss level to protect against large market swings, moving closer or further away based on the ATR value.
4. Moving Average (MA)
Purpose: The Moving Average smooths price data to help identify trends and reversals. It is useful for understanding the overall market direction.
Parameters:
MA Source: Data source for the Moving Average calculation (e.g., Close price).
MA Length: The number of periods used to calculate the Moving Average.
MA Smoothing: The type of smoothing applied, such as SMA, EMA, WMA, or RMA.
5. SuperTrend
Purpose: SuperTrend is a trend-following indicator that helps traders identify the prevailing market trend and potential entry/exit points.
Parameters:
Factor: The multiplier applied to the ATR (Average True Range) for calculating the SuperTrend bands.
ATR Period: The number of periods used for calculating the ATR.
How It Works: The SuperTrend line acts as a support or resistance level. A price above the SuperTrend line indicates a bullish trend, while a price below it indicates a bearish trend.
Golden Swing StrategyBuying Conditions
RSI should be 50 or above
Stochastic %K should be above %D
Day Low Should be below SuperTrend
SuperTrend should remain green before & EOD
SuperTrend should be below Mid Bollinger
Buy next day at open or within 0.5xATR(previous day) of SuperTrend with 1.1ATR SL & 2.2 ATR target
Selling Conditions
RSI should be 50 or below.
Stochastic %K should be below %D
Day high Should be above SuperTrend
SuperTrend should remain Red before & EOD
SuperTrend should be above Mid Bollinger
Sell next day at open or within 0.5xATR (previous day) of SuperTrend with 1.1xATR SL & 2.2x ATR target
BO(strategy)The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier. The default values used while constructing a superindicator are 10 for average true range or trading period and three for its multiplier.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility .
The buy and sell signals are generated when the indicator starts plotting either on top of the closing price or below the closing price. A buy signal is generated when the ‘Supertrend’ closes above the price and a sell signal is generated when it closes below the closing price.
It also suggests that the trend is shifting from descending mode to ascending mode. Contrary to this, when a ‘Supertrend’ closes above the price, it generates a sell signal as the colour of the indicator changes into red.
A ‘Supertrend’ indicator can be used on equities, futures or forex, or even crypto markets and also on daily, weekly and hourly charts as well, but generally, it fails in a sideways-moving market.
Chỉ báo rất dễ sử dụng và đưa ra đọc chính xác về một xu hướng đang diễn ra. Nó được xây dựng với hai tham số, đó là thời gian và số nhân. Các giá trị mặc định được sử dụng trong khi xây dựng một siêu máy tính là 10 cho phạm vi trung bình hoặc thời gian giao dịch trung bình và ba cho hệ số nhân của nó.
Phạm vi trung bình thực (ATR) đóng vai trò quan trọng trong 'Supertrend' khi chỉ báo sử dụng ATR để tính giá trị của nó. Chỉ báo ATR báo hiệu mức độ biến động giá.
Các tín hiệu mua và bán được tạo ra khi chỉ báo bắt đầu âm mưu trên đỉnh của giá đóng cửa hoặc thấp hơn giá đóng cửa. Tín hiệu mua được tạo khi ‘Supertrend giá đóng cửa trên giá và tín hiệu bán được tạo khi đóng cửa dưới giá đóng cửa.
Nó cũng gợi ý rằng xu hướng đang chuyển từ chế độ giảm dần sang chế độ tăng dần. Trái ngược với điều này, khi ‘Supertrend giá đóng cửa trên giá, nó sẽ tạo ra tín hiệu bán khi màu của chỉ báo chuyển sang màu đỏ.
Chỉ báo Sup Supertrend xông có thể được sử dụng trên các cổ phiếu, tương lai hoặc ngoại hối, hoặc thậm chí là thị trường tiền điện tử và cả trên các biểu đồ hàng ngày, hàng tuần và hàng giờ, nhưng nói chung, nó thất bại trong một thị trường đi ngang.
BskLAB - Signals Assistant 🧠 BSKLab Signal Assistant – Full Description & Usage Guide
BSKLab Signal Assistant is a multi-strategy signal framework developed for traders seeking precise, filtered entries across different market conditions. Rather than being a simple combination of classic indicators, this script integrates custom-built tools and dynamic overlays that work synergistically to improve signal quality and reduce false entries.
It offers two distinct modes — Swing and Following — each designed with its own core logic, ensuring flexibility for traders whether they focus on reversals or trend-following strategies.
🌀 Mode 1: Swing (Reversal-Based Entries)
Objective: Detect price exhaustion and reversal zones.
This mode uses a custom TMA-based dynamic zone system (“Zone Style”) to define potential reversal areas. When price breaks below/above this zone and the Bollinger Band boundary, it suggests overextension. A confirmation from SuperTrend ensures that the price is not just bouncing but showing true directional momentum.
📌 Why this combination?
Each component plays a role:
Zone Style = defines reversal structure dynamically based on recent volatility.
Bollinger Bands = detects price extremes (OB/OS).
SuperTrend = filters noise with momentum confirmation.
🟢 Buy Logic:
Price closes below Zone Style and lower Bollinger Band
Then rebounds upward
SuperTrend shifts to bullish
🔴 Sell Logic:
Price closes above Zone Style and upper Bollinger Band
Then reverses down
SuperTrend shifts to bearish
✅ This helps traders avoid false breakouts or fake reversals in ranging markets.
Enhancing Swing Trade Accuracy with BSKLab - MoneyFlow X (Volume Momentum)
In Swing Trading Mode, we aim to catch price reversals after the market moves beyond extreme zones (TMA-based support/resistance). To avoid premature entries or false reversals, it’s highly recommended to confirm signals using BSKLab - MoneyFlow X in Volume Momentum mode.
📈 Mode 2: Following (Trend-Following System)
Objective: Trade only in the direction of the dominant market trend.
This mode replaces the reversal logic with a trend-filtering mechanism using BskLAB Cloud, a custom-modified version of Ichimoku Cloud. It scores trend strength using ATR-multiplied zones and offers 3 levels of confirmation strictness (Lv1–Lv3).
📌 Why this combination?
BskLAB Cloud provides a structured, flexible trend confirmation.
Bollinger Bands help detect entries during trend pullbacks or breakouts.
SuperTrend (optional) supports directional momentum validation.
🟢 Buy Logic:
Cloud confirms bullish trend (based on level)
Price breaks above Bollinger Band midline or upper zone
Entry is allowed only in the direction of the trend
🔴 Sell Logic:
Cloud confirms bearish trend
Price breaks below midline or lower Bollinger Band zone
✅ Perfect for momentum traders who want to stay in the direction of trend and avoid early reversals.
Advanced Confirmation with Volume Momentum (BSKLab - MoneyFlow X)
Improving Trend Signal Accuracy with BSKLab - MoneyFlow X
To increase confidence in each entry, we recommend using this trend-following mode together with the
BSKLab - MoneyFlow X indicator, set to Volume Momentum mode.
✅ How to use together:
Wait for a valid Buy/Sell signal from the Trend-Following Mode
Check volume reaction on MoneyFlow X:
🟢 Strong green spike = bullish momentum = confirms Buy
🔴 Strong red spike = bearish momentum = confirms Sell
🧩 Component Breakdown & Why They Work Together
📍 Zone Style (TMA + ATR Overlay)
A custom dynamic support/resistance zone using Triangular Moving Average with ATR-based width adjustment. It expands or contracts based on market volatility — making reversal zones adaptive to current conditions.
Prevents entries when price is in the middle of a range
Acts as a volatility filter, removing "weak" signals
☁️ BskLAB Cloud (Custom Ichimoku)
A custom trend engine adapted from Ichimoku Cloud. Uses ATR-weighted midlines to define trend strength with 3 adjustable strictness levels.
Used only in Following Mode
Avoids trendless/noise zones
Helps traders stay aligned with the macro trend
📊 Bollinger Band Behavior
Used in all modes, but especially in Swing and following, to detect overbought/oversold zones.
Provides clear statistical boundaries
Combines well with SuperTrend to detect exhaustion
✅ SuperTrend Confirmation
A momentum-based filter using ATR-based trailing stop logic.
Filters fake reversals
Confirms breakout direction
Used across all modes for high-accuracy entries
🔥 BSKLab Signal Assistant isn’t just another mashup of public indicators — it’s a purpose-built trading framework crafted for real market conditions.
Instead of throwing signals on every move, it combines structure, momentum, volatility, and trend filters to deliver clean, high-conviction entries.
📍 RISK DISCLAIMER
Trading involves significant risk and is not suitable for everyone. All tools, scripts, and educational materials provided by BSKLab are for informational and educational purposes only. We do not offer financial advice.
Past performance does not guarantee future results. Always trade responsibly
📍 CONCLUSION
At BSKLab, we believe that consistent trading success doesn't come from indicators alone — it comes from the trader’s ability to apply them with context, discipline, and understanding. Tools are only as powerful as the hands they’re in.
The goal of the BSKLab Signal Assistant is not to provide magic signals, but to empower traders with a clean, adaptive, and intelligent framework that helps identify high-probability opportunities while filtering out the noise.
Whether you’re a beginner or experienced trader, this tool is designed to support real decisions in real markets — not just theory.
You can request access below to join the BSKLab system and unlock our full trading suite.
Momentum_EMABandThe Momentum EMA Band V1 is a precision tool designed for intraday traders & scalpers. This is the first version of the script, combining three powerful technical elements to help traders identify directional moves while filtering out weak, choppy market phases.
🔧 How the Indicator Works — Combined Logic
This indicator merges well-known but distinct concepts into a unified visual framework:
1️⃣ EMA Price Band — Dynamic Zone Visualization
Plots upper and lower EMA bands based on user input (default: 9-period EMA).
Price relative to the bands provides immediate visual cues:
Green Band: Price above the upper EMA — bullish strength.
Red Band: Price below the lower EMA — bearish pressure.
Yellow Band: Price within the band — neutral zone.
2️⃣ Supertrend Overlay — Reliable Trend Confirmation
ATR-based Supertrend logic (customizable ATR length & factor).
Green Supertrend Line: Uptrend confirmation.
Red Supertrend Line: Downtrend confirmation.
Helps traders ride trends with dynamic levels that adjust to volatility.
3️⃣ ADX-Based No Trade Zone — Choppy Market Filter
Manual ADX calculation measures trend strength (default ADX length: 14).
When ADX is below a user-defined threshold (default: 20) and price is within the EMA Band buffer, a gray background highlights sideways or indecisive market conditions — suggesting no new trade or low momentum zone
Optional gray triangle marker shows the start of each No-Trade Zone phase.
🎯 Key Features
✅ Combines EMA Bands, Supertrend & ADX filtering for comprehensive market context.
✅ Visual No-Trade Zone shading keeps traders out of low-probability setups.
✅ Supertrend Line tracks evolving trend bias.
✅ Fully customizable — adjust EMA, ATR, ADX settings to match different instruments or styles.
✅ Clean, focused chart presentation for easy interpretation.
💡 Practical Application
Momentum Breakouts: Enter trades when price breaks beyond the EMA Band, with Supertrend confirmation.
Avoid Sideways Traps: Refrain from trading during gray-shaded No-Trade Zones, minimizing exposure to whipsaws.
Scalping & Intraday Edge: Particularly effective on lower timeframes where choppy periods are common.
⚠️ Important Disclaimer
This is Version 1 — future versions may expand on features based on trader feedback.
This script is for educational purposes only. Always combine with risk management and thorough strategy validation.
No indicator guarantees profitability — use this tool as part of a broader trading system.
Kalman Step Signals [AlgoAlpha]Take your trading to the next level with the Kalman Step Signals indicator by AlgoAlpha! This advanced tool combines the power of Kalman Filtering and the Supertrend indicator, offering a unique perspective on market trends and price movements. Designed for traders who seek clarity and precision in identifying trend shifts and potential trade entries, this indicator is packed with customizable features to suit your trading style.
Key Features
🔍 Kalman Filter Smoothing : Dynamically smooths price data with user-defined parameters for Alpha, Beta, and Period, optimizing responsiveness and trend clarity.
📊 Supertrend Overlay : Incorporates a classic Supertrend indicator to provide clear visual cues for trend direction and potential reversals.
🎨 Customizable Appearance : Adjust colors for bullish and bearish trends, along with optional exit bands for more nuanced analysis.
🔔 Smart Alerts : Detect key moments like trend changes or rejection entries for timely trading decisions.
📈 Advanced Visualization : Includes optional entry signals, exit bands, and rejection markers to pinpoint optimal trading opportunities.
How to Use
Add the Indicator : Add the script to your TradingView favorites. Customize inputs like Kalman parameters (Alpha, Beta, Period) and Supertrend settings (Factor, ATR Period) based on your trading strategy.
Interpret the Signals : Watch for trend direction changes using Supertrend lines and directional markers. Utilize rejection entries to identify price rejections at trendlines for precision entry points.
Set Alerts : Enable the built-in alert conditions for trend changes or rejection entries to act swiftly on trading opportunities without constant chart monitoring.
How It Works
The indicator leverages a Kalman Filter to smooth raw price data, balancing responsiveness and noise reduction using user-controlled parameters. This refined price data is then fed into a Supertrend calculation, combining ATR-based volatility analysis with dynamic upper and lower bands. The result is a clear and reliable trend-detection system. Additionally, it features rejection markers for bullish and bearish reversals when prices reject the trendline, along with exit bands to visualize potential price targets. The integration of customizable alerts ensures traders never miss critical market moves.
Add the Kalman Step Signals to your TradingView charts today and enjoy a smarter, more efficient trading experience! 🚀🌟
Auto Signal Buy/SellAuto Signal Buy/Sell with Time Filter and Dynamic ZLEMA (GMT+2) 🌟
Are you looking for an indicator that combines efficiency and simplicity while integrating advanced elements like SuperTrend, ZLEMA (Zero Lag EMA), and a MACD DEMA for clear and precise buy/sell signals? 📈 Introducing Auto Signal Buy/Sell, the ultimate indicator designed for intraday and swing traders, optimized for market hours in GMT+2.
🛠️ Key Features:
- **Advanced SuperTrend**: Follow the dominant trend with a robust SuperTrend, adjustable to your preferences (customizable multiplier and period).
- **Dynamic ZLEMA**: Get a zero-lag EMA curve with a visual signal. Additionally, the ZLEMA turns blue when it’s nearly flat, helping you easily spot market consolidation phases.
- **MACD DEMA**: An enhanced version of the traditional MACD, using the Double EMA to capture more responsive buy/sell cross signals. 📊
- **Buy/Sell Signals**: Visual arrows clearly indicate potential entry and exit points on your chart, filtered by MACD crossovers and the SuperTrend trend.
- **Smart Time Filter (GMT+2)**: This script adapts to trading hours (customizable) and only displays signals during trading hours. The background turns light blue when the market is closed, preventing confusion during inactivity periods. 🕒
⚙️ Full Customization:
- Adjustable trading hours (default 9 AM to 5 PM in GMT+2) with dynamic background indicating when markets are closed.
- Flexible settings for SuperTrend, ZLEMA, and MACD DEMA to suit any strategy.
🎯 Why Choose This Indicator?
- Optimized for maximum precision with advanced algorithms like ZLEMA and DEMA.
- Easy to use: it provides clear, visual signals directly on the chart—no need to decipher complex indicators.
- A complete intraday and swing indicator that combines trend analysis and signal filtering with precise market hours.
🚀 Boost Your Trading!
Add this indicator to your toolkit and enhance your decision-making. Thanks to its intuitive interface and clear visual signals, you can trade with confidence. 💡
Don't forget to like 👍 and comment if you find this indicator useful! Your feedback helps us continue improving such tools. 🚀
📌 How to Use:
1. Add the indicator to your chart.
2. Adjust the SuperTrend and ZLEMA settings to suit your needs.
3. Follow the buy/sell signals and watch for the light blue background outside of trading hours.
4. Trade effectively and stay in control, even during consolidation phases.
MidnightQuant Buy/Exit SignalsThe MidnightQuant Indicator is a sophisticated trend-following tool designed for traders seeking an edge in market analysis through a multi-symbol, multi-timeframe approach. Built on an enhanced Supertrend algorithm, this indicator goes beyond traditional trend-following methods by integrating advanced features that cater to both novice and experienced traders. Its unique design provides comprehensive market insights, empowering traders to make informed decisions with confidence.
Keep in mind that it was tested mainly with higher timeframes, 4H, 1D, 1W.
Overview:
MidnightQuant is specifically engineered to simplify the complexity of market analysis by monitoring and analyzing multiple currency pairs simultaneously. It combines trend detection, reversal signals, and a user-friendly dashboard to present a holistic view of market conditions. Whether you're trading a single asset or managing a portfolio, MidnightQuant delivers actionable insights in real-time.
Key Features:
Multi-Symbol Trend Analysis:
MidnightQuant's most distinguishing feature is its ability to track and analyze up to ten different currency pairs simultaneously. Unlike traditional indicators that focus on a single asset, this multi-symbol capability provides a broader view of market dynamics, allowing traders to identify correlations and divergences across various pairs. This is particularly useful for traders who want to confirm the strength of a trend across different markets before making a trading decision.
Enhanced Supertrend Algorithm:
At the core of MidnightQuant lies an optimized Supertrend algorithm that has been fine-tuned for both accuracy and responsiveness. The algorithm calculates trend directions by factoring in average true range (ATR) data, which helps in identifying significant price movements while filtering out market noise. This results in more reliable trend detection and fewer false signals, making it a powerful tool for trend-following strategies.
Intuitive Dashboard Display:
The MidnightQuant dashboard is designed to centralize critical information, making it accessible at a glance. It displays four key columns: Potential Reversals, Confirmed Reversals, Bullish Trends, and Bearish Trends. Each column provides a quick summary of the current market state for all tracked symbols, allowing traders to see where potential opportunities lie. This streamlined presentation reduces the need for constant chart monitoring and helps traders focus on the most promising setups.
Visual Signals and Candlestick Integration:
MidnightQuant enhances chart readability by incorporating visual signals directly on the price chart. Buy and sell signals are clearly marked at points where trend reversals are detected, providing immediate entry and exit cues. Additionally, the indicator color-codes candlesticks according to the current trend direction—purple for bullish and light lavender for bearish—enabling traders to instantly gauge market sentiment.
Customizable Alerts:
The indicator includes flexible alert conditions that can be customized according to your trading preferences. Alerts are triggered for trend direction changes, providing timely notifications for potential buy or sell opportunities. This feature is invaluable for traders who need to stay informed of market movements even when they are not actively monitoring their charts.
Trend Reversal Detection:
One of MidnightQuant's core functionalities is its ability to detect and signal trend reversals. The indicator monitors changes in the trend direction with precision, helping traders to identify potential turning points in the market. This feature is particularly useful for swing traders and those who aim to capitalize on shifts in market momentum.
Customizable Settings:
The indicator comes with various settings that allow traders to tailor it to their specific needs. From selecting which symbols to track to adjusting the sensitivity of the Supertrend algorithm, users have full control over how the indicator behaves. This customization ensures that MidnightQuant can be adapted to different trading styles and strategies.
How It Works:
MidnightQuant uses a proprietary calculation based on the Supertrend algorithm, which leverages ATR to dynamically adjust to market volatility. The indicator tracks the midpoint of each trading range and applies a factor that defines the threshold for trend changes. When the closing price crosses this threshold, a new trend is identified, and corresponding signals are generated.
The multi-symbol feature is powered by the request.security function, which allows MidnightQuant to pull in data from multiple symbols and timeframes. This data is then processed through the Supertrend algorithm to determine the trend direction for each symbol, which is subsequently displayed on the dashboard.
The indicator also includes a built-in dashboard that provides a summarized view of market conditions, including potential and confirmed reversals, as well as current trend directions. This dashboard updates in real-time, giving traders a continuously updated snapshot of market sentiment across multiple assets.
Use Cases:
Swing Traders: The trend reversal detection and real-time alerts help swing traders identify potential entry and exit points, making it easier to capitalize on market swings.
Band-Zigzag Based Trend FollowerWe defined new method to derive zigzag last month - which is called Channel-Based-Zigzag . This script is an example of one of the use case of this method.
🎲 Trend Following
Defining a trend following method is simple. Basic rule of trend following is Buy High and Sell Low (Yes, you heard it right). To explain further - methodology involve finding an established trend which is flying high and join the trend with proper risk and optimal stop. Once you get into the trade, you will not exit unless there is change in the trend. Or in other words, the parameters which you used to define trend has reversed and the trend is not valid anymore.
Few examples are:
🎯 Using bands
When price breaks out of upper bands (example, Bollinger Band, Keltener Channel, or Donchian Channel), with a pre determined length and multiplier, we can consider the trend to be bullish and similarly when price breaks down the lower band, we can consider the trend to be bearish.
Here are few examples where I have used bands for identifying trend
Band-Based-Supertrend
Donchian-Channel-Trend-Filter
🎯 Using Pivots
Simple logic using zigzag or pivot points is that when price starts making higher highs and higher lows, we can consider this as uptrend. And when price starts making lower highs and lower lows, we can consider this as downtrend. There are few supertrend implementations I have published in the past based on zigzags and pivot points.
Adoptive-Supertrend-Pivots
Zigzag-Supertrend
Drawbacks of both of these methods is that there will be too many fluctuations in both cases unless we increase the reference length. And if we increase the reference length, we will have higher drawdown.
🎲 Band Based Zigzag Method
Band Based Zigzag will help overcome these issues by combining both the methods.
Here we use bands to define our pivot high and pivot low - this makes sure that we are identifying trend only on breakouts as pivots are only formed on breakouts.
Our method also includes pivot ratio to cross over 1.0 to be able to consider it as trend. This means, we are waiting for price also to make new high high or lower low before making the decision on trend. But, this helps us ignore smaller pivot movements due to the usage of bands.
I have also implemented few tricks such as sticky bands (Bands will not contract unless there is breakout) and Adaptive Bands (Band will not expand unless price is moving in the direction of band). This makes the trend following method very robust.
To avoid fakeouts, we also use percentB of high/low in comparison with price retracement to define breakout.
🎲 The indicator
The output of indicator is simple and intuitive to understand.
🎯 Trend Criteria
Uptrend when last confirmed pivot is pivot high and has higher retracement ratio than PercentB of High. Else, considered as downtrend.
Downtrend when last confirmed pivot is pivot low and has higher retracement ratio than PercentB of High. Else, considered as uptrend.
🎯 Settings
Settings allow you to select the band type and parameters used for calculating zigzag and then trend. Also has few options to hide the display.
Multi-Timeframe (MTF) Dashboard by RiTzMulti-Timeframe Dashboard
Shows values of different Indiactors on Multiple-Timeframes for the selected script/symbol
VWAP : if LTP is trading above VWAP then Bullish else if LTP is trading below VWAP then Bearish.
ST(21,1) : if LTP is trading above Supertrend (21,1) then Bullish , else if LTP is trading below Supertrend (21,1) then Bearish.
ST(14,2) : if LTP is trading above Supertrend (14,2) then Bullish , else if LTP is trading below Supertrend (14,2) then Bearish.
ST(10,3) : if LTP is trading above Supertrend (10,3) then Bullish , else if LTP is trading below Supertrend (10,3) then Bearish.
RSI(14) : Shows value of RSI (14) for the current timeframe.
ADX : if ADX is > 75 and DI+ > DI- then "Bullish ++".
if ADX is < 75 but >50 and DI+ > DI- then "Bullish +".
if ADX is < 50 but > 25 and DI+ > DI- then "Bullish".
if ADX is above 75 and DI- > DI+ then "Bearish ++".
if ADX is < 75 but > 50 and DI- > DI+ then "Bearish+".
if ADX is < 50 but > 25 and DI- > DI+ then "Bearish".
if ADX is < 25 then "Neutral".
MACD : if MACD line is above Signal Line then "Bullish", else if MACD line is below Signal Line then "Bearish".
PH-PL : "< PH > PL" means LTP is trading between Previous Timeframes High(PH) & Previous Timeframes Low(PL) which indicates Rangebound-ness.
"> PH" means LTP is trading above Previous Timeframes High(PH) which indicates Bullish-ness.
"< PL" means LTP is trading below Previous Timeframes Low(PL) which indicates Bearish-ness.
Alligator : If Lips > Teeth > Jaw then Bullish.
If Lips < Teeth < Jaw then Bearish.
If Lips > Teeth and Teeth < Jaw then Neutral/Sleeping.
If Lips < Teeth and Teeth > Jaw then Neutral/Sleeping.
Settings :
Style settings :-
Dashboard Location: Location of the dashboard on the chart
Dashboard Size: Size of the dashboard on the chart
Bullish Cell Color: Select the color of cell whose value is showing Bullish-ness.
Bearish Cell Color: Select the color of cell whose value is showing Bearish-ness.
Neutral Cell Color: Select the color of cell whose value is showing Rangebound-ness.
Cell Transparency: Select Transparency of cell.
Column Settings :-
You can select which Indicators values should be displayed/hidden.
Timeframe Settings :-
You can select which timeframes values should be displayed/hidden.
Note :- I'm not a pro Developer/Coder , so if there are any mistakes or any suggestions for improvements in the code then do let me know!
Note :- Use in Live market , might show wrong values for timeframes other than current timeframe in closed market!!
Nifty / Banknifty Dashboard by RiTzNifty / Banknifty Dashboard :
Shows Values of different Indicators on current Timeframe for the selected Index & it's main constituents according to weightage in index.
customized for Nifty & Banknifty (You can customize it according to your needs for the markets/indexes you trade in)
Interpretation :-
VWAP : if LTP is trading above VWAP then Bullish else if LTP is trading below VWAP then Bearish.
ST(21,1) : if LTP is trading above Supertrend (21,1) then Bullish , else if LTP is trading below Supertrend (21,1) then Bearish.
ST(14,2) : if LTP is trading above Supertrend (14,2) then Bullish , else if LTP is trading below Supertrend (14,2) then Bearish.
ST(10,3) : if LTP is trading above Supertrend (10,3) then Bullish , else if LTP is trading below Supertrend (10,3) then Bearish.
RSI(14) : Shows value of RSI (14) for the current timeframe.
ADX : if ADX is > 75 and DI+ > DI- then "Bullish ++".
if ADX is < 75 but >50 and DI+ > DI- then "Bullish +".
if ADX is < 50 but > 25 and DI+ > DI- then "Bullish".
if ADX is above 75 and DI- > DI+ then "Bearish ++".
if ADX is < 75 but > 50 and DI- > DI+ then "Bearish+".
if ADX is < 50 but > 25 and DI- > DI+ then "Bearish".
if ADX is < 25 then "Neutral".
MACD : if MACD line is above Signal Line then "Bullish", else if MACD line is below Signal Line then "Bearish".
PDH-PDL : "< PDH > PDL" means LTP is trading between Previous Days High(PDH) & Previous Days Low(PDL) which indicates Rangebound-ness.
"> PDH" means LTP is trading above Previous Days High(PDH) which indicates Bullish-ness.
"< PDL" means LTP is trading below Previous Days Low(PDL) which indicates Bearish-ness.
Alligator : If Lips > Teeth > Jaw then Bullish.
If Lips < Teeth < Jaw then Bearish.
If Lips > Teeth and Teeth < Jaw then Neutral/Sleeping.
If Lips < Teeth and Teeth > Jaw then Neutral/Sleeping.
Settings :
Style settings :-
Dashboard Location: Location of the dashboard on the chart
Dashboard Size: Size of the dashboard on the chart
Bullish Cell Color: Select the color of cell whose value is showing Bullish-ness.
Bearish Cell Color: Select the color of cell whose value is showing Bearish-ness.
Neutral Cell Color: Select the color of cell whose value is showing Rangebound-ness.
Cell Transparency: Select Transparency of cell.
Columns Settings :-
You can select which Indicators values should be displayed/hidden.
Rows Settings :-
You can select which Stocks/Symbols values should be displayed/hidden.
Symbol Settings :-
Here you can select the Index & Stocks/Symbols
Dashboard for Index : select Nifty/Banknifty
if you select Nifty then Nifty spot, Nifty current Futures and the stocks with most weightage in Nifty index will be displayed on the Dashboard/Table.
if you select Banknifty then Banknifty spot, Banknifty current Futures and the stocks with most weightage in Banknifty index will be displayed on the Dashboard/Table.
You can Customise it according to your needs, you can choose any Symbols you want to use.
Note :- This is inspired from "RankDelta" by AsitPati and "Nifty and Bank Nifty Dashboard v2" by cvsk123 (Both these scripts are closed source!)
I'm not a pro Developer/Coder , so if there are any mistakes or any suggestions for improvements in the code then do let me know!
[blackcat] L5 Banker Fund Flow Trend Oscillator X Level: 5
Background
The large funds or banker fund are often referred to as Whale. Whale can have a significant impact on the price movements in various markets, especially in cryptocurrency . Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects. I had published (blackcat1402) L3 Banker Fund Flow Trend Oscillator as open sourced version. Since this indicator is one of the most popular indicators in my collections. Many requested advanced features and improvements on accuracy. Here is the link of free version of L3 Banker Fund Flow Trend Oscillator:
Function
L5 Banker Fund Flow Trend Oscillator X can give you a model of complete banker fund flow operation in cycles. Compared to L3 free and open source version, it contains more advanced algorithms to provide entries. It is comprehensive to disclose the price trend with dynamic overbought and oversold tables. Compared to L4, which is also powerful, but they are using different banker fund engines. L4 is more suitable for those who have been used to L3 already. L5 is slightly different in visual effect and algorithm core, which is much different to L4 and L3. It can depict much clearer trajectory of banker fund as an oscillator. That is the reason why I list this as Level 5, which is closed source and invited-only. Unlike L4, whose cycle of banker fund flow may have 5 steps in max as entry, increase position, decrease position, exit, and weak rebound for exit, L5 only have buy and sell signal with a customized entry signal filter to filter out crowded entry signals.
This indicator derives from "(blackcat) L3 Banker Fund Flow Trend Oscillator". Therefore, it is an oscillator indicator with overbought and oversold threshold levels. However, it combine several novel indicators together but mainly focus on Whale Jump (Whale Pump and Whale Dump), Blackcat1402 featured supertrend indicator (entry signal = supertrend && oscillator signal), trading risk assessment indicator.
In case you are not familiar my indicators:
(blackcat) L5 Whales Jump Out of Ocean X:
(blackcat) L1 Trading Risk Assessment Indicator (I inverted it in this indicator here):
(blackcat) L4 Banker Fund Flow Trend Oscillator:
Indicator Set
Banker Fund Flow Trend Oscillator X, providing swing oscillator and entry signal.
Blackcat1402 Featured Supertrend, providing colors (green for bull and red for bear) on CurrentSafetyLevel of "Trading Risk Assessment Indicator".
Whales Jump Out of Ocean X, whale pumps and dumps
Trading Risk Assessment Indicator, output CurrentSafetyLevel, which is a large time frame oscillator ranging from overbought and oversold zones.
Inputs
EntryFiltPeriod --> Entry Signal Filter Period, default value is 5, which means crowded entry signal in future 5 bars will be ignored.
Safe Bottom --> User defined safe bottom threshold.
Risky Top --> User defined risky top threshold.
Oscillator Center --> define the center value of Oscillator X, which will influence long entry signal generation
Whale Scaler --> A scaling factor input to see whale dumps and pump more clearly in vision.
The other inputs --> Oscillator divergence inputs.
Golden Cross --> According to community feedbacks, popular L3 Yellow Candles for Banker Fund Entry are added Now. It is represented as a Yellow Cross and You can activate and deactivate them in indicator settings.
Dynamic OS/OB tables --> They are hidden commonly but appear only when OB or OS is happening on top right corner or bottom right corner respectively. Values are visiable for you to judge instant trend reversals.
Key Signal
Yellow bars --> Oscillator long
Fuchsia bars --> Oscillator short
Green columns --> CurrentSafetyLevel values and Supertrend long
Red columns --> CurrentSafetyLevel values and Supertrend short
Fuchsia Zone --> Overbought region
Yellow Zone --> Oversold region
Buy-Sell Labels --> "AND" output of Supertrend and Oscillator Entry Signal: Green for "Buy" and Red for "Sell".
Bull-Bear Labels --> Oscillator divergence signal: Yellow for "Bull" and Fuchsia for "Bear".
Long Whales / Banker Pump--> fuchsia and red stick bars (Motive waves with fuchsia color; corrective waves with red color)
Short Whales / Banker Dump --> yellow and red green stick bars (Motive waves with yellow color; corrective waves with green color)
Pros and Cons
Suitable for discretionary trading and auto trading with alerts.
Intuitive and effective, the output signal is more reliable after multi-indicator resonance.
Remarks
My first L5 indicator published
Closed-source
Invite-only
Subscription
500 Tradingview Coins per Monthly Sub.
500X10 Tradingview Coins per Yearly Sub.
Divergence Screener [Trendoscope®]🎲Overview
The Divergence Screener is a powerful TradingView indicator designed to detect and visualize bullish and bearish divergences, including hidden divergences, between price action and a user-selected oscillator. Built with flexibility in mind, it allows traders to customize the oscillator type, trend detection method, and other parameters to suit various trading strategies. The indicator is non-overlay, displaying divergence signals directly on the oscillator plot, with visual cues such as lines and labels on the chart for easy identification.
This indicator is ideal for traders seeking to identify potential reversal or continuation signals based on price-oscillator divergences. It supports multiple oscillators, trend detection methods, and alert configurations, making it versatile for different markets and timeframes.
🎲Features
🎯Customizable Oscillator Selection
Built-in Oscillators : Choose from a variety of oscillators including RSI, CCI, CMO, COG, MFI, ROC, Stochastic, and WPR.
External Oscillator Support : Users can input an external oscillator source, allowing integration with custom or third-party indicators.
Configurable Length : Adjust the oscillator’s period (e.g., 14 for RSI) to fine-tune sensitivity.
🎯Divergence Detection
The screener identifies four types of divergences:
Bullish Divergence : Price forms a lower low, but the oscillator forms a higher low, signaling potential upward reversal.
Bearish Divergence : Price forms a higher high, but the oscillator forms a lower high, indicating potential downward reversal.
Bullish Hidden Divergence : Price forms a higher low, but the oscillator forms a lower low, suggesting trend continuation in an uptrend.
Bearish Hidden Divergence : Price forms a lower high, but the oscillator forms a higher high, suggesting trend continuation in a downtrend.
🎯Flexible Trend Detection
The indicator offers three methods to determine the trend context for divergence detection:
Zigzag : Uses zigzag pivots to identify trends based on higher highs (HH), higher lows (HL), lower highs (LH), and lower lows (LL).
MA Difference : Calculates the trend based on the difference in a moving average (e.g., SMA, EMA) between divergence pivots.
External Trend Signal : Allows users to input an external trend signal (positive for uptrend, negative for downtrend) for custom trend analysis.
🎯Zigzag-Based Pivot Analysis
Customizable Zigzag Length : Adjust the zigzag length (default: 13) to control the sensitivity of pivot detection.
Repaint Option : Choose whether divergence lines repaint based on the latest data or wait for confirmed pivots, balancing responsiveness and reliability.
🎯Visual and Alert Features
Divergence Visualization : Divergence lines are drawn between price pivots and oscillator pivots, color-coded for easy identification:
Bullish Divergence : Green
Bearish Divergence : Red
Bullish Hidden Divergence : Lime
Bearish Hidden Divergence : Orange
Labels and Tooltips : Labels (e.g., “D” for divergence, “H” for hidden) appear on price and oscillator pivots, with tooltips providing detailed information such as price/oscillator values, ratios, and pivot directions.
Alerts : Configurable alerts for each divergence type (bullish, bearish, bullish hidden, bearish hidden) trigger on bar close, ensuring timely notifications.
🎲 How It Works
🎯Oscillator Calculation
The indicator calculates the selected oscillator (or uses an external source) and plots it on the chart.
Oscillator values are stored in a map for reference during divergence calculations.
🎯Pivot Detection
A zigzag algorithm identifies pivots in the oscillator data, with configurable length and repainting options.
Price and oscillator pivots are compared to detect divergences based on their direction and ratio.
🎯Divergence Identification
The indicator compares price and oscillator pivot directions (HH, HL, LH, LL) to identify divergences.
Trend context is determined using the selected method (Zigzag, MA Difference, or External).
Divergences are classified as bullish, bearish, bullish hidden, or bearish hidden based on price-oscillator relationships and trend direction.
🎯Visualization and Alerts
Valid divergences are drawn as lines connecting price and oscillator pivots, with corresponding labels.
Alerts are triggered for allowed divergence types, providing detailed information via tooltips.
🎯Validation
Divergence lines are validated to ensure no intermediate bars violate the divergence condition, enhancing signal reliability.
🎲 Usage Instructions as Indicator
🎯Add to Chart:
Add the “Divergence Screener ” to your TradingView chart.
The indicator appears in a separate pane below the price chart, plotting the oscillator and divergence signals.
🎯Configure Settings:
Adjust the oscillator type and length to match your trading style.
Select a trend detection method and configure related parameters (e.g., MA type/length or external signal).
Set the zigzag length and repainting preference.
Enable/disable alerts for specific divergence types.
I🎯nterpret Signals:
Bullish Divergence (Green) : Look for potential buy opportunities in a downtrend.
Bearish Divergence (Red) : Consider sell opportunities in an uptrend.
Bullish Hidden Divergence (Lime) : Confirm continuation in an uptrend.
Bearish Hidden Divergence (Orange): Confirm continuation in a downtrend.
Use tooltips on labels to review detailed pivot and divergence information.
🎯Set Alerts:
Create alerts for each divergence type to receive notifications via TradingView’s alert system.
Alerts include detailed text with price, oscillator, and divergence information.
🎲 Example Scenarios as Indicator
🎯 With External Oscillator (Use MACD Histogram as Oscillator)
In order to use MACD as an oscillator for divergence signal instead of the built in options, follow these steps.
Load MACD Indicator from Indicator library
From Indicator settings of Divergence Screener, set Use External Oscillator and select MACD Histograme from the dropdown
You can now see that the oscillator pane shows the data of selected MACD histogram and divergence signals are generated based on the external MACD histogram data.
🎯 With External Trend Signal (Supertrend Ladder ATR)
Now let's demonstrate how to use external direction signals using Supertrend Ladder ATR indicator. Please note that in order to use the indicator as trend source, the indicator should return positive integer for uptrend and negative integer for downtrend. Steps are as follows:
Load the desired trend indicator. In this example, we are using Supertrend Ladder ATR
From the settings of Divergence Screener, select "External" as Trend Detection Method
Select the trend detection plot Direction from the dropdown. You can now see that the divergence signals will rely on the new trend settings rather than the built in options.
🎲 Using the Script with Pine Screener
The primary purpose of the Divergence Screener is to enable traders to scan multiple instruments (e.g., stocks, ETFs, forex pairs) for divergence signals using TradingView’s Pine Screener, facilitating efficient comparison and identification of trading opportunities.
To use the Divergence Screener as a screener, follow these steps:
Add to Favorites : Add the Divergence Screener to your TradingView favorites to make it available in the Pine Screener.
Create a Watchlist : Build a watchlist containing the instruments (e.g., stocks, ETFs, or forex pairs) you want to scan for divergences.
Access Pine Screener : Navigate to the Pine Screener via TradingView’s main menu: Products -> Screeners -> Pine, or directly visit tradingview.com/pine-screener/.
Select Watchlist : Choose the watchlist you created from the Watchlist dropdown in the Pine Screener interface.
Choose Indicator : Select Divergence Screener from the Choose Indicator dropdown.
Configure Settings : Set the desired timeframe (e.g., 1 hour, 1 day) and adjust indicator settings such as oscillator type, zigzag length, or trend detection method as needed.
Select Filter Criteria : Select the condition on which the watchlist items needs to be filtered. Filtering can only be done on the plots defined in the script.
Run Scan : Press the Scan button to display divergence signals across the selected instruments. The screener will show which instruments exhibit bullish, bearish, bullish hidden, or bearish hidden divergences based on the configured settings.
🎲 Limitations and Possible Future Enhancements
Limitations are
Custom input for oscillator and trend detection cannot be used in pine screener.
Pine screener has max 500 bars available.
Repaint option is by default enabled. When in repaint mode expect the early signal but the signals are prone to repaint.
Possible future enhancements
Add more built-in options for oscillators and trend detection methods so that dependency on external indicators is limited
Multi level zigzag support
ATR Stop-Loss & TargetsATR and Supertrend-based SL/TP & Trailing System
This indicator combines Average True Range (ATR) and Supertrend logic to help traders define precise stop-loss, first target, and trailing stop-loss (TSL) levels.
⚙️ Key Features:
📏 ATR-based Stop-Loss & Target Lines:
Uses ATR (default period: 5) based on the previous day's candle for more stable risk management.
Traders can choose the price source: Close, Open, or enter a manual price.
SL and first target are calculated using multipliers:
Multiplier 1 = Stop Loss
Multiplier 2 = First Target
📉 Supertrend for Trailing Stop:
Built-in Supertrend logic for trailing stop-loss management.
Uses ATR(10) with a multiplier of 2.1, based on HL2.
Supertrend can be toggled ON/OFF from the settings.
Falcon SignalsThis script is a TradingView Pine Script for a trading strategy called "Falcon Signals." It combines multiple technical indicators and strategies to generate buy and sell signals. Here’s a breakdown of what the script does:
1. Supertrend Indicator:
The script calculates the Supertrend indicator using the Average True Range (ATR) and a specified multiplier (factor). The Supertrend is used to define the trend direction, with a green line for an uptrend and a red line for a downtrend.
2. EMA (Exponential Moving Average):
Two EMAs are used: a fast EMA (9-period) and a slow EMA (21-period). The script checks for crossovers of the fast EMA above or below the slow EMA as a basis for buying and selling signals.
3. RSI (Relative Strength Index):
The RSI (14-period) is used to measure the momentum of the price. A buy signal is generated when the RSI is less than 70, while a sell signal is generated when it’s greater than 30.
4. Take Profit (TP) and Stop Loss (SL):
The script allows users to set custom percentages for take profit and stop loss. The take profit is set at a certain percentage above the entry price for buy signals, and the stop loss is set at a percentage below the entry price, and vice versa for sell signals.
5. Trailing Stop:
A trailing stop can be enabled, which dynamically adjusts the stop loss level as the price moves in the favorable direction. If the price moves against the position by a certain trailing percentage, the position will be closed.
6. Engulfing Patterns:
The script checks for bullish and bearish engulfing candlestick patterns, indicating potential reversals. A bullish engulfing pattern is marked with a teal label ("🔄 Reversal Up"), and a bearish engulfing pattern is marked with a fuchsia label ("🔄 Reversal Down").
7. Plotting:
The script plots various indicators and signals:
Entry line: Shows where the buy or sell signal is triggered.
Take profit and stop loss levels are plotted as lines.
EMA and Supertrend lines are plotted on the chart.
Trailing stop line, if enabled, is also plotted.
8. Buy and Sell Labels:
The script places labels on the chart when buy or sell signals are triggered, indicating the price at which the order should be placed.
9. Exit Line:
The script plots an exit line when the trailing stop is hit, signaling when a position should be closed.
10. Alerts:
Alerts are set for both buy and sell signals, notifying the trader when to act based on the strategy's conditions.
This strategy combines trend-following (Supertrend), momentum (RSI), and price action patterns (EMA crossovers and engulfing candlestick patterns) to generate trade signals. It also offers the flexibility of take profit, stop loss, and trailing stop features.
SUPeR TReND 2.718An evolved version of the classic Supertrend, SUPeR TReND 2.718 is built to deliver elegant, high-precision trend detection using Euler's constant (e = 2.718) as its default multiplier. Designed for clarity and visual flow, this indicator brings together smooth line work, intelligent color logic, and a minimalistic tally system that tracks trend persistence — all in a highly customizable, overlay-ready format.
Unlike traditional implementations, this version maintains line visibility regardless of fill opacity, ensuring crisp tracking even in complex environments. Ideal for traders who value both aesthetics and actionable structure.
__________________________________________________________
🔑 Key Features:
- 📐 ATR-based Supertrend with default multiplier = e (2.718)
- 📉 Dynamic trend line with optional fill beneath price
- ⏳ Trend duration tally label (count-only or full format)
- ⬆️ Higher-timeframe Supertrend overlay (optional)
- 🟢 Directional candle coloring for clarity
- 🟡 Subtle anchor line to guide perception without clutter
- ⚙️ PineScript v6 compliant, efficient and modular
__________________________________________________________
🧠 Interpretation Guide:
- The Supertrend line tracks trend support or resistance — beneath price in uptrends, above in downtrends.
- The shaded fill reflects direction with 70% transparency.
- The trend tally label counts how long the current trend has lasted.
- Candle colors confirm direction without overtaking price action.
- The optional HTF line shows higher-timeframe context.
- A soft yellow anchor line stabilizes the fill relationship without distraction.
__________________________________________________________
⚙️ Inputs & Controls:
- ✏️ ATR Length – Volatility lookback
- 🧮 Multiplier – Default = 2.718 (Euler's number)
- 🕰️ Higher Timeframe – Choose your bias frame
- 👁️ Show HTF / Main – Toggle each trend layer
- 🧾 Show Label / Simplify – Show trend duration, with or without arrows
- 🎨 Color Candles – Turn directional bar coloring on or off
- 🪄 Show Fill – Toggle the shaded visual rhythm
- 🎛️ All visuals use tuned colors and transparencies for clarity
__________________________________________________________
🚀 Best Practices:
- ✅ Works on any time frame; shines on 1h v. 1D
- 🔁 Use the HTF line for macro bias filtering
- 📊 Combine with volume or liquidity overlays for edge
- 🧱 Use as a structural base layer with minimalist stacks
__________________________________________________________
📈 Strategy Tips:
- 🧭 MTF Trend Alignment: Enable the HTF line to filter trades. If the HTF trend is up, only take longs on the lower frame, and vice versa.
- 🔁 Pullback Entries: During a strong trend, consider short-term dips below the Supertrend line as possible re-entry zones — only if HTF remains aligned.
- ⏳ Tally for Exhaustion: When the bar count exceeds 15+, look for confluence (volume divergence, key levels, reversal signals).
- ⚠️ HTF Flip + Extended Trend: When the HTF trend reverses while the main trend is extended, that may be a macro exit or fade signal.
- 🚫 Solo Mode: Disable HTF and use the main trend + tally as a standalone signal layer.
- 🧠 Swing Setup Friendly: Especially powerful on 1D or 1h in swing systems or trend-based grid strategies.
Buy Sell Indicator - MicroStrategiesOverview :
The "Buy Sell Indicator - MicroStrategies" is designed to provide traders with dynamic buy and sell signals based on an adaptive channel and supertrend approach. This script is unique as it combines standard supertrend methodology with a custom channel logic to adapt more effectively to market conditions, enhancing the identification of trend reversals.
Key Features:
Adaptive Channel Logic: Utilizes a calculated channel, defined by the highest and lowest prices over a specified period, to adjust the trend sensitivity dynamically. This helps in accurately identifying potential buy and sell zones by incorporating price volatility.
Supertrend Integration: Integrates with a modified supertrend function that uses the adaptive channel to set trend thresholds. This combination allows the script to filter out less significant movements and focus on substantial trends, minimizing false signals.
Signal Alerts: Provides visual and alert-based signals for entering (Buy) and exiting (Sell) trades, enhancing user interaction and trade execution timing.
Usefulness: This indicator is particularly useful for traders who engage in medium to long-term trading strategies. It helps in determining optimal entry and exit points, thereby aiding in risk management and profit maximization.
How It Works:
The script calculates the high and low channel limits over a user-defined length.
It then calculates a range from these limits and sets upper and lower thresholds based on the trend sensitivity input.
Buy signals are generated when the price crosses above the adaptive upper limit, suggesting an upward trend.
Sell signals are triggered when the price crosses below the adaptive lower limit, indicating a potential downward trend.
How to Use:
Apply the indicator to any chart.
Adjust the trendSensitivity, channelLength, and atrLookback parameters according to your trading preferences.
Use the buy (B) and sell (S) labels to guide your trading decisions.
Originality: This script is original in its approach by merging traditional supertrend indicators with a customized channel-based method to refine signal accuracy and responsiveness to market changes. This dual approach helps in better capitalizing on trends and avoiding sideways market phases.
Performance Claims: No unrealistic performance or profitability claims are made about this script. Traders should use this tool as part of a comprehensive trading strategy, considering risk management and market conditions. Past performance does not guarantee future results, and users should test the script in different market environments.
Disclaimer: This script does not guarantee earnings. Traders should use it at their discretion and in conjunction with other analytical tools.
Conclusion: The "Buy Sell Indicator - MicroStrategies" offers an innovative combination of trend detection methodologies tailored to enhance trading strategies through precise signal generation. Its design is focused on providing clear, actionable trading signals to assist in decision-making processes.