Mancini Levels Fixed Errors 11.26.25Fixed this amazing indicator for followers of Mancini. Thank you, @bitjanitor
Göstergeler ve stratejiler
ORB 15min: Break & ConfirmUsing the 15-minute opening candle range, this generates an alert when a 5-minute candle breaks the range and another 5-minute candle closes above the breakout candle's high or the high of any other candle that attempted to break the range.
Intra-Day SMAsIntra-Day SMAs is a simple yet essential tool for intraday traders who need to see daily moving average levels while working on lower timeframes. When you're trading on 5-minute, 15-minute, or hourly charts, it's critical to know where the key daily SMAs sit—these levels often act as significant support and resistance zones where price reacts. This indicator overlays up to four daily Simple Moving Averages directly onto your intraday chart, with default periods set to the most commonly watched levels: 5, 10, 20, and 50-day SMAs. Each SMA can be individually toggled on or off, with fully customizable colors and line widths to match your chart theme and visual preferences. While the indicator defaults to daily timeframe SMAs (the most common use case), an optional custom timeframe selector allows you to display SMAs from any higher timeframe—weekly, monthly, or any interval you choose. Whether you're scalping, day trading, or managing intraday entries for swing positions, having daily moving averages visible on your execution timeframe helps you anticipate potential turning points and avoid entering trades directly into overhead resistance or support. Clean, lightweight, and fully configurable.
Thedu BO c2rsi_color = rsi_value > 70 ? color.red : rsi_value < 30 ? color.lime : color.white
tb.cell(0, row, 'RSI(' + str.tostring(chu_ky_rsi) + ')', text_color = color.gray, text_size = size.tiny)
tb.cell(1, row, str.tostring(rsi_value, '#.##'), text_color = rsi_color, text_size = size.small)
row += 1
// ADX
adx_color = adx_value > 25 ? color.lime : adx_value > 20 ? color.yellow : color.gray
tb.cell(0, row, 'ADX(' + str.tostring(chu_ky_adx) + ')', text_color = color.gray, text_size = size.tiny)
tb.cell(1, row, str.tostring(adx_value, '#.##'), text_color = adx_color, text_size = size.small)
Ultimate Trend System YCThis is a state-machine-based short-term trend-following script designed for high-frequency precious metals trading.
Multifactor buy & sell signals: Entry and exit are governed by a combination of QQE momentum, SMA trend, multi-timeframe VWAP, and ATR volatility factors, with strict “choppy” market filtering.
Fake signals: Only shows a ‘FAKE’ label when at least two major factors are in conflict and conditions are not choppy, significantly reducing noise.
Trade management: Fully automatic BUY, SELL, and STOP signals with one-way position state; no redundant or cluttered signals.
Info panel: All filter factors and trade state are summarized in a top-right table for transparent decision making.
Visual cues: Background color clearly reflects current market state (bullish, bearish, choppy, or neutral) for easy monitoring.
Optimized for practitioners: Highly robust, well-filtered, and practical for intraday and algorithmic trading in volatile environments.
You can adjust the label size (tiny/small/normal) and parameters as needed.
This indicator is ideal for traders seeking reliable, multi-factor signals with robust filtering and clear trade management.
Delta Signals NO REPINTA (FINAL)📢 New Indicator: Delta Signals NO REPAINT 🔥
Introducing my new indicator based on Order Flow Delta, designed to provide buy and sell signals with absolutely NO repainting — perfect for scalping, day trading, or swing trading.
This tool combines two powerful components:
✅ Order Flow Delta — Measures the real strength between buyers and sellers
✅ Smart Trend Filter — Only shows signals in the direction of the dominant trend
Together, they deliver cleaner, more accurate and more reliable signals, with clear entry markers on the chart and a delta histogram revealing real market pressure.
🚀 What’s Included?
🔹 Buy/Sell signals with NO repaint
🔹 Intelligent delta calculation
🔹 Trend filter using moving average
🔹 Clear labels on entry points
🔹 Visual delta histogram
🔹 Works great on Crypto, Forex, Indices & Stocks
🔹 Very lightweight and fast on TradingView
🎯 Why is it powerful?
Because it doesn't rely on lagging indicators — it reads the actual imbalance between buyers and sellers, often detecting strong moves before traditional indicators do.
This type of analysis is used by professional order flow traders, but now you have it on your TradingView chart in a simple, visual format.
🔥 Perfect for:
Scalpers who need precision
Day traders working breakouts and pullbacks
Swing traders seeking strong confirmations
Traders who want clean, NO-repaint signals
If you want a version with automatic TP/SL, alerts, or full backtesting, I can publish that as well.
Just let me know. 🚀📈
Macro Return ForecastWhen the macro environment was similar, what annualized return did the market usually deliver next?
Before using the indicator, make sure your chart is set to any US-market symbol (SPX, QQQ, DIA, etc.).
This requirement is simple: the indicator pulls macro series from US data (yields, TIPS, credit spreads, breadth of US indices).
Because these series are independent from the chart’s price series, the chart symbol itself does not affect the internal calculations.
Any US symbol works, and the output of the model will be identical as long as you are on a US asset with daily, weekly or monthly timeframe.
The plotted price does not matter: the macro engine is fully exogenous to the chart symbol.
1. What the indicator does relative to selected assets
In the settings you choose which market you want to analyze:
- S&P500
- Nasdaq or NQ100
- Dow Jones
- Russell 2000
- US-wide (VTI)
- S&P500 sectors (XLF, XLY, XLP, etc.)
For each one, the indicator loads:
- Its internal breadth series (percentage of constituents above MA200)
- Its price history to compute forward log-returns at multiple horizons
- Its regime position relative to its own MA200 (for bull/bear filtering)
This means the tool is not tied to the chart symbol you display.
If your chart is SPX but the indicator setting is “S&P500 Technology”, the expected return projection is computed for the Technology sector using its own data, not the chart’s data.
You can therefore:
- Visualize macro-driven expected returns for any major US index or sector.
- Compare how different parts of the market historically reacted to similar macro states.
- Switch assets instantly to see which segment historically behaved better in comparable macro conditions.
The indicator becomes an analyzer of macro sensitivity, not a chart-dependent indicator.
2. Method overview
The model answers a statistical question:
“When macro conditions looked like they do today, what forward annualized return did this asset usually deliver?”
To do this it combines four macro pillars:
- Market breadth of the selected asset
- Yield curve slope (US 10Y minus 2Y)
- US credit spread (high yield minus gov)
- US real rate (TIPS 10Y)
It normalizes each metric into a 0–100 score, groups similar historical states into bins, and examines what the asset did next across six horizons (from ~9 months to ~5 years).
This produces a historical map connecting macro states to realized forward returns.
It is not a forecast model.
It is a conditional-distribution estimator: it tells you what has historically happened from similar setups.
3. Why this produces useful insights on assets
For any chosen asset (SPX, Nasdaq, sectors…), the indicator computes:
- Its forward return distribution in similar macro states.
- How often these states occurred (n).
- Whether the macro environment that preceded positive returns in the past resembles today’s.
- Whether the asset tends to be more sensitive or more resilient than the broad index under given macro configurations.
- Whether a given sector historically benefited from specific yield-curve, credit or real-rate environments.
This lets you answer questions such as:
- Does this sector usually outperform in an inverted yield curve environment?
- Does the Nasdaq historically recover strongly after breadth collapses?
- How did the S&P500 behave historically when real rates were this high?
- Is today’s credit-spread environment typically associated with positive or negative forward returns for this index?
These insights are not predictions but statistical context backed by past market behavior.
4. Why the technique is robust (and why it matters)
The engine uses strict, non-optimistic data processing:
- Winsorization of returns to neutralize extreme outliers without deleting information.
- Shrinkage estimators to avoid overfitting when bins contain few occurrences.
- Adaptive or static bounds for scaling macro indicators, ensuring comparability across cycles.
- Inverse-variance weighting of horizons with penalties for horizon redundancy.
- HAC-style adjustments to reduce autocorrelation bias in return estimation.
Each method aims to prevent artificial inflation of expected-return values and to keep the estimator stable even in unusual macro states.
This produces a result that is not “optimistic”, not curve-fit, not dependent on chart tricks, and not sensitive to isolated historical anomalies.
5. What you get as a user
A single clean line:
Expected Annual Return (%)
This line reflects how the chosen asset historically performed after macro environments similar to today’s.
The color gradient and confidence indicator (n) show the density of comparable episodes in history.
This makes the output extremely simple to read:
- High, stable expectation: historically supportive macro environment.
- Low or negative expectation: historically weaker environments.
- Low confidence: the macro state is rare and historical comparisons are limited.
The tool therefore adds context, not signals.
It helps you understand the environment the asset is currently in, based on how markets behaved in similar conditions across US market history.
bows//@version=5
indicator("NQ EMA+RSI+ATR Alerts with SL/TP", overlay=true, shorttitle="NQ Alerts SLTP")
// === Inputs ===a
fastLen = input.int(9, "Fast EMA", minval=1)
slowLen = input.int(21, "Slow EMA", minval=1)
rsiLen = input.int(14, "RSI Length", minval=1)
rsiLongMax = input.int(70, "Max RSI to allow LONG", minval=50, maxval=90)
rsiShortMin = input.int(30, "Min RSI to allow SHORT", minval=10, maxval=50)
atrLen = input.int(14, "ATR Length", minval=1)
atrMultSL = input.float(1.5, "ATR Stop-Loss Multiplier", step=0.1)
atrMultTP = input.float(2.5, "ATR Take-Profit Multiplier", step=0.1)
// === Indicator calculations ===
price = close
fastEMA = ta.ema(price, fastLen)
slowEMA = ta.ema(price, slowLen)
rsiVal = ta.rsi(price, rsiLen)
atr = ta.atr(atrLen)
// === Entry signals ===
longSignal = ta.crossover(fastEMA, slowEMA) and rsiVal < rsiLongMax
shortSignal = ta.crossunder(fastEMA, slowEMA) and rsiVal > rsiShortMin
// === SL/TP Levels ===
longSL = price - atr * atrMultSL
longTP = price + atr * atrMultTP
shortSL = price + atr * atrMultSL
shortTP = price - atr * atrMultTP
// === Plotting ===
plot(fastEMA, color=color.orange, title="Fast EMA")
plot(slowEMA, color=color.blue, title="Slow EMA")
plotshape(longSignal, title="Buy Signal", style=shape.triangleup, color=color.new(color.green, 0), location=location.belowbar, size=size.tiny)
plotshape(shortSignal, title="Sell Signal", style=shape.triangledown, color=color.new(color.red, 0), location=location.abovebar, size=size.tiny)
// Optional visualization of SL/TP
plot(longSignal ? longSL : na, "Long Stop-Loss", color=color.new(color.red, 50), style=plot.style_linebr)
plot(longSignal ? longTP : na, "Long Take-Profit", color=color.new(color.green, 50), style=plot.style_linebr)
plot(shortSignal ? shortSL : na, "Short Stop-Loss", color=color.new(color.red, 50), style=plot.style_linebr)
plot(shortSignal ? shortTP : na, "Short Take-Profit", color=color.new(color.green, 50), style=plot.style_linebr)
// === Alerts with SL/TP info ===
alertcondition(longSignal, title="BUY Signal",
message="BUY Alert — NQ LONG: Entry @ {{close}} | SL: {{plot_1}} | TP: {{plot_2}} | {{ticker}}")
alertcondition(shortSignal, title="SELL Signal",
message="SELL Alert — NQ SHORT: Entry @ {{close}} | SL: {{plot_3}} | TP: {{plot_4}} | {{ticker}}")
// === Visual labels ===
if (longSignal)
label.new(bar_index, low, "BUY SL: " + str.tostring(longSL, format.mintick) + " TP: " + str.tostring(longTP, format.mintick),
style=label.style_label_up, color=color.new(#be14c4, 0), textcolor=color.white)
if (shortSignal)
label.new(bar_index, high, "SELL SL: " + str.tostring(shortSL, format.mintick) + " TP: " + str.tostring(shortTP, format.mintick),
style=label.style_label_down, color=color.new(color.red, 0), textcolor=color.white)
Momentum Grid 2.1 + Top Stocks📊 MOMENTUM GRID 2.1 + TOP STOCKS
Overview
A multi-timeframe confirmation system specifically designed for NIFTY 50 and BANK NIFTY index options trading. This script combines 8 independent technical indicators into a weighted scoring model to generate high-probability CE (Call) and PE (Put) signals, while simultaneously tracking the top 5 constituent stocks for sector-wide momentum validation.
________________________________________
🎯 Core Methodology
1. 8-Factor Confirmation System
Unlike traditional single-indicator approaches, this script requires multiple confirmations before generating signals. Each factor votes independently:
Trend Alignment (3 votes):
• C1: Price above/below EMA 9 (immediate trend)
• C2: EMA 9 above/below EMA 20 (short-term momentum)
• C3: EMA 20 above/below EMA 50 (intermediate trend)
Oscillator Confirmation (3 votes):
• C4: RSI above/below 50 (momentum strength)
• C5: Stochastic K above/below D (entry timing)
• C6: MACD Histogram positive/negative (momentum direction)
Advanced Momentum (2 votes):
• C7: Parabolic SAR position (trend continuation)
• C8: Squeeze Momentum direction (volatility expansion)
Mathematical Logic:
Bullish Score = C1 + C2 + C3 + C4 + C5 + C6 + C7 + C8
Signal Triggered when Score ≥ Threshold (default: 5/8)
Why This Works: By requiring 5+ confirmations, the script filters out false signals that occur when only 1-2 indicators align by chance. This dramatically reduces whipsaws in choppy markets.
________________________________________
📈 Constituent Stock Analysis System
Real-Time Top 5 Stocks Tracking
The script fetches live data from the most heavily-weighted stocks in the selected index:
NIFTY 50 Constituents:
• Reliance Industries
• HDFC Bank
• Infosys
• ICICI Bank
• TCS
BANK NIFTY Constituents:
• HDFC Bank
• ICICI Bank
• Kotak Mahindra Bank
• State Bank of India
• Axis Bank
Stock Scoring Algorithm (0-6 Scale):
For each stock, the script calculates a momentum score based on:
1. Price vs EMA 9 position
2. EMA 9 vs EMA 20 relationship
3. EMA 20 vs EMA 50 hierarchy
4. RSI above/below 50
5. MACD histogram direction
6. Intraday price change direction
Signal Interpretation:
• 🚀🔥 Strong Bullish: Score ≥5 + Day Change >0.5%
• ⚠️❄️ Strong Bearish: Score ≤1 + Day Change <-0.5%
• 📈 Moderate Bullish: Score ≥3 + Positive change
• 📉 Moderate Bearish: Score ≤3 + Negative change
Why Track Constituents?
Index options are a weighted average of their components. When 4 out of 5 top stocks show strong bullish signals but the index signal is neutral, it indicates:
• Sector rotation is happening
• Underlying strength not yet reflected in index
• Early warning for potential index breakout
________________________________________
🎨 Visual Dashboard System
1. Main Momentum Grid (Middle Right)
Real-time status of all 8 confirmation factors:
• Individual indicator values
• Bullish/Bearish status per indicator
• Cumulative Bull Score and Bear Score
• Visual color coding (Green = Bullish, Red = Bearish)
2. Top Stocks Status Panel (Top Right)
Live tracking table showing:
• LTP (Last Traded Price): Current stock price
• Day Change %: Intraday movement from open
• Status: Overall bullish/bearish trend
• EMA Status: Position relative to EMA 9
• Signal Emoji: Visual strength indicator
3. Scenario Guide (Bottom Right)
Auto-calculates trade parameters based on current signal:
• Side: CE (Call) or PE (Put) recommendation
• Strike Reference: Current index price
• Trigger Level: Entry confirmation level (high/low of signal bar)
• Risk Limit: Stop loss using 1.5x ATR
• Price Objective: Target using 2.5x ATR
ATR-Based Risk Management: Average True Range (14-period) adapts stop-loss and targets to current volatility, ensuring consistent risk-reward ratios across different market conditions.
________________________________________
🚨 Signal Generation Logic
CE (Call) Signal Triggers When:
1. Bullish Score ≥ Threshold (5/8 default)
2. Previous bar Bullish Score < Threshold
3. Confirmation candle closes above EMA 9
4. Background turns light green
PE (Put) Signal Triggers When:
1. Bearish Score ≥ Threshold (5/8 default)
2. Previous bar Bearish Score < Threshold
3. Confirmation candle closes below EMA 9
4. Background turns light red
Signal Validation: Labels appear only when a new qualifying bar completes, preventing repainting. The tooltip shows the exact score and entry price for record-keeping.
________________________________________
🔧 Customization Options
Parameter Purpose Recommendation
Index Selection Choose NIFTY 50 or BANK NIFTY Match to your trading instrument
EMA Periods Adjust trend sensitivity Default (9/20/50/100) suits 5-15 min
Signal Threshold Min confirmations required 5/8 (balanced), 6/8 (conservative)
RSI Length Momentum calculation period 14 (standard), 21 (smoother)
MACD Settings Fast/Slow/Signal periods 12/26/9 (industry standard)
________________________________________
📊 Technical Indicator Details
Exponential Moving Averages (EMA)
• Why EMA vs SMA: Exponential weighting gives more importance to recent price action, making it more responsive to trend changes in fast-moving index options.
Relative Strength Index (RSI)
• Measures momentum on 0-100 scale
• 50 level acts as bull/bear dividing line
• Used for confirmation, not overbought/oversold
Stochastic Oscillator
• Compares closing price to recent range
• K line crossing above D line = bullish momentum shift
• Sensitive to short-term reversals
MACD (Moving Average Convergence Divergence)
• Histogram shows momentum acceleration/deceleration
• Positive histogram = increasing bullish momentum
• Used as tiebreaker when other signals conflict
Parabolic SAR
• Tracks stop-and-reverse points
• Dots below price = uptrend, above = downtrend
• Adds trend-following confirmation
Squeeze Momentum
• Identifies periods of low volatility (consolidation)
• Bollinger Bands inside Keltner Channels = "squeeze"
• Positive momentum during squeeze = bullish breakout setup
________________________________________
💡 What Makes This Script Unique
1. Index-Specific Design: Unlike generic multi-timeframe indicators, this is purpose-built for NIFTY/BANKNIFTY options with constituent stock correlation analysis.
2. Multi-Layer Validation: Combines price action (EMAs), momentum (RSI/Stoch/MACD), and volatility (Squeeze) for comprehensive market assessment.
3. Smart Constituent Tracking: Automatically switches stock universe based on selected index, providing sector-level context that single-chart indicators miss.
4. Adaptive Risk Management: ATR-based stop-loss and targets adjust to market volatility automatically, unlike fixed-point systems.
5. No Repainting: All calculations use confirmed bars with lookahead=barmerge.lookahead_off parameter, ensuring historical backtesting accuracy.
________________________________________
📚 Best Practices
Timeframe Selection:
• 5 min: Scalping (high frequency, tight stops)
• 15 min: Intraday swing trades (balanced)
• 1 hour: Positional option trades (overnight holds)
Trade Execution:
1. Wait for CE/PE label to appear
2. Check Top Stocks Status - look for 3+ stocks confirming index direction
3. Verify Scenario Guide shows acceptable risk-reward (min 1:1.5)
4. Enter on next candle open or use trigger level for limit orders
5. Place stop-loss at "Risk Limit" level
6. Scale out at "Price Objective" or trail with Parabolic SAR
False Signal Filters:
• Avoid signals during first 15 minutes of market open (high volatility)
• Skip signals when Top Stocks show conflicting directions (3 bull, 2 bear)
• Increase threshold to 6/8 during major news events
• Disable trading 30 minutes before important announcements
________________________________________
⚠️ Limitations & Considerations
• Index Options Specific: Optimized for NIFTY/BANKNIFTY - may need recalibration for other instruments
• Not Suitable for Trending Markets: Works best in swing/range conditions; reduce threshold in strong trends
• Constituent Data Dependency: Relies on accurate real-time stock data; verify broker data quality
• Options Greeks Ignored: Script doesn't account for theta decay, IV changes - user must manage option selection
________________________________________
🔔 Built-In Alerts
Set alerts for:
• CE Signal Generated: Bullish score crosses threshold
• PE Signal Generated: Bearish score crosses threshold
Alert messages include ticker symbol and entry price for quick execution.
________________________________________
📈 Performance Optimization Tips
1. Score Correlation Check: If Bull Score and Bear Score are both high (6+/8), market is conflicted - wait for resolution.
2. Stock Divergence Strategy: When 4/5 stocks are bullish but index shows PE signal, it often indicates a false breakdown - counter-trend opportunity.
3. Squeeze Breakout Combo: Strongest signals occur when Squeeze changes from "ON" to "OFF" simultaneously with CE/PE trigger.
4. EMA Stacking: Maximum confidence signals have all three EMAs in proper order (9>20>50 for bull, reverse for bear).
________________________________________
🎓 Educational Context
This methodology synthesizes:
• Multi-Timeframe Analysis: EMAs represent different trend horizons
• Oscillator Convergence: Multiple momentum tools reduce false positives
• Index Arbitrage Concepts: Constituent tracking exploits pricing inefficiencies
• Adaptive Volatility: ATR-based risk scales with market conditions
The 8-factor system mirrors institutional decision frameworks where analysts require consensus across multiple models before position changes.
________________________________________
📋 Quick Reference
Bullish Setup Checklist: ✅ Bull Score ≥ 5/8
✅ Green background color
✅ 3+ top stocks showing 📈 or 🚀
✅ Price above EMA 9
✅ MACD Histogram positive
Bearish Setup Checklist: ✅ Bear Score ≥ 5/8
✅ Red background color
✅ 3+ top stocks showing 📉 or ⚠️
✅ Price below EMA 9
✅ MACD Histogram negative
________________________________________
⚖️ Disclaimer
This indicator is a decision support tool, not an automated trading system. Index options involve substantial risk and can result in total loss of premium paid. The constituent stock analysis provides context but does not guarantee index price movement. Users must:
• Understand options Greeks (delta, theta, vega)
• Use proper position sizing (max 2-3% capital per trade)
• Never trade based on signals alone without market context
• Comply with SEBI regulations and broker policies
Past performance of signals does not guarantee future results.
________________________________________
Version: Pine Script v6
Supported Indices: NIFTY 50, BANK NIFTY
Resource Usage: Moderate (Multi-security data requests)
Update Frequency: Real-time on current timeframe
________________________________________
For support or suggestions, please comment below. If this script helps your trading, please like and follow for updates! 🚀📊
SKDJ Bottom-Top Reversal IndicatorSKDJ Bottom-Top Reversal Indicator — Introduction (English Version)
The SKDJ Bottom-Top Reversal Indicator is an enhanced version of the classic Stochastic (K/D) oscillator.
It is designed to identify high-probability reversal zones, highlight momentum shifts, and help traders capture oversold bounces and overbought pullbacks with greater clarity.
This indicator smooths the standard RSV calculation with double EMA/MMA layers, producing a more stable K/D structure while maintaining sensitivity to short-term price swings. It plots dynamic green/red lines for visual clarity and provides automatic buy/sell markers based on extreme-zone crossovers.
🔍 Core Logic
1. RSV Calculation
RSV measures the close price relative to the highest and lowest prices within a lookback window:RSV=EMA((Close−Lowest(N))/(Highest(N)−Lowest(N))×100,M)
This normalizes the price position into a 0–100 range and applies smoothing to reduce noise.
2. K & D Lines
K Line = EMA of RSV
D Line = SMA of K
The combination produces a fast and slow stochastic pair that tracks short-term momentum shifts.
3. Reversal Signals
The indicator automatically highlights:
Buy Signal (Bottom Reversal):
When K < 25 and K crosses above D → potential oversold rebound.
Sell Signal (Top Reversal):
When K > 75 and D crosses above K → potential overbought correction.
These signals combine extreme price positioning + momentum crossover, giving higher-quality reversal points.
🎨 Visual Features
Green K-line for upward momentum
Red D-line for trend strength
Overbought (80) & Oversold (20) horizontal guides
Automatic triangle markers for buy/sell signals
Optional background color shading
This clean visual design allows traders to read momentum more intuitively and react quicker to turning points.
🧩 Use Cases
The SKDJ indicator is ideal for:
Identifying short-term mean-reversion opportunities
Spotting early momentum reversal before large swings
Filtering entries inside range-bound markets
Confirming signals from other systems (MA, trendlines, volume)
It works on all timeframes and across stocks, crypto, forex, commodities.
📈 Why It Works
This indicator combines:
Price location (overbought/oversold range)
Momentum direction (K/D crossover)
Smoothed oscillation (less noise, cleaner signals)
The convergence of these three factors often precedes short-term market turning points.
King 2.0Defines a DR/IDR window for each weekday
→ 19:30–23:00 New York time, separate settings for Mon–Fri.
Measures that session’s price range
→ DR high/low, IDR high/low, midlines, and the opening price.
Draws boxes and lines on the chart
→ DR/IDR box, top/bottom/mid lines, and the opening line for each day, with per-day colors/styles and optional price labels.
Tracks “expansion” after the session ends
→ From 23:00 to 23:00 next day (Fri extends over the weekend), it measures how far price breaks above/below the DR in pips.
Tracks “violations” of the DR
→ Records the max high and min low after DR ends and shows how many pips price moved beyond the DR boundaries.
Marks swing-based violations
→ Detects 3-bar swing highs/lows, and when price breaks the DR high/low, it draws a horizontal line from the last opposite swing and labels it SWG H / SWG L.
Shows live stats labels
→ For each day, it displays DR range, expansion up/down, and violation up/down (in pips) near the DR region.
TJR Bogdan Pro (Cleaned)This indicator is designed to automate the "Bogdan" scalping strategy popularized by TJR Trades. It simplifies complex ICT (Inner Circle Trader) concepts into a visual, easy-to-read "Traffic Light" system.
Instead of guessing where the market is going, this tool helps you identify the specific narrative of Liquidity Sweeps (Turtle Soup) followed by a Change of Character (CHoCH).
It answers the three most important questions in trading:
1. Where do I look? (Key Levels)
2. When do I act? (Liquidity Grab + Structure Shift)
3. Where do I enter? (Fair Value Gap)
How to Trade This Indicator
This script is best used on the 5-Minute Timeframe. It automatically pulls Higher Timeframe (HTF) levels onto your chart so you don't have to draw them manually.
The 4-Step "Sniper" Sequence
1. The Battlefield (Wait for the Level)
* The script plots the Previous Daily High/Low (PDH/PDL) and 4H High/Low as dashed lines.
* Rule: Do not trade in the middle of nowhere. Wait for the price to touch a dashed line (The Magnet).
2. The Trap (Wait for the "X")
* Symbol: Green X (Bullish) or Red X (Bearish).
* What it means: This is a Liquidity Sweep (or "Grab"). The price poked through a key level to trap traders, but the candle closed back inside. This is your warning that a reversal might happen.
3. The U-Turn (Wait for the Triangle)
* Symbol: Blue ▲ (Bullish) or Orange ▼ (Bearish).
* What it means: This is a CHoCH (Change of Character). The price has broken the recent structure, confirming that the trend has flipped direction.
4. The Entry (Wait for the Box)
* Symbol: Blue Box (Buy Zone) or Orange Box (Sell Zone).
* What it means: This is a Fair Value Gap (FVG).
* Action: Don't chase the price! Wait for the candle to dip back into the Colored Box. Place your entry there with a Stop Loss below the recent low.
Visual Legend
Symbol Concept Direction Narrative
Dashed Lines Key Levels Neutral The "Gas Stations" where liquidity hides.
Green X Sweep (Grab) Bullish Sellers tried to break the floor and failed.
Red X Sweep (Grab) Bearish Buyers tried to break the roof and failed.
Blue ▲ CHoCH Bullish Market structure has shifted UP.
Orange ▼ CHoCH Bearish Market structure has shifted DOWN.
Colored Box FVG Entry The "Discount" zone to enter the trade.
SMA Close/High/Low with Input LengthCustom SMA Indicator on TradingView: Close, High, and Low
This TradingView Pine Script indicator plots three Simple Moving Averages (SMAs) on the main price chart using the closing, high, and low prices of the asset. Unlike a standard SMA that considers only the closing price, this indicator gives you insights into the average price behavior from three different perspectives simultaneously.
What It Does
Calculates a 20-period (default) SMA of the Closing price to show the average trend of closing prices.
Calculates a 20-period SMA of the High price to track the average upper price movement.
Calculates a 20-period SMA of the Low price to track the average lower price movement.
All three lines are overlaid on the price chart for easy comparison.
The SMA length is adjustable by the user via an input box, making the indicator versatile for different trading timeframes and strategies.
ADR / ATR / Other Info TableADR / ATR / Other Info Table is a comprehensive, fully customizable information dashboard that displays essential stock metrics in a clean, organized table overlay. At a glance, monitor your position relative to key moving averages (20, 50, 200 SMA) with dynamic trend arrows showing whether each SMA is rising or falling, plus distance from 52-week highs and lows. Track volatility with today's ADR%, 20-day and 50-day ADR% averages, ATR values, and ATR deviation from its 50-day mean—all with optional color-coded thresholds to quickly identify elevated volatility conditions. The volume section provides deep insights including 20-day and 5-day average dollar volume, projected volume, relative volume, relative dollar volume, and Volume Buzz (percentage deviation from average). Fundamental data such as market cap, shares float, float percentage, days until earnings, RS Rating (relative strength vs. S&P 500), liquidity cap, sector, sector ETF performance, and industry group round out the display. Every metric can be individually toggled on or off, and the table offers extensive customization including position, size, text alignment, background color, and multi-tier color thresholds for ADR%, Volume Buzz, and Relative Dollar Volume. Perfect for swing traders, momentum traders, and anyone who wants critical market data consolidated into one efficient, non-intrusive display.
Hyper Squeeze Sniper (Dual Side: Long + Short)Hyper Squeeze Sniper (Dual Side: Long + Short)
Tagline: A professional-grade volatility breakout system designed to catch explosive moves in both Bull and Bear markets.
Description
The Hyper Squeeze Sniper is a comprehensive momentum indicator that combines Volatility Analysis, Volume Spread Analysis, and Trend Following logic into a single system. It is designed to identify the "Squeeze" (consolidation phase) and signal high-probability entries exactly when the price explodes.
This script features a built-in State Machine to manage trade status (Wait, Long, Short) and prevent conflicting signals.
🛠 Concepts & Calculations (The Logic)
This indicator uses a 3-step validation process to generate signals:
1. The Squeeze Detection (Consolidation)
Before a trend explodes, volatility usually contracts. We measure this using the relationship between Bollinger Bands (BB) and Keltner Channels (KC).
Logic: When the Bollinger Bands (Length 20, Mult 2.0) narrow completely inside the Keltner Channels (Length 20, Mult 1.5), the background turns Gray.
Meaning: Energy is building up. This is a "No Trade" zone.
2. The Breakout & Confirmation (Entry)
We do not trade every breakout. The script filters for "Smart Money" moves using:
Momentum Filter: Uses Linear Regression (20 periods) to calculate the true slope of the price. We only go Long if the slope is Positive, and Short if Negative.
Volume Filter: The breakout candle must have a volume at least 1.2x higher than the 20-period average (vol_mult = 1.2). This filters out fake breakouts with low participation.
Price Action: The candle must close in the direction of the trend (Green for Long, Red for Short).
3. The Trailing Stop (Risk Management)
Once a position is taken, an ATR Trailing Stop (Chandelier Exit logic) is activated.
Calculation: It uses a 14-period ATR with a multiplier of 3.0.
Behavior: The stop line only moves in favor of the trade (Ratcheting effect) to lock in profits as the trend extends.
📊 How to Use
For LONG Setups (Bullish)
Wait: Look for the Gray Squeeze Zone.
Signal: A Green Triangle labeled "LONG" appears below the bar.
Hold: Stay in the trade as long as the price remains ABOVE the Green Safety Line.
Exit: Close the position when the 'X' mark appears (Price closes below the Green Line).
For SHORT Setups (Bearish)
Wait: Look for the Gray Squeeze Zone.
Signal: A Red Triangle labeled "SHORT" appears above the bar.
Hold: Stay in the trade as long as the price remains BELOW the Orange Safety Line.
Exit: Close the position when the 'X' mark appears (Price closes above the Orange Line).
⚙️ Settings (Default)
Squeeze Settings: BB (20, 2.0) / KC (20, 1.5).
Volume Filter: 1.2 (Requires 20% higher volume than average).
ATR Exit: 3.0 (Wide stop for capturing large trends).
🖥 Dashboard
A status table is located at the top-right corner to provide real-time data:
Trend: Shows the current market phase (Squeeze, Bullish, or Bearish).
Status: Displays the current signal state (LONG, SHORT, or WAIT).
Stop Loss: Displays the precise price level for the trailing stop.
Pivot Points Standard + 9/20/50/200 EMA by NK//@version=6
indicator("Pivot Points Standard + 9/20/50/200 EMA", "Pivots+EMA", overlay=true, max_lines_count=500, max_labels_count=500)
// --- EMA calculations and plots
ema9 = ta.ema(close, 9)
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
plot(ema9, color=color.green, linewidth=2, title="EMA 9")
plot(ema20, color=color.red, linewidth=2, title="EMA 20")
plot(ema50, color=color.new(color.blue, 0), linewidth=2, title="EMA 50") // dark blue
plot(ema200, color=color.black, linewidth=2, title="EMA 200")
// --- Pivots Inputs
pivotTypeInput = input.string(title="Type", defval="Traditional", options= )
pivotAnchorInput = input.string(title="Pivots Timeframe", defval="Auto", options= )
maxHistoricalPivotsInput = input.int(title="Number of Pivots Back", defval=15, minval=1, maxval=200, display = display.data_window)
isDailyBasedInput = input.bool(title="Use Daily-based Values", defval=true, display = display.data_window, tooltip="When this option is unchecked, Pivot Points will use intraday data while calculating on intraday charts. If Extended Hours are displayed on the chart, they will be taken into account during the pivot level calculation. If intraday OHLC values are different from daily-based values (normal for stocks), the pivot levels will also differ.")
showLabelsInput = input.bool(title="Show Labels", defval=true, group="labels", display = display.data_window)
showPricesInput = input.bool(title="Show Prices", defval=true, group="labels", display = display.data_window)
positionLabelsInput = input.string("Left", "Labels Position", options= , group="labels", display = display.data_window, active = showLabelsInput or showPricesInput)
linewidthInput = input.int(title="Line Width", defval=1, minval=1, maxval=100, group="levels", display = display.data_window)
DEFAULT_COLOR = #FB8C00
showLevel2and3 = pivotTypeInput != "DM"
showLevel4 = pivotTypeInput != "DM" and pivotTypeInput != "Fibonacci"
showLevel5 = pivotTypeInput == "Traditional" or pivotTypeInput == "Camarilla"
pColorInput = input.color(DEFAULT_COLOR, "P ", inline="P", group="levels", display = display.data_window)
pShowInput = input.bool(true, "", inline="P", group="levels", display = display.data_window)
s1ColorInput = input.color(DEFAULT_COLOR, "S1", inline="S1/R1" , group="levels", display = display.data_window)
s1ShowInput = input.bool(true, "", inline="S1/R1", group="levels", display = display.data_window)
r1ColorInput = input.color(DEFAULT_COLOR, " R1", inline="S1/R1", group="levels", display = display.data_window)
r1ShowInput = input.bool(true, "", inline="S1/R1", group="levels", display = display.data_window)
s2ColorInput = input.color(DEFAULT_COLOR, "S2", inline="S2/R2", group="levels", display = display.data_window, active = showLevel2and3)
s2ShowInput = input.bool(true, "", inline="S2/R2", group="levels", display = display.data_window, active = showLevel2and3)
r2ColorInput = input.color(DEFAULT_COLOR, " R2", inline="S2/R2", group="levels", display = display.data_window, active = showLevel2and3)
r2ShowInput = input.bool(true, "", inline="S2/R2", group="levels", display = display.data_window, active = showLevel2and3)
s3ColorInput = input.color(DEFAULT_COLOR, "S3", inline="S3/R3", group="levels", display = display.data_window, active = showLevel2and3)
s3ShowInput = input.bool(true, "", inline="S3/R3", group="levels", display = display.data_window, active = showLevel2and3)
r3ColorInput = input.color(DEFAULT_COLOR, " R3", inline="S3/R3", group="levels", display = display.data_window, active = showLevel2and3)
r3ShowInput = input.bool(true, "", inline="S3/R3", group="levels", display = display.data_window, active = showLevel2and3)
s4ColorInput = input.color(DEFAULT_COLOR, "S4", inline="S4/R4", group="levels", display = display.data_window, active = showLevel4)
s4ShowInput = input.bool(true, "", inline="S4/R4", group="levels", display = display.data_window, active = showLevel4)
r4ColorInput = input.color(DEFAULT_COLOR, " R4", inline="S4/R4", group="levels", display = display.data_window, active = showLevel4)
r4ShowInput = input.bool(true, "", inline="S4/R4", group="levels", display = display.data_window, active = showLevel4)
s5ColorInput = input.color(DEFAULT_COLOR, "S5", inline="S5/R5", group="levels", display = display.data_window, active = showLevel5)
s5ShowInput = input.bool(true, "", inline="S5/R5", group="levels", display = display.data_window, active = showLevel5)
r5ColorInput = input.color(DEFAULT_COLOR, " R5", inline="S5/R5", group="levels", display = display.data_window, active = showLevel5)
r5ShowInput = input.bool(true, "", inline="S5/R5", group="levels", display = display.data_window, active = showLevel5)
type graphicSettings
string levelName
color levelColor
bool showLevel
var graphicSettingsArray = array.from(
graphicSettings.new(" P", pColorInput, pShowInput),
graphicSettings.new("R1", r1ColorInput, r1ShowInput), graphicSettings.new("S1", s1ColorInput, s1ShowInput),
graphicSettings.new("R2", r2ColorInput, r2ShowInput), graphicSettings.new("S2", s2ColorInput, s2ShowInput),
graphicSettings.new("R3", r3ColorInput, r3ShowInput), graphicSettings.new("S3", s3ColorInput, s3ShowInput),
graphicSettings.new("R4", r4ColorInput, r4ShowInput), graphicSettings.new("S4", s4ColorInput, s4ShowInput),
graphicSettings.new("R5", r5ColorInput, r5ShowInput), graphicSettings.new("S5", s5ColorInput, s5ShowInput))
autoAnchor = switch
timeframe.isintraday => timeframe.multiplier <= 15 ? "1D" : "1W"
timeframe.isdaily => "1M"
=> "12M"
pivotTimeframe = switch pivotAnchorInput
"Auto" => autoAnchor
"Daily" => "1D"
"Weekly" => "1W"
"Monthly" => "1M"
"Quarterly" => "3M"
=> "12M"
pivotYearMultiplier = switch pivotAnchorInput
"Biyearly" => 2
"Triyearly" => 3
"Quinquennially" => 5
"Decennially" => 10
=> 1
numOfPivotLevels = switch pivotTypeInput
"Traditional" => 11
"Camarilla" => 11
"Woodie" => 9
"Classic" => 9
"Fibonacci" => 7
"DM" => 3
type pivotGraphic
line pivotLine
label pivotLabel
method delete(pivotGraphic graphic) =>
graphic.pivotLine.delete()
graphic.pivotLabel.delete()
var drawnGraphics = matrix.new()
localPivotTimeframeChange = timeframe.change(pivotTimeframe) and year % pivotYearMultiplier == 0
securityPivotTimeframeChange = timeframe.change(timeframe.period) and year % pivotYearMultiplier == 0
pivotTimeframeChangeCounter(condition) =>
var count = 0
if condition and bar_index > 0
count += 1
count
localPivots = ta.pivot_point_levels(pivotTypeInput, localPivotTimeframeChange)
securityPivotPointsArray = ta.pivot_point_levels(pivotTypeInput, securityPivotTimeframeChange)
securityTimeframe = timeframe.isintraday ? "1D" : timeframe.period
= request.security(syminfo.tickerid, pivotTimeframe, , lookahead = barmerge.lookahead_on)
pivotPointsArray = isDailyBasedInput ? securityPivots : localPivots
affixOldPivots(endTime) =>
if drawnGraphics.rows() > 0
lastGraphics = drawnGraphics.row(drawnGraphics.rows() - 1)
for graphic in lastGraphics
graphic.pivotLine.set_x2(endTime)
if positionLabelsInput == "Right"
graphic.pivotLabel.set_x(endTime)
drawNewPivots(startTime) =>
newGraphics = array.new()
for in pivotPointsArray
levelSettings = graphicSettingsArray.get(index)
if not na(coord) and levelSettings.showLevel
lineEndTime = startTime + timeframe.in_seconds(pivotTimeframe) * 1000 * pivotYearMultiplier
pivotLine = line.new(startTime, coord, lineEndTime, coord, xloc = xloc.bar_time, color=levelSettings.levelColor, width=linewidthInput)
pivotLabel = label.new(x = positionLabelsInput == "Left" ? startTime : lineEndTime,
y = coord,
text = (showLabelsInput ? levelSettings.levelName + " " : "") + (showPricesInput ? "(" + str.tostring(coord, format.mintick) + ")" : ""),
style = positionLabelsInput == "Left" ? label.style_label_right : label.style_label_left,
textcolor = levelSettings.levelColor,
color = #00000000,
xloc=xloc.bar_time)
newGraphics.push(pivotGraphic.new(pivotLine, pivotLabel))
drawnGraphics.add_row(array_id = newGraphics)
if drawnGraphics.rows() > maxHistoricalPivotsInput
oldGraphics = drawnGraphics.remove_row(0)
for graphic in oldGraphics
graphic.delete()
localPivotDrawConditionStatic = not isDailyBasedInput and localPivotTimeframeChange
securityPivotDrawConditionStatic = isDailyBasedInput and securityPivotCounter != securityPivotCounter
var isMultiYearly = array.from("Biyearly", "Triyearly", "Quinquennially", "Decennially").includes(pivotAnchorInput)
localPivotDrawConditionDeveloping = not isDailyBasedInput and time_close == time_close(pivotTimeframe) and not isMultiYearly
securityPivotDrawConditionDeveloping = false
if (securityPivotDrawConditionStatic or localPivotDrawConditionStatic)
affixOldPivots(time)
drawNewPivots(time)
var FIRST_BAR_TIME = time
if (barstate.islastconfirmedhistory and drawnGraphics.columns() == 0)
if not na(securityPivots) and securityPivotCounter > 0
if isDailyBasedInput
drawNewPivots(FIRST_BAR_TIME)
else
runtime.error("Not enough intraday data to calculate Pivot Points. Lower the Pivots Timeframe or turn on the 'Use Daily-based Values' option in the indicator settings.")
else
runtime.error("Not enough data to calculate Pivot Points. Lower the Pivots Timeframe in the indicator settings.")
UTS — Stable Entry/ExitThis is the stable version of Ultimate Trend System (UTS) focusing on clean and reliable entry/exit signals.
✔ No repaint
✔ No complex state machine
✔ No external dependencies
✔ No CHOP (to avoid Pine v6 errors)
✔ No 15-minute filters (ensures signals appear in real time)
✔ BUY = Supertrend Up + QQE Up + ATR Up
✔ SELL = Supertrend Down + QQE Down + ATR Up
✔ STOP = Trend weakening or volatility contraction
This version is specifically designed for traders who need:
- clear, stable, non-noisy signals
- fast real-time ENTRY/EXIT markers
- zero script errors during publication
- minimal false positives while not missing trend moves
Perfect for scalping / intraday futures like MGC, SIL, MHG, GC, CL, ES, NQ.
High Volume Highlight (2x 50-Period Avg)Displays a bright green bar when volume exceeds 2X the 50-day average volume. Color, multiplier, and average can be adjusted to suit your needs.
Filter Volume1. Indicator Name
Filter Volume
2. One-line Introduction
A regression-based trend filter that quantifies and visualizes market direction and strength using price behavior.
3. Overall Description
Filter Volume+ is a trend-detection indicator that uses linear regression to evaluate the dominant direction of price movement over a given period.
It compares historical regression values to determine whether the market is in a bullish, bearish, or neutral state.
The indicator applies a percentage threshold to filter out weak or indecisive trends, highlighting only significant movements.
Each trend state is visualized through distinct colors: bullish (greenish), bearish (reddish), and neutral (gray), with intensity reflecting trend strength.
To reduce noise and create smooth visual signals, a three-step smoothing process is applied to the raw trend intensity.
Users can customize the regression source, lookback period, and sensitivity, allowing the indicator to adapt to various assets and timeframes.
This tool is especially useful in filtering entry signals based on clear directional bias, making it suitable for trend-following or confirmation strategies.
4. Key Benefits (Title + Description)
✅ Quantified Trend Strength
Only displays trend signals when a statistically significant direction is detected using linear regression comparisons.
✅ Visual Clarity with Color Coding
Each market state (bullish, bearish, neutral) is represented with distinct colors and transparency, enabling fast interpretation.
✅ Custom Regression Source
Users can define the data input (e.g., close, open, indicator output) for regression calculation, increasing strategic flexibility.
✅ Multi-Level Smoothing
Applies three layers of smoothing (via moving averages) to eliminate noise and produce a stable, flowing trend curve.
✅ Area Fill Visualization
Plots a colored band between the trend value and zero-line, helping users quickly gauge the market's dominant force.
✅ Adjustable Sensitivity Settings
Includes tolerance and lookback controls, allowing traders to fine-tune how reactive or conservative the trend detection should be.
5. Indicator User Guide
📌 Basic Concept
Filter Volume+ assesses the direction of price by comparing regression values over a selected period.
If the percentage of upward comparisons exceeds a threshold, a bullish state is shown; if downward comparisons dominate, it shows a bearish state.
⚙️ Settings Overview
Lookback Period (n): The number of bars to compare for trend analysis
Range Tolerance (%): Minimum threshold for declaring a strong trend
Regression Source: The data used for regression (e.g., close, open)
Linear Regression Length: Number of bars used to compute each regression value
Bull/Bear Color: Custom colors for bullish and bearish trends
📈 Example Timing
When the trend line stays above zero and the green color intensity increases → trend gaining strength
After a neutral phase (gray), the color shifts quickly to greenish → early trend reversal
📉 Example Timing
When the trend line stays below zero with deepening red color → strong bearish continuation
Sudden change from bullish to bearish color with rising intensity
🧪 Recommended Use
Use as a trend confirmation filter alongside entry/exit strategies
Ideal for swing or position trades in trending markets
Combine with oscillators like RSI or MACD for improved signal validation
🔒 Cautions
In ranging (sideways) markets, the color may change frequently – avoid relying solely on this indicator in those zones.
Low-intensity colors (faded) suggest weak trends – better to stay on the sidelines.
A short lookback period may cause over-sensitivity and false signals.
When using non-price regression sources, expect the indicator to behave differently – test before deploying.
+++
QQE MOD + Integrated RSI 14 (2in1)This is a custom modification of the popular QQE MOD by Mihkel00. I have re-engineered the script to maximize utility for free TradingView users who are limited to 3 indicators per chart.
Key Changes:
Secondary Trend Line: The secondary line has been reprogrammed to function exactly like a Standard RSI (Length 14).
2-in-1 Efficiency: You no longer need to load a separate RSI indicator. This script now displays market momentum (QQE) and standard price strength (RSI 14) in a single pane.
This modification frees up a valuable indicator slot, allowing you to add a third indicator of your choice without upgrading your plan.






















