Adaptive Quadratic Kernel EnvelopeThis study draws a fair-value curve from a quadratic-weighted (Nadaraya-Watson) regression. Alpha sets how sharply weights decay inside the look-back window, so you trade lag against smoothness with one slider. Band half-width is ATRslow times a bounded fast/slow ATR ratio, giving an instant response to regime shifts without overshooting on spikes. Work in log space when an instrument grows exponentially, equal percentage moves then map to equal vertical steps. NearBase and FarBase define a progression of adaptive thresholds, useful for sizing exits or calibrating mean-reversion logic. Non-repaint mode keeps one-bar delay for clean back-tests, predictive mode shows the zero-lag curve for live decisions.
Key points
- Quadratic weights cut phase error versus Gaussian or SMA-based envelopes.
- Dual-ATR scaling updates width on the next bar, no residual lag.
- Log option preserves envelope symmetry across multi-decade data.
- Alpha provides direct control of curvature versus noise.
- Built-in alerts trigger on the first adaptive threshold, ready for automation.
Typical uses
Trend bias from the slope of the curve.
Entry timing when price pierces an inner threshold and momentum stalls.
Breakout confirmation when closes hold beyond outer thresholds while volatility expands.
Stops and targets anchored to chosen thresholds, automatically matching current noise.
Indicators and strategies
Lọc nhiễu MACD [VNFlow]Contact and discuss to use advanced tools to support your trading strategy
Email: hasobin@outlook.com
Phone: 0373885338
See you,
EMA Touch with 9 EMA Filter//@version=5
indicator("EMA Touch with 9 EMA Filter", overlay=true)
ema9 = ta.ema(close, 9)
ema100 = ta.ema(close, 100)
ema150 = ta.ema(close, 150)
// Candle colors
isGreen = close > open
isRed = close < open
// Candle body or wick touching both EMA 100 and EMA 150
touchesBothEMAs = (low <= ema100 and high >= ema100) and (low <= ema150 and high >= ema150)
// Green arrow condition
greenArrowCond = isGreen and touchesBothEMAs and (ema9 > ema100 and ema9 > ema150)
// Red arrow condition
redArrowCond = isRed and touchesBothEMAs and (ema9 < ema100 and ema9 < ema150)
// Plotting arrows
plotshape(greenArrowCond, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="▲")
plotshape(redArrowCond, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="▼")
// Optional: Plot EMAs
plot(ema9, title="EMA 9", color=color.orange)
plot(ema100, title="EMA 100", color=color.blue)
plot(ema150, title="EMA 150", color=color.purple)
Triple-Filter ConfirmationTriple-Filter Confirmation System
This indicator generates high-probability trading signals based on a 3-layer filtering approach:
🔹 Trend Filter – Uses a 200-period EMA slope to confirm bullish or bearish bias.
🔹 Momentum Filter – Uses MACD histogram direction for secondary confirmation.
🔹 Volatility Filter – Filters out weak setups using ATR percentile rank (relative to last 100 bars).
✅ Signal appears only when all filters align, avoiding noise and low-confidence zones.
🚫 If any filter disagrees, no signal is shown — preserving capital through discipline.
💡 Works across any timeframe and asset. Use it alongside price action, support/resistance, and sound risk management.
Created for educational and research purposes — not financial advice.
Ultimate Synergy IndicatorA high-probability environment (the Zone)
A sharp rejection pattern inside that zone (the Trigger)
Only when both happen at the same moment does it flash a BUY or SELL arrow.
Volume VA with POC Based Percent DeviationsThis is a slightly different take on my previous version that plotted fibonacci retracement levels based on the POC to value area high/low.
This indicator is also based on the volume value area that plots developing POC, VAH, and VAL as well as historical levels. However, instead of plotting fib levels, this script automatically projects percentage deviation levels from the current POC. This can help identify potential overextensions, target areas, or mean-reversion setups.
Knowing where price is and the change in price relative to areas of interest can help identify true value and market imbalances. Hence the name VALUE AREA :)
The percent deviation levels are dynamically plotted in relation to the developing POC. As POC shifts so do the % levels.
Gradient Value Area Fill: Instead of a static color, the Value Area is filled with a dynamic gradient. The adjustable color and transparency shift is based on the current price's distance from the POC, giving you an intuitive feel for where price is relative to the POC.
Enjoy!
"May the fourth leaf bring you extra luck!" 🍀
HOG QQE FlowHOG QQE Flow
📄 Overview
HOG QQE Flow is a clean, momentum-powered oscillator that visualizes directional strength and overbought/oversold behavior using a smoothed RSI foundation. With a dynamic gradient line, visual pulse dots, and clean zone fills, it delivers real-time insight into price pressure without unnecessary clutter.
⚙️ How It Works
• Smooths RSI using QQE-style logic and tracks slope
• Adds WAE-style volatility confirmation for powerful pulse filtering
• Highlights overbought/oversold zones with subtle color fills
• Pulse dots fire only when momentum aligns with volume bursts
• Line color shifts dynamically based on QQE position and intensity
🎯 Inputs
• RSI Length & Smoothing Factor
• Overbought / Oversold Thresholds
• WAE Volatility Length & Multiplier
• Volume Burst Filter (hardcoded 1.5× 20SMA)
✅ Benefits
• Quickly spot confirmed momentum ignition
• Clearly see when price is extended or fading
• Gradient line provides real-time slope feedback
• Visual-only — no clutter, no guesswork
📈 Use Cases
• Confirm entries on strong breakouts or reversals
• Filter out weak moves lacking volume or slope
• Pair with EMAs or trend overlays for complete flow setups
• Use as a high-probability signal trigger in trend continuation
⚠️ Notes
• This tool is a momentum visualizer — not a full strategy
• Works best on the daily timeframe or higher with trend context
• Pulse dots are rare by design — use them to time your moves
MACD+RSI Divergence Pro v2//@version=5
indicator("MACD+RSI Divergence Pro v2", overlay=true)
// 1. إعداد MACD
= ta.macd(close, 12, 26, 9)
macdBullish = ta.crossover(macdLine, signalLine)
macdBearish = ta.crossunder(macdLine, signalLine)
// 2. إعداد RSI
rsiValue = ta.rsi(close, 14)
rsiOverbought = rsiValue >= 70
rsiOversold = rsiValue <= 30
// 3. كشف الاختلافات المصحح
// → استخدمنا الدالة `ta.valuewhen()` لتحديد القمم/القيعان بدقة
swingLow = ta.lowest(low, 5)
swingHigh = ta.highest(high, 5)
rsiAtSwingLow = ta.valuewhen(swingLow == low, rsiValue, 0)
rsiAtSwingHigh = ta.valuewhen(swingHigh == high, rsiValue, 0)
bullishDiv = low < low and rsiAtSwingLow > rsiAtSwingLow and rsiOversold
bearishDiv = high > high and rsiAtSwingHigh < rsiAtSwingHigh and rsiOverbought
// 4. مرشح الاتجاه (EMA 200)
marketTrend = ta.ema(close, 200)
isUptrend = close > marketTrend
// 5. الإشارات النهائية
buySignal = bullishDiv and macdBullish and isUptrend
sellSignal = bearishDiv and macdBearish and not isUptrend
// 6. العرض على الرسم
plotshape(buySignal, title="شراء", text="▲", style=shape.labelup, location=location.belowbar, color=color.new(#00FF00, 0), textcolor=color.white)
plotshape(sellSignal, title="بيع", text="▼", style=shape.labeldown, location=location.abovebar, color=color.new(#FF0000, 0), textcolor=color.white)
// 7. تنبيهات
alertcondition(buySignal, "إشارة شراء", "Bullish Divergence + MACD Crossover")
alertcondition(sellSignal, "إشارة بيع", "Bearish Divergence + MACD Crossunder")
Coffee Box Ninja- Time zone and automatic box for the COFFEE BOX strategy based on New York time.
- Auto update for summer and winter time
--------------------------------------------------------------------------------------
- Rango de horarios y caja automatica para la estrategia COFFEE BOX basado en horarios de Nueva York.
- Actualizacion automatica horario de verano en invierno
-------------------------------------------------------------------------------------
Wyckoff Ninja 🥷🏼
linktr.ee
This indicator highlights a specific time range during the New York trading session by drawing a dynamic box that captures the high and low between the defined start and end times. It is useful for identifying price ranges during important market windows, such as the "coffee time" box from 8:30 AM to 10:00 AM (NY time). The box updates as the session progresses and finalizes when the range ends.
Turtle Trading System (Full Version)The turtle trader strategy by Richard Dennis, buys from breakouts and uses volatility for sizing. Accurate on most asset classes, best on Gold.
Simple 4EMA Lines简洁4EMA移动平均线 - 纯净趋势分析工具
📊 功能特点:
• 四条EMA线:7、20、90、180周期(可自定义)
• 简洁设计,无多余元素干扰
• 完全可自定义颜色和线条样式
• 支持偏移量调整
🎯 适用场景:
• 基础趋势分析
• 支撑阻力位参考
• 多时间框架分析
• 作为其他指标的基础层
💡 使用方法:
• 价格在EMA上方看多,下方看空
• EMA排列判断趋势强弱
• EMA交叉关注趋势转换信号
⚙️ 优势:
• 界面简洁清晰
• 资源占用少
• 适合叠加其他指标
• 适用所有交易品种和周期
经典移动平均线工具,适合所有级别的交易者使用。
Simple 4EMA Lines - Clean Trend Analysis Tool
📊 Features:
• Four EMA lines: 7, 20, 90, 180 periods (customizable)
• Clean design without visual clutter
• Fully customizable colors and line styles
• Offset adjustment support
🎯 Use Cases:
• Basic trend analysis
• Support/resistance reference
• Multi-timeframe analysis
• Foundation layer for other indicators
💡 Usage:
• Price above EMA = bullish bias
• Price below EMA = bearish bias
• EMA crossovers signal potential trend changes
⚙️ Advantages:
• Clean and clear interface
• Low resource usage
• Perfect for indicator overlay
• Works on all instruments and timeframes
Classic moving average tool suitable for traders of all levels.
4EMA Moving Average Group4EMA移动平均线组合 - 专业趋势分析指标
📈 核心功能:
• 四条EMA线:7、20、90、180周期
• Vegas隧道填充效果,清晰显示趋势通道
• 自动识别多头/空头排列
• 可选趋势背景颜色提示
• 支持EMA平滑处理和布林带扩展
🎯 使用场景:
• 趋势跟踪和方向判断
• 支撑阻力位识别
• 入场出场时机选择
• 多时间框架分析
💡 交易信号:
• 多头信号:EMA呈7>20>90>180排列 + 价格在EMA上方
• 空头信号:EMA呈7<20<90<180排列 + 价格在EMA下方
• 填充区域作为动态支撑阻力参考
⚙️ 特色功能:
• 完全可自定义颜色和透明度
• 灵活的显示选项控制
• 多种平滑算法可选
• 适用于所有时间周期
适合各级别交易者使用,建议结合其他技术指标综合分析。
4EMA Moving Average Group - Professional Trend Analysis Indicator
📈 Core Features:
• Four EMA lines: 7, 20, 90, 180 periods
• Vegas Tunnel fill effect for clear trend channels
• Automatic bullish/bearish alignment detection
• Optional trend background color alerts
• EMA smoothing and Bollinger Bands extension support
🎯 Use Cases:
• Trend following and direction analysis
• Support/resistance level identification
• Entry/exit timing optimization
• Multi-timeframe analysis
💡 Trading Signals:
• Bullish: EMA alignment 7>20>90>180 + price above EMAs
• Bearish: EMA alignment 7<20<90>180 + price below EMAs
• Fill areas serve as dynamic support/resistance zones
⚙️ Key Features:
• Fully customizable colors and transparency
• Flexible display options
• Multiple smoothing algorithms available
• Works on all timeframes
Suitable for traders of all levels. Recommended to use with other technical indicators for comprehensive analysis.
RSI-MAI spent a lot of time chasing trading methods.
Until I realized that the best method I need to follow is the reality of my own mind.
With faith in the truth, follow the truth in your heart.
📦 Refined Supply & Demand Zones (RBR, DBD, DBR, RBD)📦 Refined Supply & Demand Zones (RBR, DBD, DBR, RBD)
This script automatically detects and visualizes institutional supply and demand zones based on four key price action patterns:
🟢 RBR (Rally-Base-Rally) — Demand
🟢 DBR (Drop-Base-Rally) — Demand
🔴 DBD (Drop-Base-Drop) — Supply
🔴 RBD (Rally-Base-Drop) — Supply
Zones are plotted as transparent rectangles with color-coded logic:
Green for demand zones
Red for supply zones
⚙️ Features:
Adjustable base candle count, wick tolerance, and lookback range
Optimized for performance with loop limiting and throttled cleanup
Designed for scalping, day trading, or swing setups
Runs on any timeframe or market
Built for traders who want to visualize high-probability reaction areas based on clean, rule-based structure — no repainting, no guesswork.
MOM Buy/Sell + MACD Histogram Signal TableThis gives you a bullish and bearish buy signal based on macd crossing 0 level and macd crossing signal line...and it gives sell signal the first time after a buy signal price closes across the 13 ema. It also gives a table on what the macd histogram is doing on multiple time frames so you know where the momentum is.
Confluence Pannel📊 RSI / MACD / ADX Info Panel — Indicator Overview
This Pine Script v6 indicator is a compact visual dashboard that displays real-time insights from three popular technical indicators — RSI, MACD, and ADX — in a color-coded panel at the top-right of your TradingView chart.
🔍 What It Shows
✅ RSI (Relative Strength Index)
Measures momentum and potential overbought/oversold conditions.
Green background: RSI is above 50 (bullish momentum).
Red background: RSI is below 50 (bearish momentum).
Extra label:
"OVER BOUGHT" if RSI > input threshold (default 70)
"OVER SOLD" if RSI < input threshold (default 30)
✅ MACD (Moving Average Convergence Divergence)
Indicates trend strength and direction.
Green background: MACD line is above signal line → Bullish
Red background: MACD line is below signal line → Bearish
Label displays: "Bullish" or "Bearish"
✅ ADX (Average Directional Index)
Measures the strength of the trend, not its direction.
Background and label color changes:
🔴 Red: ADX < 20 → "Bad" (no trend)
🟠 Orange: 20 ≤ ADX < 25 → "Weak" (choppy trend)
🟢 Green: 25 ≤ ADX < 30 → "Good" (valid trend)
🔵 Blue: ADX ≥ 30 → "Best" (strong trend)
🧠 How to Use It
Add to Chart: Paste the script into TradingView’s Pine Editor, click “Add to Chart,” and you’ll see a table appear in the top-right corner.
Interpret Quickly: Use the panel to quickly assess:
Is momentum building or fading? (RSI)
Is there a trend direction? (MACD)
Is the trend strong enough to trade? (ADX)
Make Fast Trade Decisions:
Look for all green/blue for optimal bullish conditions.
Mixed colors may indicate range-bound or weakening setups.
Use it as a confluence check before entering trades.
MTF PO3 Big Candle By Rouro📊 MTF PO3 Big Candle By Rouro
This indicator allows you to visualize candles from higher timeframes (HTF) directly on lower timeframe charts.
It draws:
📉 Past candles from the selected HTF.
📈 A projected current candle of a chosen timeframe, extended to the right of the chart.
It's ideal for traders who want to align decisions on lower timeframes with key HTF structures.
⚙️ Inputs & Configuration
🕐 Past Candle Timeframe
Selects the timeframe to visualize historical candles.
(e.g., 4H on a 5-minute chart)
📅 Projected Candle Timeframe
Chooses the timeframe for the current (live) candle that is drawn to the right of the chart.
(e.g., 1D)
➡️ Right Displacement (bars)
Controls how far to the right the projected candle is drawn.
🟩 Bullish Body Color
Defines the color of bullish candle bodies.
🟥 Bearish Body Color
Defines the color of bearish candle bodies.
🔵 Wick Color
Color of the high/low wicks.
🔲 Body Transparency (0–100)
Controls the transparency of the candle body fill.
📌 Show Wicks
Enables or disables drawing of the wicks on all candles.
💡 Notes
If the projected candle is from a very large timeframe (e.g., 1D) and you are on a small timeframe (e.g., 5m), the projection length is limited to avoid overlapping the chart.
All candle shapes update in real time.
The indicator is optimized for performance and includes fail-safes for TradingView's limits.
💬 Support
If you have any questions, feel free to ask in the comments.
If this indicator has been useful or valuable for your trading, please leave a comment saying so — your feedback helps the community and supports the publication process.
✅ Compliant with TradingView’s house rules: No ads, sales, links, or misleading claims.
📌 This is a visual utility tool designed to support multi-timeframe analysis.
ATR % Line from Day LowHow can you make sure that you're not buying a stock that is too extended?
By limiting your buys to within a certain percentage of either the low-of-the-day (LoD) if you're going long, or to the high-of-the-day (HoD) if you're shorting a stock. This script will help you do just that.
Limiting stock purchases to within a certain percentage of the Average True Range (ATR) from the day's low or high is a risk management technique that offers several key benefits:
Risk Control and Position Sizing
By using ATR as a boundary, you're essentially creating a volatility-adjusted buffer. Since ATR measures recent price volatility, this approach prevents you from buying into stocks that have already moved significantly beyond their normal trading range. This helps avoid entering positions when the stock might be overextended and due for a pullback.
Improved Entry Timing
This strategy encourages patience and discipline. Rather than chasing a stock that's already run up substantially from its low, you wait for better entry points. For example, if you set a limit of 50% of ATR from the day's low, you're only buying when the stock hasn't moved more than half its typical daily range from the bottom.
Volatility Awareness
ATR naturally adjusts for each stock's individual volatility characteristics. A high-volatility stock might have an ATR of $2, while a low-volatility stock might have an ATR of $0.50. This approach scales your entry criteria appropriately for each security rather than using arbitrary dollar amounts.
Reduced Emotional Trading
Having a systematic rule removes the temptation to chase momentum or buy at poor technical levels. It forces you to wait for the stock to come back to more reasonable levels relative to its recent trading behavior.
Better Risk-Reward Ratios
By entering closer to the day's low (within your ATR percentage), you're typically getting a better risk-reward setup. Your stop loss (often placed below the day's low) will be tighter, while your potential upside remains intact.
This approach works particularly well for swing traders and those looking to enter positions on pullbacks or during consolidation periods rather than breakout scenarios.
To save valuable real estate on your chart, there's also an option that can give you a compact version of this indicator which will show only the "Current Day's Low/High" and "Target Price". "Target Price" being the price at which your max buy limit is based on the % ATR you choose in settings.
AO + Stoch RSI Combined Key Features:
Fixing hline Errors:
Replaced hline(band_upper, ...) and hline(band_lower, ...) with plot(band_upper, ...) and plot(band_lower, ...) to support dynamic series float values, as hline requires constant input float.
The middle band is plotted at 0 (matching AO’s zero line) using plot(0, ...) for consistency.
Updated the fill function to use plot_upper and plot_lower instead of hline objects.
Preserving AO’s Original Appearance:
The AO histogram uses raw values (ao = ta.sma(hl2, 5) - ta.sma(hl2, 34)), centered around zero, with green (#009688) for rising bars and red (#F44336) for falling bars, matching the standard AO.
Transparency (color.new(..., 50)) ensures K/D lines are visible when overlapping.
A zero line is plotted at 0 for the classic AO look.
Stoch RSI K/D Overlay:
K/D lines are scaled to the AO’s range: k_scaled = (k - 50) * (ao_max / 50), centering them around zero and matching the AO histogram’s amplitude.
Plotted with linewidth=3 for visibility, directly overlaying the histogram bars, “sitting” on them like MACD lines over the MACD histogram.
MACD-Like Design:
AO histogram is the base layer (plot.style_histogram), like the MACD histogram.
Scaled K (blue, #2962FF) and D (orange, #FF6D00) lines overlap the histogram, resembling MACD’s line overlay.
Stoch RSI bands are scaled (band_upper, band_lower) to the AO’s range and plotted dynamically, with a background fill between them.
Same Plot Pane:
AO histogram (raw), scaled K/D lines, scaled Stoch RSI bands, and zero line are plotted in the same pane, with K/D lines directly overlaid on the histogram.
Awesome Oscillator (AO):
Calculates AO as the difference between 5-period and 34-period SMAs of hl2.
Plots raw histogram, colored based on ao_diff.
Alerts for color changes and histogram state changes.
Stochastic RSI:
Calculates RSI (default length 14), Stochastic formula (default length 14), and smooths K (default 3) and D (default 3) with SMAs.
Plots scaled K/D lines and dynamic bands (upper, lower).
Alerts use original K/D values (0-100) for standard thresholds (20/80).
Shorttitle:
AO+StoRSI (9 characters), within the 10-character limit.
Plots:
All elements in a single pane, using color.new for Pine Script version 6 compatibility.
Alerts:
AO: Color changes and histogram state changes.
Stochastic RSI: K crossing D, K exiting oversold (above 20), K entering overbought (below 80).
Usage Instructions:
Copy the script into TradingView’s Pine Script editor.
Customize inputs (e.g., RSI length, Stochastic length, K/D smoothing) as needed.
The AO histogram (original scale, centered at zero) and scaled Stoch RSI K/D lines will appear in the same plot pane, with K/D lines overlaid on the histogram bars in a MACD-like layout.
Histogram transparency (50) and thicker K/D lines (linewidth=3) ensure readability. If the overlap is too cluttered, you can:
Increase transparency (e.g., color.new(..., 70)).
Adjust the K/D scaling factor (e.g., change ao_max / 50 to ao_max / 25).
Set up alerts in TradingView for AO or Stoch RSI conditions.
Body GapsThis script is a customized version based on TradingView’s official “Gaps” indicator. The original version detects gaps using the distance between highs and lows of consecutive bars. In contrast, this script introduces a refined definition of gaps by focusing strictly on real body gaps—price zones where the open and close of two consecutive candles do not overlap.
Additionally, the gap closure logic has been enhanced:
Instead of checking for simple wick penetration, a gap is only marked as closed when the closing price fully re-enters the gap zone, ensuring a more reliable and practical interpretation for traders.
Smart Reversal Signal (Stoch + RSI + EQH/EQL) - TF + Lookback📌 Smart Reversal Signal (Stoch + RSI + EQH/EQL)
This custom TradingView indicator identifies potential trend reversal signals using a combination of Stochastic Oscillator, Relative Strength Index (RSI), and Equal Highs/Lows (EQH/EQL) based on a higher timeframe.
✅ Key Features:
Stochastic %K and %D Cross
Detects bullish reversal when %K crosses above %D in oversold zone (< 20)
Detects bearish reversal when %K crosses below %D in overbought zone (> 80)
RSI Signal Confirmation
Bullish when RSI crosses above the oversold level (e.g., 30)
Bearish when RSI crosses below the overbought level (e.g., 70)
Equal High / Low Zones (EQH/EQL)
Confirms price is reversing near previous unbroken highs/lows (within % tolerance)
Uses customizable higher timeframe (e.g., 1H) and user-defined lookback period
Buy Signal:
RSI crosses up from oversold
Stochastic %K crosses above %D
Price near an Equal Low (EQL)
Sell Signal:
RSI crosses down from overbought
Stochastic %K crosses below %D
Price near an Equal High (EQH)
Visual Aids:
Background highlights (green for Buy, red for Sell)
RSI and Stochastic plots with overbought/oversold levels
Alert conditions for Buy and Sell triggers
⚙️ Customizable Inputs:
Stochastic and RSI lengths
Overbought/Oversold levels
Tolerance for EQH/EQL zones (%)
Timeframe for EQH/EQL detection
Lookback bars to define EQ zones
📈 Use Case:
This indicator helps traders detect high-probability reversal zones by aligning:
Momentum shifts (via RSI & Stochastic)
Price structure zones (EQH/EQL)
Ideal for swing trading, mean reversion strategies, or trend reversal confirmations.