Ultimate Scalping Tool⚡[BullByte]Ultimate Scalping Tool⚡
A Multi-Dimensional Adaptive Oscillator for Precision Trading
Core Concept & Originality
This script is NOT a simple mashup of indicators. It introduces a proprietary "Quantum Flux Oscillator" that dynamically combines trend, momentum, volatility, and volume pressure into a single normalized score (-100 to +100), weighted adaptively based on market regime. Key innovations:
1. Adaptive Weighting System: Automatically adjusts component weights (Trend/Momentum/Volatility/Volume) based on real-time market conditions (e.g., increases trend weight during strong ADX phases).
2. Quantum Flux Candle Visualization: Translates oscillator values into candlestick-like structures for intuitive pattern recognition, with colors that shift based on confluence with higher timeframe filters.
3. Multi-Timeframe Smart Filtering: Implements a unique "Leading HTF Filter" that uses EMA crossovers (instead of lagging ADX) for faster trend confirmation.
4. Dynamic Thresholds: Auto-adjusts overbought/oversold levels using volatility-standard deviation, reducing false signals in choppy markets.
---
🛠 How It Works
Component Integration Logic
1. Trend (ADX + DI):
- Normalized ADX (0-1 scale) with directional bias from DI crossover.
- Why? Isolates trending phases while filtering out sideways noise.
2. Momentum (RSI):
- Standard RSI normalized to oscillate around zero.
- Why? Confirms strength of moves identified by trend.
3. Volatility (ATR Ratio):
- ATR divided by price to detect abnormal volatility regimes.
- Why? Prevents false breakouts during low-volatility traps.
4. Volume Pressure (CMF):
- Chaikin Money Flow normalized to detect institutional activity.
- Why? Adds conviction by confirming retail vs. smart money participation.
Signal Generation
- Strong Buy/Sell: Requires oscillator >|25| AND trend alignment (DI+ > DI- for buys).
- Early Signals: Uses oscillator delta (>0.5) to detect momentum shifts before thresholds are hit.
- Pullback Signals: Triggers when oscillator retraces to neutral zone but trend remains intact.
Dashboard Components & Trader Actions
Trend (TF) displays normalized ADX/DI trend strength: green indicates bullish conditions at or above 0.4, gray signals a sideways market, and red denotes bearish readings at or below –0.4—traders should follow trades in the direction of green or red and avoid gray ranges.
Momentum (TF) shows the RSI‑based momentum component: green for strong momentum, yellow for neutral, and red for weak—enter trades on green signals and be cautious when yellow appears.
Volume (CMF) measures buying and selling pressure over the lookback period: dark green corresponds to high buying pressure and dark red to moderate selling—use green readings to confirm entries and exit on strong selling.
Basic Signal is the primary entry/exit trigger: pullback sell appears in red, strong buy in green, and neutral states indicate no trade—execute buys on green, sells on red, and skip neutral.
Advanced Signal refines guidance using oscillator peaks and delta smoothing: “ Caution – Momentum Weak” displays in yellow to warn of weakening momentum, while “Early Buy” appears in lime to suggest a building uptrend—exercise caution on yellow warnings and consider early setups on lime signals.
RSI lists the raw 14‑period RSI value to highlight overbought (above 70) and oversold (below 30) conditions—use it as a secondary filter for entry and exit decisions.
HTF Filter indicates the higher‑timeframe trend via EMA crossover or HTF‑ADX: green for bullish alignment and red for bearish—only follow signals aligned with the higher timeframe trend when the filter is enabled.
VWAP shows the volume‑weighted average price, colored green when price trades above it and red when below—bias long positions above VWAP and short positions below.
ADX displays the raw ADX reading along with an arrow showing its direction (up arrow if rising, down arrow if falling)—a rising ADX signals a trending market, while a flat ADX favors range‑trading strategies.
Mode denotes the preset market‑type profile (Custom, Crypto, Stocks, or Forex) , allowing traders to quickly load optimized default settings for different asset classes.
Regime indicates volatility regimes based on ATR ratio: green for low‑volatility environments and red for high‑volatility—favor mean‑reversion strategies in low‑volatility and trend‑following techniques in high‑volatility regimes.
⚙️ Filter Explanations
1. DI Reversal Filter:
- Requires 3-bar confirmation when ADX >30 (reduces whipsaws).
- Default: Off (Enable for conservative trading).
2. Dynamic Thresholds:
- Adjusts OB/OS levels using volatility (e.g., expands thresholds in high ATR regimes).
- Default: Off (Enable for crypto/volatile markets).
3. Leading HTF Filter:
- Uses faster EMA crossover (9/21) instead of ADX for HTF alignment.
- Default: On (Disable for pure mean-reversion strategies).
4. Adaptive Weighting
- Automatically adjusts the influence of Trend/Momentum/Volatility/Volume based on market
conditions.
-Increases trend weight during strong ADX phases, boosts volatility weight in choppy markets,
and reduces volume weight in low-liquidity instruments.
Default: On (Disable for fixed-weight strategies).
5. Early Signal
-Detects momentum shifts before the oscillator crosses thresholds using smoothed delta
values.
- Provides advance warnings (e.g., "Early Buy" when delta >0.5 + trend alignment)
- Default: Off (Enable for aggressive entries, but requires tighter risk management)
⚠️ Disclaimer & Usage
- Timeframe : Optimized for 5M-1H (scalping) and 4H-D (swing).
- Markets : Pre-configured modes for Crypto (volatile), Stocks (trending), Forex (ranging).
- Risk : Always use stop-losses. This tool generates confluence signals , not holy grail entries.
- Backtest : Adaptive weights perform best with >100 trades for statistical significance.
---
🌟 What Makes This Different?
Unlike basic oscillator mashups:
- Context-Aware: Weights adjust to volatility (e.g., lowers volume weight in forex, boosts trend weight in stocks).
- Visual Intelligence: Quantum candles turn yellow/purple when HTF + LTF signals align.
- Early-Warning: Delta smoothing detects momentum shifts before crosses (e.g., "Early Buy" flags).
---
🔗 For parameter tuning, refer to the tooltip explanations next to each input.
---
Note : This description intentionally avoids exaggerated claims ("100% accurate") and focuses on transparent methodology as required by TradingView guidelines.
Good luck!
BullByte
Scalping
Market Open & Pre-Open Linesversion 1.0 2025-04-23
Stated vertical line for market open and pre-market open. Market option include US, EU, UK, JP and AU. This line do auto-defined during daylight saving time. This help for those trade during market open and benefit for those doing backtest on it.
RSI and MA Band📊 RSI with Gradient Fill
🔧 Features:
1) Two Customizable RSIs
-RSI1 (default length: 5)
-RSI2 (default length: 21)
Both are calculated separately and displayed in black.
2) Dynamic Gradient Fill between RSI1-RSI2 and MA1-MA2
Helps visually identify divergence and convergence behavior between the RSIs.
3) Overbought and Oversold Zones with Visual Gradients
✅ Classic Zones:
-Overbought above 70
-Oversold below 30
✅ Extended Zones:
-Extreme Overbought above 85
-Extreme Oversold below 15
Horizontal Support/Resistance Lines for RSI
Lines at 15, 30, 50, 70, and 85 clearly mark RSI ranges.
4) Moving Averages on RSI:
Ability to enable two MAs on RSI1 and RSI2:
-Selectable type (SMA, EMA, SMMA, WMA, VWMA)
-Customizable lengths
-Displayed in yellow.
5) Fill Between MAs
Highlights divergence or alignment between moving averages applied to RSI.
6) Crossover Detection with Visual Indicators
🟣 Purple triangles when RSI1 crosses RSI2.
🟢 Green triangles when MA1 crosses MA2.
-------------------------------------------- --------------------------------------------
1) Identifying Trend Strength or Potential Reversals
2) Crossovers between RSI1 and RSI2 may indicate short-term momentum shifts.
3) Gradient fills help easily visualize significant divergences.
4) Entry/Exit SL and TP Signals
5) Overbought/Oversold zones (especially extended ones) offer early signals for possible reversals or sideways phases.
6) Momentum Filtering with Moving Averages
7) Smooths out RSI "noise" and reveals more sustained RSI trends.
8) MA crossovers provide stronger confirmation of momentum.
9) Dual RSIs + gradients + colored zones allow for quick market state interpretation at a glance, without visual clutter.
-----🌟 Extremely intuitive and trader-friendly visual representation — built for quick decisions without sacrificing depth.-----
🐢 Turtle Soup Strategy v1.0 – TBS/TWS + OB/FVG + SL/TP🐢 Turtle Soup Strategy v1.0 – Backtest Edition
This document gives you everything you need to use, interpret, and optimize the Turtle Soup Strategy in TradingView.
🐢 What is Turtle Soup?
Turtle Soup is a reversal trading strategy based on false breakouts of recent highs or lows — often referred to as liquidity traps.
Popularized by Linda Raschke , it flips the logic of breakout trading on its head by betting against the breakout, especially when it occurs near key swing points or in range-bound markets.
The idea is simple:
"When the turtles come out, the smart money cooks them."
🧠 In practice, traders place buy orders after price dips below a recent low and reverses, or sell orders after a false breakout above a high.
These fakeouts are often stop hunts, where large players induce retail traders into breakout positions, only to reverse the market against them — providing high-probability entry points for contrarian traders.
🧪 Core Components of Turtle Soup:
✅ Donchian Channel (recent swing high/low)
✅ Wick or body breakout
✅ Fast reversal back into range
✅ (Optional) Order block or FVG confluence
🔥 Why It Works:
Exploits liquidity zones where retail stops are clustered
Aligns with smart money concepts
Highly effective in sideways markets or after exhaustion spikes
🔎 What This Strategy Does
This is a reversal-based price action strategy that identifies false breakouts of recent highs or lows (liquidity traps), using the popular Turtle Soup pattern.
It enters trades when:
Price fakes out past the Donchian high or low
Closes back into the range
Optionally confirms with:
✅ Order Block Confluence (institutional footprint)
✅ Fair Value Gap (FVG) Confluence (imbalance)
It then sets:
🛑 A Stop Loss (SL) below/above the signal candle
🎯 A Take Profit (TP1) at a customizable Risk-Reward Ratio (RR) (default 1.5x)
🎯 Core Concepts
1. TBS – Turtle Body Soup
Full-body breakout and close back inside range
Considered stronger and more reliable
2. TWS – Turtle Wick Soup
Wick only breaks the high/low, body closes back inside
Weaker but still valid in confluence
⚙️ Inputs & Settings
Setting Description
Donchian Lookback Period for high/low reference (default: 20 candles)
TP1 RR Risk-Reward ratio for take profit target 1 (default: 1.5)
Use Order Block Filter If ON, requires bullish/bearish OB to validate the entry
Use FVG Filter If ON, requires FVG confluence (gap in price action = imbalance)
You can adjust these in the strategy’s Settings panel (gear icon in TradingView).
📈 How Trades Are Triggered
🟢 Long Entry occurs when:
TBS or TWS long signal is detected
(optional) Bullish Order Block present
(optional) Bullish FVG present
→ Entry: Close of signal candle
→ SL: Below candle’s low
→ TP1: Calculated from RR (default: 1.5x distance to SL)
🔴 Short Entry occurs when:
TBS or TWS short signal is detected
(optional) Bearish Order Block present
(optional) Bearish FVG present
→ Entry: Close of signal candle
→ SL: Above candle’s high
→ TP1: Calculated from RR (default: 1.5x distance to SL)
📊 How to Backtest
1. Open script in TradingView
Paste the full script into the Pine Script editor and click "Add to Chart".
2. Open the Strategy Tester
Navigate to the “Strategy Tester” tab (bottom panel).
Click “Overview” to see:
Net Profit 💰
Win Rate 📈
Number of Trades 📊
Max Drawdown 🩸
3. Use "Performance Summary" and "List of Trades"
You can click on List of Trades to review every trade (entry, exit, profit, SL, TP).
Filter and export as needed.
📊 Turtle Soup – Chart Signals Explained
🟢 TBS Long
Symbol: Green label up, text “TBS 🔺”
Meaning:
Turtle Body Soup long setup:
The body of the candle breaks below the recent Donchian Low (liquidity grab),
Then price closes back above that low.
Interpretation:
Strong bullish reversal signal, especially if confirmed by order block or FVG.
🔴 TBS Short
Symbol: Red label down, text “TBS 🔻”
Meaning:
Turtle Body Soup short setup:
The body of the candle breaks above the recent Donchian High (liquidity grab),
Then price closes back below that high.
Interpretation:
Strong bearish reversal signal.
🔵 TWS Long
Symbol: Blue triangle up, text “TWS ⬆”
Meaning:
Turtle Wick Soup long setup:
The wick (not the body) breaks below the Donchian Low,
Candle closes back inside the range.
Interpretation:
Bullish reversal signal (less powerful than TBS but still valid).
🟠 TWS Short
Symbol: Orange triangle down, text “TWS ⬇”
Meaning:
Turtle Wick Soup short setup:
The wick breaks above the Donchian High,
Candle closes back inside the range.
Interpretation:
Bearish reversal signal.
🟩 Order Block Bullish
Symbol: Small green square under bar
Meaning:
Last bearish candle before a bullish impulse (institutional buying footprint).
Used as confluence for stronger long entries.
🟥 Order Block Bearish
Symbol: Small red square above bar
Meaning:
Last bullish candle before a bearish impulse (institutional selling footprint).
Used as confluence for stronger short entries.
🔷 FVG Up
Symbol: Navy blue X below bar
Meaning:
Fair Value Gap (FVG) up:
A gap/imbalance created by a strong move up,
Indicates potential support or bullish confluence.
🟪 FVG Down
Symbol: Fuchsia X above bar
Meaning:
Fair Value Gap (FVG) down:
A gap/imbalance created by a strong move down,
Indicates potential resistance or bearish confluence.
📏 Entry / SL / TP Lines
Entry: Gray dashed line
Stop Loss (SL): Red dashed line
Take Profit 1 (TP1): Green solid line
Take Profit 2 (TP2): Green thick solid line
Drawn whenever a trade is triggered.
SL and TPs are calculated automatically from entry based on RR.
💡 Optimization Tips
What to Test - Why It Matters
Donchian Lookback - 20 is default, but shorter (10) catches faster setups
TP1 RR - Try 1.2 to 2.5 for different market types
Use/Disable Order Block Filter - Adds precision, reduces trades
Use/Disable FVG Filter . Adds imbalance confirmation
Lower Timeframes (M15–H1) - Gives more trades for statistical testing
🧠 When It Works Best
This strategy shines in:
Choppy / range-bound markets (liquidity traps are frequent)
Smart money behavior areas: stop hunts before reversals
Near session opens, news volatility, and false breakouts
Avoid in:
Strong trending markets without reversal signals
Low liquidity / overnight hours (on low timeframes)
🛡️ Risk Disclaimer
⚠️ This is a backtesting tool and not financial advice. Use responsibly.
Past performance ≠ future results. Always validate on demo or forward test before going live.
MACD Filtered CrossThis indicator adds on to the standard MACD cross by adding a filter. It can be used to filter only MACD crosses above zero or below zero.
I separated the cross ups and cross downs if you only want to see bullish or bearish crosses.
Personally, I like looking for bullish MACD crosses above 0 for possible longs.
Enjoy!
W%R Zone Scalper[BullByte] v1.0W%R Zone Scalper Strategy - The Definitive Deep Dive
1. Introduction: The Philosophy Behind the Strategy
This script, W%R Zone Scalper , is not just another Williams %R-based trading system—it is a refined, multi-filtered scalping engine designed to maximize edge in trending markets while minimizing false signals in choppy conditions . Unlike most basic %R strategies that blindly trade crossovers, this system introduces a sophisticated confluence of trend, volatility, and momentum filters , making it a high-probability scalper for intraday traders .
What Makes This Script Different?
✅ Originality: Most %R strategies rely solely on overbought/oversold levels, leading to whipsaws in ranging markets. This script intelligently combines:
- Trend confirmation (MA, Supertrend)
- Volatility filters (BB Width, Choppiness Index)
- Volume validation (to ensure real participation)
- ADX trend strength (to avoid weak, fake trends)
✅ Smart Trade Execution:
- Not just %R crossovers —entries are only taken when multiple filters align, reducing noise.
- Optional ATR-based SL/TP for disciplined risk management.
- Dashboard integration for real-time trade monitoring.
✅ Adaptability:
- Works on crypto, forex, and stocks (optimized for high-liquidity assets like BTC).
- Scalable from 1-minute scalping to 1-hour swing trades (adjust filters accordingly).
2. Core Components: A Surgical Breakdown
A. Williams %R - The Trigger Mechanism
- Default Settings:
- Length = 14 (optimal balance between sensitivity and reliability).
- Long Entry : Cross above -80 (oversold bounce with momentum).
- Short Entry : Cross below -20 (overbought rejection).
Why This Matters:
- Unlike RSI or Stochastic, %R is more aggressive in detecting reversals, making it ideal for scalping fast moves.
- However, raw %R signals are noisy—hence the need for additional filters.
B. The Moving Average (MA) - Trend Filter
- Purpose: Ensures trades are only taken in the direction of the broader trend.
- Types Available:
- SMA (Simple MA) – Smooth but laggy.
- EMA (Exponential MA) – Faster, default choice.
- WMA (Weighted MA) – More responsive to recent prices.
- HMA (Hull MA) – Minimal lag, excellent for scalping.
Entry Logic:
- Long : Price must be above MA (confirms uptrend).
- Short : Price must be below MA (confirms downtrend).
Why This Matters:
- Prevents counter-trend trades , which are high-risk in scalping.
- Works as a dynamic support/resistance .
C. Advanced Filters - The Edge Enhancers
1. Choppiness Index (CI) - Avoiding Sideways Markets
- Default:
- Length = 12
- Threshold = 38.2 (below = trending, above = choppy).
Why This Matters:
- Eliminates false signals in ranging markets (where %R crossovers fail most).
- Inspired by market cycle theory—only trades when volatility is directional.
2. ADX (Average Directional Index) - Trend Strength
- Default:
- Length = 14
- Threshold = 25 (only trade if ADX > 25 = strong trend).
Why This Matters:
- Many traders ignore ADX and get fake breakouts—this ensures trades happen only in high-momentum conditions.
3. Volume Filter - Confirming Real Moves
- Logic: Volume must be above its 50-period MA.
- Why This Matters:
- Low-volume breakouts often fail—this ensures institutional participation.
4. Bollinger Band Width (BBW) - Volatility Check
- Logic: BBW must be above its moving average (expanding volatility = good for scalping).
Why This Matters:
- Avoids low-volatility traps where price moves are insignificant.
5. Supertrend - Dynamic Trend Confirmation
- Logic:
- Longs : Price must be above Supertrend line.
- Shorts : Price must be below Supertrend line.
Why This Matters:
- Acts as a secondary trend filter , reducing whipsaws.
---
3. Risk Management - Protecting Capital
A. Position Sizing (Flexible & Adaptive)
- Default: 30% of equity per trade(aggressive but adjustable).
- Initial Capital: $1,000(example—modify based on your account size).
B. Stop Loss & Take Profit (ATR-Based)
- SL = 1.5x ATR (protects against sudden reversals).
- TP = 2x ATR (locks in profits before pullbacks).
Why ATR?
- Dynamic adjustment —wider in volatile markets, tighter in calm ones.
C. Manual Adjustments Required
- Commission: Default 0.1% (adjust per your broker).
- Leverage: Not hardcoded —apply based on your risk tolerance.
4. Optimal Time Frame & Asset Selection
- Best for: 5M - 15M charts(scalping).
- Also works on: 1H-4H(swing trades with adjusted filters).
- Best Assets:
- High-liquidity cryptos (BTC, ETH, SOL)
- Forex majors (EUR/USD, GBP/USD)
- High-beta stocks (TSLA, NVDA)
5. The Dashboard - Real-Time Trade Intelligence
- PnL Tracking (profit/loss in $ and %).
- Position Status (Long/Short/Flat).
- Filter Status (which ones are active).
- Key Indicators (%R, MA, Volume).
Why This Matters:
- No guesswork—all critical info in one place.
6. Strong Disclaimer
⚠️ This is not financial advice. Trading carries risk of loss.
- Backtest thoroughly before live trading.
- Start with small capital to validate performance.
- Modify SL/TP, leverage, and position sizing based on your risk profile.
- The developer is not liable for any losses incurred.
7. Why This Strategy Stands Out
Most %R strategies fail in real markets because they ignore:
❌ Trend context (trading reversals blindly).
❌ Volatility cycles (getting chopped up in sideways action).
❌ Volume confirmation (falling for fake breakouts).
This script solves those problems by:
✅ Only trading when multiple high-probability factors align.
✅ Using adaptive risk management (ATR-based SL/TP).
✅ Providing a real-time dashboard for decision-making.
8.Important Note on Backtesting & Customization
The performance results displayed with this script are based on:
- Asset BTC/USD
- Timeframe : 5-minute chart
- Key Filters Enabled :
- Moving Average (Trend Confirmation)
- Choppiness Index (Sideways Market Filter)
- Volume (Participation Validation)
Your Trading Approach May Vary
This configuration represents just one possible way to deploy the strategy. You can:
- Test alternative settings (adjust lengths, thresholds, or filters)
- Apply to different assets (cryptos, forex pairs, stocks)
- Experiment with timeframes (1m for ultra-scalping, 15m/1H for swing trades)
Critical Reminder
Always conduct your own forward testing before live trading. Market conditions change, and past performance never guarantees future results.
All the best!
Reversal Strength Meter – Adib NooraniThe Reversal Strength Meter is an oscillator designed to identify potential reversal zones based on supply and demand dynamics. It uses smoothed stochastic logic to reduce noise and highlight areas where momentum may be weakening, signaling possible market turning points.
🔹 Smooth, noise-reduced stochastic oscillator
🔹 Custom zones to highlight potential supply and demand imbalances
🔹 Non-repainting, compatible across all timeframes and assets
🔹 Visual-only tool — intended to support discretionary trading decisions
This oscillator assists scalpers and intraday traders in tracking subtle shifts in momentum, helping them identify when a market may be preparing to reverse — always keeping in mind that trading is based on probabilities, not certainties.
📘 How to Use the Indicator Efficiently
For Reversal Trading:
Buy Setup
– When the blue line dips below the 20 level, wait for it to re-enter above 20.
– Look for reversal candlestick patterns (e.g., bullish engulfing, hammer, or morning star).
– Enter above the pattern’s high, with a stop loss below its low.
Sell Setup
– When the blue line rises above the 80 level, wait for it to re-enter below 80.
– Look for bearish candlestick patterns (e.g., bearish engulfing, inverted hammer, or evening star).
– Enter below the pattern’s low, with a stop loss above its high.
🛡 Risk Management Guidelines
Risk only 0.5% of your capital per trade
Book 50% profits at a 1:1 risk-reward ratio
Trail the remaining 50% using price action or other supporting indicators
Reversal Scalping Ribbon - Adib NooraniThe Reversal Scalping Ribbon is a trend-following overlay tool designed to visually identify potential reversal zones based on price extremes and dynamic volatility bands. It calculates adaptive upper and lower bands using price action and custom ATR logic, helping traders quickly assess market direction and possible turning points
🔹 Volatility-adjusted bands based on price highs/lows
🔹 Color-coded ribbons to indicate trend bias and potential reversal shifts
🔹 No repainting, works on all timeframes and assets
🔹 Visual-only display, no trade signals — supports discretion-based entries
This ribbon is designed for scalpers and intraday traders to spot reversal setups with clarity. It enhances your trading by showing real-time market bias without unnecessary distractions. By focusing on probabilities, it helps to improve decision-making in fast-paced environments
How to use the indicator efficiently
For Reversal Trading:
Buy: When price closes below the green ribbon with a red candle, then re-enters with a green candle. Enter above the high of the green candle with a stop loss below the lowest low of the recent green/red candles
Sell: When price closes above the red ribbon with a green candle, then re-enters with a red candle. Enter below the low of the red candle with a stop loss above the highest high of the recent red/green candles
Risk Management:
Limit risk to 0.5% of your capital per trade
Take 50% profit at a 1:1 risk-reward ratio
For the remaining 50%, trail using the lower edge of the green band for buys and the upper edge of the red band for sells
ScalpSwing Pro SetupScript Overview
This script is a multi-tool setup designed for both scalping (1m–5m) and swing trading (1H–4H–Daily). It combines the power of trend-following , momentum , and mean-reversion tools:
What’s Included in the Script
1. EMA Indicators (20, 50, 200)
- EMA 20 (blue) : Short-term trend
- EMA 50 (orange) : Medium-term trend
- EMA 200 (red) : Long-term trend
- Use:
- EMA 20 crossing above 50 → bullish trend
- EMA 20 crossing below 50 → bearish trend
- Price above 200 EMA = uptrend bias
2. VWAP (Volume Weighted Average Price)
- Shows the average price weighted by volume
- Best used in intraday (1m to 15m timeframes)
- Use:
- Price bouncing from VWAP = reversion trade
- Price far from VWAP = likely pullback incoming
3. RSI (14) + Key Levels
- Shows momentum and overbought/oversold zones
- Levels:
- 70 = Overbought (potential sell)
- 30 = Oversold (potential buy)
- 50 = Trend confirmation
- Use:
- RSI 30–50 in uptrend = dip buying zone
- RSI 70–50 in downtrend = pullback selling zone
4. MACD Crossovers
- Standard MACD with histogram & cross alerts
- Shows trend momentum shifts
- Green triangle = Bullish MACD crossover
- Red triangle = Bearish MACD crossover
- Use:
- Confirm swing trades with MACD crossover
- Combine with RSI divergence
5. Buy & Sell Signal Logic
BUY SIGNAL triggers when:
- EMA 20 crosses above EMA 50
- RSI is between 50 and 70 (momentum bullish, not overbought)
SELL SIGNAL triggers when:
- EMA 20 crosses below EMA 50
- RSI is between 30 and 50 (bearish momentum, not oversold)
These signals appear as:
- BUY : Green label below the candle
- SELL : Red label above the candle
How to Trade with It
For Scalping (1m–5m) :
- Focus on EMA crosses near VWAP
- Confirm with RSI between 50–70 (buy) or 50–30 (sell)
- Use MACD triangle as added confluence
For Swing (1H–4H–Daily) :
- Look for EMA 20–50 cross + price above EMA 200
- Confirm trend with MACD and RSI
- Trade breakout or pullback depending on structure
Triple Confirmation Scalper v2 - Alarm CompatibleTriple Confirmation Scalper Strategy
A high-probability scalping strategy combining trend momentum, overbought/sold conditions, and volume confirmation to filter low-noise signals.
📊 Strategy Logic
Trend Direction
Dual EMA crossover (9 & 21 periods) for momentum and trend bias.
Overbought/Oversold Zones
RSI (14-period) to avoid entries at extremes.
Volume Spike Filter
OBV + 20-period volume average to confirm breakout validity.
Dynamic Risk Management
Stop-loss: Adaptive to recent price action (5-candle low/high ±1%).
Take-profit: 1.5% target (1.5:1 risk/reward).
🔍 Advanced Features
Precision VWAP (20-period, HLC3-based) for dynamic S/R levels.
Visual Aids:
EMA/VWAP bands + trend-colored background.
Volume spike alerts.
TradingView Alerts pre-configured for long/short signals.
⚙️ Default Settings
Commission: 0.1% factored into backtests.
Mode: Supports both long/short positions.
⚠️ Disclaimer
This is a technical analysis tool, not financial advice.
Past performance ≠ future results. Test thoroughly in a demo account.
Adjust parameters (e.g., EMA periods, RSI thresholds) to match your risk tolerance.
✅ TradingView Compliance Notes:
No exaggerated claims (e.g., "100% win rate").
Clear disclaimer included.
Focus on objective strategy logic (no promotional language).
Institutional Quantum Momentum Impulse [BullByte]## Overview
The Institutional Quantum Momentum Impulse (IQMI) is a sophisticated momentum oscillator designed to detect institutional-level trend strength, volatility conditions, and market regime shifts. It combines multiple advanced technical concepts, including:
- Quantum Momentum Engine (Hilbert Transform + MACD Divergence + Stochastic Energy)
- Fractal Volatility Scoring (GARCH + Keltner-based volatility)
- Dynamic Adaptive Bands (Self-adjusting thresholds based on efficiency)
- Market Phase Detection (Volume + Momentum alignment)
- Liquidity & Cumulative Delta Analysis
The indicator provides a Z-score normalized momentum reading, making it ideal for mean-reversion and trend-following strategies.
---
## Key Features
### 1. Quantum Momentum Core
- Combines Hilbert Transform, MACD divergence, and Stochastic Energy into a single composite momentum score.
- Normalized using a Z-score for statistical significance.
- Smoothed with EMA/WMA/HMA for cleaner signals.
### 2. Dynamic Adaptive Bands
- Upper/Lower bands adjust based on volatility and efficiency ratio .
- Acts as overbought/oversold zones when momentum reaches extremes.
### 3. Market Phase Detection
- Identifies bullish , bearish , or neutral phases using:
- Volume-Weighted MA alignment
- Fractal momentum extremes
### 4. Volatility & Liquidity Filters
- Fractal Volatility Score (0-100 scale) shows market instability.
- Liquidity Check ensures trades are taken in favorable spread conditions.
### 5. Dashboard & Visuals
- Real-time dashboard with key metrics:
- Momentum strength, volatility, efficiency, cumulative delta, and market regime.
- Gradient coloring for intuitive momentum visualization .
---
## Best Trade Setups
### 1. Trend-Following Entries
- Signal :
- QM crosses above zero + Market Phase = Bullish + ADX > 25
- Cumulative Delta rising (buying pressure)
- Confirmation :
- Efficiency > 0.5 (strong momentum quality)
- Liquidity = High (tight spreads)
### 2. Mean-Reversion Entries
- Signal :
- QM touches upper band + Volatility expanding
- Market Regime = Ranging (ADX < 25)
- Confirmation :
- Efficiency < 0.3 (weak momentum follow-through)
- Cumulative Delta divergence (price high but delta declining)
### 3. Breakout Confirmation
- Signal :
- QM holds above zero after a pullback
- Market Phase shifts to Bullish/Bearish
- Confirmation :
- Volatility rising (expansion phase)
- Liquidity remains high
---
## Recommended Timeframes
- Intraday (5M - 1H): Works well for scalping & swing trades.
- Swing Trading (4H - Daily): Best for trend-following setups.
- Position Trading (Weekly+): Useful for macro trend confirmation.
---
## Input Customization
- Resonance Factor (1.0 - 3.618 ): Adjusts MACD divergence sensitivity.
- Entropy Filter (0.382/0.50/0.618) : Controls stochastic damping.
- Smoothing Type (EMA/WMA/HMA) : Changes momentum responsiveness.
- Normalization Period : Adjusts Z-score lookback.
---
The IQMI is a professional-grade momentum indicator that combines institutional-level concepts into a single, easy-to-read oscillator. It works across all markets (stocks, forex, crypto) and is ideal for traders who want:
✅ Early trend detection
✅ Volatility-adjusted signals
✅ Institutional liquidity insights
✅ Clear dashboard for quick analysis
Try it on TradingView and enhance your trading edge! 🚀
Happy Trading!
- BullByte
Reversal Trading Bot Strategy[BullByte]Overview :
The indicator Reversal Trading Bot Strategy is crafted to capture potential market reversal points by combining momentum, volatility, and trend alignment filters. It uses a blend of technical indicators to identify both bullish and bearish reversal setups, ensuring that multiple market conditions are met before entering a trade.
Core Components :
Technical Indicators Used :
RSI (Relative Strength Index) :
Purpose : Detects divergence conditions by comparing recent lows/highs in price with the RSI.
Parameter : Length of 8.
Bollinger Bands (BB) :
Purpose : Measures volatility and identifies price levels that are statistically extreme.
Parameter : Length of 20 and a 2-standard deviation multiplier.
ADX (Average Directional Index) & DMI (Directional Movement Index) :
Purpose : Quantifies the strength of the trend. The ADX threshold is set at 20, and additional filters check for the alignment of the directional indicators (DI+ and DI–).
ATR (Average True Range) :
Purpose : Provides a volatility measure used to set stop levels and determine risk through trailing stops.
Volume SMA (Simple Moving Average of Volume ):
Purpose : Helps confirm strength by comparing the current volume against a 20-period average, with an optional filter to ensure volume is at least twice the SMA.
User-Defined Toggle Filters :
Volume Filter : Confirms that the volume is above average (or twice the SMA) before taking trades.
ADX Trend Alignment Filter : Checks that the ADX’s directional indicators support the trade direction.
BB Close Confirmation : Optionally refines the entry by requiring price to be beyond the upper or lower Bollinger Band rather than just above or below.
RSI Divergence Exit : Allows the script to close positions if RSI divergence is detected.
BB Mean Reversion Exit : Closes positions if the price reverts to the Bollinger Bands’ middle line.
Risk/Reward Filter : Ensures that the potential reward is at least twice the risk by comparing the distance to the Bollinger Band with the ATR.
Candle Movement Filter : Optional filter to require a minimum percentage move in the candle to confirm momentum.
ADX Trend Exit : Closes positions if the ADX falls below the threshold and the directional indicators reverse.
Entry Conditions :
Bullish Entry :
RSI Divergence : Checks if the current close is lower than a previous low while the RSI is above the previous low, suggesting bullish divergence.
Bollinger Confirmation : Requires that the price is above the lower (or upper if confirmation is toggled) Bollinger Band.
Volume & Trend Filters : Combines volume condition, ADX strength, and an optional candle momentum condition.
Risk/Reward Check : Validates that the trade meets a favorable risk-to-reward ratio.
Bearish Entry :
Uses a mirror logic of the bullish entry by checking for bearish divergence, ensuring the price is below the appropriate Bollinger level, and confirming volume, trend strength, candle pattern, and risk/reward criteria.
Trade Execution and Exit Strateg y:
Trade Execution :
Upon meeting the entry conditions, the strategy initiates a long or short position.
Stop Loss & Trailing Stops :
A stop-loss is dynamically set using the ATR value, and trailing stops are implemented as a percentage of the close price.
Exit Conditions :
Additional exit filters can trigger early closures based on RSI divergence, mean reversion (via the middle Bollinger Band), or a weakening trend as signaled by ADX falling below its threshold.
This multi-layered exit strategy is designed to lock in gains or minimize losses if the market begins to reverse unexpectedly.
How the Strategy Works in Different Market Conditions :
Trending Markets :
The ADX filter ensures that trades are only taken when the trend is strong. When the market is trending, the directional movement indicators help confirm the momentum, making the reversal signal more reliable.
Ranging Markets :
In choppy markets, the Bollinger Bands expand and contract, while the RSI divergence can highlight potential turning points. The optional filters can be adjusted to avoid false signals in low-volume or low-volatility conditions.
Volatility Management :
With ATR-based stop-losses and a risk/reward filter, the strategy adapts to current market volatility, ensuring that risk is managed consistently.
Recommendation on using this Strategy with a Trading Bot :
This strategy is well-suited for high-frequency trading (HFT) due to its ability to quickly identify reversal setups and execute trades dynamically with automated stop-loss and trailing exits. By integrating this script with a TradingView webhook-based bot or an API-driven execution system, traders can automate trade entries and exits in real-time, reducing manual execution delays and capitalizing on fast market movements.
Disclaimer :
This script is provided for educational and informational purposes only. It is not intended as investment advice. Trading involves significant risk, and you should always conduct your own research and analysis before making any trading decisions. The author is not responsible for any losses incurred while using this script.
Smart Grid Scalping (Pullback) Strategy[BullByte]The Smart Grid Scalping (Pullback) Strategy is a high-frequency trading strategy designed for short-term traders who seek to capitalize on market pullbacks. This strategy utilizes a dynamic ATR-based grid system to define optimal entry points, ensuring precise trade execution. It integrates volatility filtering and an RSI-based confirmation mechanism to enhance signal accuracy and reduce false entries.
This strategy is specifically optimized for scalping by dynamically adjusting trade levels based on current market conditions. The grid-based system helps capture retracement opportunities while maintaining strict trade management through predefined profit targets and trailing stop-loss mechanisms.
Key Features :
1. ATR-Based Grid System :
- Uses a 10-period ATR to dynamically calculate grid levels for entry points.
- Prevents chasing trades by ensuring price has reached key levels before executing entries.
2. No Trade Zone Protection :
- Avoids low-volatility zones where price action is indecisive.
- Ensures only high-momentum trades are executed to improve success rate.
3. RSI-Based Entry Confirmation :
- Long trades are triggered when RSI is below 30 (oversold) and price is in the lower grid zone.
- Short trades are triggered when RSI is above 70 (overbought) and price is in the upper grid zone.
4. Automated Trade Execution :
- Long Entry: Triggered when price drops below the first grid level with sufficient volatility.
- Short Entry: Triggered when price exceeds the highest grid level with sufficient volatility.
5. Take Profit & Trailing Stop :
- Profit target set at a customizable percentage (default 0.2%).
- Adaptive trailing stop mechanism using ATR to lock in profits while minimizing premature exits.
6. Visual Trade Annotations :
- Clearly labeled "LONG" and "SHORT" markers appear at trade entries for better visualization.
- Grid levels are plotted dynamically to aid decision-making.
Strategy Logic :
- The script first calculates the ATR-based grid levels and ensures price action has sufficient volatility before allowing trades.
- An additional RSI filter is used to ensure trades are taken at ideal market conditions.
- Once a trade is executed, the script implements a trailing stop and predefined take profit to maximize gains while reducing risks.
---
Disclaimer :
Risk Warning :
This strategy is provided for educational and informational purposes only. Trading involves significant risk, and past performance is not indicative of future results. Users are advised to conduct their own due diligence and risk management before using this strategy in live trading.
The developer and publisher of this script are not responsible for any financial losses incurred by the use of this strategy. Market conditions, slippage, and execution quality can affect real-world trading outcomes.
Use this script at your own discretion and always trade responsibly.
MACD Volume Strategy (BBO + MACD State, Reversal Type)Overview
MACD Volume Strategy (BBO + MACD State, Reversal Type) is a momentum-based reversal system that combines MACD crossover logic with volume filtering to enhance signal accuracy and minimize noise. It aims to identify structural trend shifts and manage risk using predefined parameters.
※This strategy is for educational and research purposes only. All results are based on historical simulations and do not guarantee future performance.
Strategy Objectives
Identify early trend transitions with high probability
Filter entries using volume dynamics to validate momentum
Maintain continuous exposure using a reversal-style model
Apply a consistent 1:1.5 risk-to-reward ratio per trade
Key Features
Integrated MACD and volume oscillator filtering
Zero repainting (all signals confirmed on closed candles)
Automatic position flipping for seamless direction shifts
Stop-loss and take-profit based on recent structural highs/lows
Trading Rules
Long Entry Conditions
MACD crosses above the zero line (BBO Buy arrow)
Volume oscillator is positive (short EMA > long EMA)
MACD is above the signal line
Close any existing short and enter a new long
Short Entry Conditions
MACD crosses below the zero line (BBO Sell arrow)
Volume oscillator is positive
MACD is below the signal line
Close any existing long and enter a new short
Exit Rules
Take Profit (TP) = Entry ± (risk distance × 1.5)
Stop Loss (SL) = Recent swing low (for long) or high (for short)
Early Exit = Triggered when a reversal signal appears (flip logic)
Risk Management Parameters
Pair: ETH/USD
Timeframe: 10-minute
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pip
Risk per Trade: 5% of account equity (adjusted for sustainable practice)
Total Trades: 312 (backtest on selected dataset)
※Risk parameters are fully configurable and should be adjusted to suit each trader's personal setup and broker conditions.
Parameters & Configurations
Volume Short Length: 6
Volume Long Length: 12
MACD Fast Length: 11
MACD Slow Length: 21
Signal Smoothing: 10
Oscillator MA Type: SMA
Signal Line MA Type: SMA
Visual Support
Green arrow = Long entry
Red arrow = Short entry
MACD lines, signal line, and histogram
SL/TP markers plotted directly on the chart
Strategic Advantages & Uniqueness
Volume filtering eliminates low-participation, weak signals
Structurally aligned SL/TP based on recent market pivots
No repainting — decisions are made only on closed candles
Always in the market due to the reversal-style framework
Inspirations & Attribution
This strategy is inspired by the excellent work of:
Bitcoinblockchainonline – “BBO_Roxana_Signals MACD + vol”
Leveraging MACD zero-line cross and volume oscillator for intuitive signal generation.
HasanRifat – “MACD Fake Filter ”
Introduced a signal filter using MACD wave height averaging to reduce false positives.
This strategy builds upon those ideas to create a more automated, risk-aware, and technically adaptive system.
Summary
MACD Volume Strategy is a clean, logic-first automated trading system built for precision-seeking traders. It avoids discretionary bias and provides consistent signal logic under backtested historical conditions.
100% mechanical — no discretionary input required
Designed for high-confidence entries
Can be extended with filters, alerts, or trailing stops
※Strategy performance depends on market context. Past performance is not indicative of future results. Use with proper risk management and careful configuration.
Pro Scalper AI [BullByte]The Pro Scalper AI is a powerful, multi-faceted scalping indicator designed to assist active traders in identifying short-term trading opportunities with precision. By combining trend analysis, momentum indicators, dynamic weighting, and optional AI forecasting, this tool provides both immediate and latched trading signals based on confirmed (closed bar) data—helping to avoid repainting issues. Its flexible design includes customizable filters such as a higher timeframe trend filter, and adjustable settings for ADX, ATR, and Hull Moving Average (HMA), giving traders the ability to fine-tune the strategy to different markets and timeframes.
Key Features :
- Confirmed Data Processing :
Utilizes a helper function to lock in price and volume data only from confirmed (closed) bars, ensuring the reliability of signals without the risk of intrabar repainting.
- Trend Analysis :
Employs ADX and Directional Movement (DI) calculations along with a locally computed HMA to detect short-term trends. An optional higher timeframe trend filter can further refine the analysis.
- Flexible Momentum Modes :
Choose between three momentum calculation methods—Stochastic RSI, Fisher RSI, or Williams %R—to match your preferred style of analysis. This versatility allows you to optimize the indicator for different market conditions.
- Dynamic Weighting & Volatility Adjustments :
Adjusts the contribution of trend, momentum, volatility, and volume through dynamic weighting. This ensures that the indicator responds appropriately to varying market conditions by scaling its sensitivity with user-defined maximum factors.
- Optional AI Forecast :
For those who want an extra edge, the built-in AI forecasting module uses linear regression to predict future price moves and adjusts oscillator thresholds accordingly. This feature can be toggled on or off, with smoothing options available for more stable output.
- Latching Mode for Signal Persistenc e:
The script features a latching mechanism that holds signals until a clear reversal is detected, preventing whipsaws and providing more reliable trade entries and exits.
- Comprehensive Visualizations & Dashboard :
- Composite Oscillator & Dynamic Thresholds : The oscillator is plotted with dynamic upper and lower thresholds, and the area between them is filled with a color that reflects the active trading signal (e.g., Strong Buy, Early Sell).
- Signal Markers : Both immediate (non-latching) and stored (latched) signals are marked on the chart with distinct shapes (circles, crosses, triangles, and diamonds) to differentiate between signal types.
- Real-Time Dashboard : A customizable dashboard table displays key metrics including ADX, oscillator value, chosen momentum mode, HMA trend, higher timeframe trend, volume factor, AI bias (if enabled), and more, allowing traders to quickly assess market conditions at a glance.
How to Use :
1. S ignal Interpretation :
- Immediate Signals : For traders who prefer quick entries, the indicator displays immediate signals such as “Strong Buy” or “Early Sell” based on the current market snapshot.
- Latched Signals : When latching is enabled, the indicator holds a signal state until a clear reversal is confirmed, offering sustained trade setups.
2. Trend Confirmation :
- Use the HMA trend indicator and the optional higher timeframe trend filter to confirm the prevailing market direction before acting on signals.
3. Dynamic Thresholds & AI Forecasting :
- Monitor the dynamically adjusted oscillator thresholds and, if enabled, the AI bias to gauge potential shifts in market momentum.
4. Risk Management :
- Combine these signals with additional analysis and sound risk management practices to determine optimal entry and exit points for scalping trades.
Disclaimer :
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always perform your own analysis and use proper risk management strategies before trading.
Money Flow Oscillator [BullByte]
Overview :
The Money Flow Oscillator is a versatile technical analysis tool designed to provide traders with insights into market momentum through the Money Flow Index (MFI). By integrating trend logic, dynamic support/resistance levels, multi-timeframe analysis, and additional indicators like ADX and Choppiness, this script delivers a detailed view of market conditions and signal strength—all while adhering to TradingView’s publication guidelines.
Key Features :
Money Flow Analysis :
Uses the MFI to assess buying and selling pressure, helping traders gauge market momentum.
Trend Switch Logic :
Employs ATR-based calculations to determine trend direction. The background color adjusts dynamically to signal bullish or bearish conditions, and a prominent center line changes color to reflect the prevailing trend.
Dynamic Support/Resistance :
Calculates oscillator support and resistance over a pivot lookback period. These levels help you identify potential breakouts or reversals as the MFI moves above or below prior levels.
Signal Metrics & Classifications :
Combines MFI values with additional metrics to classify signals into categories such as “Strong Bullish,” “Bullish,” “Bearish,” or “Strong Bearish.” An accompanying note provides details on momentum entry and overall signal strength.
Multi-Timeframe Order Flow Confirmatio n:
Analyzes the MFI on a higher timeframe to confirm order flow. This extra layer of analysis helps verify the short-term signals generated on your primary chart.
Volume and ADX Integration :
Incorporates volume analysis and a manual ADX calculation to further validate signal strength and trend stability. A dashboard displays these metrics for quick reference.
Choppiness Indicator :
Includes a choppiness index to determine if the market is trending or choppy. When the market is identified as choppy, the script advises caution by adjusting the overall signal note.
Comprehensive Dashboard :
A built-in dashboard presents key metrics—including ADX, MFI, order flow, volume score, and support/resistance details—allowing you to quickly assess market conditions at a glance.
How to Use :
Trend Identification : Monitor the dynamic background and center line colors to recognize bullish or bearish market conditions.
Signal Confirmation : Use the oscillator support/resistance levels along with the signal classifications and dashboard data to make informed entry or exit decisions.
Multi-Timeframe Analysis : Validate short-term signals with the higher timeframe MFI order flow confirmation.
Risk Management : Always combine these insights with your own risk management strategy and further analysis.
Disclaimer :
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always perform your own analysis and use proper risk management before making any trading decisions. Past performance is not indicative of future results.
Fuzzy SMA Trend Analyzer (experimental)[FibonacciFlux]Fuzzy SMA Trend Analyzer (Normalized): Advanced Market Trend Detection Using Fuzzy Logic Theory
Elevate your technical analysis with institutional-grade fuzzy logic implementation
Research Genesis & Conceptual Framework
This indicator represents the culmination of extensive research into applying fuzzy logic theory to financial markets. While traditional technical indicators often produce binary outcomes, market conditions exist on a continuous spectrum. The Fuzzy SMA Trend Analyzer addresses this limitation by implementing a sophisticated fuzzy logic system that captures the nuanced, multi-dimensional nature of market trends.
Core Fuzzy Logic Principles
At the heart of this indicator lies fuzzy logic theory - a mathematical framework designed to handle imprecision and uncertainty:
// Improved fuzzy_triangle function with guard clauses for NA and invalid parameters.
fuzzy_triangle(val, left, center, right) =>
if na(val) or na(left) or na(center) or na(right) or left > center or center > right // Guard checks
0.0
else if left == center and center == right // Crisp set (single point)
val == center ? 1.0 : 0.0
else if left == center // Left-shoulder shape (ramp down from 1 at center to 0 at right)
val >= right ? 0.0 : val <= center ? 1.0 : (right - val) / (right - center)
else if center == right // Right-shoulder shape (ramp up from 0 at left to 1 at center)
val <= left ? 0.0 : val >= center ? 1.0 : (val - left) / (center - left)
else // Standard triangle
math.max(0.0, math.min((val - left) / (center - left), (right - val) / (right - center)))
This implementation of triangular membership functions enables the indicator to transform crisp numerical values into degrees of membership in linguistic variables like "Large Positive" or "Small Negative," creating a more nuanced representation of market conditions.
Dynamic Percentile Normalization
A critical innovation in this indicator is the implementation of percentile-based normalization for SMA deviation:
// ----- Deviation Scale Estimation using Percentile -----
// Calculate the percentile rank of the *absolute* deviation over the lookback period.
// This gives an estimate of the 'typical maximum' deviation magnitude recently.
diff_abs_percentile = ta.percentile_linear_interpolation(math.abs(raw_diff), normLookback, percRank) + 1e-10
// ----- Normalize the Raw Deviation -----
// Divide the raw deviation by the estimated 'typical max' magnitude.
normalized_diff = raw_diff / diff_abs_percentile
// ----- Clamp the Normalized Deviation -----
normalized_diff_clamped = math.max(-3.0, math.min(3.0, normalized_diff))
This percentile normalization approach creates a self-adapting system that automatically calibrates to different assets and market regimes. Rather than using fixed thresholds, the indicator dynamically adjusts based on recent volatility patterns, significantly enhancing signal quality across diverse market environments.
Multi-Factor Fuzzy Rule System
The indicator implements a comprehensive fuzzy rule system that evaluates multiple technical factors:
SMA Deviation (Normalized): Measures price displacement from the Simple Moving Average
Rate of Change (ROC): Captures price momentum over a specified period
Relative Strength Index (RSI): Assesses overbought/oversold conditions
These factors are processed through a sophisticated fuzzy inference system with linguistic variables:
// ----- 3.1 Fuzzy Sets for Normalized Deviation -----
diffN_LP := fuzzy_triangle(normalized_diff_clamped, 0.7, 1.5, 3.0) // Large Positive (around/above percentile)
diffN_SP := fuzzy_triangle(normalized_diff_clamped, 0.1, 0.5, 0.9) // Small Positive
diffN_NZ := fuzzy_triangle(normalized_diff_clamped, -0.2, 0.0, 0.2) // Near Zero
diffN_SN := fuzzy_triangle(normalized_diff_clamped, -0.9, -0.5, -0.1) // Small Negative
diffN_LN := fuzzy_triangle(normalized_diff_clamped, -3.0, -1.5, -0.7) // Large Negative (around/below percentile)
// ----- 3.2 Fuzzy Sets for ROC -----
roc_HN := fuzzy_triangle(roc_val, -8.0, -5.0, -2.0)
roc_WN := fuzzy_triangle(roc_val, -3.0, -1.0, -0.1)
roc_NZ := fuzzy_triangle(roc_val, -0.3, 0.0, 0.3)
roc_WP := fuzzy_triangle(roc_val, 0.1, 1.0, 3.0)
roc_HP := fuzzy_triangle(roc_val, 2.0, 5.0, 8.0)
// ----- 3.3 Fuzzy Sets for RSI -----
rsi_L := fuzzy_triangle(rsi_val, 0.0, 25.0, 40.0)
rsi_M := fuzzy_triangle(rsi_val, 35.0, 50.0, 65.0)
rsi_H := fuzzy_triangle(rsi_val, 60.0, 75.0, 100.0)
Advanced Fuzzy Inference Rules
The indicator employs a comprehensive set of fuzzy rules that encode expert knowledge about market behavior:
// --- Fuzzy Rules using Normalized Deviation (diffN_*) ---
cond1 = math.min(diffN_LP, roc_HP, math.max(rsi_M, rsi_H)) // Strong Bullish: Large pos dev, strong pos roc, rsi ok
strength_SB := math.max(strength_SB, cond1)
cond2 = math.min(diffN_SP, roc_WP, rsi_M) // Weak Bullish: Small pos dev, weak pos roc, rsi mid
strength_WB := math.max(strength_WB, cond2)
cond3 = math.min(diffN_SP, roc_NZ, rsi_H) // Weakening Bullish: Small pos dev, flat roc, rsi high
strength_N := math.max(strength_N, cond3 * 0.6) // More neutral
strength_WB := math.max(strength_WB, cond3 * 0.2) // Less weak bullish
This rule system evaluates multiple conditions simultaneously, weighting them by their degree of membership to produce a comprehensive trend assessment. The rules are designed to identify various market conditions including strong trends, weakening trends, potential reversals, and neutral consolidations.
Defuzzification Process
The final step transforms the fuzzy result back into a crisp numerical value representing the overall trend strength:
// --- Step 6: Defuzzification ---
denominator = strength_SB + strength_WB + strength_N + strength_WBe + strength_SBe
if denominator > 1e-10 // Use small epsilon instead of != 0.0 for float comparison
fuzzyTrendScore := (strength_SB * STRONG_BULL +
strength_WB * WEAK_BULL +
strength_N * NEUTRAL +
strength_WBe * WEAK_BEAR +
strength_SBe * STRONG_BEAR) / denominator
The resulting FuzzyTrendScore ranges from -1 (strong bearish) to +1 (strong bullish), providing a smooth, continuous evaluation of market conditions that avoids the abrupt signal changes common in traditional indicators.
Advanced Visualization with Rainbow Gradient
The indicator incorporates sophisticated visualization using a rainbow gradient coloring system:
// Normalize score to for gradient function
normalizedScore = na(fuzzyTrendScore) ? 0.5 : math.max(0.0, math.min(1.0, (fuzzyTrendScore + 1) / 2))
// Get the color based on gradient setting and normalized score
final_color = get_gradient(normalizedScore, gradient_type)
This color-coding system provides intuitive visual feedback, with color intensity reflecting trend strength and direction. The gradient can be customized between Red-to-Green or Red-to-Blue configurations based on user preference.
Practical Applications
The Fuzzy SMA Trend Analyzer excels in several key applications:
Trend Identification: Precisely identifies market trend direction and strength with nuanced gradation
Market Regime Detection: Distinguishes between trending markets and consolidation phases
Divergence Analysis: Highlights potential reversals when price action and fuzzy trend score diverge
Filter for Trading Systems: Provides high-quality trend filtering for other trading strategies
Risk Management: Offers early warning of potential trend weakening or reversal
Parameter Customization
The indicator offers extensive customization options:
SMA Length: Adjusts the baseline moving average period
ROC Length: Controls momentum sensitivity
RSI Length: Configures overbought/oversold sensitivity
Normalization Lookback: Determines the adaptive calculation window for percentile normalization
Percentile Rank: Sets the statistical threshold for deviation normalization
Gradient Type: Selects the preferred color scheme for visualization
These parameters enable fine-tuning to specific market conditions, trading styles, and timeframes.
Acknowledgments
The rainbow gradient visualization component draws inspiration from LuxAlgo's "Rainbow Adaptive RSI" (used under CC BY-NC-SA 4.0 license). This implementation of fuzzy logic in technical analysis builds upon Fermi estimation principles to overcome the inherent limitations of crisp binary indicators.
This indicator is shared under Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license.
Remember that past performance does not guarantee future results. Always conduct thorough testing before implementing any technical indicator in live trading.
Highest High Line with Multi-Timeframe Supertrend and RSIOverview:
This powerful indicator combines three essential elements for traders:
Highest High Line – Tracks the highest price over a customizable lookback period across different timeframes.
Multi-Timeframe Supertrend – Displays Supertrend values and trend directions for multiple timeframes simultaneously.
Relative Strength Index (RSI) – Shows RSI values across different timeframes for momentum analysis.
Features:
✅ Customizable Highest High Line:
Selectable timeframes: Daily, Weekly, Monthly, Quarterly, Yearly
Adjustable lookback period
✅ Multi-Timeframe Supertrend:
Supports 1min, 5min, 10min, 15min, 30min, 1H, Daily, Weekly, Monthly, Quarterly, Yearly
ATR-based calculation with configurable ATR period and multiplier
Identifies bullish (green) & bearish (red) trends
✅ Multi-Timeframe RSI:
Calculates RSI for the same timeframes as Supertrend
Overbought (≥70) and Oversold (≤30) signals with color coding
✅ Comprehensive Table Display:
A clean, structured table in the bottom-right corner
Displays Supertrend direction, value, and RSI for all timeframes
Helps traders quickly assess trend and momentum alignment
How to Use:
Use the Highest High Line to identify key resistance zones.
Confirm trend direction with Multi-Timeframe Supertrend.
Check RSI values to avoid overbought/oversold conditions before entering trades.
Align multiple timeframes for stronger confirmation of trend shifts.
Ideal For:
✅ Scalpers (lower timeframes: 1m–30m)
✅ Swing Traders (higher timeframes: 1H–D)
✅ Position Traders (Weekly, Monthly, Quarterly)
💡 Tip: Look for Supertrend & RSI confluence across multiple timeframes for higher probability setups.
Dual Volume Divergence LineDual Volume Divergence Line (DVD/Line)
🔹 Overview
The Dual Volume Divergence Line (DVD/Line) is a custom Pine Script™ indicator designed to identify potential trend reversals and continuations by analyzing volume and price divergences. This script is inspired by the original concept of the Dual Volume Divergence Index (DVDI) by DonovanWall and has been modified and enhanced by keremertem. Special thanks to DonovanWall for the original concept. The indicator combines volume-based calculations with price action to generate signals for bullish and bearish divergences, both normal and hidden. Below is a detailed breakdown of its components and functionality.
🔹 Key Features of the DVD/Line Indicator
1. Dual Volume Divergence Calculation:
- The indicator calculates two primary volume-based indices: the Positive Volume Index (PVI) and the Negative Volume Index (NVI).
- PVI measures the impact of volume on price when the price increases, while NVI measures the impact when the price decreases.
- These indices are used to detect divergences between volume and price, which can signal potential reversals or continuations.
2. Customizable Inputs:
- DVD Sampling Period: Adjusts the sensitivity of the indicator by controlling the lookback period for calculating the volume-weighted moving averages (VWMA) of PVI and NVI.
- Band Width: Defines the range for calculating the upper and lower bands, which act as dynamic support and resistance levels.
- Source: Allows users to select the price source (e.g., `hlc3`, `close`, etc.) for calculations.
3. Volume-Weighted Moving Averages (VWMA):
- Instead of using traditional moving averages, the script employs VWMA to smooth the PVI and NVI signals. This ensures that the indicator is more responsive to changes in volume.
4. Upper and Lower Bands:
- The upper and lower bands are calculated using the Root Mean Square (RMS) of the highest and lowest values of the DVD line over a user-defined period. These bands help identify overbought and oversold conditions.
5. Divergence Detection:
- The script identifies four types of divergences:
- Normal Bullish Divergence: Occurs when price makes a lower low, but the DVD line makes a higher low.
- Hidden Bullish Divergence: Occurs when price makes a higher low, but the DVD line makes a lower low.
- Normal Bearish Divergence: Occurs when price makes a higher high, but the DVD line makes a lower high.
- Hidden Bearish Divergence: Occurs when price makes a lower high, but the DVD line makes a higher high.
- These divergences are visually highlighted on the chart using labels.
6. Customizable Divergence Selection:
- Users can choose between two types of divergence calculations:
- DVDI: Based on the raw divergence values.
- DVD Line: Based on the smoothed DVD line.
7. Visual Enhancements:
- The DVD line is plotted with a color-coded scheme: blue when the DVD line is above its signal line (bullish) and pink when it is below (bearish).
- The upper and lower bands are displayed as step lines, making it easier to identify key levels.
🔹 How the Indicator Works
1. Volume-Based Calculations:
- The script starts by calculating the PVI and NVI based on the selected price source and volume data.
- PVI increases when the price rises, while NVI decreases when the price falls. These indices are then smoothed using VWMA to generate signals.
2. DVD Line Calculation:
- The DVD line is derived by combining the divergences of PVI and NVI. It is further smoothed using a Weighted Moving Average (WMA) and a linear regression line for trend analysis.
3. Divergence Detection:
- The script identifies pivot points in the DVD line and compares them with price action to detect divergences.
- Normal divergences indicate potential reversals, while hidden divergences suggest trend continuations.
4. Dynamic Bands:
- The upper and lower bands are calculated using RMS, which provides a more accurate representation of volatility compared to standard deviation or fixed-width bands.
5. Labeling:
- Divergences are labeled directly on the chart with clear text and color coding:
🟢 Bullish Divergence: Green label with "Bull".
🟩 Bearish Divergence: Red label with "Bear".
🔴 Hidden Bullish Divergence: Lime label with "hid.".
🟧 Hidden Bearish Divergence: Orange label with "hid.".
🔹 Unique Aspects of This Script
1. Volume-Weighted Smoothing:
- Unlike traditional divergence indicators that rely on simple moving averages, this script uses VWMA and WMA to ensure that volume plays a significant role in signal generation.
2. Dynamic Bands with RMS:
- The use of RMS for calculating bands provides a more adaptive and accurate representation of market conditions, especially in volatile markets.
3. Flexible Divergence Selection:
- Users can choose between raw divergence values (DVDI) or smoothed values (DVD Line), allowing for greater customization based on trading style.
4. Comprehensive Divergence Detection:
- The script detects both normal and hidden divergences, providing a complete picture of potential trend reversals and continuations.
5. User-Friendly Visuals:
- The color-coded DVD line and cross-style bands make it easy to interpret the indicator at a glance.
🔹 How to Use the Indicator
1. Trend Identification:
- Use the Middle Band and its color to identify the current trend. A green line suggests bullish momentum, while a red line indicates bearish momentum. Additionally, a bullish momentum may be indicated when the DVD line crosses up, and a bearish momentum may be indicated when it crosses down the Middle Band.
2. Divergence Trading:
- Look for divergences between the DVD line and price action. Normal divergences can be used for counter-trend trades, while hidden divergences can confirm trend continuations.
3. Band Breakouts:
- Monitor the upper and lower bands for potential breakout or reversal signals. A break above the upper band may indicate overbought conditions, while a break below the lower band may suggest oversold conditions.
4. Customization:
- Adjust the sampling period and band width to suit different timeframes and trading strategies. Shorter periods are more sensitive, while longer periods provide smoother signals.
🔹 Conclusion
The Dual Volume Divergence Line (DVD/Line) is a powerful and versatile indicator that combines volume analysis with price action to generate actionable trading signals. Its unique use of volume-weighted smoothing, dynamic bands, and comprehensive divergence detection sets it apart from traditional divergence indicators. Whether you're a day trader or a long-term investor, this tool can help you identify high-probability trading opportunities with greater accuracy and confidence.
📌 Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always conduct your own analysis before making trading decisions.
Scalping Entry/Exit Indicator by DiGetImagine having a tool that not only spots high-probability entry signals but also visually marks them on your chart with color-coded cues and automated alerts. The Scalping Entry/Exit Indicator by DiGet does exactly that—by fusing a range of classic candlestick patterns (such as Bullish Hammers, Engulfing patterns, and Morning/Evening Stars) with dynamic risk management levels, this script empowers you to make swift and informed trading decisions. Whether you're an active trader or an algorithm enthusiast, this indicator offers both precision and clarity in identifying scalp opportunities, making your chart analysis more efficient and visually engaging.
Indicator Breakdown
Input Parameters:
The indicator accepts a customizable risk-reward ratio, an ATR period for volatility measurement, and a lookback period to scan for valid candlestick patterns.
ATR & Candle Calculations:
It computes the Average True Range (ATR) to dynamically set stop-loss and take-profit levels. Additionally, it determines the body and wick sizes of each candlestick to help identify key reversal patterns.
Pattern Detection:
Multiple bullish patterns (Hammer, Engulfing, Morning Star) and bearish patterns (Shooting Star, Engulfing, Evening Star) are detected. There’s also a simplified version of the Head & Shoulders pattern, offering further validation for reversal signals.
Signal Generation & Trade Levels:
The script consolidates the pattern signals into combined “buy” and “sell” triggers. It then calculates the respective stop-loss (SL) and take-profit (TP) levels based on the current price and ATR, providing a robust risk management framework.
Visual Aids & Alerts:
To enhance usability, the indicator changes the chart’s background color to green for buy signals and red for sell signals. It also draws labels, lines (representing SL and TP), and markers directly on the chart, along with alert conditions to notify traders of actionable signals.
This indicator is an excellent addition to your TradingView toolkit—ideal for scalpers and short-term traders seeking clarity, precision, and automated signal generation on their charts.
Enjoy trading with confidence and precision!
Quarterly Theory ICT 03 [TradingFinder] Precision Swing Points🔵 Introduction
Precision Swing Point (PSP) is a divergence pattern in the closing of candles between two correlated assets, which can indicate a potential trend reversal. This structure appears at market turning points and highlights discrepancies between the price behavior of two related assets.
PSP typically forms in key timeframes such as 5-minute, 15-minute, and 90-minute charts, and is often used in combination with Smart Money Concepts (SMT) to confirm trade entries.
PSP is categorized into Bearish PSP and Bullish PSP :
Bearish PSP : Occurs when an asset breaks its previous high, and its middle candle closes bullish, while the correlated asset closes bearish at the same level. This divergence signals weakness in the uptrend and a potential price reversal downward.
Bullish PSP : Occurs when an asset breaks its previous low, and its middle candle closes bearish, while the correlated asset closes bullish at the same level. This suggests weakness in the downtrend and a potential price increase.
🟣 Trading Strategies Using Precision Swing Point (PSP)
PSP can be integrated into various trading strategies to improve entry accuracy and filter out false signals. One common method is combining PSP with SMT (divergence between correlated assets), where traders identify divergence and enter a trade only after PSP confirms the move.
Additionally, PSP can act as a liquidity gap, meaning that price tends to react to the wick of the PSP candle, making it a favorable entry point with a tight stop-loss and high risk-to-reward ratio. Furthermore, PSP combined with Order Blocks and Fair Value Gaps in higher timeframes allows traders to identify stronger reversal zones.
In lower timeframes, such as 5-minute or 15-minute charts, PSP can serve as a confirmation for more precise entries in the direction of the higher timeframe trend. This is particularly useful in scalping and intraday trading, helping traders execute smarter entries while minimizing unnecessary stop-outs.
🔵 How to Use
PSP is a trading pattern based on divergence in candle closures between two correlated assets. This divergence signals a difference in trend strength and can be used to identify precise market turning points. PSP is divided into Bullish PSP and Bearish PSP, each applicable for long and short trades.
🟣 Bullish PSP
A Bullish PSP forms when, at a market turning point, the middle candle of one asset closes bearish while the correlated asset closes bullish. This discrepancy indicates weakness in the downtrend and a potential price reversal upward.
Traders can use this as a signal for long (buy) trades. The best approach is to wait for price to return to the wick of the PSP candle, as this area typically acts as a liquidity level.
f PSP forms within an Order Block or Fair Value Gap in a higher timeframe, its reliability increases, allowing for entries with tight stop-loss and optimal risk-to-reward ratios.
🟣 Bearish PSP
A Bearish PSP forms when, at a market turning point, the middle candle of one asset closes bullish while the correlated asset closes bearish. This indicates weakness in the uptrend and a potential price decline.
Traders use this pattern to enter short (sell) trades. The best entry occurs when price retests the wick of the PSP candle, as this level often acts as a resistance zone, pushing price lower.
If PSP aligns with a significant liquidity area or Order Block in a higher timeframe, traders can enter with greater confidence and place their stop-loss just above the PSP wick.
Overall, PSP is a highly effective tool for filtering false signals and improving trade entry precision. Combining PSP with SMT, Order Blocks, and Fair Value Gaps across multiple timeframes allows traders to execute higher-accuracy trades with lower risk.
🔵 Settings
Mode :
2 Symbol : Identifies PSP and PCP between two correlated assets.
3 Symbol : Compares three assets to detect more complex divergences and stronger confirmation signals.
Second Symbol : The second asset used in PSP and correlation calculations.
Third Symbol : Used in three-symbol mode for deeper PSP and PCP analysis.
Filter Precision X Point : Enables or disables filtering for more precise PSP and PCP detection. This filter only identifies PSP and PCP when the base asset's candle qualifies as a Pin Bar.
Trend Effect : By changing the Trend Effect status to "Off," all Pin bars, whether bullish or bearish, are displayed regardless of the current market trend. If the status remains "On," only Pin bars in the direction of the main market trend are shown.
Bullish Pin Bar Setting : Using the "Ratio Lower Shadow to Body" and "Ratio Lower Shadow to Higher Shadow" settings, you can customize your bullish Pin bar candles. Larger numbers impose stricter conditions for identifying bullish Pin bars.
Bearish Pin Bar Setting : Using the "Ratio Higher Shadow to Body" and "Ratio Higher Shadow to Lower Shadow" settings, you can customize your bearish Pin bar candles. Larger numbers impose stricter conditions for identifying bearish Pin bars.
🔵 Conclusion
Precision Swing Point (PSP) is a powerful analytical tool in Smart Money trading strategies, helping traders identify precise market turning points by detecting divergences in candle closures between correlated assets. PSP is classified into Bullish PSP and Bearish PSP, each playing a crucial role in detecting trend weaknesses and determining optimal entry points for long and short trades.
Using the PSP wick as a key liquidity level, integrating it with SMT, Order Blocks, and Fair Value Gaps, and analyzing higher timeframes are effective techniques to enhance trade entries. Ultimately, PSP serves as a complementary tool for improving entry accuracy and reducing unnecessary stop-outs, making it a valuable addition to Smart Money trading methodologies.
AO Smart Scalper – 5M Dynamic SL Edition📈 AO Signals with Fixed and Dynamic SL – Optimized for 5-Minute Charts 📉
This indicator is built for 5-minute timeframe trading, combining powerful momentum signals from the Awesome Oscillator (AO) with both Fixed and Dynamic Stop Loss (SL) levels to enhance trade management and risk control.
✅ Buy/Sell Signals:
The indicator generates clear BUY and SELL signals based on the AO crossing above or below the zero line, helping traders capture momentum shifts early.
🛑 Fixed Stop Loss:
Each trade signal comes with a Fixed SL, calculated based on the high (for shorts) or low (for longs) of the previous candle, with a customizable percentage offset. This SL is plotted with a red line, providing a clear initial risk level.
⚡ Dynamic Stop Loss: Continuous Presence, Strategic Use:
A secondary Dynamic SL line is plotted, which is continuously present on the chart. This dynamic level responds to market conditions and can serve as a trailing stop or key decision point.
💡 Recommended Use: It is recommended to actively start using the Dynamic SL once the trade has moved into profit. This allows protecting obtained profits and minimizing the risk of losses in case of a market reversal.
🛡️ Enhanced Dynamic Stop-Loss Strategy:
🔒 Initial Protection: Utilize the Fixed SL as the initial stop-loss, placed below relevant lows (for longs) or above relevant highs (for shorts), or as provided by the fixed SL indicator.
🛤️ Dynamic Tracking:
🟢 Long Trades: Once in profit, the Dynamic SL will dynamically adjust, moving upwards as higher lows are formed, effectively trailing the price and securing profits.
🔴 Short Trades: Conversely, in short trades, once in profit, the Dynamic SL will move downwards as lower highs are formed, protecting gains.
🔄 Alternatively the dynamic stop loss will follow the dynamic SL line provided by the indicator.
🚪 Exiting Trades: When the price crosses below the Dynamic SL line in a LONG trade, or above it in a SHORT trade, the recommended action is to exit the trade.
↩️ Re-entry Consideration: You may consider re-entering only if the price clearly returns above the Dynamic SL (for longs) or below it (for shorts).
⚠️ IMPORTANT - 5-Minute Strategy Guidance ⏱️
This tool is specifically optimized for the 5-minute timeframe. This approach helps filter out weak setups and maintain discipline in volatile market conditions.
✨ Additional Features:
👁️ Visual and editable SL levels
📊 200-period SMA for trend context
💻 Simple and effective interface for intraday trading setups
🎯 Ideal for traders seeking a clean, rule-based system that combines momentum entry signals with layered stop loss protection.
🔑 Key Changes:
It was emphasized that the Dynamic SL is always present, but its active use is recommended once the trade is in profit.
It was clarified the use of the Fixed SL, giving the option to use the one provided by the indicator, or to place it according to the price action.
Uwen FX: UWEN StrategyThis Pine Script defines a trading indicator called "Uwen FX: UWEN Strategy" Where ideas coming from Arab Syaukani and modified by Fiki Hafana. It combines a CCI-based T3 Smoothed Indicator with a MACD overlay. Here's a breakdown of what it does:
Key Components of the Script:
1. CCI (Commodity Channel Index) with T3 Smoothing
Uses a T3 smoothing algorithm on the CCI to generate a smoother momentum signal. The smoothing formula is applied iteratively using weighted averages. The final result (xccir) is plotted as a histogram, colored green for bullish signals and red for bearish signals.
2. MACD (Moving Average Convergence Divergence)
The MACD is scaled to match the range of the smoothed CCI for better visualization. Signal Line and MACD Line are plotted if showMACD is enabled. The normalization ensures that MACD values align with the CCI-based indicator.
3. Bar Coloring for Trend Indication
Green bars indicate a positive trend (pos = 1).
Red bars indicate a negative trend (pos = -1).
Blue bars appear when the trend is neutral.
How It Can Be Used:
Buy Signal: When the xccir (smoothed CCI) turns green, indicating bullish momentum.
Sell Signal: When xccir turns red, indicating bearish momentum.
MACD Confirmation: Helps confirm the trend direction by aligning with xccir.
I will add more interesting features if this indicator seems profitable