Volume Breakout Candle Signals(Mastersinnifty)Description
The Volume Breakout Candle Signals indicator highlights price candles that occur with unusually high volume compared to recent history. By combining a moving average of volume with a user-defined breakout multiplier, it identifies bullish and bearish breakout candles and marks them directly on the chart.
How It Works
Calculates a Simple Moving Average (SMA) of volume over a user-selected period.
Compares current bar volume to the SMA multiplied by a breakout factor.
Flags candles as:
• Bullish breakout if volume is high and the candle closes higher than it opened.
• Bearish breakout if volume is high and the candle closes lower than it opened.
Marks breakout points with visual labels and background highlights for quick identification.
Inputs
Volume MA Length – Period for calculating the moving average of volume.
Breakout Multiplier – Factor above the average volume to qualify as a breakout.
Show Bullish Signals – Toggle bullish breakout labels.
Show Bearish Signals – Toggle bearish breakout labels.
Use Case
Identify potential breakout opportunities driven by significant market participation.
Spot volume surges that may precede trend continuation or reversals.
Combine with price action or other indicators for confirmation.
Useful for intraday scalping, swing trading, and breakout strategies.
Disclaimer
This tool is intended for educational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results. Always perform your own analysis before making any trading decisions.
Chart patterns
Weakening Selling Pressure FinderDescription:
This indicator helps traders identify potential trend reversals by detecting when selling pressure is weakening.
It uses the MACD histogram to spot moments when bearish momentum is still present but fading — a condition that often precedes a shift to bullish sentiment.
The indicator:
Highlights points where the MACD histogram is negative but rising
Marks these spots with a 📈 label for easy chart scanning
Works on any crypto pair and timeframe
Traders can use it to:
Spot early reversal setups before the crowd reacts
Time entries for potential trend changes
Complement other indicators like RSI, AO, or price action
This is a momentum shift detection tool — perfect for swing traders, scalpers, or anyone looking for early bullish signals after extended selling pressure.
WaveMap: Elliott Wave & Fibonacci Targets(Mastersinnifty)Description
WaveMap: Elliott Wave & Fibonacci Targets is a multi-purpose wave analysis tool designed to identify Elliott Wave patterns, draw price projections, and display Fibonacci retracement levels directly on the chart. It combines pivot detection with pattern recognition to highlight potential impulse and corrective phases, along with probable future targets.
How It Works
Uses pivot highs and lows to detect swing points over a user-defined length.
Identifies basic Elliott Wave structures as Impulse Up, Impulse Down, or Corrective.
Calculates price targets based on typical wave relationships (e.g., 1.618× Wave 1 for Wave 3).
Plots Fibonacci retracement levels between the most recent swing high and low.
Displays projections for up to three potential future targets using dashed lines and labels.
Provides an information table showing current wave type, wave count, price, and trend bias.
Generates alerts when new wave highs or lows are detected.
Inputs
Wave Detection Length – Number of bars used for pivot identification.
Future Projection Bars – How far ahead projections are plotted.
Wave Sensitivity – Adjusts detection sensitivity for wave turns.
Show Wave Labels – Toggles the on-chart information table.
Show Future Projections – Enables/disables projection lines and targets.
Show Fibonacci Levels – Enables/disables Fibonacci retracement lines and labels.
Wave Lines Color – Color for wave connection lines.
Projection Color – Color for projected target lines.
Fibonacci Color – Color for Fibonacci retracement levels.
Use Case
Identify and visualize Elliott Wave patterns to assist in market structure analysis.
Plan trade entries and exits using projected wave targets.
Combine wave detection with Fibonacci retracement for confluence zones.
Track trend bias and momentum during live trading sessions.
Disclaimer
This script is for educational and informational purposes only. Elliott Wave and Fibonacci projections are subjective and should be used in conjunction with other forms of technical analysis. Past performance does not guarantee future results. Always perform your own research and manage risk appropriately before trading.
Gelişmiş Mum Ters StratejiAdvanced Candle Reversal Strategy Overview
This TradingView PineScript indicator detects potential reversal signals in candlestick patterns, focusing on a sequence of directional candles followed by a wick-based reversal candle. Here's a step-by-step breakdown:
User Inputs:
candleCount (default: 6): Number of consecutive candles required (2–20).
wickRatio (default: 1.5): Minimum wick-to-body ratio for reversal (1.0–5.0).
Options to show background colors and an info table.
Candle Calculations:
Computes body size (|close - open|), upper wick (high - max(close, open)), and lower wick (min(close, open) - low).
Identifies bullish (close > open) or bearish (close < open) candles.
Checks for long upper wick (≥ body * wickRatio) for short signals or long lower wick for long signals.
Sequence Check:
Verifies if the last candleCount candles are all bearish (for long signal) or all bullish (for short signal), including the current candle.
Signal Conditions:
Long Signal: candleCount bearish candles + current candle has long lower wick (plotted as green upward triangle below bar with "LONG" text).
Short Signal: candleCount bullish candles + current candle has long upper wick (plotted as red downward triangle above bar with "SHORT" text).
Additional Features:
Alerts for signals with custom messages.
Optional translucent background color (green for long, red for short).
Plots tiny crosses for long wicks not triggering full signals (yellow above for upper, orange below for lower).
Info table (top-right): Displays strategy summary, candle count, and signal explanations.
Debug label: On signals, shows wick/body ratio above the bar.
The strategy aims for reversals after trends (e.g., after 6 red candles, a red candle with long lower wick signals buy). Customize via inputs; backtest for effectiveness. Not financial advice.
Hurst Cycle Projections & Market Phase Analyzer(Mastersinnifty)Description
The Hurst Cycle Projections & Market Phase Analyzer is a technical analysis tool designed to detect dominant market cycles, project potential future price paths, and identify prevailing market phases. Using the Hurst exponent, harmonic cycle analysis, and trend strength evaluation, it provides traders with visual cycle channels, forward projections, and an at-a-glance market condition table.
This indicator is ideal for traders who want to combine cycle theory with trend analysis for timing entries, exits, and managing risk.
How It Works
Calculates the Hurst exponent to determine whether the market is trending or mean-reverting.
Identifies the dominant cycle length using pivot-based cycle detection.
Generates a cycle price channel to frame current market action.
Performs harmonic analysis to track multiple related cycles.
Projects future price levels based on cycle phase, trend strength, and mean reversion tendencies.
Displays a summary table with Hurst exponent, cycle length, trend strength, cycle phase, and market state.
Includes alerts for Hurst exponent crossovers and cycle turning points.
Inputs
Cycle Analysis Length – Number of bars used for cycle detection and Hurst exponent calculation.
Projection Bars – Number of future bars to project prices.
Show Cycle Lines – Toggle visibility of cycle markers.
Show Price Projections – Enable/disable forward price lines.
Show Cycle Channel – Display cycle-based price channel.
Cycle Sensitivity – Adjust responsiveness of cycle detection.
Colors – Customize cycle, projection, and channel colors.
Use Case
Identify whether the market is currently trending or mean-reverting.
Anticipate potential price turning points based on cycle phases.
Project possible future price levels for trade planning.
Spot trend strength and direction within the context of cycles.
Assist in swing trading, position trading, or long-term analysis.
Disclaimer
This indicator is for educational and analytical purposes only. It does not constitute financial advice. Trading in financial markets involves risk, and past performance is not indicative of future results. Always use proper risk management and consult with a licensed financial professional before making investment decisions.
Nifty50 Swing Trading Super Indicator# 🚀 Nifty50 Swing Trading Super Indicator - Complete Guide
**Created by:** Gaurav
**Date:** August 8, 2025
**Version:** 1.0 - Optimized for Indian Markets
---
## 📋 Table of Contents
1. (#quick-start-guide)
2. (#indicator-overview)
3. (#installation-instructions)
4. (#parameter-settings)
5. (#signal-interpretation)
6. (#trading-strategy)
7. (#risk-management)
8. (#optimization-tips)
9. (#troubleshooting)
---
## 🎯 Quick Start Guide
### What You Get
✅ **2 Complete Pine Script Indicators:**
- `swing_trading_super_indicator.pine` - Universal version for all markets
- `nifty_optimized_super_indicator.pine` - Specifically optimized for Nifty50 & Indian stocks
✅ **Key Features:**
- Multi-component signal confirmation system
- Optimized for daily and 3-hour timeframes
- Built-in risk management with dynamic stops and targets
- Real-time signal strength monitoring
- Gap analysis for Indian market characteristics
### Immediate Setup
1. Copy the Pine Script code from `nifty_optimized_super_indicator.pine`
2. Paste into TradingView Pine Editor
3. Add to chart on daily or 3-hour timeframe
4. Look for 🚀BUY and 🔻SELL signals
5. Use the information table for signal confirmation
---
## 🔍 Indicator Overview
### Core Components Integration
**🎯 Range Filter (35% Weight)**
- Primary trend identification using adaptive volatility filtering
- Optimized sampling period: 21 bars for Indian market volatility
- Enhanced range multiplier: 3.0 to handle market gaps
- Provides trend direction and strength measurement
**⚡ PMAX (30% Weight)**
- Volatility-adjusted trend confirmation using ATR-based calculations
- Dynamic multiplier adjustment based on market volatility
- 14-period ATR with 2.5 multiplier for swing trading sensitivity
- Offers trailing stop functionality
**🏗️ Support/Resistance (20% Weight)**
- Dynamic level identification using pivot point analysis
- Tighter channel width (3%) for precise Indian market levels
- Enhanced strength calculation with historical interaction weighting
- Provides entry/exit timing and breakout signals
**📊 EMA Alignment (15% Weight)**
- Multi-timeframe moving average confirmation
- Key EMAs: 9, 21, 50, 200 (popular in Indian markets)
- Hierarchical alignment scoring for trend strength
- Additional trend validation layer
### Advanced Features
**🌅 Gap Analysis**
- Automatic detection of significant price gaps (>2%)
- Gap strength measurement and impact on signals
- Specific optimization for Indian market overnight gaps
- Visual gap markers on chart
**⏰ Multi-Timeframe Integration**
- Higher timeframe bias from daily/weekly data
- Configurable daily bias weight (default 70%)
- 3-hour confirmation for precise entry timing
- Prevents counter-trend trades against major timeframe
**🛡️ Risk Management**
- Dynamic stop-loss calculation using multiple methods
- Automatic profit target identification
- Position sizing guidance based on signal strength
- Anti-whipsaw logic to prevent false signals
---
## 📥 Installation Instructions
### Step 1: Access TradingView
1. Open TradingView.com
2. Navigate to Pine Editor (bottom panel)
3. Create a new indicator
### Step 2: Copy the Code
**For Nifty50 & Indian Stocks (Recommended):**
```pinescript
// Copy entire content from nifty_optimized_super_indicator.pine
```
**For Universal Use:**
```pinescript
// Copy entire content from swing_trading_super_indicator.pine
```
### Step 3: Configure and Apply
1. Click "Add to Chart"
2. Select daily or 3-hour timeframe
3. Adjust parameters if needed (defaults are optimized)
4. Enable alerts for signal notifications
### Step 4: Verify Installation
- Check that all components are visible
- Confirm information table appears in top-right
- Test with known trending stocks for signal validation
---
## ⚙️ Parameter Settings
### 🎯 Range Filter Settings
```
Sampling Period: 21 (optimized for Indian market volatility)
Range Multiplier: 3.0 (handles overnight gaps effectively)
Source: Close (most reliable for swing trading)
```
### ⚡ PMAX Settings
```
ATR Length: 14 (standard for daily/3H timeframes)
ATR Multiplier: 2.5 (balanced for swing trading sensitivity)
Moving Average Type: EMA (responsive to price changes)
MA Length: 14 (matches ATR period for consistency)
```
### 🏗️ Support/Resistance Settings
```
Pivot Period: 8 (shorter for Indian market dynamics)
Channel Width: 3% (tighter for precise levels)
Minimum Strength: 3 (higher quality levels only)
Maximum Levels: 4 (focus on strongest levels)
Lookback Period: 150 (sufficient historical data)
```
### 🚀 Super Indicator Settings
```
Signal Sensitivity: 0.65 (balanced for swing trading)
Trend Strength Requirement: 0.75 (high quality signals)
Gap Threshold: 2.0% (significant gap detection)
Daily Bias Weight: 0.7 (strong higher timeframe influence)
```
### 🎨 Display Options
```
Show Range Filter: ✅ (trend visualization)
Show PMAX: ✅ (trailing stops)
Show S/R Levels: ✅ (key price levels)
Show Key EMAs: ✅ (trend confirmation)
Show Signals: ✅ (buy/sell alerts)
Show Trend Background: ✅ (visual trend state)
Show Gap Markers: ✅ (gap identification)
```
---
## 📊 Signal Interpretation
### 🚀 BUY Signals
**Requirements for BUY Signal:**
- Price above Range Filter with upward trend
- PMAX showing bullish direction (MA > PMAX line)
- Support/resistance breakout or favorable positioning
- EMA alignment supporting upward movement
- Higher timeframe bias confirmation
- Overall signal strength > 75%
**Signal Strength Indicators:**
- **90-100%:** Extremely strong - Maximum position size
- **80-89%:** Very strong - Large position size
- **75-79%:** Strong - Standard position size
- **65-74%:** Moderate - Reduced position size
- **<65%:** Weak - Wait for better opportunity
### 🔻 SELL Signals
**Requirements for SELL Signal:**
- Price below Range Filter with downward trend
- PMAX showing bearish direction (MA < PMAX line)
- Resistance breakdown or unfavorable positioning
- EMA alignment supporting downward movement
- Higher timeframe bias confirmation
- Overall signal strength > 75%
### ⚖️ NEUTRAL Signals
**Characteristics:**
- Conflicting signals between components
- Low overall signal strength (<65%)
- Range-bound market conditions
- Wait for clearer directional bias
### 📈 Information Table Guide
**Component Status:**
- **BULL/BEAR:** Current signal direction
- **Strength %:** Component contribution strength
- **Status:** Additional context (STRONG/WEAK/ACTIVE/etc.)
**Overall Signal:**
- **🚀 STRONG BUY:** All systems aligned bullish
- **🔻 STRONG SELL:** All systems aligned bearish
- **⚖️ NEUTRAL:** Mixed or weak signals
---
## 💼 Trading Strategy
### Daily Timeframe Strategy
**Setup:**
1. Apply indicator to daily chart of Nifty50 or Indian stocks
2. Wait for 🚀BUY or 🔻SELL signal with >75% strength
3. Confirm higher timeframe bias alignment
4. Check for significant support/resistance levels
**Entry:**
- Enter on signal bar close or next bar open
- Use 3-hour chart for precise entry timing
- Avoid entries during major news events
- Consider gap analysis for overnight positions
**Position Sizing:**
- **>90% Strength:** 3-4% of portfolio
- **80-89% Strength:** 2-3% of portfolio
- **75-79% Strength:** 1-2% of portfolio
- **<75% Strength:** Avoid or minimal size
### 3-Hour Timeframe Strategy
**Setup:**
1. Confirm daily timeframe bias first
2. Apply indicator to 3-hour chart
3. Look for signals aligned with daily trend
4. Use for entry/exit timing optimization
**Entry Refinement:**
- Wait for 3H signal confirmation
- Enter on pullbacks to key levels
- Use tighter stops for better risk/reward
- Monitor intraday support/resistance
### Risk Management Rules
**Stop Loss Placement:**
1. **Primary:** Use indicator's dynamic stop level
2. **Secondary:** Below/above nearest support/resistance
3. **Maximum:** 2-3% of portfolio per trade
4. **Trailing:** Move stops with PMAX line
**Profit Taking:**
1. **Target 1:** First resistance/support level (50% position)
2. **Target 2:** Second resistance/support level (30% position)
3. **Runner:** Trail remaining 20% with PMAX
**Position Management:**
- Review positions at daily close
- Adjust stops based on new signals
- Exit if trend changes to opposite direction
- Reduce size during high volatility periods
---
## 🎯 Optimization Tips
### For Nifty50 Trading
- Use daily timeframe for primary signals
- Monitor sector rotation impact
- Consider index futures for better liquidity
- Watch for RBI policy and global cues impact
### For Individual Stocks
- Verify stock follows Nifty correlation
- Check sector-specific news and events
- Ensure adequate liquidity for position size
- Monitor earnings calendar for volatility
### Market Condition Adaptations
**Trending Markets:**
- Increase position sizes for strong signals
- Use wider stops to avoid whipsaws
- Focus on trend continuation signals
- Reduce counter-trend trading
**Range-Bound Markets:**
- Reduce position sizes
- Use tighter stops and quicker profits
- Focus on support/resistance bounces
- Increase signal strength requirements
**High Volatility Periods:**
- Reduce overall exposure
- Use smaller position sizes
- Increase stop-loss distances
- Wait for clearer signals
### Performance Monitoring
- Track win rate and average profit/loss
- Monitor signal quality over time
- Adjust parameters based on market changes
- Keep trading journal for pattern recognition
---
## 🔧 Troubleshooting
### Common Issues
**Q: Signals appear too frequently**
A: Increase "Trend Strength Requirement" to 0.8-0.9
**Q: Missing obvious trends**
A: Decrease "Signal Sensitivity" to 0.5-0.6
**Q: Too many false signals**
A: Enable "3H Confirmation" and increase strength requirements
**Q: Indicator not loading**
A: Check Pine Script version compatibility (requires v5)
### Parameter Adjustments
**For More Sensitive Signals:**
- Decrease Signal Sensitivity to 0.5-0.6
- Decrease Trend Strength Requirement to 0.6-0.7
- Increase Range Filter multiplier to 3.5-4.0
**For More Conservative Signals:**
- Increase Signal Sensitivity to 0.7-0.8
- Increase Trend Strength Requirement to 0.8-0.9
- Enable all confirmation features
### Performance Issues
- Reduce lookback periods if chart loads slowly
- Disable some visual elements for better performance
- Use on liquid stocks/indices for best results
---
## 📞 Support & Updates
This super indicator combines the best of Range Filter, PMAX, and Support/Resistance analysis specifically optimized for Indian market swing trading. The multi-component approach significantly improves signal quality while the built-in risk management features help protect capital.
**Remember:** No indicator is 100% accurate. Always combine with proper risk management, market analysis, and your trading experience for best results.
**Happy Trading! 🚀**
RSI Divergence (Regular+Hidden) Detector(Mastersinnifty)Description
The RSI Divergence (Regular + Hidden) Detector identifies both regular and hidden divergences between price and the Relative Strength Index (RSI). It automatically marks divergence points on the chart using short-form labels for quick recognition:
RB – Regular Bullish Divergence
RS – Regular Bearish Divergence
HB – Hidden Bullish Divergence
HS – Hidden Bearish Divergence
This tool helps traders spot potential reversals or trend continuation setups with clear, on-chart visual signals.
How It Works
Calculates RSI based on user-selected source and length.
Scans a specified lookback range for matching high/low points in price and RSI.
Validates divergences based on minimum RSI difference and minimum price percentage difference.
Marks detected divergences with short-form labels directly on the price chart.
Allows toggling between regular and hidden divergence detection.
Inputs
RSI Length – Period for RSI calculation.
Lookback Bars – Number of bars to scan for divergence.
Minimum RSI Difference – Minimum required RSI value change between points.
Minimum Price Difference (%) – Minimum required price percentage change between points.
Overbought / Oversold Levels – RSI thresholds for signal validation.
Show Regular Divergences – Enable/disable regular divergence detection.
Show Hidden Divergences – Enable/disable hidden divergence detection.
Use Case
Identify potential reversal points using regular divergences.
Spot possible trend continuation opportunities with hidden divergences.
Enhance entry/exit timing by combining divergence signals with other technical tools.
Apply in any market and timeframe, from scalping to swing trading.
Disclaimer
This indicator is for educational and research purposes only. It does not guarantee future performance. Always combine signals with your own analysis and risk management strategy before making trading decisions.
Candlestick Suite–(Phoenix) it colors the major Reversal candlesticks
BullEngulf or BearEngulf or Engulfing() -> DARK_ORANGE
PiercingLine or DarkCloudCover -> CYAN
BullishHarami or BearishHarami -> YELLOW
BullishInsideBar or BearishInsideBar -> WHITE
Bearish Breakaway-Publish-FVG concept
This indicator tracks the intraday RTH (Regular Trading Hours) high in the bearish direction to identify breakaway candles based on the Fair Value Gap (FVG) and gap breakout concept. By default, the session runs from 9:30 AM to 5:00 PM EST, but the start time can be adjusted to track other sessions such as ETH beginning at 6:00 PM.
At the start of the session, the first candle is always considered the initial intraday high. This candle becomes the anchor, and the indicator continuously updates it whenever a new intraday high is made. A bearish breakaway occurs when a candle’s high is lower than the low of the current anchor candle, creating a gap between them. This first breakaway candle is marked with a red arrow. After the first breakaway, the indicator continues to look for additional breakaways in the bearish direction, each based on the most recent breakaway candle.
If a new intraday high is formed after a breakaway candle has appeared, the anchor is reset to this new high, all previous breakaway markers are removed, and the search starts over. The high and low of the most recent breakaway candle are drawn as horizontal rays, which can act as potential resistance or support depending on the trader’s bias.
You can backtest this indicator using TradingView’s Bar Replay feature to watch the resetting process as new intraday highs are made. Because the first candle of the session is always the first intraday high, the reset behavior is easy to observe in replay mode.
Timeframe recommendations: This tool works best on 1-minute, 5-minute, 15-minute, and 30-minute charts.
Trading tips:
• At the market open, always identify the first bearish breakaway candle.
• Once the intraday high stabilizes, a bearish run may follow — the first breakaway candle often marks the start of this move.
• To trade reversals from a bearish trend, watch for a bullish breakaway candle using the bullish companion indicator.
• If the daily trend is bullish, you will often see the intraday high reset many times — this is a sign to favor bullish trades.
• If trading reversals against the prevailing trend, use the breakaway candle as your signal for potential entry.
Bullish Breakaway-Publish
This indicator tracks the intraday RTH (Regular Trading Hours) low in the bullish direction to identify breakaway candles based on the Fair Value Gap (FVG) and gap breakout concept. By default, the session runs from 9:30 AM to 5:00 PM EST, but the start time can be adjusted to track other sessions such as ETH beginning at 6:00 PM.
At the start of the session, the first candle is always considered the initial intraday low. This candle becomes the anchor, and the indicator continuously updates it whenever a new intraday low is made. A bullish breakaway occurs when a candle’s low is higher than the high of the current anchor candle, creating a gap between them. This first breakaway candle is marked with a green arrow. After the first breakaway, the indicator continues to look for additional breakaways in the bullish direction, each based on the most recent breakaway candle.
If a new intraday low is formed after a breakaway candle has appeared, the anchor is reset to this new low, all previous breakaway markers are removed, and the search starts over. The high and low of the most recent breakaway candle are drawn as horizontal rays, which can act as potential support or resistance depending on the trader’s bias.
You can backtest this indicator using TradingView’s Bar Replay feature to watch the resetting process as new intraday lows are made. Because the first candle of the session is always the first intraday low, the reset behavior is easy to observe in replay mode.
Timeframe recommendations: This tool works best on 1-minute, 5-minute, 15-minute, and 30-minute charts.
Trading tips:
• At the market open, always identify the first breakaway candle.
• Once the intraday low stabilizes, a bullish run may follow — the first breakaway candle often marks the start of this move.
• To trade reversals from a bullish trend, watch for a bearish breakaway candle using the bearish companion indicator.
• If the daily trend is bearish, you will often see the intraday low reset many times — this is a sign to favor bearish trades.
• If trading reversals against the prevailing trend, use the breakaway candle as your signal for potential entry.
You should always trade in the daily trend direction and this indicator will give you the footprint of the daily trend as they are the breakaway candle.
Double EMA & SMAThis indicator plots two Exponential Moving Averages (EMAs) and one Simple Moving Average (SMA) directly on the price chart to help identify market trends and momentum shifts.
By default, it displays:
• EMA 1 (10-period) – short-term trend
• EMA 2 (20-period) – medium-term trend
• SMA (50-period) – broader trend baseline
The combination allows traders to quickly spot trend direction, potential reversal points, and areas of dynamic support or resistance. Suitable for scalping, swing trading, and longer-term analysis across any market.
PBR Strategy Assistant Gold.D FingerGold.D Finger Strategy. This indicator gives an overview of my first strategies with several confluences. I just wanted to test what it would look like in this format, but it does not exactly match the one I actually use.
EMA band 12/60/150/200EMA band consisting of 12/60/150/200
Specifically for Indian stock market, can be used for other trading scripts after testing.
Best use case : on Daily TF.
Bull run entry criteria, Not bear market or Bottom catching.
Key Box Zone Finder — ATR + EMA200 Filter//@version=5
indicator("Key Box Zone Finder — ATR + EMA200 Filter", overlay=true, max_lines_count=500, max_boxes_count=100, max_labels_count=500)
// ---------- Inputs ----------
len = input.int(60, "Box Length (bars)", minval=10)
maxWidthPct = input.float(0.6, "Max Box Width %", step=0.05)
edgeTolPct = input.float(0.08, "Edge tolerance %", step=0.01)
bins = input.int(8, "Bins inside box", minval=3, maxval=20)
extendBars = input.int(120, "Extend right (bars)", minval=0)
showTouches = input.bool(true, "Show edge touches")
showSubZone = input.bool(true, "Show densest sub-zone")
boxColor = input.color(color.new(color.teal, 85), "Box fill")
subBoxColor = input.color(color.new(color.orange, 75), "Sub-zone fill")
edgeLineColor = input.color(color.new(color.teal, 0), "Edge line color")
midLineColor = input.color(color.new(color.gray, 0), "Mid line color")
// فیلترها
atrLen = input.int(14, "ATR Length", minval=1)
atrMaxMult = input.float(0.5, "ATR Max % of Close", step=0.01)
emaLen = input.int(200, "EMA Length", minval=1)
emaDistancePct = input.float(0.5, "Max Distance % from EMA", step=0.1)
// ---------- Core calc ----------
hi = ta.highest(high, len)
lo = ta.lowest(low, len)
boxRange = hi - lo
boxRangePct = boxRange / math.max(close, 1e-6) * 100.0
isBoxWidth = boxRangePct <= maxWidthPct
// شمارش برخوردها
edgeTolHi = hi * (1 - edgeTolPct/100.0)
edgeTolLo = lo * (1 + edgeTolPct/100.0)
touchUpper = 0
touchLower = 0
for j = 0 to len - 1
touchUpper += (high >= edgeTolHi) ? 1 : 0
touchLower += (low <= edgeTolLo) ? 1 : 0
// ---------- ATR filter ----------
atrValue = ta.atr(atrLen)
atrCondition = (atrValue / close) * 100 <= atrMaxMult
// ---------- EMA200 filter ----------
emaValue = ta.ema(close, emaLen)
emaCondition = math.abs(close - emaValue) / close * 100 <= emaDistancePct
// ---------- Final filter ----------
isValidBox = isBoxWidth and atrCondition and emaCondition
// ---------- Draw main box ----------
var box bMain = na
var line lTop = na
var line lBot = na
var line lMid = na
var label labU = na
var label labL = na
if barstate.islast and isValidBox
if not na(bMain)
box.delete(bMain)
if not na(lTop)
line.delete(lTop)
if not na(lBot)
line.delete(lBot)
if not na(lMid)
line.delete(lMid)
if not na(labU)
label.delete(labU)
if not na(labL)
label.delete(labL)
left = bar_index - len + 1
right = bar_index + extendBars
bMain := box.new(left, hi, bar_index, lo, bgcolor=boxColor, border_color=edgeLineColor)
box.set_extend(bMain, extend.right)
lTop := line.new(left, hi, right, hi, extend=extend.right, color=edgeLineColor, width=1)
lBot := line.new(left, lo, right, lo, extend=extend.right, color=edgeLineColor, width=1)
mid = (hi + lo) / 2.0
lMid := line.new(left, mid, right, mid, extend=extend.right, color=midLineColor, style=line.style_dotted)
if showTouches
labU := label.new(bar_index, hi, "▲ touches: " + str.tostring(touchUpper), textcolor=color.white, color=color.new(color.teal, 0), style=label.style_label_down, size=size.tiny)
labL := label.new(bar_index, lo, "▼ touches: " + str.tostring(touchLower), textcolor=color.white, color=color.new(color.teal, 0), style=label.style_label_up, size=size.tiny)
// ---------- Densest sub-zone ----------
var box bSub = na
if barstate.islast and isValidBox and showSubZone and boxRange > 0
step = boxRange / bins
maxCount = -1
bestIdx = 0
for i = 0 to bins - 1
binLo = lo + step * i
binHi = binLo + step
cIn = 0
for j = 0 to len - 1
c = close
cIn += (c >= binLo and c <= binHi) ? 1 : 0
if cIn > maxCount
maxCount := cIn
bestIdx := i
subLo = lo + step * bestIdx
subHi = subLo + step
if not na(bSub)
box.delete(bSub)
bSub := box.new(bar_index - len + 1, subHi, bar_index, subLo, bgcolor=subBoxColor, border_color=color.new(color.orange, 0))
box.set_extend(bSub, extend.right)
label.new(bar_index, subHi, "Dense zone", style=label.style_label_down, textcolor=color.white, color=color.new(color.orange, 0), size=size.tiny)
// ---------- Alerts ----------
alertcondition(isValidBox, title="Valid Box Detected", message="Consolidation box detected with ATR & EMA filter")
Volume Profile (Simple)Simple Volume Profile (Simple)
Master the Market's Structure with a Clear View of Volume
by mercaderoaurum
The Simple Volume Profile (Simple) indicator removes the guesswork by showing you exactly where the most significant trading activity has occurred. By visualizing the Point of Control (POC) and Value Area (VA) for today and yesterday, you can instantly identify the price levels that matter most, giving you a critical edge in your intraday trading.
This tool is specifically optimized for day trading SPY on a 1-minute chart, but it's fully customizable for any symbol or timeframe.
Key Features
Multi-Day Analysis: Automatically plots the volume profiles for the current and previous trading sessions, allowing you to see how today's market is reacting to yesterday's key levels.
Automatic Key Level Plotting: Instantly see the most important levels from each session:
Point of Control (POC): The single price level with the highest traded volume, acting as a powerful magnet for price.
Value Area High (VAH): The upper boundary of the area where 50% of the volume was traded. It often acts as resistance.
Value Area Low (VAL): The lower boundary of the 50% value area, often acting as support.
Extended Levels: The POC, VAH, and VAL from previous sessions are automatically extended into the current day, providing a clear map of potential support and resistance zones.
Customizable Sessions: While optimized for the US stock market, you can define any session time and time zone, making it a versatile tool for forex, crypto, and futures traders.
Core Trading Strategies
The Simple Volume Profile helps you understand market context. Instead of trading blind, you can now make decisions based on where the market has shown the most interest.
1. Identifying Support and Resistance
This is the most direct way to use the indicator. The extended lines from the previous day are your roadmap for the current session.
Previous Day's POC (pPOC): This is the most significant level. Watch for price to react strongly here. It can act as powerful support if approached from above or strong resistance if approached from below.
Previous Day's VAH (pVAH): Expect this level to act as initial resistance. A clean break above pVAH can signal a strong bullish trend.
Previous Day's VAL (pVAL): Expect this level to act as initial support. A firm break below pVAL can indicate a strong bearish trend.
Example Strategy: If SPY opens and rallies up to the previous day's VAH and stalls, this is a high-probability area to look for a short entry, with a stop loss just above the level.
2. The "Open-Drive" Rejection
How the market opens in relation to the previous day's value area is a powerful tell.
Open Above Yesterday's Value Area: If the market opens above the pVAH, it signals strength. The first pullback to test the pVAH is often a key long entry point. The level is expected to flip from resistance to support.
Open Below Yesterday's Value Area: If the market opens below the pVAL, it signals weakness. The first rally to test the pVAL is a potential short entry, as the level is likely to act as new resistance.
3. Fading the Extremes
When price pushes far outside the previous day's value area, it can become overextended.
Reversal at Highs: If price rallies significantly above the pVAH and then starts to lose momentum (e.g., forming bearish divergence on RSI or a topping pattern), it could be an opportunity to short the market, targeting a move back toward the pVAH or pPOC.
Reversal at Lows: Conversely, if price drops far below the pVAL and shows signs of bottoming, it can be a good opportunity to look for a long entry, targeting a reversion back to the value area.
Recommended Settings (SPY Intraday)
These settings are the default and are optimized for scalping or day trading SPY on a 1-minute chart.
Value Area (%): 50%. This creates a tighter, more sensitive value area, perfect for identifying the most critical intraday zones.
Number of Rows: 1000. This high resolution is essential for a low-volatility instrument like SPY, ensuring that the profile is detailed and the levels are precise.
Session Time: 0400-1800 in America/New_York. This captures the full pre-market and core session, which is crucial for understanding the day's complete volume story.
Ready to trade with an edge? Add the Simple Volume Profile (Multi-Day) to your chart now and see the market in a new light!
SM Trap Detector – Liquidity Sweeps & Institutional ReversalsOverview:
This script is designed to help traders detect Smart Money traps, liquidity grabs, and false breakouts with high precision.
Inspired by institutional trading logic (SMC, ICT, Wyckoff), this tool combines:
🟦 Liquidity Zone Mapping – Detects stop hunt targets near highs/lows
🚨 Trap Candle Detection – Identifies fakeouts using wick + volume logic
✅ Reversal Confirmation – Entry signals based on real market structure
🧭 Dashboard Panel – Always see the last trap type, price, and confirmation
🔔 Real-Time Alerts – Stay notified of traps and entry points
🧠 Logic Breakdown:
Trap Candle = Large wick, small body, volume spike, and sweep of a liquidity zone
Confirmed Entry = Reversal price action following the trap (engulfing-style)
📈 Best Used On:
Markets: Crypto, Forex, Stocks
Timeframes: No limitation but works best on 1H, 4H, Daily
🛠 Suggested Use:
Trade only confirmed entries for best results
Place stops beyond wick highs/lows
Target previous structure or use RR-based exits
📊 Backtest Tip:
Use alerts + replay mode to manually validate past traps.
Note: Please backtest before using it for entry.
RSI (14) with Auto Zone Colors — Overbought/Oversold HighlighterThis indicator plots the Relative Strength Index (RSI 14) with dynamic color changes for instant visual clarity:
✅ Green line in overbought zone (≥70)
✅ Red line in oversold zone (≤30)
✅ White line in neutral range (30–70)
Includes reference lines at 70, 50, and 30 for quick decision-making. Perfect for spotting momentum extremes, divergences, and potential reversal points without squinting at numbers. Works on any timeframe.
Inverted Hammer w/ Buy Signal This indicator will identify inverted hammer candles in a downtrend and also provide a buy signal when the following candle closes above the top wick of the previous inverted hammer candle.
Tabela RSI e Tendência EMA MTF - 2This custom TradingView indicator provides a consolidated view of trend and Relative Strength Index (RSI) across multiple timeframes, all within an intuitive table directly on your chart. Designed for traders seeking quick and efficient analysis of market momentum and direction across different time horizons, this indicator automatically adapts to the asset you are currently viewing.
UNITY[ALGO] PO3 V3Of course. Here is a complete and professional description in English for the indicator we have built, detailing all of its features and functionalities.
Indicator: UNITY PO3 V7.2
Overview
The UNITY PO3 is an advanced, multi-faceted technical analysis tool designed to identify high-probability reversal setups based on the Swing Failure Pattern (SFP). It combines real-time SFP detection on the current timeframe with a sophisticated analysis of key institutional liquidity zones from the H4 timeframe, presenting all information in a clear, dynamic, and interactive visual interface.
This indicator is built for traders who use liquidity concepts, providing a complete dashboard of entries, targets, and invalidation levels directly on the chart.
Core Features & Functionality
1. Swing Failure Pattern (SFP) Detection (Current Timeframe)
The indicator's primary engine identifies SFPs on the chart's active timeframe with two layers of logic:
Standard SFP: Detects a classic liquidity sweep where the current candle's wick takes out the high or low of the previous candle and the body closes back within the previous candle's range.
Outside Bar SFP Logic: Intelligently analyzes engulfing candles that sweep both the high and low of the previous candle. A valid signal is only generated if the candle has a clear directional close:
Bullish Signal: If the outside bar closes higher than its open.
Bearish Signal: If the outside bar closes lower than its open.
Neutral (doji-like) outside bars are ignored to filter for indecision.
2. Comprehensive On-Chart SFP Markings
When a valid SFP is detected, a full suite of dynamic drawings appears on the chart:
Failure Line: A dashed line (red for bearish, green for bullish) marking the precise price level of the liquidity sweep.
PREMIUM ZONE (SFP Candle Wick): A transparent, colored rectangle highlighting the rejection wick of the signal candle (the upper wick for bearish SFPs, the lower wick for bullish SFPs). This zone automatically extends to the right, following the current price, until the DOL is hit.
CRT BOX (Reference Candle): A transparent box with a colored border drawn around the entire range of the candle that was swept (Candle 1). This highlights the full liquidity zone and also extends dynamically until the DOL is hit.
Dynamic Target Line: A blue dashed line marking the primary objective (the low of the signal candle for shorts, the high for longs).
The line begins with a "⏳ Target" label and extends with the current price.
Upon being touched by price, the line freezes, and its label permanently changes to "✅ Target".
Dynamic DOL (Draw on Liquidity) Line: An orange dashed line marking the invalidation level, defined as the opposite extremity of the swept candle (Candle 1).
It begins with a "⏳ dol" label and extends with the price.
Upon being touched, it freezes, and its label changes to "✅ dol".
3. Multi-Session Killzone Liquidity Levels (H4 Analysis)
The indicator automatically analyzes the H4 timeframe in the background to identify and plot key liquidity levels from three major trading sessions, based on their UTC opening times.
1am Killzone (London Lunch): Tracks the high/low of the 05:00 UTC H4 candle.
5am Killzone (London Open): Tracks the high/low of the 09:00 UTC H4 candle.
9am Killzone (NY Open): Tracks the high/low of the 13:00 UTC H4 candle.
For each of these Killzones, the indicator provides two types of analysis:
Last KZ Lines: Plots the high and low of the most recent qualifying Killzone candle. These lines are dynamic, extending with price and showing a ⏳/✅ status when touched.
Fresh Zones: A powerful feature that scans the entire available history of Killzones to find and display the closest untouched high (above the current price) and the closest untouched low (below the current price). These "Fresh" lines are also fully dynamic and provide a real-time view of the most relevant nearby liquidity targets.
4. Advanced User Settings & Chart Management
The indicator is designed for a clean and user-centric experience with powerful customization:
Show Only Last SFP: Keeps the chart clean by automatically deleting the previous SFP setup when a new one appears.
Hide SFP on DOL Reset: When checked, automatically removes all drawings related to an SFP setup the moment its invalidation level (DOL line) is touched. This leaves only active, valid setups on the chart.
Hide Consumed KZ: When checked, automatically removes any Killzone or Fresh Zone line from the chart as soon as it is touched by the price.
Independent Toggles: Every visual element—SFP signals, each of the three Killzones, and their respective "Fresh" zone counterparts—can be turned on or off independently from the settings menu for complete control over the visual display.
Z-Order Priority: All indicator drawings are rendered in front of the chart candles, ensuring they are always clearly visible and never hidden from view.
Index Contracts Calculator (NQ/ES) — Label"Quick micro futures position size calculator for NQ and ES. Enter risk in dollars and stop size in points, and it instantly shows how many contracts you can take — right on your chart."
ORB Scalp setup on 15min by UnenbatThis indicator draws a 2-minute Opening Range Box (ORB) at the beginning of each 15-minute candle by combining the last minute of the previous candle and the first minute of the current one. It highlights the session high/low during this range, and extends the box for a customizable duration. TP and BE lines are also plotted above/below the range for strategic planning. Perfect for scalpers using 15-minute timeframe.
anand ha + RsiHow it works:
Green Line: When RSI > 50 AND Heikin Ashi is bullish (uptrend)
Red Line: When RSI < 50 AND Heikin Ashi is bearish (downtrend)
The line dynamically positions itself below price during uptrends and above price during downtrends
Uses ATR to maintain appropriate distance from price action
Includes subtle background fill between price and the trend line
Key Features:
Single clean trend line (no candles, no extra indicators)
Color changes based on trend direction
Self-adjusting position using ATR
Smooth transitions to avoid whipsaws
Minimal visual clutter, just like SuperTrend
The line will stay green below price when both RSI is above 50 and Heikin Ashi shows bullish momentum, and red above price when both conditions turn bearish. This gives you a clear visual trend following system in a simple line format.
Crypto Trend Master Pro + Hull Trend (MARK804 Enhanced)Strategy Overview: Crypto Trend Master Pro + Hull Signals
Strategy Essence
This script merges multi-dimensional trend analysis by blending EMA-ATR trend filters with the precision of Hull Moving Averages. Focused solely on arrow-based trade signals, it delivers clean, high-conviction entries via fortified dual confirmation logic—all while maintaining a minimalist aesthetic for traders who prize clarity.
Key Components & Design Philosophy
Dual Confirmation Structure
Only triggers a BUY arrow when both the EMA-ATR slope indicates bullishness and the Hull MA confirms upward momentum. Similarly, a SELL arrow appears only when both bearish signals align—filtering noise and reinforcing signal conviction.
Hull MA Variant Flexibility
Traders can toggle between HMA, EHMA, or THMA versions of the Hull MA, calibrating the balance between responsiveness and smoothing based on preference and timeframe.
Minimalist Visual Interface
Discrete arrow shapes—green for BUY, red for SELL—appear directly on the chart, delivering precise signal points with no extraneous labeling or clutter.
Alert-Ready for Seamless Automation
Each signal format (BUY/SELL) is natively benchmarked with alertcondition, enabling seamless integration into automated workflows or notification systems.
Clean Code Architecture
Structured around strong boolean logic (longSignal, shortSignal), the script remains efficient, readable, and straightforward to adapt or integrate into broader systems.
Pro-Level Considerations
Feature Advantage for Professional Traders
Dual Confirmation Boosts reliability by aligning trend filters
Hull Variant Options Tailors sensitivity to different market volatilities
Arrow-Only UI Keeps chart focused and minimizes visual distraction
Alert Compatibility Straightforward integration with alert/automation tools
Modular Design Supports expansion—add stop-loss, multi-timeframe logic
Community-Level Insight
As one seasoned user put it:
“If you're a pro, you know where repaint comes in and how to avoid it. You understand slippage and test on demo accounts regularly.”