ORB Strategy + Backtesting (fixed timestamp) - Lines Adjusted⚡ ORB Strategy + Backtesting (Pine Script v5)
This script implements a complete Opening Range Breakout (ORB) strategy, featuring built-in backtesting, advanced TP/SL visualization, full style customization, and a performance dashboard. It is designed for traders who want to clearly evaluate breakout performance directly on the chart.
🕑 ORB Window Configuration
🔹 Session selection: choose between Market Timezone or Custom Session.
🔹 Timezone support: configurable from UTC-8 to UTC+12.
🔹 Daily limit: option to allow only one trade per day.
🔹 Risk/Reward (RR) settings:
Configurable TP1, TP2, and TP3 levels.
Stop Loss calculated dynamically from the ORB range.
📊 Backtesting Engine
🔹 Interactive dashboard showing trades, wins, losses, and win rate.
🔹 Adjustable partial exits for each TP (TP1, TP2, TP3).
🔹 Automatic calculation of percentage-based profit and loss.
🔹 Tracks total trades, total profit, and average profit per trade.
🎨 Visual Customization
🔹 Fully customizable colors:
ORB high/low lines and range fill.
Buy/Sell entry labels.
TP and SL lines with background zones.
🔹 Line style and thickness options (solid, dotted, dashed).
🔹 Visibility controls for each TP/SL level.
🔹 Clear profit and loss zones drawn directly on the chart.
🚀 Trading Logic
🔹 LONG entries: triggered when price breaks above the ORB high.
🔹 SHORT entries: triggered when price breaks below the ORB low.
🔹 Automatic calculation of Stop Loss and TP1, TP2, TP3 based on ORB range and RR.
🔹 Customizable BUY / SELL labels displayed at entry.
✅ TP / SL Detection
🔹 Real-time detection of TP1, TP2, TP3, and SL hits.
🔹 Prevents double counting of the same level.
🔹 Extended TP/SL lines with shaded zones for better clarity.
📈 Backtesting Dashboard
🔹 Displayed in the top-right corner of the chart.
🔹 Shows:
Total trades
Wins / Losses
Win rate (%)
Total profit (%)
Average profit per trade
🔹 Fully customizable panel color.
✨ Summary
This script combines:
Opening Range detection
Breakout trading logic with advanced risk management
Professional-grade visualizations
Integrated historical performance tracking
High customization for sessions, styles, and colors
💡 Ideal for traders who want to trade ORB setups with clarity, structure, and measurable results.
브레드쓰 인디케이터
RSI+Breadth Multi-Factor# RSI+ Breadth Multi-Factor Indicator
**Multi-factor scoring system for US market timing | 美股多因子择时评分系统**
[! (img.shields.io)](www.tradingview.com)
[! (img.shields.io)](www.tradingview.com)
[! (img.shields.io)](LICENSE)
---
## Overview | 概述
A quantitative indicator that combines **RSI**, **market breadth** (% above 20/50-day MA), and **up/down volume ratio** to generate actionable buy/sell signals for SPY, QQQ, and IWM.
这是一个结合 **RSI**、**市场广度**(站上20/50日均线比例)和 **涨跌成交量比** 的量化指标,为 SPY、QQQ 和 IWM 生成可操作的买卖信号。
---
## Features | 功能特点
| Feature | 功能 |
|---------|------|
| 🎯 Multi-factor scoring (-10 to +10) | 多因子评分系统 (-10 到 +10) |
| 📊 RSI + Breadth + Volume integration | RSI + 广度 + 成交量三重验证 |
| 🔀 Three markets: SPY, QQQ, IWM | 三大市场:SPY、QQQ、IWM |
| 🔥 Cross-market resonance detection | 跨市场共振信号检测 |
| 📈 Trend filter (MA-based) | 趋势过滤(均线判断) |
| ⏰ Auto-adapts to intraday timeframes | 自动适配日内时间周期 |
| 🎚️ Three modes: Aggressive/Standard/Conservative | 三种模式:激进/标准/保守 |
---
## Signal Reference | 信号说明
| Score | Emoji | Signal | 中文 | Action |
|:-----:|:-----:|--------|:----:|--------|
| ≥ 6 | 🚀 | **PANIC LOW** | 恐慌低点 | Strong buy 强烈买入 |
| ≥ 4 | 📈 | **BUY ZONE** | 低吸区 | Accumulate 分批建仓 |
| -3~3 | - | **HOLD** | 持有 | Hold position 持仓观望 |
| ≤ -4↑ | ⭐ | **ELEVATED** | 高估 | Hold cautious 持有但谨慎 |
| ≤ -4↓ | ⚡ | **CAUTION** | 观望 | Take profit 止盈 |
| ≤ -6↓ | ⚠️ | **REDUCE** | 减仓 | Reduce position 减少仓位 |
> **↑ = Uptrend** (price > MA) | **↓ = Downtrend** (price < MA)
### Resonance Signals | 共振信号
| Emoji | Signal | Description |
|:-----:|--------|-------------|
| 🔥 | Resonance Buy | Multiple markets in buy zone 多市场同时低吸 |
| ❄️ | Resonance Risk | Multiple markets in risk zone 多市场同时高估 |
---
## Scoring Logic | 评分逻辑
### Factors | 因子
| Factor | Weight | Buy Score | Sell Score |
|--------|--------|-----------|------------|
| **RSI** | 1x | RSI < 30 → +2, < 40 → +1 | RSI > 75 → -2, > 65 → -1 |
| **FI (50D MA%)** | Bottom focus | < 25% → +3, < 35% → +2 | > 85% → -2, > 78% → -1 |
| **TW (20D MA%)** | Top focus | < 30% → +1 | > 82% → -3, > 72% → -2 |
| **Volume Ratio** | 1x | UVOL/DVOL < 0.5 → +2 | > 2.5 → -2 |
### Breadth Symbols | 广度数据
| Market | TW Symbol | FI Symbol | Volume |
|--------|-----------|-----------|--------|
| SPY (S&P 500) | INDEX:S5TW | INDEX:S5FI | USI:UVOL/DVOL |
| QQQ (NASDAQ) | INDEX:NCTW | INDEX:NCFI | USI:UVOLQ/DVOLQ |
| IWM (Russell 2000) | INDEX:R2TW | INDEX:R2FI | USI:UVOL/DVOL |
---
## Settings | 设置说明
### Mode | 模式
- **Aggressive**: Lower thresholds, shorter cooldown (5 bars)
- **Standard**: Balanced defaults (10 bar cooldown)
- **Conservative**: Higher thresholds, longer cooldown (15 bars)
### Key Parameters | 关键参数
| Parameter | Default | Description |
|-----------|---------|-------------|
| RSI Length | 14 | RSI calculation period |
| Trend MA Length | 10 | MA for trend filter |
| Cooldown Bars | 10 | Min bars between same signals |
| Resonance Window | 3 | Bars to check for multi-market agreement |
| Min Markets | 2 | # of markets needed for resonance |
---
## Usage | 使用方法
### Installation | 安装
1. Copy the indicator code
2. In TradingView: **Pine Editor** → **New** → Paste code → **Add to Chart**
### Recommended Setup | 推荐设置
- **Timeframe**: Daily (D) for best accuracy | 推荐日线图
- **Markets**: Apply on SPY, QQQ, or IWM | 应用于SPY/QQQ/IWM
- **Mode**: Start with "Standard" | 建议从"标准"模式开始
### Intraday Mode | 日内模式
The indicator automatically detects intraday timeframes and adjusts:
- Uses only RSI + Volume factors (TW/FI are daily-only data)
- Lowers signal thresholds accordingly
指标会自动检测日内周期并调整:
- 仅使用 RSI + 成交量因子(TW/FI 仅有日线数据)
- 相应降低信号触发阈值
---
## Dashboard | 仪表盘
Displays real-time factor breakdown:
```
┌────────┬───────┬────────┐
│ Factor │ Score │ Weight │
├────────┼───────┼────────┤
│ RSI │ 1.0 │ 1x │
│ FI(50D)│ 2.0 │ Bottom │
│ TW(20D)│ -1.0 │ Top │
│ Vol │ 1.0 │ 1x │
│ Trend │ ↑ │ 10MA │
├────────┼───────┼────────┤
│ Total │ 3.0 │ HOLD │
└────────┴───────┴────────┘
```
---
## Alerts | 警报
Available alerts for each market (SPY/QQQ/IWM):
- Panic Low / Buy Zone (entry signals)
- Reduce / Caution (exit signals)
- Resonance Buy / Risk (cross-market confirmation)
每个市场(SPY/QQQ/IWM)可设置以下警报:
- 恐慌低点 / 低吸区(入场信号)
- 减仓 / 观望(出场信号)
- 共振买入 / 风险(跨市场确认)
---
## Trend Filter | 趋势过滤
**Key feature**: Risk signals (CAUTION/REDUCE) only trigger when **price is below the trend MA**.
When price is above MA (uptrend), the indicator shows **ELEVATED** ⭐ instead, preventing premature exits during strong rallies.
**核心功能**:风险信号(观望/减仓)仅在 **价格跌破趋势均线** 时触发。
当价格在均线之上(上升趋势)时,指标显示 **高估** ⭐,避免在强势上涨中过早离场。
---
## Disclaimer | 免责声明
This indicator is for **educational and informational purposes only**. It is not financial advice. Past performance does not guarantee future results. Always do your own research and consider your risk tolerance before trading.
本指标仅供 **教育和参考用途**,不构成投资建议。历史表现不代表未来收益。交易前请自行研究并考虑风险承受能力。
---
## License | 许可
MIT License - Free to use and modify with attribution.
MIT 许可证 - 可自由使用和修改,请注明出处。
---
## Author | 作者
Built with ❤️ for the trading community.
为交易社区精心打造 ❤️
Forexsebi - NASDAQ Psychological Levels - TrendflowTrendflow is an advanced TradingView indicator combining psychological price levels with trend and multi-timeframe analysis.
The indicator automatically plots psychological levels in around the current price. Each level is visualized using horizontal lines and price zones (boxes) to clearly highlight potential support and resistance areas.
Psychological Levels – Trendflow ist ein fortschrittlicher TradingView-Indikator , der wichtige psychologische Preislevel mit einer klaren Trend- und Multi-Timeframe-Analyse kombiniert.
Trend Analysis with SMAs
SMA 50 & SMA 200 plotted directly on the chart
Individually toggleable
Clear color separation for fast trend recognition
Multi-Timeframe SMA Trend Table
Trend status (BULLISH / BEARISH / NEUTRAL) across:
5M, 15M, 1H, 4H, 1D
Logic: Price relative to SMA 50 & SMA 200
Color-coded, easy-to-read table
Info Box
Current Gold price
Nearest psychological level above and below price
Alert System
Alerts when price approaches a psychological level
User-defined alert distance
ALT Risk Strategy with Fear & Greed + ISM PMI📊 Overview
This advanced crypto trading strategy combines multiple macro indicators to identify optimal buy and sell zones for altcoins. It tracks the relationship between altcoin performance versus Bitcoin (ALT/BTC pairs) while incorporating broader market sentiment and economic data to generate risk-adjusted entry and exit signals.
🎯 Core Methodology
Base Risk Metric (65% weight):
MACD Momentum (5%): Normalized trend strength on weekly ALT/BTC pair
RSI (60%): Relative strength indicating overbought/oversold conditions
Price Deviation (35%): Distance from 150-period moving average
Fear & Greed Index (20% weight):
Analyzes market sentiment using multiple factors:
Price momentum and rate of return
Money flow and volume analysis
Volatility metrics (crypto: BVOL24H, traditional: VIX)
Dominance indicators (crypto: BTC.D, traditional: Gold)
Two modes: Crypto-focused or Traditional markets
Customizable smoothing and weighting
US ISM PMI Integration (15% weight):
Manufacturing economic indicator (contraction vs expansion)
PMI < 50 = Economic weakness = Better crypto buying opportunities
PMI > 50 = Economic strength = Risk-on environment
Configurable offset to lead/lag the signal
Daily data smoothed over customizable period
💰 Trading Logic
Tiered Buy System:
Level 1 (Risk < 70): Initial entry with conservative amount
Level 2 (Risk < 50): Double down as risk decreases
Level 3 (Risk < 30): Maximum accumulation at extreme lows
All purchases customizable by dollar amount
Tiered Sell System:
Level 1 (Risk > 70): Take partial profits (default 25%)
Level 2 (Risk > 85): Continue scaling out (default 35%)
Level 3 (Risk > 100): Final exit (default 40%)
Sells reset when new buys occur (can re-accumulate)
⚙️ Key Features
Multi-Asset Support: ETH, SOL, ADA, LINK, UNI, XRP, DOGE, AVAX, MATIC, RENDER, or custom
Exchange Selection: Works with Binance, Coinbase, Kraken, Bitfinex, Bybit
3Commas Integration: Optional webhook alerts for automated bot trading
Visual Risk Zones: Color-coded indicator (green/lime/yellow/orange/red/maroon)
Real-time Info Table: Displays current risk metric, F&G index, PMI value, weights, and position status
Flexible Weighting: Adjust influence of each component (Base/F&G/PMI)
Weekly Timeframe: Reduces noise and focuses on macro trends
📈 Use Cases
DCA Strategy: Dollar-cost averaging with intelligent timing
Swing Trading: Catching major market cycles (weeks to months)
Risk Management: Exit before major downturns, enter during fear
Macro Trading: Align crypto positions with economic conditions
Bot Automation: Connect to 3Commas for hands-free execution
🎓 Credits & Attribution
Original Concept & Base Risk Metric:
Inspired by community-developed ALT/BTC risk oscillators
Fear & Greed methodology adapted from crypto market sentiment research
Enhancements & Integration:
ISM PMI integration and weighting system
Multi-indicator combination framework
Tiered buy/sell logic with reset mechanism
3Commas webhook integration
Development:
Primary Development: Claude AI (Anthropic)
Collaboration & Testing: User feedback and iteration
Pine Script Implementation: TradingView v5
⚠️ Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Cryptocurrency trading involves substantial risk of loss. Always conduct your own research and consider your risk tolerance before trading. The strategy uses lagging indicators (weekly timeframe) which may not react quickly to sudden market changes.
🔧 Recommended Settings
For better performance than default conservative settings:
Increase buy amounts: Try $50/$75/$100 for more meaningful positions
Adjust thresholds: Consider 40/60/80 for more frequent entries
Test different weights: Experiment with F&G and PMI influence
Optimize for your asset: Different cryptos may require different parameters
Version: 1.0
Last Updated: December 2025
Compatible With: TradingView Pine Script v5
RS vs Indexes By Shashi MishraRS vs Indexes giving details about strength of the sripts against the TIDE which is indexes that you can follow , for example small cap index 100 / 250
MNQ Quant Oscillator Lab v2.1MNQ Quant Oscillator Lab v2.1 — Clean Namespaces
Adaptive LinReg Oscillator + Auto Regime Switching + MTF Confirmation + MOEP Gate + Research Harness
MNQ Quant Oscillator Lab is a research-grade oscillator framework designed for MNQ/NQ (and other liquid futures/indices) on 1-minute and intraday timeframes. It combines a linear-regression-based detrended oscillator with quant-style normalization, adaptive parameterization, regime switching, multi-timeframe confirmation, and an optional MOEP (Minimum Optimal Entry Point) gate. The goal is to provide a customizable signal laboratory that is stable in real time, non-repainting by default, and suitable for systematic experimentation.
What this indicator does
1) Core oscillator (quant-normalized)
The indicator computes a linear regression (LinReg) detrended signal and expresses it as a z-scored oscillator for portability across volatility regimes and assets. You can switch the oscillator “transform family” via Oscillator type:
LinReg Residual / Residual Z: detrended residual (mean-reversion sensitive)
LinReg Slope Z: regression slope (trend-derivative sensitive)
LogReturn Z: log-return oscillator (momentum-style)
VolNorm Return Z: volatility-normalized returns (risk-scaled)
This yields a single oscillator that is comparable over time, not tied to raw point values.
2) Adaptive length (dynamic calibration)
When enabled, the regression length is automatically adapted using a volatility-regime proxy (ATR% z-scored → logistic mapping). High volatility typically shortens the effective lookback; low volatility allows longer lookbacks. This helps the oscillator remain responsive during expansions while staying stable in compressions.
Important: the adaptive logic is implemented with safe warmup behavior, so it will not throw NaN errors on early bars.
3) Adaptive thresholds (dynamic bands)
Instead of static overbought/oversold levels, the indicator can compute dynamic upper/lower bands from the oscillator’s own distribution (rolling mean + sigma). This creates thresholds that adjust automatically to regime changes.
4) Auto regime switching (Trend vs Mean Reversion)
With Auto regime switch enabled, the indicator selects whether to behave as a Trend system or a Mean Reversion system using an interpretable heuristic:
Trend regime when EMA-spread is strong relative to ATR and ATR is rising
Otherwise defaults to Mean Reversion
This prevents running mean-reversion logic in trend breakouts and reduces “mode mismatch.”
5) Multi-timeframe (MTF) confirmation (optional)
MTF confirmation can be enabled to require that the higher timeframe oscillator sign aligns with the direction of the signal. This is useful for reducing noise on MNQ 1m by requiring higher-timeframe structure agreement (e.g., 5m or 15m).
6) MOEP Gate (optional “institutional” filter)
The MOEP gate is a confluence score filter intended to reduce low-quality signals. It aggregates multiple components into a 0–100 score:
BB/KC squeeze condition
Expansion proxy
Trend proxy
Momentum proxy (RSI-based)
Volume catalyst (volume z-score)
Structure break (highest/lowest break)
You can set:
Score threshold (minimum score required)
Minimum components required (forces diversity of evidence)
When enabled, a signal must satisfy both oscillator logic and MOEP confluence conditions.
7) Research harness (NON-CAUSAL, OFF by default)
A built-in research mode evaluates signals using future bars to compute basic forward excursion statistics:
MFE (max favorable excursion)
MAE (max adverse excursion)
Simple win-rate proxy based on MFE vs MAE
This feature is strictly for offline analysis and tuning. It is disabled by default and should not be considered “live-safe” because it uses future information for evaluation.
Signals and interpretation
Mean Reversion regime
Long: oscillator is below the lower band and turns back upward across it
Short: oscillator is above the upper band and turns back downward across it
Trend regime
Long: oscillator crosses above zero (optionally requires structure break confirmation)
Short: oscillator crosses below zero (optionally requires structure break confirmation)
Hybrid
When Hybrid is selected (manual mode), the indicator allows both trend and mean-reversion triggers, but still respects the filters and gates you enable.
Recommended starting configuration (MNQ 1m)
If you want stable, high-quality signals first, then expand into research:
Use RTH only: ON
Auto regime switch: ON
Adaptive length: ON
Adaptive bands: ON
MTF confirmation: OFF initially (turn ON later with 5m)
MOEP Gate: OFF initially (turn ON after you confirm base behavior)
Research harness: OFF (only enable for tuning studies)
Practical notes / transparency
The indicator is designed to be stable on live bars (optional confirmed-bar behavior reduces flicker).
No repainting logic is used for signals.
Any “performance” numbers shown under Research harness are not tradable metrics; they are forward-looking evaluation outputs intended strictly for experimentation.
Disclaimer
This script is provided for educational and research purposes only and does not constitute financial advice. Futures trading involves substantial risk, including the possibility of loss exceeding initial investment.
RMI Valid FVG & IFVGRMI • Valid FVG & iFVG (Smart Money Concept)
RMI • Valid FVG & iFVG is a precision-focused Fair Value Gap indicator designed for traders who follow Smart Money Concepts (SMC) / ICT logic and want to filter out low-quality, random gaps.
This indicator does not plot every FVG.
It highlights only structurally relevant FVGs that form in the direction of the trend and have a high probability of being filled.
Core Features
Bullish & Bearish Fair Value Gaps
Inverse Fair Value Gaps (iFVG)
Trend-aligned FVG filtering
Automatic invalidation after mitigation
Clean background zones for clear visibility
Optimized for intraday trading
Adjustable settings for scalping, intraday & swing trading
Smart Filtering Logic
FVGs are validated using market structure context
Only FVGs that form within the active trend are displayed
Weak or low-probability gaps are ignored
Inverse FVGs appear after strong displacement and rejection
Zones are visually faded once mitigated
This helps reduce chart noise and keeps the focus on high-probability reaction zones.
Best Use Cases
Entry refinement after BOS / CHoCH
Confluence with liquidity grabs
Premium / discount zone trading
Intraday & session-based trading
Works well with ICT, SMC, price action & structure-based strategies
Recommended Timeframes
Scalping: M1 – M5
Intraday (default): M5 – M15
Swing Trading: M15 – H1
(Default settings are optimized for intraday trading.)
Important Notes
This is not a signal indicator
No repainting
No buy/sell arrows
Designed as a decision-support tool, not an automated system
Always combine with proper risk management and confirmation.
RMI • Precision over noise.
Trade structure, not randomness.
MA20 ATR Trend Failure FilterA volatility-adaptive filter designed to identify early trend invalidation.
This indicator combines a 20-period Moving Average (MA20) with Average True Range (ATR) to dynamically define a lower volatility boundary.
When price closes below this boundary, it signals that the current trend is no longer valid and risk is increasing.
Core Concept(核心思想)
MA defines the trend baseline
ATR measures current market volatility
MA − k × ATR forms a dynamic risk threshold
A close below this threshold = trend failure
👉 中文补充:
这不是反转指标,而是趋势失效过滤器,用于避免在趋势已经被破坏后继续持仓或加仓。
How It Works
Calculate MA20 as the trend reference
Calculate ATR(14) as volatility proxy
Build adaptive bands:
Upper Band = MA20 + k × ATR
Lower Band = MA20 − k × ATR
If close < Lower Band, trend is considered failed
The ATR multiplier k automatically adjusts the tolerance based on volatility, avoiding rigid fixed-percentage rules.
Visual Elements
Yellow line: MA20
Green band: MA20 + k × ATR
Red band: MA20 − k × ATR (key risk boundary)
Red triangle + “FAIL” label: Trend failure signal
Optional background shading to highlight risk zones
Typical Use Cases
Trend-following strategies (exit / reduce exposure)
Breakout strategies (filter false continuation)
Risk management overlay (non-intrusive, no repaint)
Combine with HMA, SuperTrend, structure-based entries
👉 中文补充:
非常适合作为**“不该再拿”的客观判断条件**,而不是频繁交易信号。
Why This Indicator
Volatility-adaptive (ATR-based)
No future data, no repaint
Simple logic, strong risk control
Works across stocks, crypto, futures, indices
This tool is designed to answer one question only:
Is the current trend still valid?
Parameters
MA Length (default: 20)
ATR Length (default: 14)
ATR Multiplier k (default: 0.8)
Lower k → stricter risk control
Higher k → more tolerance, fewer false signals SSE:600595
ULTIMATE AI SYSTEM [PRO MAX 2025 - NEUTRAL FIXED]🚀 Overview
The ULTIMATE AI SYSTEM is a next-generation trading toolkit designed to identify high-probability reversal setups within established trends. This Parallel Edition introduces a dynamic Linear Regression Channel combined with a powerful Multi-Divergence Engine capable of scanning 14 different oscillators simultaneously.
🔥 Key Features
1. Parallel Linear Regression Channel
This is the core of the trend filtering system. Unlike standard regression channels:
• Parallel Bands: The upper and lower bands are perfectly parallel to the baseline, calculated using Standard Deviation (Deviation 2.0 default).
• Dynamic Trend Coloring: The channel automatically changes color based on the slope:
• 🟢 Green: Uptrend (Bullish Bias)
• 🔴 Red: Downtrend (Bearish Bias)
• Mean Reversion Logic: It helps filter out trades that are over-extended (e.g., buying at the top of the channel).
2. AI Multi-Divergence Engine
The script scans 14 Indicators simultaneously across Fibonacci Lookback Periods (5, 8, 13, 21 candles) to find hidden momentum shifts.
• Indicators Scanned: RSI, CCI, MACD, OBV, MFI, MOM, STOCH, CMF, ADX, ATR, WPR, ROC, TSI.
• Algorithm: A signal is only triggered if a user-defined minimum number of indicators (default: 4) show divergence at the same time.
3. Smart Filtering Layer
To reduce false signals, every trade must pass 5 layers of confirmation:
1. Trend Filter: Price must be above/below the EMA 200 (optional).
2. Regression Filter: Buy signals are validated only if price is within the safe zone of the Linear Regression Channel.
3. RSI Guard: Prevents buying in Overbought or selling in Oversold conditions (optimized 75/25 levels).
4. Candle Validation: Buys require a Green candle; Sells require a Red candle.
5. Lookback Confirmation: Uses Fibonacci sequences to validate divergence strength.
4. Pro Dashboard
A real-time table on the chart displays:
• Current value of all oscillators.
• Live Divergence status (▲ for Bullish, ▼ for Bearish).
• Overall Market Sentiment score.
🛠 How It Works
• LONG (BUY) Signal:
1. Market Sentiment is Bullish (Minimum 4 indicators showing bullish divergence).
2. Price is above EMA 200 (Trend Confirmation).
3. Linear Regression Slope is Positive (or price is at the channel bottom).
4. RSI is below 75 (Not Overbought).
5. Candle closes Green.
• SHORT (SELL) Signal:
1. Market Sentiment is Bearish (Minimum 4 indicators showing bearish divergence).
2. Price is below EMA 200 (Trend Confirmation).
3. Linear Regression Slope is Negative (or price is at the channel top).
4. RSI is above 25 (Not Oversold).
5. Candle closes Red.
⚙️ Settings
• Min Confirmations: Number of indicators required to trigger a signal (Default: 4).
• Regression Length: Length for the Linear Regression Channel (Default: 100).
• Channel Deviation: Width of the parallel channel (Default: 2.0).
• EMA Filter: Toggle EMA 200 filtering On/Off.
• Lookback Periods: Customizable Fibonacci sequence for divergence detection.
⚠️ Disclaimer
This script is for educational and analytical purposes only. No indicator guarantees 100% accuracy. Always use proper risk management and combine signals with your own price action analysis.
Code Author:
Version: PRO MAX 2025 - PARALLEL EDITION
NSE Swing Breadth NSE Swing Breadth – Market Health Dashboard (0–200, % from Neutral)
Overview
NSE Swing Breadth – Market Health Dashboard is a market-wide health and regime indicator designed to track internal strength and participation across Large-, Mid-, and Small-cap indices in the Indian equity market.
Instead of focusing on price alone, this tool measures how strongly each segment is behaving relative to its own swing trend, normalizes those movements, and combines them into a single Market Health score. The result is a clean, objective dashboard that helps traders identify Risk-On, Caution, and Risk-Off regimes.
This indicator is best used for position sizing, exposure control, and timing aggressiveness, rather than individual stock entries.
Data Used
The indicator internally tracks three broad NSE indices:
Large Caps → NIFTY100EQUALWEIGHT
Mid Caps → NIFTYMIDCAP150
Small Caps → NIFTYSMLCAP250
Using equal-weighted and broad indices ensures the signal reflects true market participation, not just index heavyweights.
Core Logic
1. Swing Strength Model
For each index, the script calculates normalized swing strength:
Price is compared to its EMA swing baseline
The deviation from the EMA is normalized using the EMA of absolute deviations
This creates a volatility-adjusted strength value, allowing fair comparison across market regimes
This answers the question:
Is this segment pushing meaningfully above or below its recent trend?
2. Strength Converted to % from Neutral (Baseline = 100)
Each segment’s strength is converted into percentage-style points around a neutral baseline of 100:
100 = Neutral
+15 = +15% strength above neutral
–20 = –20% weakness below neutral
These values are plotted as three smooth lines:
Blue → Large Caps
Orange → Mid Caps
Purple → Small Caps
This makes relative leadership and divergence immediately visible.
3. Market Health Score (0–100)
The indicator combines all three segments into a single Market Health score:
Large Caps → 40% weight
Mid Caps → 35% weight
Small Caps → 25% weight
Extreme values are clamped to avoid distortion, and the final score is normalized to a 0–100 scale:
70–100 → Strong, broad participation
40–69 → Mixed / unstable participation
0–39 → Weak, risk-off conditions
Visual Components
- Market Health Histogram
A vertical histogram displays Market Health (0–100) with enhanced visibility:
Green (≥ 70) → Strong Risk-On regime
Orange (40–69) → Caution / Transition
Red (< 40) → Risk-Off regime
The histogram is visually compact and designed to reflect true market health, not exaggerated spikes.
- Strength Lines (Baseline = 100)
Three strength lines show % deviation from neutral:
Above 100 → Positive internal strength
Below 100 → Internal weakness
These lines help identify:
Leadership (which segment is driving the market)
Early deterioration (small/mid caps weakening first)
Broad confirmation (all segments rising together)
Dashboard Tables
- Market Regime Table (Bottom-Left)
Displays the current market regime:
RISK ON
CAUTION
RISK OFF
Along with the exact Market Health score (0–100).
- Strength Table (Top-Right)
Shows Large / Mid / Small cap strength as % from neutral, for example:
+18% → 18% above neutral
–12% → 12% below neutral
This avoids misleading interpretations and keeps values intuitive and actionable.
How to Use This Indicator
Risk-On (Green)
Favor full position sizes, trend-following strategies, and broader participation trades.
Caution (Orange)
Reduce leverage, tighten stops, and be selective. Expect choppiness.
Risk-Off (Red)
Prioritize capital protection, reduce exposure, and avoid aggressive longs.
This indicator is not an entry signal — it is a market environment filter.
- Important Style Setting (Required)
For correct visualization:
Settings → Style → Uncheck “Labels on price scale”
This prevents the indicator’s internal 0–200 model scale from interfering with the chart’s price scale and keeps the pane clean and readable.
Summary
NSE Swing Breadth – Market Health Dashboard provides a clear, objective view of market internals, helping traders align their risk with the true underlying condition of the market — not just price movement.
It is especially effective for:
Market regime identification
Exposure management
Avoiding false breakouts in weak breadth environments
KC Multi-TF ATR TableThis indicator is a comprehensive risk management tool designed to help traders gauge market volatility and determine rational Take Profit (TP) and Stop Loss (SL) levels. It allows you to analyze both the current timeframe and higher timeframes (15m, 1H, 4H, Daily) at a single glance.
Key Features:
Multi-Timeframe (MTF) Dashboard:
Displays ATR (Average True Range) values for fixed periods: 15 Minutes, 1 Hour, 4 Hours, and Daily, alongside your current chart timeframe.
Allows you to monitor whether general market volatility is expanding or contracting from a single panel.
Auto TP & SL Calculation:
Lists potential Long and Short targets for each timeframe based on your custom ATR multipliers.
Logic:
Buy TP: Close Price + (ATR x TP Multiplier)
Buy SL: Close Price - (ATR x SL Multiplier)
(Inverted logic applies for Sell setups.)
Dynamic On-Chart Lines:
Draws the calculated TP and SL levels directly on the chart for the current timeframe.
Lines extend 10 bars into the future, providing a visual reference for how close the price is to your targets.
Full Customization:
Calculation: You can adjust the ATR period and TP/SL multipliers to fit your strategy.
Visuals: Table position, text size, and all colors (buy, sell, background) can be personalized via the settings menu.
How to Use:
Trend Following: If ATR values on higher timeframes are increasing, it may indicate a strengthening trend.
Risk Management: Check the SL levels in the table before entering a trade to adjust your stop loss dynamically based on volatility.
Scalping: Use the on-chart lines as dynamic targets during support/resistance breakouts.
Market Compression & Entropy VectorOverview
This indicator measures market energy states and directional bias using concepts from information theory. It detects when markets are "coiling" (compression) versus "expanding" (decompression), and predicts early pivot points before they fully form.
Core Concepts
Compression-Decompression (0-1 scale)
Compression (blue): Low volatility, narrow ranges. Energy building for breakout.
Decompression (orange): High volatility, trending. Energy releasing.
Entropy Vector (-1 to +1)
Derived from buy/sell pressure using Shannon entropy:
Positive: Bullish bias (buyers dominating)
Negative: Bearish bias (sellers dominating)
Near zero: Indecision
Early Pivot Detection
Predicts reversals using 5 confluence factors:
Entropy vector crossing zero
Momentum exhaustion (rate of change reversal)
Compression exit (breakout from consolidation)
Price-entropy divergence
Extreme entropy readings
Signals
Signal Meaning
BUY Exiting compression with bullish entropy
SELL Exiting compression with bearish entropy
TOP (diamond) High probability of downward reversal
BTM (diamond) High probability of upward reversal
Key Settings
Pivot Sensitivity (1-10): Higher = more pivot signals
Pivot Score Threshold (30-90): Minimum score to trigger pivot marker
Compression/Decompression Thresholds: Define phase boundaries
Info Table
Displays real-time metrics including compression score, entropy vector, directional bias, and pivot prediction scores for tops/bottoms.
Best Use
Wait for compression phase (blue background)
Watch entropy vector for directional bias
Enter when pivot signal aligns with entropy direction
Use decompression phase for trend-following
Tags: entropy, compression, pivot detection, reversal, momentum, volatility
ORB Algo⚡ ORB Strategy + Backtesting (Pine Script v5)
This script implements a complete Opening Range Breakout (ORB) strategy, featuring built-in backtesting, advanced TP/SL visualization, full style customization, and a performance dashboard. It is designed for traders who want to clearly evaluate breakout performance directly on the chart.
🕑 ORB Window Configuration
🔹 Session selection: choose between Market Timezone or Custom Session.
🔹 Timezone support: configurable from UTC-8 to UTC+12.
🔹 Daily limit: option to allow only one trade per day.
🔹 Risk/Reward (RR) settings:
Configurable TP1, TP2, and TP3 levels.
Stop Loss calculated dynamically from the ORB range.
📊 Backtesting Engine
🔹 Interactive dashboard showing trades, wins, losses, and win rate.
🔹 Adjustable partial exits for each TP (TP1, TP2, TP3).
🔹 Automatic calculation of percentage-based profit and loss.
🔹 Tracks total trades, total profit, and average profit per trade.
🎨 Visual Customization
🔹 Fully customizable colors:
ORB high/low lines and range fill.
Buy/Sell entry labels.
TP and SL lines with background zones.
🔹 Line style and thickness options (solid, dotted, dashed).
🔹 Visibility controls for each TP/SL level.
🔹 Clear profit and loss zones drawn directly on the chart.
🚀 Trading Logic
🔹 LONG entries: triggered when price breaks above the ORB high.
🔹 SHORT entries: triggered when price breaks below the ORB low.
🔹 Automatic calculation of Stop Loss and TP1, TP2, TP3 based on ORB range and RR.
🔹 Customizable BUY / SELL labels displayed at entry.
✅ TP / SL Detection
🔹 Real-time detection of TP1, TP2, TP3, and SL hits.
🔹 Prevents double counting of the same level.
🔹 Extended TP/SL lines with shaded zones for better clarity.
📈 Backtesting Dashboard
🔹 Displayed in the top-right corner of the chart.
🔹 Shows:
Total trades
Wins / Losses
Win rate (%)
Total profit (%)
Average profit per trade
🔹 Fully customizable panel color.
✨ Summary
This script combines:
Opening Range detection
Breakout trading logic with advanced risk management
Professional-grade visualizations
Integrated historical performance tracking
High customization for sessions, styles, and colors
💡 Ideal for traders who want to trade ORB setups with clarity, structure, and measurable results.
NeuraLine v1Neuraline is a daily market-regime indicator designed to help traders stay aligned with the dominant trend while avoiding noise, false flips, and emotional overtrading.
Instead of reacting to every small move, Neuraline focuses on structural trend confirmation, combining trend strength, regime persistence, and higher-timeframe context into one clean visual layer.
1. Anti-Flip Trend Logic
Neuraline uses a buffered EMA regime system with built-in hysteresis.
This means the indicator does not flip trend on every minor crossover, but only when price confirms a meaningful shift.
Result: fewer false signals, more stability.
2. Market Strength Filter (ADX)
Trend changes are only validated when market strength confirms the move.
This prevents signals during low-volatility, choppy conditions where most indicators fail.
3. Clear Market Regime: Bullish or Bearish
Neuraline always operates in one of two states:
• Bullish regime
• Bearish regime
No confusion. No over-analysis.
Every signal is contextualized within the current regime.
4. Higher-Timeframe Structure via 50 / 200 Moving Averages
The integrated 50 & 200 day moving averages provide long-term market context:
• MA lines automatically adapt their color based on bullish or bearish alignment
• A subtle ribbon highlights the structural zone between them
This makes it instantly clear whether price action is occurring within a healthy trend or against macro structure.
5. Minimal, Emotion-Free Signals
Buy and sell signals are only triggered on confirmed regime transitions, not on every fluctuation. Signals are displayed as clean, non-intrusive icons directly on the chart — no clutter, no noise.
6. Designed for Daily & Swing Traders
Neuraline is optimized for:
• Daily charts
• Swing trading
• Position management
• Market bias confirmation
It is not a scalping tool.
It is a decision-filter.
Breadth-Force Oscillator (BFO)Welcome to the Breadth-Force Oscillator! This is a measure of the cumulative volume index relative to price action, and is used for swing trading.
How to read:
This indicator is read primarily through divergences in price, when the BFO is going down that is indicative of an uptrend and when it is going up that is indicative of a downtrend. Changes in the BFO direction give foresight towards shifts in trends.
Features:
This indicator is highly adjustable, and depending on how you adjust it, it may change the results of how you interpret it. This indicator includes multiple smoothing options to reduce noise on smaller time frames and gain more foresight to macro-trends in a given market, and other adjustable features which can be used to further customize.
IED [Harmonic Volatility Edition]IED-H
IED-H (Harmonic Volatility Edition) is a professional mean-reversion and exhaustion detection engine designed to identify institutional stress zones, volatility extremes, and harmonic reversals using a geometry-based statistical framework.
This indicator does not chase trends or breakouts.
Instead, it focuses on detecting when price deviates excessively from its equilibrium and begins to lose efficiency.
⸻
🔬 Core Concept
IED-H measures price deviation from a dynamic trend baseline and projects it into harmonic volatility bands derived from natural square-root ratios:
• √2 → Pulse (normal deviation)
• √3 → Stretch (institutional stress)
• √5 → Extreme (critical exhaustion)
These levels adapt dynamically to market volatility and are not fixed thresholds.
⸻
⚙️ Key Features
• Harmonic Volatility Geometry
Dynamic √2 / √3 / √5 bands scaled by statistical volatility.
• Responsive Wave Engine
Smoothed deviation wave (HMA / RMA modes) for early exhaustion detection.
• Equilibrium Noise Filter
Automatically ignores weak, low-energy oscillations around balance.
• Persistence Logic
Requires prior presence inside overbought/oversold zones to avoid false signals.
• Candle Validation
Signals are confirmed using wick structure and true volatility (ATR-based).
• Harmonic Score (Debug Mode)
Quantifies how deeply price penetrates harmonic stress levels.
• Institutional Visualization
Optional on-chart boxes highlighting validated harmonic reaction zones.
⸻
🎯 What This Indicator Is Designed For
✔ Mean-reversion trades
✔ Exhaustion & volatility climax detection
✔ Trap zones and institutional reaction areas
✔ Advanced traders who value signal quality over signal quantity
⸻
🚫 What This Indicator Is NOT
✘ Not a trend-following system
✘ Not a breakout indicator
✘ Not designed for momentum chasing
✘ Not a multi-purpose “all-in-one” tool
IED-H is a precision instrument, not a Swiss-army knife.
⸻
🧠 Best Practice
For optimal results, use IED-H within a broader trading framework, preferably alongside:
• Higher-timeframe trend context
• Market structure or session logic
• Risk-controlled execution rules
⸻
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
It does not constitute financial advice.
Always manage risk and test thoroughly before live trading.
PURNA STOCK2. Candle Analysis:
Candle Strength (body ratio)
Doji Patterns - Indecision
Strong Candle (>60% body) - Momentum kuat
3. Position Analysis:
Near Resistance - Potensi rejection
Near Support - Potensi rebound
Mid Range - Netral
4. Trend Analysis:
Strong Bullish (EMA gap > 2%)
Strong Bearish (EMA gap < -2%)
Moderate Trend
5. Market Predictions:
🚀 PUMP POTENTIAL - Volume extreme + candle kuat + bullish
📈 REBOUND EXPECTED - Volume kuat + near support
⚡ BREAKOUT WATCH - Volume spike + near resistance
🔻 DUMP WARNING - Volume extreme + red candle kuat
📉 REJECTION CONFIRMED - Volume kuat + rejection resistance
😴 SIDEWAYS/SLEEP - Volume rendah
Supfabio Break-Return BandsSupfabio Break-Return Bands (B3 & B4 • 3-Candle Confirmation)
Supfabio Break-Return Bands is a volatility-based price action indicator built on top of a Two-Pole smoothing filter combined with ATR-derived dynamic bands.
It is designed to highlight price exhaustion, rejection, and potential reversal zones, with a strong emphasis on structural confirmation rather than immediate breakouts.
Core Concept
The indicator plots four volatility bands (Band 1 to Band 4) above and below a smoothed Two-Pole filter.
Signals are intentionally restricted to the outer bands, where price behavior is statistically more likely to show:
Volatility expansion
Liquidity grabs (stop runs / false breaks)
Strong rejection or mean-reversion behavior
Signal Logic
Band 4 (Primary Extreme Zone)
BUY and SELL signals are generated when:
Initial trigger (first candle)
Price either crosses the Band 4 level or
Touches and rejects the band (wick / pin behavior)
Confirmation on the 3rd candle (t + 2)
The confirmation candle:
Must not touch the same band again
Must close on the correct side of the band
Confirms that the initial break or pin was rejected
This delayed confirmation helps filter false breakouts and impulsive entries.
Band 3 (Secondary Setup)
On Band 3, signals are intentionally more selective:
Pin / rejection only
No direct cross signals
Uses the same 3-candle confirmation logic
This allows Band 3 signals to act as deeper pullback or early exhaustion setups.
Confirmation Mechanism
The script uses an internal state-based logic to:
Track the exact bar where the trigger occurred
Confirm signals only on the correct third candle
Prevent duplicate or consecutive signals from the same setup
Ensure pin-based triggers are not missed
Visual Elements
Main Two-Pole filter plotted as a thick continuous line
Volatility bands plotted with progressive line thickness
Band line styles (dotted / dashed) can be customized manually in the Style tab
Clear BUY and SELL labels plotted directly on the confirmation candle
Optional candle coloring based on filter direction
Alerts & Automation
Built-in alertcondition() for BUY and SELL
Alerts are suitable for webhook automation
Compatible with external systems and trading bots
Intended Use
This indicator is suitable for:
Reversal and exhaustion analysis
Mean-reversion strategies
Liquidity and rejection-based setups
Manual trading or automated execution
Intraday and higher-timeframe analysis
Notes
This script is intended as an analytical tool, not as a standalone trading system.
Signals should be used in combination with market structure, trend context, and proper risk management.
Liquidity-Aware Daily Box (Stable v4)Highlights previous day liquidity range and estimates potential liquidation zones using volume and volatility stress. Overlapping lines indicate stronger liquidity confluence areas. Designed as a context tool, not a standalone signal.
RSI WMA Crossover Momentum w/ Highlight by SfxinvestRSI WMA Crossover Momentum
This is a momentum indicator that tracks the RSI. Its principle is to use the WMA line to determine the trend of the RSI, and from the RSI, the price trend can be determined.
CCI + Buy/Sell Cross (supfabio)This indicator is an enhanced version of the Commodity Channel Index (CCI) designed to generate clear BUY and SELL signals based on customizable level crossovers, with built-in support for webhook automation and external trade execution.
🔹 Signal Logic
BUY Signal:
Triggered when the CCI crosses upward (from below to above) the user-defined BUY level (red line).
SELL Signal:
Triggered when the CCI crosses downward (from above to below) the user-defined SELL level (green line).
Signals can optionally be configured to trigger only on candle close, reducing real-time noise and false signals.
🔹 Key Features
✅ Original CCI calculation (standard formula preserved)
✅ Fully configurable BUY and SELL levels
✅ Optional display of signal level lines
✅ Visual BUY / SELL markers plotted on the CCI panel
✅ Support for moving average smoothing and Bollinger Bands applied to the CCI
✅ Dynamic alerts using alert(), ideal for:
Webhook integrations
Trading bots
External servers and automated execution systems
🔹 Alerts & Webhook Integration
The indicator sends dynamic alert messages containing:
Action type (BUY / SELL)
Symbol
Closing price
Timestamp
To use:
Add the indicator to your chart
Create an alert and select “Any alert() function call”
Enable Webhook URL and configure your endpoint
Done — signals will be sent automatically
🔹 Best Use Cases
Traders who use CCI as a primary entry trigger
Momentum or mean-reversion strategies
Automated trading systems
Visual backtesting and signal validation
⚠️ Disclaimer
This indicator is not a complete trading system and does not replace proper risk management. Always use it in combination with market context, confirmation tools, and sound position sizing.






















