Contrarian with 5 Levels5 Levels application was inspired and adapted from Predictive Ranges indicator developed by Lux Algo. So much credit to their work.
Indicator Description: Contrarian with 5 Levels
Overview
The "Contrarian with 5 Levels" indicator is a powerful tool designed for traders seeking to identify potential reversal points in the market by combining contrarian trading principles with dynamic support and resistance levels. This indicator overlays a Simple Moving Average (SMA) shadow and five adaptive price levels, integrating Institutional Concepts of Structure (ICT) such as Break of Structure (BOS) and Market Structure Shift (MSS) to provide clear buy and sell signals. It is ideal for traders looking to capitalize on overextended price movements, particularly on the daily timeframe, though it is adaptable to other timeframes with proper testing.
How It Works
The indicator operates on two core components:
Contrarian SMA Shadow: A shaded region between the SMA of highs and lows (default length: 100) acts as a dynamic zone to identify overbought or oversold conditions. When the price moves significantly outside this shadow, it signals potential exhaustion, aligning with contrarian trading principles.
Five Adaptive Levels: Using a modified ATR-based calculation, the indicator plots five key levels (two resistance, one average, and two support) that adjust dynamically to market volatility. These levels serve as critical zones for potential reversals.
ICT Structure Analysis: The indicator incorporates BOS and MSS logic to detect shifts in market structure, plotting bullish and bearish breaks with customizable colors for clarity.
Buy and sell signals are generated when the price crosses key levels while outside the SMA shadow, indicating potential reversal opportunities. The signals are visualized as small circles above (sell) or below (buy) the price bars, making them easy to interpret.
Mathematical Concepts
SMA Shadow: The indicator calculates the SMA of the highest highs and lowest lows over a user-defined period (default: 100). This creates a dynamic range that highlights extreme price movements, which contrarian traders often target for reversals.
Five Levels Calculation: The five levels are derived using a volatility-adjusted formula based on the Average True Range (ATR). The average level (central pivot) is calculated as a smoothed price, with two upper (resistance) and two lower (support) levels offset by a multiple of the ATR (default multiplier: 6.0). This adaptive approach ensures the levels remain relevant across varying market conditions.
ICT BOS/MSS Logic: The indicator identifies pivot highs and lows on a user-defined timeframe (default: daily) to detect structural breaks. A BOS occurs when the price breaks a prior pivot high (bullish) or low (bearish), while an MSS signals a shift in market direction, providing context for potential reversals.
Entry and Exit Rules
Buy Signal (Blue Dot Below Bar): Triggered when the closing price is below both the SMA shadow (smaLow) and the average level (avg), and the price crosses under either the first or second support level (prS1 or prS2). This suggests the market may be oversold, indicating a potential reversal upward.
Sell Signal (White Dot Above Bar): Triggered when the closing price is above both the SMA shadow (smaHigh) and the average level (avg), and the price crosses over either the first or second resistance level (prR1 or prR2). This suggests the market may be overbought, indicating a potential reversal downward.
Recommended Usage
This indicator is optimized for the daily timeframe, where it has been designed to capture significant reversal opportunities in trending or ranging markets. However, it can be adapted to other timeframes (e.g., 1H, 4H, 15M) with proper testing of settings such as SMA length, ATR multiplier, and structure timeframe. Users are encouraged to backtest and optimize parameters to suit their trading style and asset class.
Customization Options
SMA Length: Adjust the SMA period (default: 100) to control the sensitivity of the shadow.
Five Levels Length and Multiplier: Modify the length (default: 200) and ATR multiplier (default: 6.0) to fine-tune the support/resistance levels.
Timeframe Settings: Set separate timeframes for structure analysis and five levels to align with your trading strategy.
Color and Signal Display: Customize colors for BOS/MSS lines and toggle buy/sell signals on or off for a cleaner chart.
Why Use This Indicator?
The "Contrarian with 5 Levels" indicator combines the power of contrarian trading with dynamic levels and market structure analysis, offering a unique perspective for identifying high-probability reversal setups. Its intuitive design, customizable settings, and clear signal visualization make it suitable for both novice and experienced traders. Whether you're trading forex, stocks, or cryptocurrencies, this indicator provides a robust framework for spotting potential turning points in the market.
We hope you find the "Contrarian with 5 Levels" indicator a valuable addition to your trading toolkit! Happy trading!
Please leave feedback in the comments section.
Indicatori e strategie
Session High/Low Levels with Mitigation*****This is an updated version of my daily high/low with mitigation, now with weekly, daily, 4hr, 2hr and 1hr levels.
This Pine Script script defines a TradingView indicator named "Session High/Low Levels" designed to track and display the session(of your choice) high and low levels of a trading session, with added functionality for marking levels as mitigated when certain conditions are met. Here's a breakdown of its functionality:
Session Highs and Lows:
Tracks the high and low levels for each session.
Retains the highs and lows for a configurable number of previous days.
Visualization:
Creates horizontal lines for each session's high and low levels.
Supports customization of line colors and styles.
Mitigation Tracking:
Monitors whether a high or low level has been "mitigated" (touched or exceeded by subsequent price action).
Changes the line style and color to indicate mitigation.
Provides an alert when mitigation occurs.
Configurable Extensions:
Lines can be extended beyond mitigation or stopped at the bar index where mitigation occurs, depending on user preference.
Efficient Array Management:
Uses arrays to manage daily highs, lows, their respective indices, and lines.
Ensures the size of stored data does not exceed the configured limit (daysToTrack).
Alerts:
Sends alerts when high or low levels are mitigated, which can be used for trading decisions.
Inputs
Session Start Hour/Minute: Defines when a new session starts.
Days to Track: Sets the number of previous days to display high/low levels.
Colors: Allows customization of line colors for unmitigated and mitigated levels.
Extend Lines: Toggles whether lines should extend past the mitigation point.
Code Highlights
New Session Detection: The script detects the start of a new session based on the configured session start time and resets daily highs/lows.
Line Management: Horizontal rays are created for highs and lows, and mitigated lines are updated with a dashed style and faded color.
Mitigation Logic: The script checks whether current price action exceeds stored high or low levels and updates their status and appearance accordingly.
Memory Management: Ensures the size of the arrays (highs, lows, lines) does not exceed the configured daysToTrack, deleting the oldest elements as necessary.
This indicator is highly customizable and useful for traders who want to track and analyze daily support and resistance levels, incorporating mitigation as a dynamic feature.
W2050: Bullish Candle Linking EMA50 and MA20 (Weekly)On a weekly timeframe, if a bullish candle (close > open) has a body that includes both EMA50 and MA20, then print the label "W2050" above the candle.
EPS & Sales Marker by Nikeshthis indicator marks quarter to quarter change of sales and earnings per share
ALMA Trend-boxALMA Trend-box — an innovative indicator for detecting trend and consolidation based on the ALMA moving average
This indicator combines the Adaptive Laguerre Moving Average (ALMA) with unique visual representations of trend and consolidation zones, providing traders with clearer and deeper insight into current market conditions.
Originality and Usefulness
Unlike classic indicators based on simple moving averages, ALMA uses a Gaussian weighting function and an offset parameter to reduce lag, resulting in smoother and more accurate trend signals. This indicator not only plots the ALMA but also analyzes the slope angle of the ALMA line, combining it with the price’s position relative to the moving average to identify three key market states:
Uptrend (bullish): when the ALMA slope angle is above a defined threshold and the price is above ALMA,
Downtrend (bearish): when the slope angle is below a negative threshold and the price is below ALMA,
Consolidation or sideways trend: when neither of the above conditions is met.
A special contribution is the automatic identification of consolidation zones (periods of weak trend or transition between bullish and bearish phases), visually represented by blue-colored candlesticks on the chart. This feature can help traders better recognize moments when the market is indecisive and adjust their strategies accordingly.
How the Indicator Works
ALMA is calculated using user-defined parameters — length, offset, and sigma — which can be adjusted for different timeframes and instruments.
The slope angle of the ALMA line is calculated based on the difference between the current and previous ALMA values, converted into degrees.
Based on the slope angle and the relative price position to ALMA, the indicator determines the trend type and changes the candle colors accordingly:
Green for bullish (uptrend),
Red for bearish (downtrend),
Blue for sideways trend (consolidation).
When the slope angle falls within a certain range and the price behavior contradicts the trend, the indicator detects consolidation and displays it graphically through semi-transparent boxes and background color.
How to Use This Indicator
Use candle colors for quick identification of the current trend and potential trend reversals.
Pay attention to consolidation zones marked by boxes (blue candles), as these are potential signals for trend breaks or preparation for stronger price moves.
ALMA parameters can be adjusted depending on the timeframe and market volatility, providing flexibility in analysis.
The indicator is useful for both short-term scalping strategies and longer-term trend monitoring and position management.
Why This Indicator is Useful
Many existing trend indicators do not consider the slope angle of the moving average as a quantitative measure of trend strength, nor do they automatically detect consolidations as separate zones. ALMA Trend-box fills this gap by combining sophisticated mathematical processing with simple and intuitive visual representation. This way, users get a tool that helps make decisions based on more objective criteria of trend and consolidation rather than just price location relative to averages.
SMA Strategy with Re-Entry Signal (v6 Style)*SMA Trend Strategy with Re-Entry Signal (v6 Edition)*
This indicator is based on a classic moving average trend-following system, enhanced with re-entry signals designed for medium to short-term traders.
---
### 📈 Key Features:
1. *Trend Detection Logic:*
- The 30-period SMA (SMA30) is used as the trend filter.
- When the closing price is above the SMA30, the market is considered to be in an uptrend.
2. *Re-Entry Signal:*
- While in an uptrend, if the closing price crosses above the SMA20, a re-entry (add position) signal is triggered.
- These signals are shown with green upward arrows below the bars.
3. *Background Highlighting:*
- Green background: indicates an uptrend.
- Red background: indicates a break below SMA30, suggesting weakening momentum.
4. *Multi-SMA Visualization:*
- Five SMAs are displayed: SMA10, SMA20, SMA30, SMA60, and SMA250.
- This helps visualize both short-term and long-term trend structures.
---
### 🔍 Usage Tips:
- Use this script directly on your main chart to monitor trend direction and wait for re-entry signals during pullbacks.
- Combine with other tools like volume, price action, or candlestick patterns to confirm entries.
---
### ⚠️ Disclaimer:
- This indicator is for educational and informational purposes only. It does not constitute financial advice or a buy/sell signal.
- Avoid relying solely on this script for trading decisions. Always manage your own risk.
---
👨💻 *Developer’s Note:*
This script is 100% manually developed, not copied or auto-generated. It is an original implementation based on my personal trading logic. Suggestions and feedback are welcome!
对数通道选股器 - 5分15分绿色筛选🎯 Log Channel Multi-Timeframe Screener
A powerful screening tool that identifies stocks with bullish logarithmic regression channels across multiple timeframes. This indicator helps traders find high-quality opportunities by filtering stocks where both 5-minute and 15-minute log channels show upward trends.
🔍 KEY FEATURES:
• Multi-timeframe analysis (1m, 5m, 10m, 15m, 30m, 1D, 1W)
• Logarithmic regression channel calculation
• Real-time green/red channel status detection
• Built-in screening conditions for stock selection
• Visual table showing all timeframe statuses
📊 SCREENING CONDITIONS:
• "5min_green" = 1 (5-minute channel is bullish)
• "15min_green" = 1 (15-minute channel is bullish)
• "both_green" = 1 (Both 5m and 15m channels are bullish)
• "strict_qualified" = 1 (5m, 15m, and 30m all bullish)
• "very_strict" = 1 (All timeframes bullish)
🎨 VISUAL ELEMENTS:
• Color-coded status table (Green = Bullish, Red = Bearish)
• Signal labels when channels turn green
• Real-time status updates
⚡ HOW TO USE:
1. Add indicator to any chart
2. Use in TradingView Stock Screener
3. Set condition: "both_green = 1" for basic screening
4. Combine with volume and price filters for better results
🎯 BEST FOR:
• Swing trading setups
• Multi-timeframe trend confirmation
• Stock screening and watchlist building
• Trend following strategies
📈 ALGORITHM:
Based on logarithmic regression analysis where:
• Green Channel: end > start (upward trend)
• Red Channel: end ≤ start (downward trend)
Perfect for traders who want to identify stocks with aligned bullish momentum across multiple timeframes.
#StockScreener #LogarithmicRegression #MultiTimeframe #TrendAnalysis #SwingTrading
Indicador Strong Buy + VolumeBaseado em indicadores de forte entrada associados a um alto volume. GODINHO
SW HLHH-LL noktalarını pivot değerlerini işaretler
This script calculates and displays pivot points based on the classic formula, helping traders identify key support and resistance levels. It includes the central pivot point (P), as well as three levels of support (S1, S2, S3) and resistance (R1, R2, R3).
Ideal for intraday, swing, and long-term trading strategies.
You can customize the timeframe (daily/weekly/monthly) to fit your trading style.
Features:
Classic Pivot Point calculation
Clear visualization of S/R levels
Adjustable timeframe inputs
Useful for identifying trend reversals and breakout zones
Enhanced S/D Boring-Explosive [Visual Clean]**Enhanced S/D Boring-Explosive \ **
The Enhanced S/D Boring-Explosive Indicator uniquely combines Supply and Demand zones with volatility-based candle detection ("boring" and "explosive" candles), visually highlighting precise market reversals and breakout opportunities clearly on your chart.
= Key Features:
* **Dynamic Supply/Demand Zones**: Automatically detects recent significant pivot highs and lows, creating clearly defined Supply (red) and Demand (green) zones, aiding traders in pinpointing potential reversal areas.
* **Volatility-Based Candle Classification**:
* **Boring Candles (Yellow Dot)**: Identifies low-volatility candles using Adaptive Average True Range (ATR), signaling potential market indecision or accumulation phases.
* **Explosive Candles (Orange Arrow)**: Highlights candles with significant breakouts immediately following a "boring" candle, suggesting strong directional momentum.
* **Multi-Timeframe (MTF) Analysis Panel**: Provides clear visual feedback of higher timeframe sentiment directly on your chart, improving context and confirmation of trading signals.
* **Clean Visual Interface**: Designed to reduce clutter and enhance readability with clearly distinguishable symbols and zones.
- How it Works (Conceptual Overview):
This indicator uses:
* **Adaptive ATR** to determine candle volatility, categorizing them into two types:
* **Boring candles**: Marked when the candle’s total range and body size are significantly lower than typical volatility (customizable via input).
* **Explosive candles**: Identified when a candle dramatically breaks the high or low of a previously marked "boring candle," indicating strong breakout momentum.
* **Supply/Demand Zones**: Calculated dynamically by locating pivot highs and lows, defining areas of likely institutional order accumulation and distribution, which are prime reversal or breakout zones.
- Practical Use Cases & Examples:
* **Timeframes and Markets**: Ideal for intraday trading (5-minute to 1-hour charts) and swing trading (4-hour to Daily charts), particularly effective on volatile markets such as Forex (EUR/USD, GBP/USD), commodities (Gold - XAU/USD), and major cryptocurrencies.
* **Trading Signals**:
* **Reversal Trading**: Enter trades near identified Supply (sell) or Demand (buy) zones upon confirmation by an explosive candle.
* **Breakout Trading**: Explosive candles breaking above/below Supply/Demand zones indicate potential breakout trades.
* **MTF Confirmation**: Higher timeframe status (MTF panel) strengthens trade confidence. For example, a lower timeframe explosive candle aligning with a higher timeframe "Explosive" status enhances trade conviction.
- Alerts Included:
* Immediate alerts for both "Boring Candles" (anticipating possible breakouts) and "Explosive Breakouts" (clear entry signals), allowing efficient and timely market entry.
- Why Closed-Source?
The indicator employs an optimized proprietary volatility-based algorithm combined with advanced pivot detection logic. Keeping it closed-source protects this unique intellectual property, ensuring its continued effectiveness and exclusivity for our user base.
---
Use this comprehensive tool to enhance your technical analysis and gain clearer insights into market sentiment, volatility shifts, and critical trade entry points.
ND Egitim - AI Oto FibonacciAutomatic Fibonacci & HH/LL Trend Analysis
This indicator automatically determines the optimal lookback bar count based on market conditions and the specific symbol, then identifies the most recent “Higher High” (HH) and “Lower Low” (LL) points on your chart. It draws a Fibonacci system between these two points, allowing you to instantly visualize potential retracement and extension levels that may act as key support and resistance zones. Additionally, the indicator provides a quick overview of the overall market trend and volatility.
What does it do?
• Fibonacci Levels: Classic Fibonacci levels such as 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, and 100% are drawn automatically on the chart. Additional extension and negative levels are also displayed as needed.
• Trend Direction: The general market trend (bullish, bearish, or sideways) is visualized based on the relative positioning of HH/LL points and the structure of moving averages.
• Alert Conditions: Built-in alerts notify you when the price breaks key Fibonacci levels.
Siyonacci-powerWith this indicator:
Volume momentum volume line filters the trend.
ATR bands control volatility.
You get alerts for volume mismatch.
MSB peak-bottom breakouts are visible.
MACD momentum histogram in the bottom panel confirms the strength of the signal.
Fisher Transform Background StripesA simple indicator to provide the user with background stripes on the candle chart showing Fisher Transform Oversold and Overbought Levels.
Stochastic RSI with MFI & DivergencesIts a simple indicator based on STOCH RSI and money flow index. It prints when the market is overbought and oversold with red and green dots on the value line, plus there's a median value line that represents the money flow, whcih flashed green when its positive and red when the money flow is negative, thus giving clear bullish /bearish divergence signals.
Do let me know what you think as it gives encouragement to keep doing this.
Alyamani KOR – Master Build v1//@version=5
indicator("Alyamani KOR – Master Build v1", overlay=true)
// إعدادات العرض
show_fvg = input.bool(true, "عرض FVG")
show_ob = input.bool(true, "عرض Order Block")
show_bb = input.bool(true, "عرض Breaker Block")
require_poi = input.bool(true, "اظهار OB فقط عند مناطق اهتمام؟")
// --- شروط عامة ---
isSweep = low < low and low < low
hasSmallHigh = high < high and high < high
isMSS = close > high and (close - open ) > (high - low ) * 0.6
// --- كشف FVG ---
isFVG = low > high
if isFVG and show_fvg
box.new(left=bar_index , right=bar_index, top=high , bottom=low , border_color=color.orange, bgcolor=color.new(color.orange, 85))
// --- اكتشاف Order Block ---
var float ob_top = na
var float ob_bottom = na
var int ob_bar = na
var bool ob_active = false
// --- منطقة اهتمام بدائية: هل يوجد FVG قرب الشمعة؟
near_poi = isFVG
// --- شروط OB المثالي ---
isValidOB = isSweep and hasSmallHigh and isMSS and (not require_poi or near_poi)
if isValidOB and show_ob
ob_top := high
ob_bottom := low
ob_bar := bar_index
ob_active := true
box.new(left=bar_index , right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.green, bgcolor=color.new(color.green, 85))
// --- Breaker Block detection ---
breaker_valid = ob_active and close > ob_top and low <= ob_top
if breaker_valid and show_bb
box.new(left=ob_bar, right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.red, bgcolor=color.new(color.red, 85))
ob_active := false // إنهاء OB
Scanner Candles v2.01The "Scanner Candle v.2.01" is an indicator classifies candles based on the body/range ratio: indecisive (small body, ≤50%), decisive (medium body), explosive (large body, ≥70%). It includes EMAs to identify trends and "Reset Candles" (RC), small-bodied candles near EMAs, signaling potential reversals or continuations. Useful for analyzing volatility, breakouts, reversals, and risk management.
Description of the indicator:
The "Scanner Candle v.2.01" indicator classifies candles into three categories based on the proportion of the candle's body to its range (high-low):
Indecisive: candles with a small body (≤ set threshold, default 50%), indicating low volatility or market uncertainty.
Decisive: candles with a medium body, reflecting a clear but not extreme price movement.
Explosive: candles with a large body (≥ set threshold, default 70%), signaling strong directional moves.
Additionally, the indicator includes:
Customizable exponential moving averages (EMAs) to identify trends and support/resistance levels.
Detection of "Reset Candles" (RC), specific candles (e.g., dojis, ) with a small bodies body near EMAs, useful for identifying potential reversal or continuation points.
Coloring and visualization:
Candles are colored by category (white for indecisive, orange for decisive, purple for explosive).
Reset Candles are marked with circles above/below the candle (green for bullish, red for bearish).
Potential uses:
Volatility analysis: Identifying uncertain (indecisive), directional (decisive), or impulsive (explosive) market phases.
Breakout trading: Explosive candles can signal entry opportunities on strong moves.
Reversal detection: Reset Candles near EMAs can indicate turning points or trend continuation.
Trend-following support: Integrated EMAs contextualize candles within the main trend.
Risk management: Indecisive candles suggest avoiding trades in low-directionality phases.
The indicator is customizable (thresholds, colors, thresholdsEMAs, ) and adaptable to various timeframes and strategies, from day trading to swing trading.
Reset Candles:
Reset Candles (RC) are specific candles signaling potential reversals or continuations, often near EMAs. They are defined by:
Small body: Body < 5% of the range of the last 10 candles, indicating low volatility (e.g., doji).
EMA proximity: The candle is near or crosses a defined EMA (e.g., 10, 60, or 223 periods).
Trend conditions: Follows a red candle, with the close of the previous previous candles above a specific EMA, suggesting a potential bullish resumption or stabilization.
Limited spike: The candle has minimal tails (spikes, ) below a set threshold (default 1%).
Minimum timeframe: Appears on timeframes ≥ set value (default 5 minutes) or daily charts.
Non-consecutive: Not preceded by other RCs in the last 3 candles.
Types:
Doji_fin: Green circle above, signaling a bullish bullish setup near longer EMAs.
Dojifin_2: Yellow Red circle below, signaling a bearish setup near shorter EMAs.
Trading uses:
Reversal: RCs near EMAs signal bounces or rejections, ideal for counter-trend trades.
Continuation: In trends, RCs indicate pauses before trend resumption, offering low-risk entries.
Support/resistance confirmation: EMA proximity strengthens the level's significance.
Risk management: Small bodies and EMA proximity allow tight stop-losses.
Limitations:
False signals: Common in volatile or sideways markets; use with additional confirmation.
Timeframe dependency: More reliable on higher timeframes (e.g., 1-hour or daily).
Customization needed: Thresholds (e.g., spike, timeframe) must be tailored to the market.
Conclusion:
Reset Candles highlight low-volatility moments near technical levels (EMAs) that may precede significant moves. They are ideal for precise entries with tight stops in reversal or continuation strategies but require clear market context and additional confirmation for optimal effectiveness.
#ema #candlepattern #scalping
deltaMomentumVERSION = 1.4
2 MA where the average is taken of the high and low of the aformentioned MAs and a 144 period average is applied to this average. The MA average bouncing above or below the GAP indicates accumulation and once it (green line) crosses you will often see a release of stored momentum in the form of relatively large price movement.
MohdTZ - Simplified IndicatorAdded EMA 36 Band Cloud:
Created a new "EMA 36 Band Settings" group with:
ema36_band_multiplier: A float input (default 0.43, min 0.1, step 0.1) to control the band width relative to ATR.
ema36_band_color: A color input (default gray with 39% transparency) for the band fill.
Calculated the bands using the EMA 36 value plus/minus the ATR (fixed at 14 for simplicity) multiplied by the user-defined multiplier.
Plotted the upper and lower bands as invisible lines (linewidth=0) and filled the area between them with a semi-transparent color (80% transparency).
Kept Other Features:
Retained the customizable EMA 13, 36, and 200 with adjustable lengths, colors, and line widths.
Kept the watermark functionality unchanged.
Simplified Approach:
Used a fixed ATR length (14) for the band calculation to keep it simple. If you want the ATR length to be customizable, let me know, and I can add it as an input.
How to Use
Add to TradingView:
Paste the script into TradingView’s Pine Editor.
Ensure you’re using Pine Script v5.
Click "Add to Chart."
Customize EMAs and Bands:
EMA Settings: Adjust "EMA 13 Length/Color/Line Width," "EMA 36 Length/Color/Line Width," and "EMA 200 Length/Color/Line Width" as desired.
EMA 36 Band Settings: Modify "EMA 36 Band Multiplier" to change the band width and "EMA 36 Band Color" to change the fill color.
Watermark settings remain available for customization.
Test on Chart:
Apply to a chart (e.g., BTC/USD on 1H).
Verify the EMAs (13, 36, 200) plot with the chosen settings.
Check that the EMA 36 band cloud appears around the EMA 36 line, with the fill color and width adjustable via the multiplier.
Notes
Band Logic: The cloud is based on ATR multiplied by a user-defined factor, similar to the original ATR bands. This creates a volatility-based envelope around the EMA 36.
Customization: The band multiplier and color are adjustable. If you want a fixed offset instead of ATR-based bands, or a customizable ATR length, let me know!
Performance: Adding the band cloud is lightweight and shouldn’t impact performance significantly.
Upgrade to v6: If you’d like to move to Pine Script v6 to address deprecation warnings (e.g., transp to color.new()), I can update the script accordingly.
If you need further adjustments (e.g., different band calculation, additional features), please let me know!
learn about ATR bands
explore Bollinger Bands
SunAlgo Wealth Builder | SMA20 + RSI20Created by SunAlgo
This indicator is a swing trading strategy designed to help long-term investors and position traders grow wealth steadily by riding strong stock trends. It combines trend-following logic (SMA20) with a momentum confirmation filter (RSI20) to identify high-probability bullish entries and secure exits.
✅ Strategy Logic (Weekly Chart):
Entry Conditions:
Price crosses above the 20-week Simple Moving Average (SMA20) from below.
Then, RSI(20) crosses above 60, confirming bullish momentum.
A Buy signal is generated at the open of the candle where RSI > 60.
Exit Condition:
A Sell signal is triggered when the price closes below SMA20.
📈 Features:
Buy/Sell signals marked directly on the chart.
Labels display entry and exit prices, along with profit per share and % return.
Built specifically for weekly stock charts to avoid market noise and favor strong trends.
Plots the SMA20 for trend guidance and clarity.
💼 Ideal Use Case:
For stocks showing trend re-acceleration after pullbacks.
Works best on high-volume, fundamentally strong equities.
Suitable for long-term capital growth portfolios.
⚠️ Note:
This indicator is for educational and research purposes only. Always use proper risk management and trade with your own discretion.
🔗 Part of the growing SunAlgo Strategy Series — precision tools for disciplined wealth-building.
RSI-Adaptive Buy/Sell Alerts [Dr.K.C.Prakash]🧠 Indicator Name: RSI-Adaptive Buy/Sell Alerts
📌 Purpose:
This indicator uses RSI (Relative Strength Index) to dynamically adjust the smoothing length of a T3 moving average, creating a responsive trend-following tool. It identifies trend reversals by detecting T3 crossovers with its historical value and generates Buy/Sell alerts accordingly.
📈 Visuals:
🔷 Blue T3 line = Uptrend
🟠 Orange T3 line = Downtrend
🟢 BUY label below bar = Bullish crossover
🔴 SELL label above bar = Bearish crossover
📋 Adaptive T3 length is shown in a live table on the chart
🔔 Alerts:
✅ Buy Alert when trend turns bullish
✅ Sell Alert when trend turns bearish
(Ready to be used for email, pop-up, webhook, etc.)
Continuous CVD CandlesEliminates the built-in CVD’s daily reset—continues accumulating across midnight
Cumulative Volume Delta (CVD):
Measures the net difference between aggressive buying and selling volume over time. A rising CVD means more volume on up-ticks; a falling CVD means more volume on down-ticks.
Key Modifications
Per-bar Delta Calculation
Computes each bar’s delta as lastVol – openVol from a chosen lower timeframe, instead of relying on a daily anchor that resets.
Fallback Delta Logic
When lower-timeframe data is unavailable or zero, substitutes the full bar’s signed volume (volume × (close>=open?+1:–1)) to ensure every bar moves the curve.
Persistent Accumulation
Stores the running total in a var variable so it persists across days and never resets at midnight or on each new anchor period.
Candlestick Rendering
Builds OHLC values from the continuous total and uses plotcandle() to draw teal candles on net-positive bars and red on net-negative, giving a clear uninterrupted view of cumulative buying/selling pressure.
Support & Resistance with BreakoutAbsolutely! Below is a TradingView Pine Script v5 indicator that:
✅ Automatically identifies Support and Resistance zones using swing highs/lows
✅ Detects breakouts above resistance (BUY) and below support (SELL)
✅ Gives visual signals (arrows + labels) on breakout candles
✅ Works on any timeframe (5m, 15m, 1H, 4H, etc.)