SpectreSPECTRE - Precision Reversal Detection System
OVERVIEW
Spectre is a channel breakout indicator designed to identify high-probability reversal points by combining Donchian channel breaches with momentum confirmation. It generates BUY signals at oversold extremes and SELL signals at overbought extremes, filtered by trend strength to avoid low-conviction setups.
This indicator replaces the Regime Engine, which will continue to evolve independently as an experimental platform for testing new strategies and enhancements. Spectre was selected as the production replacement based on extensive backtesting across multiple assets and timeframes, which demonstrated superior win rates compared to alternative sell logic approaches (RSI-based exits outperformed CMO-based exits in 13 of 18 test configurations).
SIGNAL LOGIC
BUY CONDITIONS (all must be true):
Price touches or breaks below Donchian lower band
RSI is at or below oversold threshold (default: 35)
ADX confirms sufficient trend strength (default: ≥22)
BBWP confirms adequate volatility (default: ≥20%)
Cooldown period has elapsed since last buy
Cascade limit not reached
SELL CONDITIONS (all must be true):
Price touches or breaks above Donchian upper band
RSI is at or above overbought threshold (default: 70)
ADX confirms sufficient trend strength (default: ≥22)
BBWP confirms adequate volatility (default: ≥20%)
Cooldown period has elapsed since last sell
Cascade limit not reached
Price is not underwater (if protection enabled)
KEY FEATURES
NON-REPAINTING DONCHIAN CHANNELS
Uses previous bar's high/low extremes to prevent signal repainting. What you see in history is what you would have seen in real-time.
MULTI-FACTOR CONFIRMATION
Signals require agreement between price action (Donchian), momentum (RSI), and trend strength (ADX) to filter out low-quality setups.
VOLATILITY FILTER (BBWP)
Bollinger Band Width Percentile measures current volatility relative to historical norms. Low BBWP indicates compressed ranges where breakouts are less reliable - signals are blocked until volatility returns.
CASCADE PROTECTION
Limits consecutive signals in the same direction to prevent overexposure during extended trends. Resets when a signal fires in the opposite direction.
UNDERWATER PROTECTION (Unique to Spectre)
Tracks average entry price of recent buys and blocks sell signals when price has fallen significantly below this level. This prevents locking in large losses during drawdowns and allows positions to recover before exiting.
REGIME DETECTION
Visual background shading indicates current market regime based on Directional Indicator spread and On-Balance Volume trend. Green indicates bullish regime (+DI > -DI, OBV rising). Red indicates bearish regime (-DI > +DI, OBV falling). White/Gray indicates neutral or ranging conditions.
RECOMMENDED SETTINGS BY TIMEFRAME
For 5-minute charts, use RSI Buy 30-35, RSI Sell 70-75, ADX 20-24.
For 15-minute charts, use RSI Buy 30-35, RSI Sell 68-72, ADX 22-26.
For 30-minute charts (default), use RSI Buy 32-38, RSI Sell 68-72, ADX 22-26.
For 1-hour charts, use RSI Buy 35-40, RSI Sell 65-70, ADX 20-24.
For 4-hour charts, use RSI Buy 35-40, RSI Sell 65-70, ADX 18-22.
These are starting points - optimize for your specific assets.
INFO PANEL GUIDE
Regime shows current market bias (Bullish/Bearish/Neutral). RSI shows current value with buy/sell threshold status. ADX shows trend strength categorized as Weak (<15), Range (15-24), Trend (24-34), or Strong (>34). BBWP shows volatility percentile with a warning symbol when below minimum. Donchian shows price position relative to channel bands. Avg Buy shows average entry price and underwater status. Cascade shows current consecutive signal counts versus limits.
USAGE TIPS
Works best in ranging or mean-reverting markets
Reduce RSI thresholds in strong trends (tighter = fewer signals)
Increase ADX minimum in choppy markets to filter noise
Enable underwater protection for swing trading, disable for scalping
Use regime background to contextualize signals (buy in green, sell in red)
Combine with support/resistance levels for additional confirmation
Göstergeler ve stratejiler
TSF - Rel Vol & Stop calcSimple swing data table showing:
1. Avg 20D dollar vol
2. Live dollar vol
3. Live % relative vol compared to avg 20d daily vol
4.Percent to LOD current price with color codes
5. Avg 20d ATR%
Hurst-Optimized Adaptive Channel [Kodexius]Hurst-Optimized Adaptive Channel (HOAC) is a regime-aware channel indicator that continuously adapts its centerline and volatility bands based on the market’s current behavior. Instead of using a single fixed channel model, HOAC evaluates whether price action is behaving more like a trend-following environment or a mean-reverting environment, then automatically selects the most suitable channel structure.
At the core of the engine is a robust Hurst Exponent estimation using R/S (Rescaled Range) analysis. The Hurst value is smoothed and compared against user-defined thresholds to classify the market regime. In trending regimes, the script emphasizes stability by favoring a slower, smoother channel when it proves more accurate over time. In mean-reversion regimes, it deliberately prioritizes a faster model to react sooner to reversion opportunities, similar in spirit to how traders use Bollinger-style behavior.
The result is a clean, professional adaptive channel with inner and outer bands, dynamic gradient fills, and an optional mean-reversion signal layer. A minimalist dashboard summarizes the detected regime, the current Hurst reading, and which internal model is currently preferred.
🔹 Features
🔸 Robust Regime Detection via Hurst Exponent (R/S Analysis)
HOAC uses a robust Hurst Exponent estimate derived from log returns and Rescaled Range analysis. The Hurst value acts as a behavioral filter:
- H > Trend Start threshold suggests trend persistence and directional continuation.
- H < Mean Reversion threshold suggests anti-persistence and a higher likelihood of reverting toward a central value.
Values between thresholds are treated as Neutral, allowing the channel to remain adaptive without forcing a hard bias.
This regime framework is designed to make the channel selection context-aware rather than purely reactive to recent volatility.
🔸 Dual Channel Engine (Fast vs Slow Models)
Instead of relying on one fixed channel, HOAC computes two independent channel candidates:
Fast model: shorter WMA basis and standard deviation window, intended to respond quickly and fit more reactive environments.
Slow model: longer WMA basis and standard deviation window, intended to reduce noise and better represent sustained directional flow.
Each model produces:
- A midline (basis)
- Outer bands (wider deviation)
- Inner bands (tighter deviation)
This structure gives you a clear core zone and an outer envelope that better represents volatility expansion.
🔸 Rolling Optimization Memory (Model Selection by Error)
HOAC includes an internal optimization layer that continuously measures how well each model fits current price action. On every bar, each model’s absolute deviation from the basis is recorded into a rolling memory window. The script then compares total accumulated error between fast and slow models and prefers the one with lower recent error.
This approach does not attempt curve fitting on multiple parameters. It focuses on a simple, interpretable metric: “Which model has tracked price more accurately over the last X bars?”
Additionally:
If the regime is Mean Reversion, the script explicitly prioritizes the fast model, ensuring responsiveness when reversals matter most.
🔸 Optional Output Smoothing (User-Selectable)
The final selected channel can be smoothed using your choice of:
- SMA
- EMA
- HMA
- RMA
This affects the plotted midline and all band outputs, allowing you to tune visual stability and responsiveness without changing the underlying decision engine.
🔸 Premium Visualization Layer (Inner Core + Outer Fade)
HOAC uses a layered band design:
- Inner bands define the core equilibrium zone around the midline.
- Outer bands define an extended volatility envelope for extremes.
Gradient fills and line styling help separate the core from the extremes while staying visually clean. The midline includes a subtle glow effect for clarity.
🔸 Adaptive Bar Tinting Strength (Regime Intensity)
Bar coloring dynamically adjusts transparency based on how far the Hurst value is from 0.5. When market behavior is more decisively trending or mean-reverting, the tint becomes more pronounced. When behavior is closer to random, the tint becomes more subtle.
🔸 Mean-Reversion Signal Layer
Mean-reversion signals are enabled when the environment is not classified as Trending:
- Buy when price crosses back above the lower outer band
- Sell when price crosses back below the upper outer band
This is intentionally a “return to channel” logic rather than a breakout logic, aligning signals with mean-reversion behavior and avoiding signals in strongly trending regimes by default.
🔸 Minimalist Dashboard (HUD)
A compact table displays:
- Current regime classification
- Smoothed Hurst value
- Which model is currently preferred (Fast or Slow)
- Trend flow direction (based on midline slope)
🔹 Calculations
1) Robust Hurst Exponent (R/S Analysis)
The script estimates Hurst using a Rescaled Range approach on log returns. It builds a returns array, computes mean, cumulative deviation range (R), standard deviation (S), then converts RS into a Hurst exponent.
calc_robust_hurst(int length) =>
float r = math.log(close / close )
float returns = array.new_float(length)
for i = 0 to length - 1
array.set(returns, i, r )
float mean = array.avg(returns)
float cumDev = 0.0
float maxCD = -1.0e10
float minCD = 1.0e10
float sumSqDiff = 0.0
for i = 0 to length - 1
float val = array.get(returns, i)
sumSqDiff += math.pow(val - mean, 2)
cumDev += (val - mean)
if cumDev > maxCD
maxCD := cumDev
if cumDev < minCD
minCD := cumDev
float R = maxCD - minCD
float S = math.sqrt(sumSqDiff / length)
float RS = (S == 0) ? 0.0 : (R / S)
float hurst = (RS > 0) ? (math.log10(RS) / math.log10(length)) : 0.5
hurst
This design avoids simplistic proxies and attempts to reflect persistence (trend tendency) vs anti-persistence (mean reversion tendency) from the underlying return structure.
2) Hurst Smoothing
Raw Hurst values can be noisy, so the script applies EMA smoothing before regime decisions.
float rawHurst = calc_robust_hurst(i_hurstLen)
float hVal = ta.ema(rawHurst, i_smoothHurst)
This stabilized hVal is the value used across regime classification, dynamic visuals, and the HUD display.
3) Regime Classification
The smoothed Hurst reading is compared to user thresholds to label the environment.
string regime = "NEUTRAL"
if hVal > i_trendZone
regime := "TRENDING"
else if hVal < i_chopZone
regime := "MEAN REV"
Higher Hurst implies more persistence, so the indicator treats it as a trend environment.
Lower Hurst implies more mean-reverting behavior, so the indicator enables MR logic and emphasizes faster adaptation.
4) Dual Channel Models (Fast and Slow)
HOAC computes two candidate channel structures in parallel. Each model is a WMA basis with volatility envelopes derived from standard deviation. Inner and outer bands are created using different multipliers.
Fast model (more reactive):
float fastBasis = ta.wma(close, 20)
float fastDev = ta.stdev(close, 20)
ChannelObj fastM = ChannelObj.new(fastBasis, fastBasis + fastDev * 2.0, fastBasis - fastDev * 2.0, fastBasis + fastDev * 1.0, fastBasis - fastDev * 1.0, math.abs(close - fastBasis))
Slow model (more stable):
float slowBasis = ta.wma(close, 50)
float slowDev = ta.stdev(close, 50)
ChannelObj slowM = ChannelObj.new(slowBasis, slowBasis + slowDev * 2.5, slowBasis - slowDev * 2.5, slowBasis + slowDev * 1.25, slowBasis - slowDev * 1.25, math.abs(close - slowBasis))
Both models store their structure in a ChannelObj type, including the instantaneous tracking error (abs(close - basis)).
5) Rolling Error Memory and Model Preference
To decide which model fits current conditions better, the script stores recent errors into rolling arrays and compares cumulative error totals.
var float errFast = array.new_float()
var float errSlow = array.new_float()
update_error(float errArr, float error, int maxLen) =>
errArr.unshift(error)
if errArr.size() > maxLen
errArr.pop()
Each bar updates both error histories and computes which model has lower recent accumulated error.
update_error(errFast, fastM.error, i_optLookback)
update_error(errSlow, slowM.error, i_optLookback)
bool preferFast = errFast.sum() < errSlow.sum()
This is an interpretable optimization approach: it does not attempt to brute-force parameters, it simply prefers the model that has tracked price more closely over the last i_optLookback bars.
6) Winner Selection Logic (Regime-Aware Hybrid)
The final model selection uses both regime and rolling error performance.
ChannelObj winner = regime == "MEAN REV" ? fastM : (preferFast ? fastM : slowM)
rawMid := winner.mid
rawUp := winner.upper
rawDn := winner.lower
rawUpInner := winner.upper_inner
rawDnInner := winner.lower_inner
In Mean Reversion, the script forces the fast model to ensure responsiveness.
Otherwise, it selects the lowest-error model between fast and slow.
7) Optional Output Smoothing
After the winner is selected, the script optionally smooths the final channel outputs using the chosen moving average type.
smooth(float src, string type, int len) =>
switch type
"SMA" => ta.sma(src, len)
"EMA" => ta.ema(src, len)
"HMA" => ta.hma(src, len)
"RMA" => ta.rma(src, len)
=> src
float finalMid = i_enableSmooth ? smooth(rawMid, i_smoothType, i_smoothLen) : rawMid
float finalUp = i_enableSmooth ? smooth(rawUp, i_smoothType, i_smoothLen) : rawUp
float finalDn = i_enableSmooth ? smooth(rawDn, i_smoothType, i_smoothLen) : rawDn
float finalUpInner = i_enableSmooth ? smooth(rawUpInner, i_smoothType, i_smoothLen) : rawUpInner
float finalDnInner = i_enableSmooth ? smooth(rawDnInner, i_smoothType, i_smoothLen) : rawDnInner
This preserves decision integrity since smoothing happens after model selection, not before.
8) Dynamic Visual Intensity From Hurst
Transparency is derived from the distance of hVal to 0.5, so stronger behavioral regimes appear with clearer tints.
int dynTrans = int(math.max(20, math.min(80, 100 - (math.abs(hVal - 0.5) * 200))))
SR Channel + EMA + RSI MTF + VolHighlight - Edited by MochiSR + Volume + RSI MTF – edited by Mochi
This indicator combines three tools into a single script:
SR Zones from Pivots
Automatically detects clusters of pivot highs/lows and groups them into support and resistance zones.
Zone width is tightened using a percentage of the pivot cluster range so levels are more precise and cleaner.
Each zone includes:
A colored box (SR area),
A dashed midline,
A POC line (price level with the highest traded volume inside the zone),
A label showing the zone price and distance (%) from current price.
Zone color is dynamic but simple and stable:
If price closes below the mid of the zone → it is treated as resistance (red).
If price closes above the mid of the zone → it is treated as support (green).
Box, lines, and label always share the same color.
Volume Inside the Zone + POC
Calculates buy/sell volume for candles whose close lies inside each zone.
Uses abs(buyVol − sellVol) / (buyVol + sellVol) to measure volume imbalance and control box opacity:
Stronger, more one‑sided volume → darker box (stronger zone).
POC is drawn as a thin line with the same color as the zone to highlight the best liquidity level for entries/TP.
Multi‑Timeframe RSI Dashboard
Shows RSI(14) values for multiple timeframes (1m, 5m, 15m, 30m, 1h, 4h, 8h, 1d), each can be toggled on/off.
Background color of each RSI cell:
RSI > 89 → red (strong overbought),
80–89 → orange (warning area),
RSI < 28 → lime (strong oversold),
Otherwise → white (neutral).
The goal of this script is to give traders a clear view of:
Key support/resistance zones,
Their volume quality and POC,
And multi‑TF overbought/oversold conditions via the RSI dashboard – all in one indicator to support retest/flip‑zone trading.
Gann Octave Pro - Angles & Time Cycles 🎯 Gann Octave Pro - Angles & Time Cycles
## Complete Gann Trading System - Price, Angles & Time in One Indicator
A professional-grade Gann analysis tool combining **Octave Price Levels**, **Gann Angles (1x1, 2x1, 1x2)**, and **Advanced Time Cycle Projections**. Perfect for traders seeking precision market timing through geometric confluence.
---
## 🌟 Key Features
### 📐 Octave Price Levels
- **5 Key Levels**: 0%, 25%, 50%, 75%, 100%
- **Color-Coded**: Green (support) → Blue (50% pivot) → Red (resistance) → Black (boundaries)
- **Dynamic Updates**: Auto-adjusts to swing structure
- **Trading Edge**: 50% level is the most powerful reversal zone
### 📏 Gann Angles
- **1x1 Angle** (Black) - Natural 45° trend line
- **2x1 Angle** (Red) - Steep acceleration zone
- **1x2 Angle** (Red) - Gradual support/resistance
- **Customizable Extension**: Fixed bars or % of swing length
### ⏰ Advanced Time Cycles
**Three Calculation Methods:**
1. **Angle-Level Confluence** ⭐ (Recommended)
- Calculates intersections of Gann angles with octave levels
- Most sophisticated timing system
- Based on price-time geometry
2. **Swing Duration** - Uses actual swing bar length
3. **Harmonic (Swing/8)** - Classic Gann harmonic division
**Cycle Visualization:**
- **Full Cycles** (Purple, solid) - Major turning points, labeled "◆ FC1 (176 bars) "
- **Sub-Cycles** (Blue, dotted) - Minor pivots, labeled "S1 "
- **Mid-Cycles** (Orange, dashed) - Half-cycle inflection points
- **Past Display**: Shows 4 complete past cycles for validation
- **Future Projection**: Projects 8 future cycles for anticipation
---
## 🎯 How to Use
### Quick Start
1. Apply to chart (works all timeframes/instruments)
2. Select period: Default 44 bars (adjust based on timeframe)
3. Choose cycle method: "Angle-Level Confluence" for best results
4. Observe past cycles to validate timing accuracy
### Trading Strategies
**Triple Confluence Setup** (Highest Probability)
- Price at octave level (especially 50%)
- Price touches Gann angle (1x1 most reliable)
- Time cycle arrives (full cycle preferred)
- **Entry**: On confluence | **Stop**: Below/above octave level | **Target**: Next level
**Cycle Anticipation**
- Enter 1-2 bars before cycle line if price at octave level
- Exit at next cycle or target octave level
- **Edge**: Anticipate cycles instead of reacting
**Angle Breakout + Cycle**
- Price breaks 1x1 angle + next cycle within 20 bars
- Hold through cycle, exit at 2x1 angle or next major level
---
## ⚙️ Customization
### Period Selection (88-Based)
11 harmonic options: 3, 6, 11, 22, **44**, 88, 176, 352, 704, 1408, 2816 bars
- **Intraday** (15m-1h): Period 3-4
- **Swing Trading** (4h-Daily): Period 4-5
- **Position Trading** (Daily-Weekly): Period 5-6
### Visual Controls
- **Colors**: Independent for all elements
- **Line Widths**: Separate controls (1-5) for levels, angles, cycles
- **Label Size**: Tiny/Small/Normal/Large (unified)
- **Label Position**: Top/Middle/Bottom
- **Show/Hide**: Toggle any component
### Alerts
- 50% octave level breakouts
- Customizable messages
---
## 💡 Pro Tips
1. **Validate First**: Observe 2-3 past cycles before trading
2. **Adjust to Volatility**: High volatility = lower period (22-44), Low = higher (88-176)
3. **Multiple Timeframes**: Apply on different timeframes for confirmation
4. **Respect 50% Level**: Most powerful reversal zone in Gann theory
5. **Focus on Full Cycles**: Highest probability setups (◆ FC markers)
6. **Combine with Price Action**: Indicator shows WHERE/WHEN, price action shows HOW
---
## 🚀 What Makes It Unique
✅ **Intelligent Confluence Cycles** - Unique angle-level intersection calculation
✅ **Historical Validation** - See past cycles to trust future projections
✅ **Professional Design** - Color-coded hierarchy, clean labels, no clutter
✅ **Complete Automation** - Everything updates in real-time
✅ **Three-Dimensional Analysis** - Price + Angles + Time = complete picture
---
## 📊 Best Markets
- Stock indices (S&P 500, NASDAQ, Dow)
- Forex majors (EUR/USD, GBP/USD, USD/JPY)
- Commodities (Gold, Silver, Oil)
- Crypto (BTC, ETH)
- Liquid stocks
✅ Complete Gann system (price + angles + time)
✅ 3 time cycle methods
✅ Auto swing detection
✅ 4 past + 8 future cycle projections
✅ Professional visualization
✅ Extensive customization
✅ Real-time alerts
✅ Works all markets/timeframes
---
## ⚠️ Disclaimer
This indicator is for educational purposes and applies W.D. Gann methodology principles. Not financial advice. Always use proper risk management, position sizing, and stop losses. Practice on paper before live trading. Past performance doesn't guarantee future results.
---
**The market moves in patterns of price and time. This indicator helps you see them.**
Trade with geometry. Trade with time. Trade with confidence.
PyraTime FVG [Pro] | Smart Anchored Price ActionPyraTime FVG is a professional-grade institutional trading suite designed to declutter price action analysis. Unlike standard indicators that flood the chart with infinite zones, this tool uses a proprietary "Velcro" Anchoring Engine that physically snaps Fair Value Gaps (FVGs) and Order Blocks to the exact candle geometry.
This tool replaces 4 separate indicators (FVG, Market Structure, Order Blocks, and Trend Dashboard) with a single, performance-optimized Pine Script v6 script.
🎯 Key Features
1. The "Velcro" FVG Engine Most FVG indicators draw boxes that extend infinitely, making charts messy.
Smart Extension: Zones extend to the right but automatically "snap" and cut off the moment price mitigates (fills) them.
Precision Anchoring: Boxes are drawn from the exact wick/body limits of the originating candles—no floating pixels.
Mitigation Tracking: Mitigated zones are instantly dimmed and archived, keeping your chart clean for current price action.
2. Intelligent Structure Mapping (BOS & CHoCH) The script distinguishes between trend continuation and trend reversals:
BOS (Break of Structure): Marked with Dotted Lines. Signals that the current trend is healthy and continuing.
CHoCH (Change of Character): Marked with Solid Lines. Signals a potential major trend reversal (e.g., the first Lower Low after an uptrend).
3. Multi-Timeframe (MTF) Scanner A non-intrusive dashboard in the bottom-right corner scans the 1H, 4H, and Daily timeframes in real-time.
IN BULL GAP: Price is currently inside a Higher Timeframe Buying Zone.
IN BEAR GAP: Price is currently inside a Higher Timeframe Selling Zone.
CLEAR: No major HTF obstacles nearby.
📚 How to Trade With This Tool (Tutorial)
Step 1: Check the "Big Picture" Look at the MTF Scanner (Bottom Right).
If the 1H and 4H say "IN BEAR GAP" (Gold), you know the higher timeframe bias is Down. You should prioritize selling opportunities.
Step 2: Wait for Price to Visit a Zone On your current chart (e.g., 5m or 15m), wait for price to enter a Gold FVG (Resistance).
Note: The box will be bright gold. Once price touches it, the script will snap the box to that candle, confirming the test.
Step 3: Confirm with Structure Don't sell blindly. Wait for a CHoCH Label (Change of Character) to appear. This confirms that the short-term uptrend has broken and sellers are stepping in.
Step 4: Target the Opposing Zone Aim for the next unmitigated Teal FVG (Bullish Support) or Order Block below.
⚙️ Settings & Customization
Filter Small Gaps: Uses an ATR filter (default 0.5) to ignore insignificant noise. Increase to 1.0 for a cleaner "Swings Only" view.
Show Midpoint: Toggles a dotted 50% equilibrium line inside every active gap.
Visual Style: Fully customizable colors. Default scheme is PyraTime Desert Gold & Oasis Teal.
The Strat: 3-2D Setup Label + Entry, Target & AlertsThis is an indicator that identifies the 3-2D setup based on TheStrat & will alert you if you have this on the chart. Once the 3-2D setup happens this will give you the entry, target and price labels. You can change the font size, label colors and add optional alerts.
VSA Persistent Zones with Arrows Purpose
This indicator is designed to analyze trading volume relative to price movement using the VSA (Volume Spread Analysis) methodology. It aims to:
Identify key price zones where there is strong price movement with high trading volume.
Plot arrows on high-volume candles for quick visual identification.
Keep these zones persistent until broken by price, helping traders make decisions based on real support and resistance levels.
RSI Swing + VWAP + EMA + Camarilla + PDH/PDL+CPRThis script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200
6. Dynamic RSi Swing
Dec 10
Release Notes
This script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200/36
6. Dynamic RSi Swing
Which is better: 36 EMA or 36 SMA for Support/Resistance?
✔ 36 EMA (Exponential Moving Average)
Better for intraday, short-term trading, scalping, and momentum trading.
Why?
Reacts faster to price.
Captures trend shifts early.
Works great when market is trending or volatile.
Most traders use EMA for dynamic support/resistance → works better because of crowd behavior.
Ideal for:
NIFTY, BANKNIFTY, FINNIFTY intraday | Options entries | Trend continuation trades.
Why 20 EMA is Important
The 20 EMA is one of the most widely used moving averages for intraday, swing, and positional trading because it captures short-term trend strength and momentum.
📌 20 EMA Works Best For
✔ Intraday trend identification
✔ Momentum continuation entries
✔ Dynamic support/resistance
✔ Quick reversal detection
✔ Options trading (NIFTY/BNF)
✔ Breakout & pullback trades
EMA 200 – Why It’s Extremely Important
The 200 EMA represents the long-term trend and is respected by:
Institutions
Algo systems
Big traders
Swing traders
Index traders
It acts like a major wall of support or resistance.
💡 What EMA 200 Tells You
✔ Long-term trend direction
Price above 200 EMA → Long-term uptrend
Price below 200 EMA → Long-term downtrend
✔ Strong trend reversal signals
When price crosses the 200 EMA on 15m/1h/1D charts → a deeper trend change is possible.
✔ Institutional support/resistance
Very powerful bounce/rejection zones
Many markets reverse exactly at 200 EMA
What is Previous Day High (PDH)?
The highest price the market reached in the previous trading session.
Why PDH is Important?
Acts as strong resistance
Breakout level for uptrend
Sellers often defend this zone
If broken with volume → strong bullish momentum
🔴 What is Previous Day Low (PDL)?
The lowest price the market reached in the previous trading session.
Why PDL is Important?
Acts as strong support
Breakdown level for downtrend
Buyers defend this level
If broken with volume → strong bearish trend
📌 How PDH/PDL Help in Intraday Trading
1️⃣ Range Breakout Trades
If price breaks PDH → bullish breakout (Buy CE)
If price breaks PDL → bearish breakdown (Buy PE)
What is Camarilla R3?
R3 = Resistance Level 3 in the Camarilla Pivot system.
Why R3 is important?
Acts as a major intraday resistance
Price often reverses from R3
If broken with force → strong uptrend starts
Many traders use R3 as a decision zone
Typical Market Behavior at R3
Rejection from R3 → Sell/PE opportunity
Break + Retest above R3 → CE opportunity
🔴 What is Camarilla S3?
S3 = Support Level 3 in the Camarilla Pivot system.
Why S3 is important?
Acts as a major intraday support
Buyers defend this zone
Breakdown of S3 → strong fall
S3 is often a bounce zone in the morning
Typical Market Behavior at S3
Bounce from S3 → Buy/CE opportunity
Break + Retest below S3 → PE opportunity
📌 Trader Logic: R3 & S3 Zones
⭐ 1. Range Reversal Strategy (Most Popular)
At R3 → Sell/PE
At S3 → Buy/CE
What is VWAP?
VWAP = Volume Weighted Average Price
It shows the average price at which most trading has happened during the day, based on both price and volume.
It resets every day at market open.
🔥 Why VWAP Is So Powerful?
VWAP is used by:
Institutions
Algo traders
Scalpers
Intraday traders
Dec 10
Release Notes
This script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200
6. Dynamic RSi Swing
3 hours ago
Release Notes
This script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200/36
6. Dynamic RSi Swing
Which is better: 36 EMA or 36 SMA for Support/Resistance?
✔ 36 EMA (Exponential Moving Average)
Better for intraday, short-term trading, scalping, and momentum trading.
Why?
Reacts faster to price.
Captures trend shifts early.
Works great when market is trending or volatile.
Most traders use EMA for dynamic support/resistance → works better because of crowd behavior.
Ideal for:
NIFTY, BANKNIFTY, FINNIFTY intraday | Options entries | Trend continuation trades.
Why 20 EMA is Important
The 20 EMA is one of the most widely used moving averages for intraday, swing, and positional trading because it captures short-term trend strength and momentum.
📌 20 EMA Works Best For
✔ Intraday trend identification
✔ Momentum continuation entries
✔ Dynamic support/resistance
✔ Quick reversal detection
✔ Options trading (NIFTY/BNF)
✔ Breakout & pullback trades
EMA 200 – Why It’s Extremely Important
The 200 EMA represents the long-term trend and is respected by:
Institutions
Algo systems
Big traders
Swing traders
Index traders
It acts like a major wall of support or resistance.
💡 What EMA 200 Tells You
✔ Long-term trend direction
Price above 200 EMA → Long-term uptrend
Price below 200 EMA → Long-term downtrend
✔ Strong trend reversal signals
When price crosses the 200 EMA on 15m/1h/1D charts → a deeper trend change is possible.
✔ Institutional support/resistance
Very powerful bounce/rejection zones
Many markets reverse exactly at 200 EMA
What is Previous Day High (PDH)?
The highest price the market reached in the previous trading session.
Why PDH is Important?
Acts as strong resistance
Breakout level for uptrend
Sellers often defend this zone
If broken with volume → strong bullish momentum
🔴 What is Previous Day Low (PDL)?
The lowest price the market reached in the previous trading session.
Why PDL is Important?
Acts as strong support
Breakdown level for downtrend
Buyers defend this level
If broken with volume → strong bearish trend
📌 How PDH/PDL Help in Intraday Trading
1️⃣ Range Breakout Trades
If price breaks PDH → bullish breakout (Buy CE)
If price breaks PDL → bearish breakdown (Buy PE)
What is Camarilla R3?
R3 = Resistance Level 3 in the Camarilla Pivot system.
Why R3 is important?
Acts as a major intraday resistance
Price often reverses from R3
If broken with force → strong uptrend starts
Many traders use R3 as a decision zone
Typical Market Behavior at R3
Rejection from R3 → Sell/PE opportunity
Break + Retest above R3 → CE opportunity
🔴 What is Camarilla S3?
S3 = Support Level 3 in the Camarilla Pivot system.
Why S3 is important?
Acts as a major intraday support
Buyers defend this zone
Breakdown of S3 → strong fall
S3 is often a bounce zone in the morning
Typical Market Behavior at S3
Bounce from S3 → Buy/CE opportunity
Break + Retest below S3 → PE opportunity
📌 Trader Logic: R3 & S3 Zones
⭐ 1. Range Reversal Strategy (Most Popular)
At R3 → Sell/PE
At S3 → Buy/CE
What is VWAP?
VWAP = Volume Weighted Average Price
It shows the average price at which most trading has happened during the day, based on both price and volume.
It resets every day at market open.
🔥 Why VWAP Is So Powerful?
VWAP is used by:
Institutions
Algo traders
Scalpers
Intraday traders
Highs & LowsIntroduction: This indicator marks highs and lows from the previous New York, Asian, and London sessions, including the daily high and low. It is made to be as user friendly/adjustable as possible.
It was designed around trading during the New York morning session, using the 1 hour and 1 minute(or similar) timeframes in conjunction.
Settings: Common settings for the cleanest viewing are as follows:
1 Hour Chart Settings:
Box #3 "Label Vertical Offset" to "18".
Box #4 "Label X Offset" to "2".
1 Minute Chart Settings:
Box #3 "Label Vertical Offset" to "2".
Box #4 "Label X Offset" to "0".
Note: Adjusting text to the darkest "black" setting may provide the best contrast.
spy scalp cheat codecombines hma directional scalping strategy plus the option to use optional stochastic quad band to confrim entry
Strat Structure Engine + Trapped TradersStrat Structure Engine + Trapped Traders – Detailed Description
This script identifies high-probability market structure patterns known as “The Strat” setups, specifically focusing on 3-bar → Failed 2, 2-bar → Failed 2, and Failed 2 → Failed 2 (“Dragon’s Tail”) sequences. It is designed to help traders visualize potential reversals, trapped traders, and exhaustion points directly on the chart, combining price action, volatility, and volume metrics to grade signal strength.
Key Features:
3-Bar → Failed 2 (Tiered Scoring):
Detects a 3-bar structure followed immediately by a strict Failed 2 bar.
Evaluates the setup using four criteria:
3-bar range relative to ATR
Failed 2 close position relative to the 3-bar midpoint
Failed 2 body-to-range ratio
Volume relative to recent average
Assigns a tier (A+, A, B, or —) to indicate reliability, giving traders a graded view of signal strength.
2-Bar → Failed 2 (A+ Only):
Identifies strict 2-bar structures immediately followed by a Failed 2 bar.
Uses a similar evaluation system as 3→F2 but filters only for the strongest A+ setups.
Highlights signals where price shows strong directional rejection and high probability for reversal.
Dragon’s Tail – Failed 2 → Failed 2:
Captures consecutive Failed 2 bars in opposite directions, a classic trapped-trader scenario.
Signals both bullish and bearish sequences on bar close, helping traders spot potential quick reversals.
How It Works:
Uses ATR to contextualize bar ranges and volatility.
Incorporates volume averaging to detect unusually high trading activity that validates the strength of a Failed 2 setup.
Strict bar evaluation ensures only fully-formed, confirmed patterns are labeled, reducing noise and false signals.
Optional labels and alerts allow traders to track these structures in real-time or on bar close.
Practical Trading Use:
Ideal for spotting short-term exhaustion points, trapped traders, and reversal zones.
Can be used alongside liquidity zones, VWAP, and fair value gaps to refine entries and exits.
Traders can focus on high-tier signals (A+ / A) for higher probability trades, while lower-tier signals (B) indicate caution or context setups.
Customization Options:
Toggle visibility for each pattern type (3→F2, 2→F2, F2→F2).
Adjust ATR length and volume average period for different instruments or timeframes.
Alerts are available for all major setups, enabling integration with automated monitoring or manual execution strategies.
Summary:
The Strat Structure Engine + Trapped Traders script combines price action structure, volatility, and volume analysis to visualize high-probability reversal setups. By highlighting both strict pattern confirmations and tiered reliability, it provides traders with actionable insight into potential turning points, trapped trader scenarios, and high-conviction market moves without relying on external scripts or assumptions.
Smart Money Concepts with EMA + RSI - DrSafDescription
This indicator combines LuxAlgo’s Smart Money Concepts (SMC) framework with a trend and momentum confluence system.
Core Features:
Swing & internal BOS / CHoCH
Order blocks, fair value gaps, equal highs/lows
Premium & discount zones
Multi-timeframe high/low levels
Added Filters:
EMA 21 / 50 / 200 trend alignment
Optional RSI 50 momentum filter
Clear long/short signals based on:
Swing CHoCH
Higher-timeframe trend alignment
Momentum confirmation
Signal Logic
Long: Bullish CHoCH + EMA bullish structure + RSI confirmation
Short: Bearish CHoCH + EMA bearish structure + RSI confirmation
Designed for non-repainting execution, clean chart structure or systematic trading.
Indicator plots EMA 21, EMA 50, and EMA 200 to define trend structure and dynamic support/resistance.
EMA 200: overall trend bias
EMA 21 and EMA 50: pullback support for high probability trend entries.
EMA 21/50 crosses highlight momentum shifts but are not intended as standalone entry signals.
License
Based on LuxAlgo Smart Money Concepts
CC BY-NC-SA 4.0 (Non-Commercial)
GEMINI Advanced SMA with Trend & AlertsDescription:
This indicator is a professional Trend & Signal analysis tool designed to help traders identify market direction, entries, and momentum strength at a glance. It combines a customizable dual Moving Average system with an advanced real-time Information Dashboard.
The script is built to keep charts clean while providing maximum data through the on-screen panel.
📈 Key Features
1. Dual Moving Average System
Fast MA (Signal Line): Acts as the primary trigger for entries.
Slow MA (Trend Baseline): Filters the overall market direction.
Visual Cloud: The area between the two MAs is filled with color (Green/Red) to visualize the trend strength and potential support/resistance zones.
Flexibility: You can choose between SMA, EMA, HMA, WMA, or RMA for both lines independently.
2. Professional Data Dashboard A customizable table positioned on your chart provides real-time analytics:
Price Action: Immediate Bullish/Bearish status.
MA Status: Shows if the Fast and Slow MAs are currently Rising or Falling.
Exact Levels: Displays the precise price values of the MAs.
Spread Analysis: Monitors the gap between the Fast and Slow MA ("Expanding" vs "Squeezing") to help identify momentum acceleration or exhaustion.
3. Signals & Alerts
BUY Signal: Generated when the Price crosses OVER the Fast MA.
SELL Signal: Generated when the Price crosses UNDER the Fast MA.
Alerts: Fully compatible with TradingView alerts for automation.
4. Multi-Timeframe (MTF) Support You can calculate the Moving Averages based on a higher timeframe (e.g., viewing 4-hour MAs while trading on a 15-minute chart) to stay aligned with the macro trend.
🛠 How to Use
Trend Identification: Look at the "Cloud" color. Green indicates an uptrend context; Red indicates a downtrend context.
Entry Points: Use the "BUY" and "SELL" labels.
Pro Tip: Take BUY signals only when the Cloud is Green (trading with the trend).
Pro Tip: Take SELL signals only when the Cloud is Red.
Momentum Check: Use the Dashboard to see if the Spread is "EXPANDING" (strong momentum) or "SQUEEZING" (potential consolidation or reversal).
⚙️ Settings
Fast/Slow Length & Type: Fully customizable periods and MA types.
MTF: Enable/Disable higher timeframe calculations.
Dashboard: You can toggle the table visibility, change its size (Tiny, Small, Normal, Large), and move it to any corner of the screen.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice.
Anurag Institutional Swing Trader Pro [Robust]nstitutional Swing Flow is a comprehensive, multi-timeframe system designed for swing traders who want to align with "Smart Money" rather than fight against it.
Unlike standard indicators that rely solely on price crossovers, this script analyzes the underlying order flow—tracking stealth accumulation, volume anomalies, and institutional footprints—to generate high-probability swing setups.
Key Features (The "Smart Money" Logic)
1. Institutional Footprints
Stealth Accumulation/Distribution: Detects when price is held in a tight range despite high volume (a classic sign of institutions building a position).
Smart Money Divergence: Identifies when price makes a lower low but Money Flow (OBV/Accumulation-Distribution) makes a higher high.
Fair Value Gaps (FVG): Automatically plots Bullish and Bearish imbalance zones where price is likely to retrace before continuing the trend.
2. Safety First (Risk Management)
Real Earnings Detection: Automatically checks upcoming earnings dates. If an earnings report is within 5 days (adjustable), the script blocks new signals to prevent gambling on binary events.
Visual Exits: Plots dynamic Stop Loss and Take Profit levels on the chart the moment a trade is taken, along with "SL Hit" or "TP Hit" markers for visual backtesting.
3. The "Confluence Score" Dashboard A sophisticated dashboard in the top-right corner rates every setup on a scale of 0 to 100 based on:
Multi-Timeframe Trend: Is the Weekly, Daily, and 4H trend aligned?
Relative Strength: Is the asset outperforming the SPY benchmark?
Volatility: Is the asset in a "Squeeze" (Bollinger Band compression)?
Momentum: RSI, MACD, and CMF confirmation.
Only setups with a score > 65 (adjustable) trigger a BUY or SELL signal.
How to Use
Timeframe: Optimized for 4-Hour (4H) and Daily (D) charts. (Avoid using on <15m charts due to multi-timeframe calculations).
The Signal: Wait for a large "CALL" or "PUT" label.
The Confirmation: Check the Dashboard. Ideally, look for a "Squeeze: YES" combined with a high Institutional Buy Score.
The Exit: Follow the Red (Stop Loss) and Green (Take Profit) lines plotted automatically.
Disclaimer
This tool is for educational purposes only. Swing trading involves risk. Always confirm signals with your own analysis and risk management rules.
Trend Dip-BuyerThis strategy is a simplified, high-probability Dip Buying System designed for active growth stocks. Instead of chasing breakouts at the top, it waits for the stock to take a "breather" (pullback) within an uptrend and buys the discount.
It combines a classic Trend Filter (50 EMA) with a sensitive Momentum Oscillator (RSI 2) to pinpoint the exact moment a pullback is likely to reverse back up.
How It Works:
1. The Trend Filter (50 EMA)
The strategy ONLY trades Long.
It requires the price to be above the 50-period Exponential Moving Average (EMA) (Blue Line). This ensures you are trading with the momentum of the market, not against it.
2. The Dip Signal (RSI 2)
It uses a fast 2-period RSI.
When RSI(2) drops below 50, it signals that the stock is temporarily "oversold" or resting. This is your cue that a discount entry is available.
3. Dynamic Exits
Profit Taking: The primary target is dynamic. The strategy looks to exit when RSI(2) spikes above 70, allowing you to capture the bulk of the momentum swing. (A fixed ATR target option is also included).
Safety: A 3x ATR Stop Loss protects the trade from sudden reversals.
✅ Simple Entry Checklist
Before taking a trade, ensure all 3 boxes are checked:
Trend Check: Is the current price ABOVE the Blue Line (50 EMA)?
Dip Check: Is the RSI (2) value BELOW 50?
Time Check: Is it past 12:00 PM? (Recommended for cleaner trends, but optional).
👉 If YES to all: Enter Long on the next candle open.
Best Settings (Customizable):
RSI Threshold: Default is 50 (Balanced). Lower to 30 for fewer, higher-quality trades.
Exit Method: "RSI > 70" is recommended for maximizing wins in strong trends.
Time Filter: "Trade > 12pm" is enabled by default to avoid morning volatility.
Big Notional Volume Bubbles (Lower-TF Order Flow Approximation)Big Notional Volume Bubbles (Lower-TF Order Flow Approximation)
### Overview
This indicator visualizes large notional trading activity by scanning lower-timeframe candles inside each chart bar and highlighting periods where unusually high traded value (volume × price) occurs.
This script is intended to help short-term traders and scalpers identify bursts of aggressive activity, potential absorption zones, and areas of heightened participation, using standard OHLCV data.
Important: This indicator does not access true market order tape or DOM data. It is an approximation based on lower-timeframe OHLCV data provided by TradingView.
What the Indicator Shows
Each bubble represents a lower-timeframe candle where traded notional value exceeds a user-defined threshold.
Bubble size scales with the notional value of that candle.
Green bubbles indicate the lower-timeframe candle closed higher (buy-side pressure approximation).
Red bubbles indicate the lower-timeframe candle closed lower (sell-side pressure approximation).
Bubbles can be plotted at candle closes or wick extremes for contextual analysis.
How It Works
1. Lower-timeframe OHLCV data is requested using `request.security_lower_tf`.
2. Notional value is calculated as volume × price for each micro-candle.
3. The script selects the largest notional events per bar that exceed the minimum threshold.
4. These events are rendered as bubbles on the main price chart.
Intended Use Cases
Scalping and short-term trading
Momentum ignition and continuation analysis
Absorption and failed breakout detection
Effort versus result analysis
Confirmation at key structural levels
Recommended Settings
Lower timeframe: Start with 1 (1 minute). Seconds-based timeframes may not be supported on all feeds.
Minimum notional (USD/USDT):
BTC / ETH: 25,000 – 250,000
Mid-cap assets: 5,000 – 50,000
Adjust based on liquidity and volatility
Max bubbles per bar: 3–8 to avoid visual clutter
Limitations
This indicator does not display individual market orders or aggressor-side execution.
Buy/sell classification is inferred from candle direction, not bid/ask data.
Lower-timeframe data availability depends on the selected symbol and exchange feed.
This tool should not be used as a standalone signal generator.
Best Practices
Use in conjunction with market structure, VWAP, and key price levels.
Focus on price behavior after a bubble appears rather than the bubble itself.
Interpret bubbles as areas of interest, not directional guarantees.
The Strat Candle Types (1 / 2U / 2D / 3)This script uses TheStrat candle numbers 1, 2D, 2U, 3 and places the text below or above. You can also change the text size. This also allows you to change the colors of the candles with two options for the 1 & 3 so you can color them in the direction they are going. For example a 1 that is green can be green and a 1 that is red can be red.
Account GuardianAccount Guardian: Dynamic Risk/Reward Overlay
Introduction
Account Guardian is an open-source indicator for TradingView designed to help traders evaluate trade setups before entering positions. It automatically calculates Risk-to-Reward ratios based on market structure, displays visual Stop Loss and Take Profit zones, and provides real-time position sizing recommendations.
The indicator addresses a fundamental question every trader should ask before entering a trade: "Does this setup make mathematical sense?" Account Guardian answers this question visually and numerically, helping traders avoid impulsive entries with poor risk profiles.
Core Functionality
Account Guardian performs four primary functions:
Detects swing highs and swing lows to identify logical stop loss placement levels
Calculates Risk-to-Reward ratios for both long and short setups in real-time
Displays visual SL/TP zones on the chart for immediate trade planning
Computes position sizing based on your account size and risk tolerance
The goal is to provide traders with instant feedback on whether a potential trade meets their minimum risk/reward criteria before committing capital.
How It Works
Swing Detection
The indicator uses pivot point detection to identify recent swing highs and swing lows on the chart. These swing points serve as logical areas for stop loss placement:
For Long Trades: The most recent swing low becomes the stop loss level. Price breaking below this level would invalidate the bullish thesis.
For Short Trades: The most recent swing high becomes the stop loss level. Price breaking above this level would invalidate the bearish thesis.
The swing detection lookback period is configurable, allowing you to adjust sensitivity based on your trading timeframe and style.
It automatically adjusts the tp and sl when it is applied to your chart so it is always moving up and down!
Risk/Reward Calculation
Once swing levels are identified, the indicator calculates:
Entry Price: Current close price (where you would enter)
Stop Loss: Recent swing low (for longs) or swing high (for shorts)
Risk: Distance from entry to stop loss
Take Profit: Entry plus (Risk × Target Multiplier)
R:R Ratio: Reward divided by Risk
The R:R ratio is then evaluated against your configured thresholds to determine if the setup is valid, marginal, or poor.
Visual Elements
SL/TP Zones
When enabled, the indicator draws colored boxes on the chart showing:
Red Zone: Stop Loss area - the region between your entry and stop loss
Green/Gold/Red Zone: Take Profit area - colored based on R:R quality
The color coding provides instant visual feedback:
Green: R:R meets or exceeds your "Good R:R" threshold (default 3:1)
Gold: R:R meets minimum threshold but below "Good" (between 2:1 and 3:1)
Red: R:R below minimum threshold - setup should be avoided
Swing Point Markers
Small circles mark detected swing points on the chart:
Green circles: Swing lows (potential support / long SL levels)
Red circles: Swing highs (potential resistance / short SL levels)
Dashboard Panel
The dashboard in the top-right corner displays comprehensive trade planning information:
R:R Row: Current Risk-to-Reward ratio for long and short setups
Status Row: VALID, OK, BAD, or N/A based on R:R thresholds
Stop Loss Row: Exact price level for stop loss placement
Take Profit Row: Exact price level for take profit placement
Pos Size Row: Recommended position size based on your risk parameters
Risk $ Row: Dollar amount at risk per trade
Position Sizing Logic
The indicator calculates position size using the formula:
Position Size = Risk Amount / Risk per Unit
Where:
Risk Amount = Account Size × (Risk Percentage / 100)
Risk per Unit = Entry Price - Stop Loss Price
For example, with a $10,000 account risking 1% per trade ($100), if your entry is at 100 and stop loss at 98 (risk of 2 per unit), your position size would be 50 units.
Input Parameters
Swing Detection:
Swing Lookback: Number of bars to look back for pivot detection (default: 10). Higher values find more significant swing points but may be slower to update.
Target Multiplier: Multiplier applied to risk to calculate take profit distance (default: 2). A value of 2 means TP is 2× the distance of SL from entry.
Risk/Reward Thresholds:
Minimum R:R: Minimum acceptable Risk-to-Reward ratio (default: 2.0). Setups below this show as "BAD" in red.
Good R:R: Threshold for excellent setups (default: 3.0). Setups at or above this show as "VALID" in green.
Account Settings:
Account Size ($): Your trading account size in dollars (default: 10,000). Used for position sizing calculations.
Risk Per Trade (%): Percentage of account to risk per trade (default: 1.0%). Professional traders typically risk 0.5-2% per trade.
Display:
Show SL/TP Zones: Toggle visibility of the colored zone boxes on chart (default: enabled)
Show Dashboard: Toggle visibility of the information panel (default: enabled)
Analyze Direction: Choose to analyze Long only, Short only, or Both directions (default: Both)
How to Use This Indicator
Basic Workflow:
Add the indicator to your chart
Configure your account size and risk percentage in the settings
Set your minimum and good R:R thresholds based on your trading rules
Look at the dashboard to see current R:R for potential long and short entries
Only consider trades where the status shows "VALID" or at minimum "OK"
Use the displayed SL and TP levels for your order placement
Use the position size recommendation to determine lot/contract size
Interpreting the Dashboard:
VALID (Green): Excellent setup - R:R meets your "Good" threshold. This is the ideal scenario for taking a trade.
OK (Gold): Acceptable setup - R:R meets minimum but isn't optimal. Consider taking if other confluence factors align.
BAD (Red): Poor setup - R:R below minimum threshold. Avoid this trade or wait for better entry.
N/A (Gray): Cannot calculate - usually means no valid swing point detected yet.
Best Practices:
Use this indicator as a filter, not a signal generator. It tells you IF a trade makes sense, not WHEN to enter.
Combine with your existing entry strategy - use Account Guardian to validate setups from other analysis.
Adjust the swing lookback based on your timeframe. Lower timeframes may need smaller lookback values.
Be honest with your account size input - accurate position sizing requires accurate inputs.
Consider the target multiplier carefully. Higher multipliers mean larger potential reward but lower probability of hitting TP.
Alerts
The indicator includes four alert conditions:
Good Long Setup: Triggers when long R:R reaches or exceeds your "Good R:R" threshold
Good Short Setup: Triggers when short R:R reaches or exceeds your "Good R:R" threshold
Bad Long Setup: Triggers when long R:R falls below your minimum threshold
Bad Short Setup: Triggers when short R:R falls below your minimum threshold
These alerts can help you monitor multiple charts and get notified when favorable setups appear.
Technical Implementation
The indicator is built using Pine Script v6 and includes:
Pivot-based swing detection using ta.pivothigh() and ta.pivotlow()
Dynamic box drawing for visual SL/TP zones
Table-based dashboard for clean information display
Color-coded visual feedback system
Persistent variable tracking for swing levels
Code Structure:
// Swing Detection
float swingHi = ta.pivothigh(high, swingLen, swingLen)
float swingLo = ta.pivotlow(low, swingLen, swingLen)
// R:R Calculation for Long
float longSL = recentSwingLo
float longRisk = entry - longSL
float longTP = entry + (longRisk * targetMult)
float longRR = (longTP - entry) / longRisk
// Position Sizing
float riskAmount = accountSize * (riskPct / 100)
float posSize = riskAmount / longRisk
Limitations
The indicator uses historical swing points which may not always represent optimal SL placement for your specific strategy
Position sizing assumes you can trade fractional units - adjust accordingly for instruments with minimum lot sizes
R:R calculations assume linear price movement and don't account for gaps or slippage
The indicator doesn't predict price direction - it only evaluates the mathematical viability of a setup
Swing detection has inherent lag due to the lookback period required for pivot confirmation
Recommended Settings by Trading Style
Scalping (1-5 minute charts):
Swing Lookback: 5-8
Target Multiplier: 1-2
Minimum R:R: 1.5
Good R:R: 2.0
Day Trading (15-60 minute charts):
Swing Lookback: 8-12
Target Multiplier: 2
Minimum R:R: 2.0
Good R:R: 3.0
Swing Trading (4H-Daily charts):
Swing Lookback: 10-20
Target Multiplier: 2-3
Minimum R:R: 2.5
Good R:R: 4.0
Why Risk/Reward Matters
Many traders focus solely on win rate, but profitability depends on the combination of win rate AND risk/reward ratio. Consider these scenarios:
50% win rate with 1:1 R:R = Breakeven (before costs)
50% win rate with 2:1 R:R = Profitable
40% win rate with 3:1 R:R = Profitable
60% win rate with 1:2 R:R = Losing money
Account Guardian helps ensure you only take trades where the math works in your favor, even if you're wrong more often than you're right.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation.
Trading involves substantial risk of loss and is not suitable for all investors. The calculations provided by this indicator are based on historical price data and mathematical formulas that may not accurately predict future price movements.
Position sizing recommendations are estimates based on user inputs and should be verified before placing actual trades. Always consider factors such as leverage, margin requirements, and broker-specific rules when determining actual position sizes.
The Risk-to-Reward ratios displayed are theoretical calculations based on swing point detection. Actual trade outcomes will vary based on market conditions, execution quality, and other factors not captured by this indicator.
Past performance does not guarantee future results. Users should thoroughly test any trading approach in a demo environment before risking real capital. The authors and publishers of this indicator are not responsible for any losses or damages arising from its use.
Always consult with a qualified financial advisor before making investment decisions.
SR Channel + EMA + RSI MTF + VolHighlightSR + Volume + RSI MTF – edited by Mochi
This indicator combines three tools into a single script:
SR Zones from Pivots
Automatically detects clusters of pivot highs/lows and groups them into support and resistance zones.
Zone width is tightened using a percentage of the pivot cluster range so levels are more precise and cleaner.
Each zone includes:
A colored box (SR area),
A dashed midline,
A POC line (price level with the highest traded volume inside the zone),
A label showing the zone price and distance (%) from current price.
Zone color is dynamic but simple and stable:
If price closes below the mid of the zone → it is treated as resistance (red).
If price closes above the mid of the zone → it is treated as support (green).
Box, lines, and label always share the same color.
Volume Inside the Zone + POC
Calculates buy/sell volume for candles whose close lies inside each zone.
Uses abs(buyVol − sellVol) / (buyVol + sellVol) to measure volume imbalance and control box opacity:
Stronger, more one‑sided volume → darker box (stronger zone).
POC is drawn as a thin line with the same color as the zone to highlight the best liquidity level for entries/TP.
Multi‑Timeframe RSI Dashboard
Shows RSI(14) values for multiple timeframes (1m, 5m, 15m, 30m, 1h, 4h, 8h, 1d), each can be toggled on/off.
Background color of each RSI cell:
RSI > 89 → red (strong overbought),
80–89 → orange (warning area),
RSI < 28 → lime (strong oversold),
Otherwise → white (neutral).
The goal of this script is to give traders a clear view of:
Key support/resistance zones,
Their volume quality and POC,
And multi‑TF overbought/oversold conditions via the RSI dashboard – all in one indicator to support retest/flip‑zone trading.
CryptoFlux Dynamo [JOAT]CryptoFlux Dynamo: Velocity Scalping Strategy
This Pine Script v6 strategy is designed for cryptocurrency markets operating on 5-minute and faster timeframes. It combines volatility regime detection, multi-path signal confirmation, and adaptive risk management to identify momentum-based trading opportunities in perpetual futures markets.
Core Design Principles
The strategy addresses three challenges specific to cryptocurrency trading:
24/7 market operation without session boundaries requires continuous monitoring and execution logic
Volatility regimes shift rapidly, demanding adaptive stop and target calculations
Tick-level responsiveness is critical for capturing momentum moves before they complete
Strategy Architecture
1. Signal Generation Stack
The strategy uses multiple technical indicators calibrated for cryptocurrency momentum:
MACD with parameters 8/21/5 (fast/slow/signal) optimized for crypto acceleration phases
EMA ribbon using 8/21/34 periods with slope analysis to assess trend structure
Volume impulse detection combining SMA baseline, standard deviation, and z-score filtering
RSI (21 period) and MFI (21 period) for momentum confirmation
Bollinger Bands and Keltner Channels for squeeze detection
2. Volatility Regime Classification
The strategy normalizes ATR as a percentage of price and classifies market conditions into three regimes:
Compression (< 0.8% ATR): Reduced position sizing, tighter stops (1.05x ATR), lower profit targets (1.6x ATR)
Expansion (0.8% - 1.6% ATR): Standard risk parameters, balanced risk-reward (1.55x stop, 2.05x target)
Velocity (> 1.6% ATR): Wider stops (2.1x ATR), amplified targets (2.8x ATR), tighter trailing offsets
ATR is calculated over 21 periods and smoothed with a 13-period EMA to reduce noise from wicks.
3. Multi-Path Entry System
Four independent signal pathways contribute to a composite strength score (0-100):
Trend Break (30 points): Requires EMA ribbon alignment, positive slope, and structure breakout above/below recent highs/lows
Momentum Surge (30 points): MACD histogram exceeds adaptive baseline, MACD line crosses signal, RSI/MFI above/below thresholds, with volume impulse confirmation
Squeeze Release (25 points): Bollinger Bands compress inside Keltner Channels, then release with momentum bias
Micro Pullback (15 points): Shallow retracements within trend structure that reset without breaking support/resistance
Additional scoring modifiers:
Volume impulse: +5 points when present, -5 when absent
Regime bonus: +5 in velocity, -2 in compression
Cycle bias: +5 when aligned, -5 when counter-trend
Trades only execute when the composite score reaches the minimum threshold (default: 55) and all filters agree.
4. Risk Management Framework
Position sizing is calculated from:
RiskCapital = Equity × (riskPerTradePct / 100)
StopDistance = ATR × StopMultiplier(regime)
Quantity = min(RiskCapital / StopDistance, MaxExposure / Price)
The strategy includes:
Risk per trade: 0.65% of equity (configurable)
Maximum exposure: 12% of equity (configurable)
Regime-adaptive stop and target multipliers
Adaptive trailing stops based on ATR and regime
Kill switch that disables new entries after 6.5% drawdown
Momentum fail-safe exits when MACD polarity flips or ribbon structure breaks
5. Additional Filters
Cycle Oscillator : Measures price deviation from 55-period EMA. Requires cycle bias alignment (default: ±0.15%) before entry
BTC Dominance Filter : Optional filter using CRYPTOCAP:BTC.D to reduce long entries during risk-off periods (rising dominance) and short entries during risk-on periods
Session Filter : Optional time-based restriction (disabled by default for 24/7 operation)
Strategy Parameters
All default values used in backtesting:
Core Controls
Enable Short Structure: true
Restrict to Session Window: false
Execution Session: 0000-2359:1234567 (24/7)
Allow Same-Bar Re-Entry: true
Optimization Constants
MACD Fast Length: 8
MACD Slow Length: 21
MACD Signal Length: 5
EMA Fast: 8
EMA Mid: 21
EMA Slow: 34
EMA Slope Lookback: 8
Structure Break Window: 9
Regime Intelligence
ATR Length: 21
Volatility Soothing: 13
Low Vol Regime Threshold: 0.8% ATR
High Vol Regime Threshold: 1.6% ATR
Cycle Bias Length: 55
Cycle Bias Threshold: 0.15%
BTC Dominance Feed: CRYPTOCAP:BTC.D
BTC Dominance Confirmation: true
Signal Pathways
Volume Baseline Length: 34
Volume Impulse Multiplier: 1.15
Volume Z-Score Threshold: 0.5
MACD Histogram Smoothing: 5
MACD Histogram Sensitivity: 1.15
RSI Length: 21
RSI Momentum Trigger: 55
MFI Length: 21
MFI Momentum Trigger: 55
Squeeze Length: 20
Bollinger Multiplier: 1.5
Keltner Multiplier: 1.8
Squeeze Release Momentum Gate: 1.0
Micro Pullback Depth: 7
Minimum Composite Signal Strength: 55
Risk Architecture
Risk Allocation per Trade: 0.65%
Max Exposure: 12% of Equity
Base Risk/Reward Anchor: 1.8
Stop Multiplier • Low Regime: 1.05
Stop Multiplier • Medium Regime: 1.55
Stop Multiplier • High Regime: 2.1
Take Profit Multiplier • Low Regime: 1.6
Take Profit Multiplier • Medium Regime: 2.05
Take Profit Multiplier • High Regime: 2.8
Adaptive Trailing Engine: true
Trailing Offset Multiplier: 0.9
Quantity Granularity: 0.001
Kill Switch Drawdown: 6.5%
Strategy Settings
Initial Capital: $100,000
Commission: 0.04% (0.04 commission_value)
Slippage: 1 tick
Pyramiding: 1 (no position stacking)
calc_on_every_tick: true
calc_on_order_fills: true
Visualization Features
The strategy includes:
EMA ribbon overlay (8/21/34) with customizable colors
Regime-tinted background (compression: indigo, expansion: purple, velocity: magenta)
Dynamic bar coloring based on signal strength divergence
Signal labels for entry points
On-chart dashboard displaying regime, ATR%, signal strength, position status, stops, targets, and risk metrics
Recommended Usage
Timeframes
The strategy is optimized for 5-minute charts. It can operate on 3-minute and 1-minute timeframes for faster scalping, or 15-minute for swing confirmation. When using higher timeframes, consider:
Increasing structure lookback windows
Raising RSI trigger thresholds above 58 to filter noise
Extending volume baseline length
Markets
Designed for high-liquidity cryptocurrency perpetual futures:
BTC/USDT, BTC/USD perpetuals
ETH perpetuals
Major L1 tokens with sufficient volume
For thinner order books, increase volume impulse multiplier and adjust quantity granularity to match exchange minimums.
Limitations and Compromises
Backtesting Considerations
TradingView strategy backtesting does not replicate broker execution. Actual fills, slippage, and commissions may differ
The strategy uses calc_on_every_tick=true and calc_on_order_fills=true to reduce bar-close distortions, but real execution still depends on broker infrastructure
At least 200 historical bars are required to stabilize regime classification, volume baselines, and cycle context
Market Structure Dependencies
BTC dominance feed ( CRYPTOCAP:BTC.D ) may lag during low-liquidity periods or weekends. Consider disabling the filter if data quality degrades
Volume impulse detection assumes consistent order book depth. During extreme volatility or exchange issues, volume signatures may be unreliable
Regime classification based on ATR percentage assumes normal volatility distributions. During black swan events, regime thresholds may not adapt quickly enough
Parameter Sensitivity
Default parameters are tuned for BTC/ETH perpetuals on 5-minute charts. Different assets or timeframes require recalibration
The composite signal strength threshold (55) balances selectivity vs. opportunity. Higher values reduce false signals but may miss valid setups
Risk per trade (0.65%) and max exposure (12%) are conservative defaults. Aggressive scaling increases drawdown risk
Execution Constraints
Same-bar re-entry requires broker support for rapid order placement
Quantity granularity must match exchange contract minimums
Kill switch drawdown (6.5%) may trigger during normal volatility cycles, requiring manual reset
Performance Expectations
This strategy is a framework for momentum-based cryptocurrency trading. Performance depends on:
Market conditions (trending vs. ranging)
Exchange execution quality
Parameter calibration for specific assets
Risk management discipline
Backtest results shown in publications reflect specific market conditions and parameter sets. Past performance does not indicate future results. Always forward test with paper trading or broker simulation before deploying live capital.
Code Structure
The strategy is organized into functional sections:
Configuration groups for parameter organization
Helper functions for position sizing and normalization
Core indicator calculations (MACD, EMA, ATR, RSI, MFI, volume analytics)
Regime classification logic
Multi-path signal generation and composite scoring
Entry/exit orchestration with risk management
Visualization layer with dashboard and chart elements
The source code is open and can be modified to suit your trading requirements. Everyone is encouraged to understand the logic before deploying and to test thoroughly in their target markets.
Modification Guidelines
When adapting this strategy:
Document any parameter changes in your publication
Test modifications across different market regimes
Validate position sizing logic for your exchange's contract specifications
Consider exchange-specific limitations (funding rates, liquidation mechanics, order types)
Conclusion
This strategy provides a structured approach to cryptocurrency momentum trading with regime awareness and adaptive risk controls. It is not a guaranteed profit system, but rather a framework that requires understanding, testing, and ongoing calibration to market conditions.
You should thoroughly understand the logic, test extensively in their target markets, and manage risk appropriately. The strategy's effectiveness depends on proper parameter tuning, reliable execution infrastructure, and disciplined risk management.
Disclaimer
This script and its documentation are for educational and informational purposes only. They do not constitute financial advice, investment recommendations, or trading advice of any kind. Trading cryptocurrencies and derivatives involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by backtesting, does not guarantee future results.
This strategy is provided "as is" without any warranties or guarantees of profitability
You should not rely solely on this strategy for making trading decisions
Always conduct your own research and analysis before making any financial decisions
Consider consulting with a qualified financial advisor before engaging in trading activities
The authors and contributors are not responsible for any losses incurred from using this strategy
Cryptocurrency trading can result in the loss of your entire investment
Only trade with capital you can afford to lose
Use this strategy at your own risk. The responsibility for any trading decisions and their consequences lies entirely with you.
SilverHawk Trend Flow Part of SilverHawk Suite
This script is designed to be used with the SilverHawk Suite workflow (context → trigger → confirmation → execution).
It works standalone, but the highest accuracy comes from using the full suite together.
Where it fits:
• Role: Context
What it does:
Colors candles based on detected trend regime, so you trade with the prevailing direction and avoid fighting structure.
How to use:
• Bullish color: prefer long triggers only
• Bearish color: prefer short triggers only
• No clear trend / transition: stand down and wait for the suite trigger + confirmation
Visual Tip: (important)
If candles look “hidden”: Settings → Visual Order → Bring To Front
Alerts:
New Up Trend / New Down Trend alerts trigger on confirmed candles (non-repainting style).
Suite note:
For full workflow and loadouts, start with: “SilverHawk Suite — Start Here (Workflow Guide)” (free)
Credits / License
Based on PhantomFlow Trend Detector (MPL-2.0). This script remains MPL-2.0.






















