Earth&Sky Indicator to Earth&Sky trading System.
It has
*3 EMAs in H4, 1D and 1W timeframes;
*Daily Range Indicator
* MTF trend direction
Trendanalyse
NeuroPolynomial ChannelNeuroPolynomial Channel is a structure-oriented price channel designed to model price curvature, balance, and realized deviation using recursive non-linear smoothing.
Rather than relying on standard moving averages or statistical volatility assumptions, the indicator separates structure estimation from deviation measurement, allowing each to adapt independently.
Structural Core (Recursive Curvature Line)
The centerline is generated using a recursive smoothing process with controlled curvature.
By blending current price with historical estimates and introducing a curvature term, the line forms a non-linear structural path that adapts gradually to changing market conditions.
This approach emphasizes:
Structural continuity over short-term noise
Gradual regime transitions instead of abrupt shifts
User-controlled responsiveness via curvature and blending parameters
The result is a centerline that reflects price structure, not just short-term averages.
Deviation Field (Adaptive Bands)
Channel width is derived from the observed absolute deviation between price and the structural core.
Instead of assuming a normal distribution, deviation is measured directly from realized price behavior and expressed through multiple band layers:
Inner structure boundary
Intermediate deviation zone (optional)
Outer deviation boundary (optional)
As price behavior changes, the deviation field expands or contracts organically, providing a contextual view of compression, balance, and expansion.
Interpretation Framework
Balance & Control
Persistent acceptance on one side of the structural core reflects directional control.
Compression
Narrow deviation bands signal reduced realized movement and potential energy buildup.
Expansion
Widening bands indicate increasing deviation and active range development.
..................................................................................................................
The indicator is intended for contextual interpretation, not mechanical signal generation.
Configuration
Length – Structural memory depth
Morph Factor – Degree of historical blending
Flatten Factor – Curvature sensitivity control
Deviation Multipliers – Band spacing
Visual Controls – Theme and candle tinting
Notes:
Deviation is derived from realized price movement and adapts gradually.
Recursive calculations initialize from available chart history.
This tool does not forecast future prices.
Disclaimer:
This indicator is provided for analytical and educational purposes only.
It does not constitute financial advice or a trading recommendation.
Investment Analysis Bar v2What It Does
A comprehensive analysis bar combining fundamental metrics with technical signals, designed for long-term investors who prioritize quality over momentum.
Core Philosophy: Quality companies trading below their 200 EMA in accumulation zones = opportunities, not warnings.
Tier 1 Bar Metrics
Margins: GM, OM, NIM, FCF Margin
Returns: ROCE, ROE
Growth: Revenue YoY, EPS YoY
Valuation: PE TTM, Forward PE, PEG
Zone: Accumulate / Hold / Trim / Exit
Signal: PRIME / BUY / TRIM / SELL / NEUTRAL
Performance: 1W to 1Y returns
Two Strategy Modes
Value Accumulator (Default) - For long-term position building. Treats below-200-EMA as an opportunity when fundamentals are intact. PRIME signals require: RSI bounce + Volume + Accumulate Zone + All Quality Gates Pass + Below 200 EMA.
Trend Follower - Traditional momentum approach. Prefers entries above 200 EMA.
Quality Gates System
Four fundamental checkpoints:
Gross Margin ≥ 40%
ROCE ≥ 15%
Debt/Equity ≤ 50%
SBC/Revenue ≤ 15%
Strong signals require quality confirmation. PRIME signals require ALL gates to pass.
Zone System
Three calculation methods:
52W Range: Accumulate in bottom 25%, Trim in top 25%
Manual Levels: Set your own price targets
ATR-Based: Dynamic zones from EMA ± ATR
Signal Hierarchy (Value Mode)
SignalMeaning
PRIME 💎Optimal entry - all conditions aligned
BUY 🔼Strong accumulation signal
BUY? ↗Decent entry, not ideal zone
ACCUM 🎯In accumulation zone, quality OK
WAIT ⏳Setup forming, no bounce yet
TRIM 📤Consider taking profits
Alerts Included
Zone transitions (Accumulate, Trim, Exit)
PRIME Entry Signal
Strong Buy / Sell signals
Quality Gate failures
Quality Accumulation Setup
Best Used On
US stocks with fundamental data available. Technical features work on all symbols.
Settings
Fully customizable:
Toggle each metric category
Adjust quality gate thresholds
Choose zone calculation method
Configure RSI/volume parameters
Position bar and panel anywhere
IDAHL | QuantEdgeBIDAHL | QuantEdgeB
🔍 Overview
The IDAHL indicator builds adaptive, volatility-aware threshold bands from two separate ALMA lines—one smoothed from recent highs, the other from recent lows—then uses percentiles of those lines to define a dynamic “high/low” channel. Price crossing above or below that channel triggers clear long/short signals, with on-chart candle coloring, fills, optional labels and even a built-in backtest table.
✨ Key Features
• 📈 Dual ALMA Bands (with DEMA pre-smoothing)
o High ALMA: ALMA applied to DEMA-smoothed highs (high → DEMA(30) → ALMA).
o Low ALMA: ALMA applied to DEMA-smoothed lows (low → DEMA(30) → ALMA).
• 📊 Percentile Thresholds
o Computes a high threshold at the Xth percentile of the High ALMA over a lookback window.
o Computes a low threshold at the Yth percentile of the Low ALMA.
o Shifts each threshold forward by a small period to reduce repainting.
• ⚡ Dynamic Channel Logic
o When price closes above the high percentile line, the “final” threshold flips down to the low percentile line (and vice versa), creating an adaptive channel that only moves when the outer bound is violated.
o Inside the channel, the threshold holds its last value to avoid whipsaw.
• 🎨 Visual & Alerts
o Plots the two percentile lines and fills between them with a color that reflects the current regime (green for long, yellow for neutral, orange for short).
o Colors your candles to match the active signal.
o Optional “Long”/“Short” labels on confirmed flips.
o Alert conditions fire on each long/short crossover.
• 📊 On-Chart Backtest Metrics
o Toggle on a small performance table—complete with win-rate, net P/L, drawdown—from your chosen start date, without any extra code.
⚙️ How It Works
1. Adaptive Smoothing (ALMA)
o Uses ALMA (Arnaud Legoux Moving Average) for smooth, low-lag filtering. In this script, the inputs are additionally pre-smoothed with DEMA(30) to reduce noise before ALMA is applied—improving stability on highs/lows.
2. Percentile Lines
o The High ALMA series feeds a linear-interpolation percentile function to generate the upper bound; the Low ALMA produces the lower bound.
o These lines are offset by a small look-ahead (X bars) to reduce repaint behavior.
3. Channel Logic
o Breakout Flip: When the selected source (default: Close) closes above the upper bound, the active threshold “jumps” to the lower bound—locking in a new channel until price next crosses.
o Breakdown Flip: Conversely, a close below the lower bound flips the threshold to the upper bound.
4. Signal Generation
o Long while the source is above the current “final” threshold.
o Short while below.
o Neutral inside the channel before any flip.
5. Visualization & Alerts
o Dynamic fills between the two percentile lines change hue as the regime flips.
o Candles adopt the regime color.
o Optional pinned “Long”/“Short” labels at flip bars.
o Alerts on every signal crossover of the zero-based regime line.
6. Backtest Table
o From your chosen start date, a mini-table displays cumulative P/L, win rate and drawdown for this strategy—handy for quick in-chart validation.
🎯 Who Should Use It
• Breakout Traders hunting for adaptive channels that auto-recenter on new highs/lows.
• Volatility Traders who want thresholds that expand and contract with market turbulence.
• Trend-Chasers seeking a fresh take on high/low channels with built-in smoothing.
• Systematic Analysts who appreciate on-chart backtesting without leaving TradingView.
⚙️ Default Settings
• ALMA Length: 14
• Percentile Length: 35 bars
• Percentile Lookback Period (offset): 4 bars
• Upper Percentile: 92%
• Lower Percentile: 50%
• Threshold Source: Close
• Visuals: Candle coloring on, labels off by default, “Strategy” palette
• Backtest Table: on by default (toggleable)
• Start Date (Backtest): 09 Oct 2017
📌 Conclusion
IDAHL blends two smooth, low-lag ALMA filters (fed by DEMA-smoothed highs/lows) with percentile-based channel construction for a self-rewiring high/low envelope. It gives you robust breakout/breakdown signals, immediate visual context via colored fills and candles, optional labels, alerts, and even performance stats—everything you need to spot and confirm regime shifts in one compact script.
🔹 Disclaimer : Past performance is not indicative of future results. Always backtest and align settings with your risk tolerance and objectives before live trading.
🔹 Strategic Advice : Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
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))))
Gemini Smart SMA Pro + Wyckoff V2 (Enhanced Cloud)The Smart SMA Pro + Wyckoff V2 is an advanced trend-following and market-cycle indicator built for traders who utilize Wyckoff Theory and Volume Spread Analysis (VSA). It is specifically designed to identify the transition from "Cause" (Squeeze/Accumulation) to "Effect" (Expansion/Markup).
By analyzing the volatility spread between two customizable Moving Averages and validating movements with relative volume, this tool helps traders stay out of sideways markets and enter only when high-conviction momentum is present.
Key Features
Wyckoff Phase Detection: Automatically detects Squeeze (Accumulation/Distribution) and Expansion (Markup/Markdown) phases.
Intelligent Dynamic Cloud: The cloud between the MAs changes its transparency dynamically based on the Volume Ratio and trend slope. Darker colors indicate high-volume trend confirmation.
Dual-Layered SOS/SOW Signals: * SOS (Sign of Strength): A Yellow Dot appears on a bullish squeeze breakout. A Yellow Arrow is added only if the move is validated by High Relative Volume.
SOW (Sign of Weakness): An Orange Dot appears on a bearish breakout, with an Orange Arrow appearing only if supported by high volume.
Live Multi-Data Dashboard: A real-time table displaying the status of Fast/Slow MAs, the current market cycle stage, and the Volume Ratio.
Professional Alerts: Built-in alerts for Sign of Strength (SOS) and Sign of Weakness (SOW) breakouts.
How to Trade with it
Grey Cloud (Squeeze): Market is building a "Cause." Avoid trading and prepare for a breakout.
Yellow Dot + Arrow: This is a Confirmed SOS. It indicates institutional participation and a high probability of a new Markup phase.
Buy/Sell Labels: Standard trend entries based on price crossing the Signal Line (Fast MA). Use these to join an already established trend.
Dashboard Monitoring: Check the "Vol. Ratio" to see if the current move has enough strength to sustain the expansion.
How this Indicator was Created
This project is the result of a cutting-edge collaborative development process between a human trader and Gemini (Google’s AI).
Logic Synthesis: We combined traditional technical analysis with AI-optimized algorithms to calculate the Volatility Ratio, ensuring the "Squeeze" detection is more accurate than standard Bollinger-based tools.
Conditional Visuals: The logic was refined through multiple iterations to create a "Smart Visual" system. For instance, the Volume-Validated Arrow was an architectural decision to separate minor breakouts from high-conviction institutional moves.
Code Optimization: The entire script was written in Pine Script® V6, ensuring maximum performance, low latency on charts, and a clean, responsive Dashboard interface using advanced table objects.
----------------------------------------------------------------------------------------------------------------------------------------------------
The Partnership: This indicator represents the perfect synergy between human market intuition and AI’s computational precision, resulting in a tool that is both mathematically sound and visually intuitive for professional use.
Gold Scalping RSI Pro📌 Overview
**Gold Scalping RSI Pro V2** is a specialized RSI-based oscillator designed specifically for **scalping Gold (XAUUSD)** on **1-minute and 5-minute timeframes**. Unlike standard RSI implementations, this indicator incorporates several key optimizations that address the unique characteristics of gold price action.
This is **NOT a simple RSI mashup**. It's a complete signal generation system that combines:
1. **Optimized RSI calculation** (Period 8, HLC3 source)
2. **Multi-timeframe trend filtering** (Higher timeframe EMA confirmation)
3. **Smart signal quality controls** (Pivot detection, cooldown periods, depth requirements)
4. **Price action confirmation** (Candle color validation)
---
### The Problem This Indicator Solves
Standard RSI settings (Period 14, Close source, 30/70 levels) were designed for daily charts and don't work well for:
- **Fast-moving instruments like Gold** (too slow, signals lag behind price)
- **Short timeframes (1m/5m)** (too much noise, false signals)
- **Scalping strategies** (need faster reaction without sacrificing quality)
Gold has a unique character - it moves slower than crypto but produces sharp, sudden spikes (fake wicks) that generate false RSI signals when using standard Close-based calculations.
---
### 🔧 Core Methodology & Calculations
#### 1. RSI Optimization (Period 8 + HLC3 Source)
**Why Period 8 instead of 14?**
```
Standard RSI 14 = Too slow for 1m/5m scalping (signals arrive after the move)
RSI 2-3 = Too fast/noisy (constant false signals)
RSI 7-9 = Optimal range for Gold scalping (fast enough to catch moves, smooth enough to filter noise)
```
This indicator uses **RSI Period 8** as the default, which provides the ideal balance between speed and signal clarity.
**Why HLC3 instead of Close?**
```
Close source = Captures every wick/spike (noisy, many false breakouts)
HLC3 source = (High + Low + Close) / 3 = Smooths out fake wicks while preserving trend direction
```
The HLC3 source acts as a **natural noise filter** for Gold's characteristic spike patterns. This is the single most important optimization - the difference between usable and unusable signals on Gold.
#### 2. Dynamic 40/60 Levels (Not Standard 30/70)
Standard 30/70 levels rarely get hit on trending instruments in short timeframes. This creates two problems:
- Waiting for RSI 30 in an uptrend = missing 90% of entries
- RSI oscillating between 40-60 = "dead zone" with no signals
**This indicator uses 40/60 levels:**
- **40 Level (Bullish Support)**: In an uptrend, RSI pulling back to 40 indicates a potential continuation entry
- **60 Level (Bearish Resistance)**: In a downtrend, RSI rallying to 60 indicates a potential short entry
This is based on the concept that in a trend, RSI rarely reaches extreme levels - instead, it "bounces" off dynamic support/resistance levels.
#### 3. Multi-Timeframe Trend Filter
**The Golden Rule: Trade WITH the trend, not against it.**
This indicator implements a **Higher Timeframe (HTF) trend filter**:
```
User-selectable HTF (Default: 60 minutes / 1 hour)
↓
Calculate EMA 200 on HTF
↓
If HTF Price > HTF EMA 200 → Trend is BULLISH (only BUY signals allowed)
If HTF Price < HTF EMA 200 → Trend is BEARISH (only SELL signals allowed)
```
Using `request.security()` with `barmerge.lookahead_off` ensures no future data is used.
#### 4. Signal Quality Controls
To prevent signal spam and ensure only high-quality entries, this indicator implements:
**A. Deep RSI Requirement**
```
BUY signal requires: RSI must have dropped below 35 (adjustable) in recent bars
SELL signal requires: RSI must have risen above 65 (adjustable) in recent bars
```
This ensures we're catching **actual reversals from extremes**, not minor oscillations.
**B. Cooldown Period**
```
After a BUY signal → Wait X bars before next BUY (default: 10 bars)
After a SELL signal → Wait X bars before next SELL (default: 10 bars)
```
This prevents multiple signals on the same move and reduces overtrading.
**C. Pivot Detection (Lookback)**
The indicator uses `ta.lowest()` and `ta.highest()` functions over a lookback period to confirm that RSI has actually reached a significant low/high before generating a signal.
#### 5. Candle Confirmation (Optional)
When enabled, signals require price action confirmation:
- **BUY signal**: Current candle must be green (Close > Open)
- **SELL signal**: Current candle must be red (Close < Open)
This adds an extra layer of confirmation and reduces false signals during consolidation.
---
### 📊 Signal Generation Logic
**BUY Signal fires when ALL conditions are met:**
1. ✓ HTF Trend is BULLISH (Price > EMA200 on higher timeframe)
2. ✓ RSI crosses ABOVE 40 level (crossover)
3. ✓ RSI had a "deep dip" below 35 in recent bars
4. ✓ Cooldown period has passed since last BUY
5. ✓ (Optional) Current candle is bullish (green)
**SELL Signal fires when ALL conditions are met:**
1. ✓ HTF Trend is BEARISH (Price < EMA200 on higher timeframe)
2. ✓ RSI crosses BELOW 60 level (crossunder)
3. ✓ RSI had a "high peak" above 65 in recent bars
4. ✓ Cooldown period has passed since last SELL
5. ✓ (Optional) Current candle is bearish (red)
---
### 🎯 How to Use This Indicator
**Recommended Setup:**
- **Chart**: XAUUSD (Gold Spot)
- **Timeframe**: 1 minute or 5 minutes
- **Chart Type**: Standard Candlestick (NOT Heikin Ashi, Renko, etc.)
**Step-by-Step Trading Process:**
1. Check the **trend panel** (top-right) - only trade in the direction shown
2. Wait for a **pullback** (price retracing against trend)
3. Watch for the **signal** (green triangle for BUY, red triangle for SELL)
4. Enter on signal with appropriate stop-loss
5. Manage the trade according to your risk management rules
**What the Signals Mean:**
- **Green Triangle (▲)**: RSI bounced from oversold in an uptrend - potential long entry
- **Red Triangle (▼)**: RSI rejected from overbought in a downtrend - potential short entry
---
### ⚙️ Settings Explained
| Setting | Default | Description |
|---------|---------|-------------|
| RSI Period | 8 | Lower = faster signals, Higher = smoother signals |
| RSI Source | HLC3 | Use HLC3 for Gold to filter fake wicks |
| Oversold Level | 40 | Dynamic support level for trend continuation |
| Overbought Level | 60 | Dynamic resistance level for trend continuation |
| HTF Timeframe | 60 | Higher timeframe for trend detection (minutes) |
| Trend EMA Period | 200 | EMA period for trend detection on HTF |
| Min RSI Depth (Buy) | 35 | RSI must drop below this for valid BUY setup |
| Max RSI Peak (Sell) | 65 | RSI must rise above this for valid SELL setup |
| Signal Cooldown | 10 | Minimum bars between same-direction signals |
| Pivot Lookback | 5 | Bars to look back for RSI extremes |
---
### 🔔 Alerts
The indicator includes the following alert conditions:
- `GOLD BUY Signal` - Fires on valid buy signals
- `GOLD SELL Signal` - Fires on valid sell signals
- `Any Signal` - Fires on either buy or sell
- `RSI Oversold Zone` - Fires when RSI enters deep oversold
- `RSI Overbought Zone` - Fires when RSI enters high overbought
---
### 📚 References & Methodology
This indicator is based on the following technical analysis concepts:
- **Relative Strength Index (RSI)** by J. Welles Wilder Jr.
- **Multi-Timeframe Analysis** for trend confirmation
- **Dynamic Support/Resistance** levels instead of static overbought/oversold
- **HLC3 (Typical Price)** as a noise-reduction technique
- **Signal Quality Control** using cooldown periods and depth requirements
---
*If you find this indicator useful, please leave a like and comment. For questions or suggestions, feel free to reach out in the comments section.*
Minervini Trend📈 Minervini Trend Regime Indicator
This indicator identifies trend quality using Mark Minervini’s Stage Analysis, helping traders focus only on high-probability trending markets and avoid choppy or risky conditions.
🔍 What It Does
Uses 50 / 150 / 200 SMA structure
Checks MA alignment, price position, and long-term trend slope
Evaluates 52-week high & low positioning
Classifies the market into three trend regimes
🎯 Trend Regimes
🟢 High Probability (HP)
Strong Stage-2 uptrend
→ Price above all MAs, bullish MA stack, rising 200-SMA, near 52-week highs
🔵 Medium Probability (MP)
Developing / early trend
→ Partial alignment, trend improving
🔴 Low Probability (LP)
No trend / risk zone
→ Sideways or weak structure
Candles are automatically colored based on the current regime.
🛠 How to Use
Trade aggressively only in HP (green) zones
Reduce size or wait in MP (blue) zones
Avoid fresh trades in LP (red) zones
Works best as a trend filter with breakouts, pullbacks, or momentum setups
⚠️ Important
This is a trend regime & probability filter, not a buy/sell signal.
Use it to align trades with institutional-grade trends.
2 EMA Cloud2 EMA Cloud is a clean, lightweight overlay indicator that plots two configurable EMAs (default 14 and 150) and fills the space between them to form an easy-to-read trend “cloud.” It also marks bullish and bearish EMA crossovers with configurable triangle signals and includes built-in alert conditions for both crossover directions.
Features
Two adjustable EMAs (default 8 & 13)
Cloud fill between EMAs for quick trend/phase visibility
Crossover signals
Bullish: EMA1 crosses above EMA2
Bearish: EMA1 crosses below EMA2
Signal sizing control (Tiny → Huge)
Visual modes / themes for cloud + signals:
Classic, Monochrome, Heatmap, Pastel, Dark, Neon (1/2), BlueScale, RedScale, GreenScale, PriceBased
Alerts included
“Bullish EMA Crossover”
“Bearish EMA Crossover”
How to use
Use the cloud + EMA alignment to gauge directional bias and momentum.
Use crossover markers as potential trend-change or continuation triggers depending on your strategy.
Switch to PriceBased color mode for simple visual confirmation (green when price is above EMA2, red when below).
Notes / Limitations
This is an EMA-based tool and will lag by design, especially in choppy markets.
Signals are not trade recommendations; consider using higher-timeframe context and risk management.
Inputs: EMA periods, show/hide EMA lines, cloud transparency, color mode, crossover signal size.
Elite Monday Range V3- ProfessionalElite Monday Range V3 - Advanced Institutional Bias & Analysis
Overview
The Elite Monday Range V3 is a high-performance decision-support tool designed for traders who utilize the "Weekly Open" and "Monday's Range" as their primary benchmark for the trading week. Unlike standard range indicators, this script employs an advanced Multi-Asset Analysis Engine to determine the weekly bias with institutional-grade precision.
It doesn't just draw lines; it analyzes Previous Week's Close (PWC), Monday's Candle Structures (Price Action), and Internal Liquidity to provide a definitive "Directional Bias" and "Confidence Score."
Key Features
Smart Multi-Asset Detection: Automatically detects if you are trading Forex, Crypto, or Indices and adjusts its internal logic and strategy suggestions accordingly.
Institutional Bias Engine: Calculates a Confidence Score (from -4 to +4) based on 4 critical criteria:
Price vs. Previous Week Close: Checks if the bulls or bears are maintaining momentum from the prior week.
Monday Candle Analysis: Automatically identifies Pin Bars (Liquidity Grabs) or Strong Engulfing movements.
Price vs. Monday Midpoint (Equilibrium): The ultimate pivot point for weekly trend direction.
Price vs. Weekly Open: Tracks the "true" opening sentiment.
Liquidity Hunt Signals (Judas Swing): Visual alerts for LIQ BUY and LIQ SELL when price sweeps Monday's extremes and returns inside the range—a classic sign of institutional manipulation before a trend.
Symmetric Expansion Levels: Projects +50%, +100%, -50%, and -100% extensions of the Monday range to identify high-probability Take Profit (TP) and reversal zones.
Dynamic Professional Dashboard: A sleek, real-time table on your chart that summarizes Asset Type, Weekly Bias, Candle Info, and the Confidence Score.
Force Overlay Technology: Ensures all lines and labels remain visible and crisp on the top layer, above candles and other indicators.
How to Trade with the Elite Dashboard
Check the "Net Weekly Bias": Look for STRONG BULL or STRONG BEAR.
Verify Confidence Score: A score of 3 or 4 (or -3/-4 for shorts) indicates high-probability conditions.
Identify Entry: If the Bias is "STRONG BULL," wait for a retest of the Monday Mid (MID) or Monday High (MON H).
Confirm with Liquidity: Look for a LIQ BUY signal near the Monday Low for the highest-quality "A+ Setup."
Target: Use the Expansion Levels (+50% / +100%) as your primary targets for the week.
Technical Settings
Lookback Weeks: Choose exactly how many historical weeks to display to keep your chart clean.
Customizable Colors: Fully adjustable colors for Monday ranges and expansion projections.
Line Width: User-defined thickness for professional visual clarity.
Monday Range - User Defined LookbackEnglish Description
Monday Range Expansion & Multi-Week Projections
This indicator identifies the Monday Range (the price action from Monday's open at 00:00) and projects symmetric expansion levels across the entire trading week. It is designed for traders who use the weekly open and Monday's volatility as a benchmark for the week's price action.
Key Features:
Exact Monday 00:00 Start: Using advanced logic, the indicator pins the starting point precisely to the weekly open (Monday 00:00), ensuring no lag or offset regardless of your timeframe.
Symmetric Expansion Levels: It calculates the Monday High-Low range and projects a +100%, +50%, -50%, and -100% expansion, providing clear support and resistance targets.
User-Defined Lookback: You can choose exactly how many past weeks to display on your chart, keeping your workspace clean and focused.
Force Overlay Technology: All lines and labels use force_overlay, ensuring they always stay on the top layer, above candles and other indicators.
Weekly Freeze: Historical weeks stay "frozen" at their Friday closing points, allowing for clear backtesting of previous weekly levels.
Trend Consensus Engine [TCE]The Trend Consensus Engine (TCE) is a comprehensive market analysis system designed to filter out noise and provide a quantifiable "Trend Score" (0-100). Instead of relying on a single indicator, this script aggregates data from multiple market factors—volatility, momentum, and trend structure—to generate high-probability entry signals based on a consensus logic.
This tool is particularly optimized for Crypto (with specific time-gated logic) and BIST (Borsa Istanbul) markets, allowing traders to see the overall health of the trend at a glance via a dashboard.
How It Works
The engine calculates a composite "Total Score" (0-100) derived from four weighted components:
Trend Structure (AlphaTrend & Guppy):
Analyzes the slope and position relative to the AlphaTrend (Credit to @KivancOzbilgic) and Guppy Multiple Moving Averages (GMMA).
Positive slopes and price action above key levels add points to the score.
Volatility & Momentum (Squeeze & ADX):
Incorporates the Squeeze Momentum logic (Credit to @LazyBear) to detect explosive moves.
ADX Filter: Filters out chopping/ranging markets. If the ADX is too low, the score is penalized or the signal is blocked.
Dynamic Resistance (MA Channels):
Uses a combination of Donchian Mid-Lines and SMAs to determine if the price is in a "safe zone" or hitting resistance.
Price Action Filters (Pinbar Veto):
Automatically detects bearish "Shooting Star" or weak candles at highs. If a bearish pinbar is detected, the entry signal is vetoed regardless of the trend score.
Features & Settings
Smart Scoring Dashboard: Displays the realtime Score, Instant Decision, and confirmed Close Decision on the chart.
Market Profiles:
Crypto Mode: Includes a "Time Gate" feature (07:00 UTC+3 check) to prevent fakeouts during low-liquidity hours.
BIST Mode: Optimized parameters for the Turkish stock market logic (14:00 session checks).
Score Threshold: Users can adjust the minimum score required (Default: 70) to trigger a "BUY" signal.
Visual Guidance: The background of the dashboard changes color (Green/Red/Yellow) based on the consensus.
How to Use
Check the Dashboard: Look at the "SONUÇ" (Result) row.
GİRİŞ ✅ (ENTRY): The Score is above 70, Momentum is positive, and no Bearish Pinbars are present.
BEKLE ⏳ (WAIT): The trend is weak, or a filter (like ADX or Squeeze) is blocking the trade.
Confirm with Price Action: Use the AlphaTrend lines (Blue/Red) as dynamic support/stop-loss levels.
Credits:
AlphaTrend by KivancOzbilgic
Squeeze Momentum Indicator by LazyBear
VuManChu Cipher concepts for inspiration.
Custom Logic: Scoring algorithm and Time-Gating mechanisms are original custom developments.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice.
EMA and Dow Theory Strategies V2📘 Overview
This strategy is an advanced evolution of the original EMA × Dow Theory hybrid model. V2 introduces true swing‑based trend detection, gradient trend‑zones, higher‑timeframe swing overlays, and dynamic exit logic designed for intraday to short‑term trading across crypto, forex, stocks, and indices.
The system provides precise entries, adaptive exits, and highly visual guidance that helps traders understand trend structure at a glance.
🧠 Key Features
🔹 1. Dual‑EMA Trend Logic (Symbol + External Index)
Both the chart symbol and an external index (OTHERS.D) are evaluated using fast/slow EMAs to determine correlation‑based trend bias.
🔹 2. Dow Theory Swing Detection (Real‑time)
The script identifies swing highs/lows and updates trend direction when price breaks them. This creates a structural trend model that reacts faster than EMAs alone.
🔹 3. Gradient Trend Zones (Visual Trend Strength)
When trend is up or down, the area between price and the latest swing level is filled with a multi‑step gradient. This makes trend strength and distance-to-structure visually intuitive.
🔹 4. Higher‑Timeframe Swing Trend (htfTrend)
Swing highs/lows from a higher timeframe (e.g., 4H) are plotted to show macro structure. Used only for visual context, not for filtering entries.
🔹 5. RSI‑Based Entry Protection
RSI prevents entries during extreme overbought/oversold conditions.
🔹 6. Dynamic Exit System
Includes:
Custom stop‑loss (%)
Partial take‑profit (TP1/TP2/TP3)
Automatic scale‑out when trend color weakens
“Color‑change lockout” to prevent immediate re‑entry
Real‑time PnL tracking and labels
🔹 7. Alerts for All Key Events
Entry, stop‑loss, partial exits, and trend‑change exits all generate structured JSON alerts.
🔹 8. Visual PnL Labels & Equity Tracking
PnL for the latest trade is displayed directly on the chart, including scale‑out adjustments.
⚙️ Input Parameters
Parameter Description
Fast EMA / Slow EMA EMAs used for symbol trend detection
Index Fast / Slow EMA EMAs applied to external index
StopLoss (%) Custom stop‑loss threshold
Scale‑Out % Portion to exit when trend color weakens
RSI Period / Levels Overbought/oversold filters
Swing Detection Length Bars used to detect swing highs/lows
Stats Display Position of statistics table
🧭 About htfTrend (Higher Timeframe Trend)
The higher‑timeframe swing trend is displayed visually but not used for entry logic.
Why? Strict HTF filtering reduces trade frequency and often removes profitable setups. By keeping it visual‑only, traders retain flexibility while still benefiting from macro structure awareness.
Use it as a contextual guide, not a constraint.
📘 概要
本ストラテジーは、V1 を大幅に拡張した EMA × ダウ理論 × スイング構造 × 上位足トレンド可視化 の複合型モデルです。 短期〜デイトレード向けに最適化されており、仮想通貨・FX・株式・指数など幅広いアセットで利用できます。
V2 では、スイング構造の自動検出、グラデーションによるトレンド強度の可視化、上位足スイングライン、動的な利確/損切りロジック が追加され、視覚的にもロジック的にも大幅に強化されています。
🧠 主な機能
🔹 1. 銘柄+外部インデックスの EMA クロス判定
対象銘柄と OTHERS.D の EMA を比較し、相関を考慮したトレンド方向を判定します。
🔹 2. ダウ理論に基づくスイング高値・安値の自動検出
スイング更新によりトレンド方向を切り替える、構造ベースのトレンド判定を採用。
🔹 3. グラデーション背景によるトレンド強度の可視化
スイングラインから現在価格までを段階的に塗り分け、 「どれだけトレンドが伸びているか」を直感的に把握できます。
🔹 4. 上位足スイングトレンド(htfTrend)の表示
4H などの上位足でのスイング高値・安値を表示し、 大局的なトレンド構造を視覚的に把握できます(ロジックには未使用)。
🔹 5. RSI による過熱・売られすぎフィルター
極端な RSI 状態でのエントリーを防止。
🔹 6. 動的イグジットシステム
カスタム損切り(%)
TP1/TP2/TP3 の段階的利確
トレンド色の弱まりによる自動スケールアウト
色変化後の再エントリー制限(waitForColorChange)
リアルタイム PnL の追跡とラベル表示
🔹 7. アラート完備(JSON 形式)
エントリー、損切り、部分利確、トレンド反転などすべてに対応。
🔹 8. 損益ラベル・統計表示
直近トレードの損益をチャート上に表示し、視覚的に把握できます。
⚙️ 設定項目
設定項目名 説明
Fast / Slow EMA 銘柄の EMA 設定
Index Fast / Slow EMA 外部インデックスの EMA 設定
損切り(%) カスタム損切りライン
部分利確割合 トレンド弱化時のスケールアウト割合
RSI 期間・水準 過熱/売られすぎフィルター
スイング検出期間 スイング高値・安値の検出に使用
統計表示位置 テーブルの表示位置
🧭 上位足トレンド(htfTrend)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
Liquidity Void and Repair EngineLiquidity Void & Repair Engine
OVERVIEW
The Liquidity Void & Repair Engine is a high-fidelity institutional order flow tool designed to identify and track "Market Imbalances" or "Fair Value Gaps" (FVG). Unlike standard gap indicators that clutter the chart with every minor price jump, this engine uses Volatility-Adjusted Range Mapping to isolate high-conviction voids where price moved so rapidly that liquidity was left "unfilled."
The standout feature of this tool is its Active Repair Logic. The engine doesn't just draw static boxes; it monitors price action in real-time to determine when an imbalance has been "healed" by subsequent trading volume, providing a dynamic look at where the market has "unfinished business."
TECHNICAL LOGIC & ORIGINALITY
This script is published Open Source to contribute to the Pine Script community’s understanding of dynamic object management and order flow visualization.
ATR-Relative Filtering: To ensure only significant voids are plotted, the script uses a user-defined ATR (Average True Range) multiplier. This filters out market noise and focuses on institutional "impulse" moves.
Dynamic Box Management: Utilizing the Pine Script box array system, the script manages memory efficiently by updating existing objects rather than creating redundant ones.
The "Repair" Algorithm: The script tracks the high and low of every active void. When price action fully traverses the coordinates of a void, the script "seals" the box, visually marking the moment of liquidity equilibrium.
HOW TO USE
1. Identifying the "Magnet" (The Void)
When price moves aggressively, it leaves a "hole" in the auction.
Bullish Voids (Green): These represent areas where price surged so fast that buyers may still have unfilled orders sitting below. These act as Magnets for pullbacks.
Bearish Voids (Red): These represent areas where price plummeted, leaving a vacuum of selling pressure. These act as Magnets for relief rallies.
2. Trading the "Repair" Process
The Engine tracks how the market "repairs" these holes:
Partial Fill: If price enters a box but doesn't cross it, the "Magnet" is still active.
Full Repair: When a box is "sealed" (stops extending right), it indicates the imbalance is gone. If price "Seals" a green box and then bounces, it confirms the zone as Valid Institutional Support.
3. Confluence with the Trend
Continuation: In a strong uptrend, look for price to drop into a Green Bullish Void and find support. This is often the "Golden Entry" for trend followers.
Reversal Confirmation: If price ignores a Red Bearish Void and blasts right through it (sealing it instantly), it signals a massive shift in market regime and extreme bullish conviction.
USER SETTINGS
Lookback Period: How far back the engine searches for un-repaired gaps.
Min Gap Size (ATR %): Increase this to see only the "Major" institutional gaps; decrease it for a more granular intraday look.
Visual Styles: Fully customizable colors and transparency to match any chart theme (Dark/Light).
NOTES & DISCLAIMER
This script is a visualization of historical price imbalances and is intended for educational purposes only. It does not provide trade signals, entry/exit points, or financial advice. All trading involves risk.
Precision Trendlines - Relevant Current TFPrecision Structural Trendlines (Current TF)
Overview
The Precision Structural Trendlines indicator is a high-performance price action tool designed for traders who rely on market structure and trend convergence. Unlike standard trendline scripts that clutter the chart with every possible connection, this indicator strictly follows professional structural rules—connecting Lower Highs for resistance and Higher Lows for support.
Key Features
Structural Integrity: The engine ensures that resistance lines are only drawn during bearish sequences (Lower Highs) and support lines during bullish sequences (Higher Lows), aligning with core Price Action principles.
Dynamic Relevance Filter: Solve the "web of lines" problem. By default, the script only shows trendlines that are currently relevant to price. As price moves away from old trends, they fade out, keeping your workspace clean.
Zero Drift Synchronization: Built using absolute time-anchoring (xloc.bar_time), ensuring that trendlines stay perfectly "glued" to the candle wicks regardless of how much you scroll or zoom.
Customizable Aesthetics: Choose between Random Dark Colors to easily distinguish overlapping trends or a Static Color for a unified look. Global width controls allow for instant visibility adjustments.
How to Use
Trend Confirmation: Use the Minimum Points setting. Set it to 2 for aggressive, early trend detection, or 3 to only see lines that have been validated by multiple touches.
Major vs. Minor Swings: Adjust the Pivot Strength. A value of 30 (default) captures significant intraday turns, while 20+ is ideal for identifying major swing structure.
Relevance Buffer: Tune the Price Buffer % to determine how close price must be to a historical trendline before it reappears on your chart.
Settings Breakdown
Minimum Points: Number of pivot points required to anchor a line.
Pivot Strength: The "look-left/look-right" requirement to confirm a peak or valley.
Validation Tolerance: The vertical buffer allowed for a 3rd point to "hit" the trendline.
Show Relevant Only: Toggles the visibility filter (highly recommended for high-volume traders).
Low-High Waves for NeowaveOpen your chart at daily and hide the symbol graphic. Now you can see the waves. It’s including limited data sorry for this but I’m not a programmer and TradingView have limitations.
MacroTide Elasticity SystemThe MacroTide Elasticity System is a professional-grade technical analysis tool designed to identify potential trend exhaustions and reversals by modeling price action as an elastic band stretched from a volume-weighted baseline. Unlike standard oscillators (like RSI) that only look at price changes, MacroTide integrates Volume, Price Range, and Volatility to gauge the "energy" behind a move.
1. Concepts and Methodology
The core concept is Mean Reversion based on Volume-Weighted Elasticity. Markets tend to snap back to a value consensus (mean) after over-extension.
Volume-Weighted Baseline: We use a Volume Weighted Moving Average (VWMA) rather than a simple SMA. This ensures that heavy-volume trading days pull the baseline closer to price, while low-volume drift allows the baseline to lag, accurately representing the "true" average cost.
Elasticity Physics: The oscillator calculates how far price has deviated from this VWMA baseline, measured in standard deviations. This creates a normalized "Elasticity Score" (0-100).
High Score (>80): Price is over-extended to the upside (Overbought) relative to volume support.
Low Score (<20): Price is over-extended to the downside (Oversold).
Institutional Absorption (Churn): The script detects specific bar anomalies where Volume is High but Price Range is Low. This pattern often indicates "Churn"—where institutions are absorbing supply or unloading positions without moving the price significantly.
2. Key Features
MacroTrend Detection: Visualizes the market's stretch limits.
Divergence Scanner: Automatically detects and labels Regular Bullish and Bearish divergences. This occurs when price makes a new extreme, but the Elasticity Oscillator fails to confirm it, signaling waning momentum.
Absorption Events: Highlights yellow "sun" markers on the oscillator when high-volume churn is detected, often preceding a breakout or reversal.
Dynamic Coloring: Candles and oscillator lines change color based on the slope of the elasticity (Green for rising momentum, Red for falling).
3. How to Use
Trend Reversals: Look for the oscillator to enter the Overbought (80) or Oversold (20) zones. A reversal signal (triangle marker) is generated when the oscillator crosses back out of these zones, indicating the "snap back" effect has begun.
Divergence Confirmation: Use the "DIV" labels as early warning signs. A Bullish Divergence in an oversold zone is a high-probability setup for a long entry.
Filtering Trends: The center line (50) acts as a trend filter. Above 50 indicates bullish bias; below 50 indicates bearish bias.
4. Settings & Customisation
Lookback Period: Default is 21 (Swing). Increase to 50 or 100 for Macro/Long-term analysis.
StdDev Multiplier: Adjusts the sensitivity of the bands. Higher values (e.g., 2.5 or 3.0) are better for volatile assets like Crypto.
Absorption Volume Factor: Threshold for detecting churn. Default is 1.5x average volume.
Disclaimer: This tool is for informational purposes only. Past performance (divergences/signals) does not guarantee future results. Always manage risk effectively.
Bullish/Bearish Movement SumThis indicator calculates and displays the cumulative sum of bullish and bearish price movements over a specified period.
Features:
- Green line: Cumulative sum of all bullish movements
- Red line: Cumulative sum of all bearish movements (absolute value)
- Blue area: Net difference (bullish - bearish)
- Information table showing current values and bull/bear ratio
Settings:
- Calculation Period: Choose rolling window size (default: 100 bars) or 0 for cumulative from start
- Calculation Mode: Choose between "Points" (absolute price changes) or "Percentage" (% changes)
Use Cases:
- Identify market directional strength
- Compare bullish vs bearish pressure
- Spot divergences between price and directional momentum
- Ratio > 1 indicates more bullish than bearish movement
Developed with assistance from Claude (Anthropic)
Rainbow Road [kingthies]Rainbow Road
Rainbow Road is a trend-structure and momentum visualization tool built around a cascading chain of smoothed simple moving averages. Instead of plotting independent moving averages on price, each line is progressively smoothed from the prior one using the same length, creating a layered “road” that reveals trend strength, direction, and transition with exceptional clarity.
OVERVIEW
Rainbow Road visualizes trend quality using a spectrum of fast-to-slow moving averages derived from one another. Because each average is smoothed from the prior line, the indicator forms a continuous structure rather than a collection of unrelated signals. This makes trend alignment, momentum expansion, and compression immediately visible.
HOW IT WORKS
The first average is a Simple Moving Average of price
Each subsequent average is an SMA of the previous average using the same length
This creates a cascading chain of averages with increasing smoothness
Colors progress from red (fastest) to purple (slowest) to represent trend hierarchy
HOW TO READ IT
Strong Trend : All averages are aligned and expanding in the same direction
Acceleration : Spacing between averages increases
Deceleration : Spacing narrows while direction remains intact
Consolidation : Averages converge and overlap
Reversal Risk : Faster averages cross back through the slowest average
TREND CONTEXT
The optional fill between the fastest and slowest averages visualizes overall trend pressure. Expanding fill suggests strengthening momentum, while contracting fill highlights compression and potential regime change.
USE CASES
Trend confirmation and directional bias
Momentum expansion vs compression analysis
Identifying trend exhaustion and early reversal zones
Contextual filtering for entries and exits
WHY RAINBOW ROAD
Traditional moving average stacks often produce clutter and redundant signals. Rainbow Road focuses on structure and flow, helping traders evaluate the quality of a trend rather than reacting to individual crossovers.
BEST USED WITH
Price action and market structure
Support and resistance
Volatility or range-based tools
Higher-timeframe trend bias
Rainbow Road is designed to sit quietly on your chart and clearly communicate whether the market is flowing, stalling, or preparing to turn.
Smart Money Concept Change of Character Break of StructureSMC Structure
Visualizes Change of Character (CHoCH) and Break of Structure (BoS) - two fundamental Smart Money Concepts for identifying trend reversals and continuations.
This is the 1st version of an implementation of this concept.
It is NOT supposed to be used as a signal but a confirmation. Best use during NYSE hours.
Full Description
Overview
This indicator automatically detects and displays two core Smart Money Concepts (SMC) directly on your chart:
CHoCH (Change of Character) – The first structural break against the prevailing trend, signaling a potential reversal
BoS (Break of Structure) – A structural break in the direction of the current trend, confirming continuation
These concepts are essential building blocks of SMC trading methodology, helping traders identify where institutional players may be entering or exiting positions.
How It Works
The indicator uses pivot-based swing detection to identify significant highs and lows. When price breaks through these levels, it classifies the move as either a CHoCH or BoS based on the current trend context.
CHoCH (Change of Character)
Occurs when price breaks structure AGAINST the current trend
First warning sign that the trend may be reversing
Displayed as a solid horizontal line with "CHoCH" label
Green = Bullish reversal | Red = Bearish reversal
BoS (Break of Structure)
Occurs when price breaks structure IN THE DIRECTION of the current trend
Confirms that the existing trend remains intact
Displayed as a dashed horizontal line with "BoS" label
Teal = Bullish continuation | Maroon = Bearish continuation
Visual Example
Uptrend with BoS (continuation):
HH ◄── BoS (trend continues)
/
HL
/
HH
/
HL
Uptrend → CHoCH → Downtrend (reversal):
HH
/ \
HL \
LL ◄── CHoCH (trend reversal!)
Settings
Pivot Settings
Pivot Lookback: Number of bars used to identify swing highs/lows (default: 5). Higher values = fewer but more significant structure points.
Display Options
Show CHoCH: Toggle CHoCH visualization
Show BoS: Toggle BoS visualization
Show Swing Points: Display SH/SL labels at detected pivots
Extend Lines to Right: Extend structure lines into future bars
Show Info Table: Display current trend and last swing levels
Show Trend Background: Color the chart background based on trend direction
Colors
Fully customizable colors for all elements
How to Use
Identify the trend: Look at the sequence of CHoCH and BoS signals to understand market structure
Watch for CHoCH: A CHoCH signals potential reversal – wait for confirmation before trading against the previous trend
Trade with BoS: BoS confirms trend continuation – look for entries on pullbacks in the direction of the trend
Combine with other SMC concepts: Works great alongside Order Blocks, Fair Value Gaps, and liquidity concepts
Tips
Use higher pivot lookback values on higher timeframes for cleaner signals
A CHoCH doesn't guarantee reversal – it's the first warning sign, not confirmation
Multiple BoS signals in a row indicate a strong, healthy trend
Look for CHoCH occurring at key levels (support/resistance, order blocks) for higher probability setups
Feedback Welcome!
This is an open-source indicator and I'd love to hear your thoughts!
Please comment below if you have:
Feature requests or ideas for improvements
Bug reports or issues
Suggestions for additional SMC concepts to add
Your feedback helps make this indicator better for everyone. Happy trading! 🚀
SMC Structure & Expectation [WavesUnchained]SMC Structure & Expectation - Professional Context & Confirmation Tool
A sophisticated Smart Money Concepts indicator that combines objective market structure analysis with intelligent expectation logic and professional order block validation. Built for traders who value context over signal spam.
4-LAYER ARCHITECTURE
Layer 1: Market Structure
✓ Objective HH/HL/LH/LL detection based on confirmed pivot swings
✓ Internal structure tracking (micro swings within major legs)
✓ Structure alignment detection (Internal + External agreement)
✓ No predictions - pure price action description
Layer 2: Expectation/Bias
✓ Logical hypotheses derived from current structure
✓ "Expect HL" in bullish structure / "Expect LH" in bearish structure
✓ "Expect Continuation" after BOS events
✓ Expectation ≠ Signal (can be wrong, that's the point)
Layer 3: Confirmation (BOS + Order Blocks)
✓ Break of Structure (BOS) detection with 2 modes:
• Conservative: Close-cross (default)
• Aggressive: High/Low-cross with optional close confirmation
✓ Professional Order Block System with 8 intelligent filters
✓ Only creates OBs when expectation is met
✓ Maximum 1 OB per direction (quality over quantity)
Layer 4: Optional Warnings
✓ Trendline break detection
✓ Early Top/Bottom warnings (volume + volatility divergence)
✓ Can be disabled for clean chart focus
PROFESSIONAL ORDER BLOCK SYSTEM
8 Quality Filters (Cascade Logic):
1. BOS-Only Guard : No OB without confirmed Break of Structure
2. Displacement Filter : Minimum 1.0 ATR momentum (customizable)
3. Location Filter : Must be in Premium (bearish) or Discount (bullish) zone
4. Size Filter : 3 modes available:
• Hard Limit: Reject oversized OBs (strict)
• Score Penalty: Allow but reduce priority (balanced, default)
• Disabled: No size filtering (permissive)
5. Volume Filter : Optional relative volume threshold
6. FVG Filter : Optional Fair Value Gap requirement
7. Mitigation Tracking : 30% penetration = mitigated (score penalty)
8. TTL (Time-To-Live) : Auto-delete after 80 bars (prevents chart clutter)
Priority Scoring System (0-100):
• HIGH Priority (>80) : Bright colors, zero transparency
• MED Priority (50-80) : Normal colors, 30% transparency
• LOW Priority (<50) : Faded colors, 60% transparency
Score Components:
✓ Displacement strength (10-30 points)
✓ FVG confluence (+20 points)
✓ Relative volume (+5-15 points)
✓ Premium/Discount location (+10-20 points)
✓ Structure alignment (+30 points if aligned, -15 if conflict)
✓ Leg strength (+15-25 points for strong impulse vs correction ratio)
✓ Size penalty (-0 to -30 points if oversized, Score Penalty mode only)
BAR COLORING MODES
Choose your preferred visual feedback:
1. Off : No bar coloring
2. Structure : Bullish/Bearish/Neutral structure states
3. Expectation : Continuation zones (green = expect bullish, red = expect bearish)
4. BOS + OB Priority (Default):
• Highlights active Order Blocks by priority
• BOS events in bright neon
• Faded structure colors when no OB active
5. Multi-Layer : Combines structure + priority intensity
6. Alignment : Shows Internal/External structure alignment (orange = conflict warning)
INTELLIGENT LOGGING SYSTEM
Priority-based log filtering to reduce noise:
• All : Every event (debug mode)
• MED+ : Only medium and high priority events
• HIGH Only : Only high priority setups
• Smart (Default): Adaptive filtering based on priority + context
Logs include:
✓ Structure changes (HH/HL/LH/LL)
✓ Expectation updates
✓ BOS events with confirmation status
✓ OB creation with full scoring breakdown
✓ OB reactions (Tap/Deep/Failure classification)
✓ Rejection reasons with "Potential Lost" analysis
CONFIGURATION HIGHLIGHTS
Layer 1: Structure
• Pivot detection length: 5 (left) / 5 (right)
• Internal structure: Optional micro-swing tracking
• Swing confirmation: Closes beyond pivot required
Layer 2: Expectation
• Expectation expiry: 40 bars (auto-reset after timeout)
• Visual feedback: Labels + optional expectation zones
Layer 3: Confirmation
• BOS Mode: Close-cross (conservative) / High/Low-cross (aggressive)
• Close Confirmation: Optional 3-bar window for aggro mode
• Displacement: Min 1.0 ATR (customizable)
• Size Filter Mode: Hard Limit / Score Penalty / Disabled
• OB Location: 38% discount / 62% premium thresholds
• OB Size Range: 0.3-1.2 ATR (customizable)
• TTL: 80 bars default
• Volume Filter: Optional, 1.0x minimum
• FVG Requirement: Optional
Layer 4: Warnings
• Trendline break detection
• Early Top/Bottom signals
• Can be fully disabled
BEST USE CASES
✓ Context Tool : Understand where you are in the market cycle
✓ Confirmation Filter : Validate trade ideas with structure alignment
✓ Order Block Trading : High-probability zones with priority scoring
✓ Educational : Learn SMC concepts with transparent logic
✓ Multi-Timeframe Analysis : Combine with HTF structure for confluence
Optimized for:
• Commodities (NatGas, Gold, Oil)
• 1H - 4H timeframes
• Swing trading / Intraday positioning
KEY FEATURES SUMMARY
✓ Zero signal spam - only high-conviction setups
✓ Transparent scoring system - know why each OB matters
✓ Adaptive to market conditions - structure alignment detection
✓ Flexible filtering - customize to your risk tolerance
✓ Priority-based visuals - instantly identify best opportunities
✓ Professional logging - learn from rejections and acceptances
✓ Clean chart - auto-cleanup with TTL system
✓ Bar coloring modes - choose your visual feedback style
✓ Size Filter Mode - prevent blocking of high-quality oversized setups
PHILOSOPHY
This indicator follows the principle: "Context over signals, quality over quantity"
Expectations can be wrong - that's the point. They help you stay aware of the most likely scenario while remaining open to structure changes. When expectation is met AND confirmed by BOS + quality OB, you get a high-conviction setup.
Not a holy grail. Not a signal service. A professional analysis tool.
Version: 1.0.0
Author: WavesUnchained
Pine Script: v6
Fair Value Gap [Tradeuminati]Fair Value Gap
Fair Value Gap is a clean and rule-based Fair Value Gap indicator for TradingView, designed to display only valid and confirmed Fair Value Gaps (FVGs) and Inverted Fair Value Gaps (iFVGs).
The indicator is built on a strict 3-candle FVG definition and operates exclusively on candle close, ensuring no repainting and no premature signals.
🔹 Key Features
Valid Fair Value Gaps (FVG)
- Detects bullish and bearish Fair Value Gaps using a precise 3-candle structure
- FVGs are only plotted after the confirming candle has closed
- A Fair Value Gap remains visible only as long as it is valid
- Once price closes beyond the FVG, it is removed or converted
Inverted Fair Value Gaps (iFVG)
- When a valid FVG is invalidated by a candle close, it can be converted into an iFVG
- iFVGs retain the original price range and structure
- Only valid iFVGs are displayed
- As soon as price closes through an iFVG, it is automatically removed
Clean & Controlled Visualization
- Only the last N active FVGs are displayed (bullish + bearish combined)
- Only the last N valid iFVGs are shown
- Boxes automatically extend to the current price + configurable bars
- Labels are dynamically positioned at the right edge of each zone
🔹 Technical Notes
- No repainting
- No intrabar signals
- Close-based validation only
- Works on all markets and timeframes
- Lightweight and performance-friendly
⚠️ Disclaimer
This indicator is for technical analysis purposes only and does not constitute trading or investment advice.






















