Multi-Metric Market Regime Detector - [KK]This indicator identifies current market behavioral regimes by synthesizing six complementary analytical methodologies. Rather than generating trading signals, it provides contextual analysis to help traders understand market conditions and adapt their strategies accordingly.
Markets cycle through distinct behavioral states - trending efficiently, consolidating in ranges, compressing before breakouts, or transitioning between states. This tool quantifies these conditions using only price action data (OHLC), enabling traders to filter strategies based on current market structure.
Core Methodology
The indicator combines six independent metrics into a weighted composite classification system:
Efficiency Ratio (30% weight)
Measures the signal-to-noise ratio of price movement by comparing net price displacement to total path traveled. High efficiency indicates clean directional movement; low efficiency indicates choppy, noisy conditions.
Choppiness Index (25% weight)
Quantifies whether the market is trending or consolidating by comparing cumulative True Range to actual price range. Values below 38.2 suggest trending behavior; values above 61.8 suggest range-bound consolidation.
Volatility Analysis (20% weight)
Detects compression and expansion cycles using the relationship between Bollinger Bands and Keltner Channels. Compression phases (squeeze conditions) often precede significant directional moves.
Fractal Efficiency Proxy (10% weight)
Analyzes path complexity by comparing net displacement to cumulative range, providing insight into the smoothness versus randomness of price action.
Market Structure (15% weight)
Examines pivot point sequences to identify structural trends. Higher Highs and Higher Lows indicate bullish structure; Lower Lows and Lower Highs indicate bearish structure.
Wick-to-Body Ratio Analysis (qualitative)
Identifies rejection and indecision patterns by measuring the proportion of candle wicks to bodies, highlighting potential reversal zones or liquidity events.
Regime Classifications
The composite scoring system produces four distinct regime states:
TRENDING : High efficiency, low choppiness, clear directional structure. Favorable conditions for momentum and trend-following strategies.
CHOPPY/RANGE : Low efficiency, high choppiness, mean-reverting behavior. Favorable conditions for range trading and counter-trend setups.
COMPRESSION : Volatility squeeze detected, market coiling. Anticipate expansion; reduce position size until breakout confirmation.
TRANSITION : Mixed signals, conflicting metrics, unclear direction. Recommended to reduce exposure and wait for regime clarity.
Visual Features
Regime-Colored Candles (enabled by default)
Candles are colored according to the current regime state for immediate visual identification. Green indicates trending, gray indicates choppy, orange indicates compression, and yellow indicates transition.
Comprehensive Metrics Table (top right)
Displays real-time values for all six metrics along with individual regime assessments and the final composite classification with score.
Regime Guide Table (middle right)
Quick reference guide showing recommended strategies and actions to avoid for each regime state.
Chart Label ( optional)
Summary label displaying current regime and key metric values.
Background Coloring (optional)
Alternative visualization using background colors instead of candle coloring.
Indicator Plots (optional)
Displays Efficiency Ratio and Choppiness Index with threshold reference lines.
Customization Options
All calculation parameters are adjustable:
- Efficiency Ratio lookback period and thresholds
- Choppiness Index length and classification thresholds
- Volatility analysis parameters (BB/KC multipliers and lengths)
- Pivot detection sensitivity (left/right bars)
- Text size controls for both tables (Tiny to Huge)
- Visual element toggles (candles, background, label, tables, plots)
The indicator automatically detects chart theme (dark/light) and adjusts text colors for optimal readability.
Practical Application
This is a context tool, not a signal generator. Use it to:
- Filter trend-following strategies to trending regimes only
- Identify range-bound conditions for mean-reversion setups
- Anticipate breakout opportunities during compression phases
- Reduce exposure during transitional periods with mixed signals
- Improve risk management by matching position size to regime clarity
The indicator works on all timeframes and instruments using only OHLC data. Higher timeframes generally provide more stable regime classifications.
Alert Conditions
Four alert types are available:
- Efficiency Ratio crosses trend threshold
- Choppiness Index enters range territory
- Volatility squeeze released
- Regime state change detected
Technical Notes
Built with Pine Script v5. Uses up to 500 bars of historical data for stable calculations. All metrics are calculated in real-time with no repainting on confirmed pivots. Compatible with all chart themes through adaptive text coloring.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance and theoretical analysis do not guarantee future results. Always conduct independent research and implement appropriate risk management. Trading financial instruments involves substantial risk of loss.
Usage Philosophy
The goal is not to trade more frequently, but to think more clearly about market conditions. Use this tool to develop deeper intuition about market structure and to enforce discipline by avoiding low-probability setups during unfavorable regime conditions.
Indicateurs et stratégies
ORB W/ Custom time FramesRelease Notes: Simplified ORB (Opening Range Breakout)
This indicator is a streamlined, high-performance tool designed to identify the Opening Range—one of the most widely used concepts by professional floor traders and institutional scalpers. It marks the high, low, and midpoint of the initial balance of the market, providing you with a "map" for the rest of the trading session.
Key Features
Customizable Timeframes: Define your opening range window (e.g., the first 5, 15, or 30 minutes) regardless of what timeframe you are currently viewing.
Custom Session Support: Choose between standard market hours (09:30–16:00) or define your own custom window (e.g., the London Open or the first hour of "Power Hour").
Real-Time Midpoint Calculation: Automatically plots the 50% Equilibrium level between the high and low, serving as a pivot point for intraday bias.
Dynamic Updating: During the ORB window, the lines adjust in real-time as new highs or lows are set. Once the window expires, the levels lock in place to act as support and resistance.
Clean Visuals: Utilizes a lightweight line drawing system that is easy on your GPU and keeps the chart clutter-free.
Why This is Essential for Scalping
Scalpers rely on volatility and clear "lines in the sand." The Opening Range Breakout (ORB) provides exactly that:
The "Opening Drive": If price breaks the ORB High with high volume, scalpers look for quick "long" momentum plays. Conversely, a break below the ORB Low signals a bearish trend.
The Midpoint Pivot: The 50% level (Mid) is often treated as the "Fair Value" of the morning. If price is above the mid, the bias is bullish; if below, the bias is bearish.
Stop Loss / Take Profit Anchor: The ORB High and Low act as natural areas for placing stops or targets. A failed breakout that returns inside the range often targets the opposite side of the box.
EMA and Dow Theory Strategies V2 DOGE Current Optimum Value
📘 Overview
These are the current optimal values for DOGE.
They are intended for use on the 2‑hour timeframe.
This script requires complex configuration, but there is an optimal set of values somewhere.
Here, I’m sharing the settings that I personally use at the moment.
Turning Take Profit off can lead to higher profits, but it also increases risks such as a lower win rate.
With Take Profit on, you can adjust the settings by increasing the values.
I have been trading using Dow Theory for many years.
Trading with Dow Theory and EMA has been my main strategy.
Although it has been profitable, I have long struggled with its low win rate.
The issue lies in the immaturity of the exit strategy, and I’m currently experimenting to see if I can solve that.
In V2, I added three take‑profit lines, securing 30% of the profit at each level to ensure a minimum level of gain.
Additionally, when the trend weakens, half of the position is closed.
In all scenarios, the remaining position is held until the trend reverses.
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.
📘 概要
DOGEの現在の最適値です。
2時間足での使用を想定しています。
このスクリプトは複雑な設定が必要ですが、どこかに最適値が存在します。
今回は現在私が個人的に使っている設定値の公開です。
Take ProfitをOFFにするとさらなる利益が望めますが、勝率が下がるなどのリスクが上がります。
ONにした状態で数値を上げることによって調整することが可能です。
私はダウ理論を使ったトレードを長年続けてきました。
ダウ理論とEMAを使ったトレードが私の主力です。
しかし利益は出るものの、長年その勝率の低さに悩んでいました。
問題は出口戦略が未熟なためで、現在はそれらの解決ができないかと試行錯誤を続けています。
V2では3本の利益確定ラインを引き、それぞれ30%ずつ利益を確定し、最低限の利益がでるようにしました。
それ以外にはトレンドが弱まったタイミングで半分の利益確定をし、どのパターンでも残ったポジションはトレンド転換まで持ち続けます。
🧠 主な機能
🔹 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)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
777 expected Movehell yeaaaaaaaaaaaah, we back at it again yfm, some bs right here, will NOT tap ever!!!!!!
Ultimate Imbalance + RSI + Mean Reversion (v6)
FVG / Imbalance Logic:
🔵 Blue boxes (solid)
Bullish imbalances
These are areas where buying was so aggressive that price skipped levels.
What they represent
• Inefficient auction
• Buyers overwhelmed sellers
• Market left “unfinished business” below price
Types inside blue boxes
• Solid blue box = FVG or Opening Gap
• Blue dotted box = Volume Imbalance (VI)
__________________________________________________
🔴 Red boxes (solid)
Bearish imbalances
Opposite of blue: selling pressure skipped levels upward.
What they represent
• Aggressive sellers
• Liquidity vacuum above price
• Unfinished auction above
__________________________________________________
Gray boxes
Dead / resolved imbalances
These were once valid, but are now structurally irrelevant.
Boxes turn Gray when one of two things happened:
1. Filled
• Bullish → price traded down into the bottom of the box
• Bearish → price traded up into the top of the box
2. Invalidated
• Bullish → price closed below the box
• Bearish → price closed above the box
Gray = do not trade anymore // It’s historical context only.
They extend forward to:
• To visually show when they were resolved
• Help you see how long imbalances tend to survive on that market / timeframe
__________________________________________________
RSI Logic:
RSI filter (RSI 9, smoothed)
• Long bias: RSI ≤ 20 (oversold)
• Short bias: RSI ≥ 80 (overbought)
👉 RSI must already be extreme // We do NOT trade mid-range RSI.
__________________________________________________
Mean Reversion Channel (MRC) Logic:
What it measures:
• Distance from statistically “fair” price
• Uses volatility-adjusted bands (not fixed %)
Zones:
• Inner band = Normal mean oscillation
• Outer band = Exhaustion
• Beyond outer = Forced unwind / liquidation
Trade bias logic:
• Long allowed only if: price at or below lower outer band
• Short allowed only if: price at or above upper outer band
__________________________________________________
Final Signal from all 3 (prints a triangle):
✅ Long setup
1. Active bullish imbalance is touched
2. RSI ≤ oversold
3. Price is at MRC oversold zone
✅ Short setup
1. Active bearish imbalance is touched
2. RSI ≥ overbought
3. Price is at MRC overbought zone
This is why signals are intentionally rare.
Risk Manager Pro: Diamond Edition [Kelly & EV Engine]1. Titolo dello Script
Risk Manager Pro: Diamond Edition
2. Descrizione (Copia e incolla nel box descrizione)
Risk Manager Pro: Diamond Edition is not just a position size calculator; it is a complete algorithmic trading assistant designed to bridge the gap between technical analysis and professional money management.
Many traders focus solely on where to enter. This tool focuses on if you should enter and how much you should risk, using institutional-grade probability models like the Kelly Criterion and Expected Value (EV).
💎 Key Features
1. The "Truth" Metrics (EV & Kelly) Instead of just showing PnL, the dashboard calculates two critical decision-making metrics:
Expected Value (EV): Calculated in your currency. It combines your Win Rate, Potential Profit, and Risk. If EV is Green, the trade makes mathematical sense. If Red, you are paying to gamble.
Kelly Criterion Edge: Measures your statistical edge.
Weighted R:R: Unlike standard calculators that average Risk:Reward, this engine weighs your R:R based on your partial take-profit quantities (e.g., closing 50% at TP1 vs 80% at TP1 changes your real math).
2. Kelly Auto-Sizing Engine (Algo-Sizing) This is the standout feature. When enabled in settings:
The script automatically adjusts your position size based on the strength of your statistical edge.
If the Kelly score is negative (no edge), the script forces Size = 0 (protecting you from bad trades).
If the edge is positive, it scales the risk proportionally (capped at your Max Risk input).
3. Planning Mode vs. Live Mode
Planning Mode: Set an Entry Mode to "Manual Level". The visual lines (Entry, SL, TP) detach from the current price, allowing you to plan Limit or Stop orders. The dashboard calculates risks based on that future entry.
Live Mode: Anchors calculations to the current Close price for market execution.
4. Institutional Fee Modeling
Includes inputs for Commissions, Spread, and Swap.
Triple Swap Toggle: A checkbox to account for weekend/Wednesday triple swap costs, crucial for Swing/Position traders.
5. Dynamic Visuals
Smart Trail Pilot: A dynamic trailing stop line that changes color from Purple (Risk Zone) to Neon Green (Safe Zone/Locked Profit) once price crosses your entry.
Clean Chart Toggle: Hide the background risk boxes for a minimalist view.
🛠️ Dashboard Breakdown
Row 1 (Status): Shows active mode (Planning/Live) and the Expected Value (EV). This is your "Go/No-Go" gauge.
Row 2 (Edge): Displays your Win Rate and Kelly Status.
Row 3 (Sizing): Calculates Lot Size and effective Leverage.
Row 4 (PnL): Projected Net Profit and the True Weighted R:R.
Row 5 (Costs): Total estimated drag on the account (Fees + Swap + Spread).
Row 6 (Context): Trend filter analysis (EMA 50/200 logic).
⚙️ How to Use
Configure Profile: Set your Account Balance and Currency.
Input Win Rate: Be honest. Input your historical Win Rate (or calculate it from your last 20 trades via the option).
Plan the Trade:
Select Long/Short.
Choose your SL Mode (Fixed, ATR, or Swing Structure).
Adjust TPs (Single or Multi-Target).
Check the EV: Look at the top right of the dashboard. Is the EV positive?
Execute: Use the calculated "Size" for your broker order window.
Disclaimer: This tool is for educational and risk management purposes only. It does not provide financial advice. The "Kelly Auto-Sizing" is a mathematical model and does not guarantee future profits. Always trade responsibly.
If you find this script useful, please leave a comment with your feedback! Suggestions for improvement are greatly appreciated.
Taipan's Linear Regression Signals with TPHave fun. You can basically figure out how it works. Works best at finding breakouts and where it returns.
Quarterly Revenue YoY Growth %Quarterly Revenue YoY Growth % (Calculated)
The Problem: Hidden Growth Trends
Most standard revenue indicators on TradingView only show the raw dollar amounts. While helpful, raw numbers make it difficult to quickly identify growth acceleration or deceleration—the primary driver of stock price multiples.
The Limitation: Seeing "$1.28B" in revenue doesn't tell you if the company is growing faster or slower than it was last year.
The Solution: This script automatically calculates the Year-over-Year (YoY) percentage change for every fiscal quarter, giving you an instant read on the company's fundamental momentum.
How It Works (The Math)
To ensure an "apples-to-apples" comparison, this script compares the current quarter's revenue to the revenue from the exact same quarter one year prior:
YoY % = * 100
Data Source: Pulls Fiscal Quarter (FQ) revenue data to maintain a clean "step" visualization.
Smart History Tracking: The script uses an internal array to track the last 5 quarters of data, ensuring the calculation is strictly Year-over-Year rather than just Quarter-over-Quarter.
How to Use It
Use this to validate if a stock's valuation (like the EV/GP ratio) is justified by its growth rate.
Green Labels (+%): Indicate positive revenue growth. Increasing percentages suggest a company is "scaling" and may justify a higher valuation multiple.
Red Labels (-%): Indicate revenue contraction. This is often a major red flag for growth stocks, even if the raw revenue numbers still look large.
Key Features
Visual Labels: Automatically prints color-coded percentage labels on every new earnings report so you don't have to hover over bars to see the data.
Step-Line Plot: Specifically designed to match the "professional terminal" look of your other fundamental indicators.
Universal Compatibility: Works on any stock that provides quarterly financial reporting data on TradingView.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice.
Mean Reversion buysSimple mean reversions tool to signal potential outsized buying opportunities. Confluence between three different basic models; RSI, MACD, and Mean reversion. Not much complexity around it trying to maximize noise for options.
Area per IntervalDescription
This indicator shades the area between 2 curves, an SMA and the nearest open/close to the SMA, and their intersections. The black labels with leader lines describe the calculated area of each shaded section, and the total area accumulated per total number of time intervals for that area. The additional value visible in the status line that is not displayed on the chart is, at any bar index (time interval), the current total area of the incomplete shaded area.
Usage
- The default color of the shaded areas denote the type of momentum being built before the cross. Green for bullish, red for bearish.
- The area value of the shaded areas can be used as a capacity indicator, denoting imbalances between the previous and next crosses.
- The area per interval value of the shaded areas can be used as a momentum indicator, denoting which area is carrying more price movement before the price crosses.
- Similar to indicators that use dynamic price differences between OHLC data, moving averages, etc, confluence with other momentum indicators that use different elements creates additional confirmation.
Conclusion
Simple momentum indicator. Comment for possible updates that can be made.
ZOE IFVG+his indicator combines the original ICT Inversion Fair Value Gap (iFVG) Detector by ote618 with a manual checklist panel for trade analysis.
Features:
ICT iFVG Detector
Automatically identifies bullish and bearish inversion fair value gaps (iFVGs) based on 3-candle formation logic.
Draws colored boxes on the chart to highlight confirmed iFVG zones.
Sends optional alerts when iFVGs are confirmed, respecting your selected timeframe.
Works exactly like the original ote618 iFVG script, with no modifications to the core detection logic.
Manual Checklist Panel
Displays a customizable checklist to track key market factors:
Liquidity Sweep
HTF FVG
V-Shape Recovery
Inversion FVG
Clear Opposite DOL
SMT Divergence
Assigns a score and grade (A+ to F) based on selected conditions.
Panel position and background can be customized.
Allows traders to visually track trade quality alongside iFVG zones.
Usage:
Use the iFVG boxes to identify high-probability zones for entries and liquidity hunts.
Use the manual checklist to evaluate trades based on additional criteria, creating a structured workflow for market analysis.
Fully compatible with your existing iFVG workflow — the core detection and alerts remain unchanged.
Ideal For:
Traders following ICT concepts, liquidity hunts, and structure-based strategies who want to combine automated FVG detection with a manual trade-quality checklist.
Index Guided Exit (Sell Only )Small Cap Guided Exit (Sell Only) – Weekly Index EWMA
Small Cap Guided Exit – Weekly EWMA (Sell‑Side Model)
This indicator is designed for positional/swing investors who use fundamentals for buying decisions and want a disciplined, rule‑based SELL/EXIT strategy driven by market regime.
It combines stock‑level EWMA trend tracking with a weekly Small Cap index regime filter (NIFTYSMLCAP250) to tighten exits during weak market phases and stay patient during bullish periods.
🔍 Core Concept
The indicator provides SELL signals only.
Your entries remain discretionary (based on fundamentals).
Exits adapt dynamically depending on the overall Small Cap Market Regime.
It uses two simple but powerful EWMA rules:
Case 1 — Weak Market (Index filter OFF)
Stock exits when price closes below 21‑EWMA.
Suitable for neutral/uncertain market phases.
Case 2 — Bull Market Regime (Index filter ON)
The Weekly Small Cap Index (NIFTYSMLCAP250 — Weekly timeframe) determines the exit logic:
1️⃣ Bullish Regime
If Index > Weekly 10‑EWMA
→ Stock exit = 21‑EWMA (gives room for big uptrends)
2️⃣ Regime Breach / Market Weakness
If Index falls below Weekly 10‑EWMA
→ Stock exit tightens to 10‑EWMA (protect profits early)
This simple regime‑based tightening helps you:
Ride strong trends longer
Exit faster when overall market momentum weakens
Avoid overreacting to temporary dips during bull markets
📌 Key Features
✔️ Weekly Index Regime Filter (NIFTYSMLCAP250)
Uses Weekly timeframe EWMA to identify broad small‑cap market conditions.
✔️ Adaptive Exit EWMA
21‑EWMA during bullish regime
10‑EWMA after index weakness (profit‑protection mode)
✔️ Clean Visuals (fully configurable)
Toggle on/off:
SELL labels
Index event labels
Background tint for regime
Bar color changes
Default mode keeps the chart minimal.
✔️ Alert System (clean, configurable)
SELL Alert
Optional Index Breach alerts
(Only fire if user enables them)
✔️ No repainting
All index data uses:
lookahead = off
Weekly timeframe
No future-bar dependencies
🎯 Who Should Use This Indicator
Investors who prefer EWMA‑based exits on individual stocks
Those tracking Small Cap / Mid Cap portfolios
Traders who want exits guided by market regime, not emotions
Users who rely on fundamental-based entries but want a mechanical exit rule
📈 Why This Works
Small-cap stocks tend to:
Trend strongly in bullish phases
Correct sharply when the index weakens
By tying your stop‑loss EWMA to index regime, you automatically reduce risk during downturns and maximize gains during expansions.
⚙️ Recommended Settings
Small Cap Index: NSE:NIFTYSMLCAP250
Index Timeframe: Weekly
Index EWMA Length: 10
Stock EWMA (Bull): 21
Stock EWMA (Tightening): 10
These reflect the exact logic in your strategy.
📡 Disclaimer
This indicator is for educational & analytical purposes only.
Always backtest on your preferred stocks.
Not investment advice.
FIBO888 buy sell Fib (V4 -)Fibonacci Levels, Code Names, Usage Strategies, Colors
78.6% (fib_786_buy) 💰 Buy Trap (78.6%) A very important entry point (Buy Trap). Considered the deepest level of the consolidation before the uptrend continues. Blue
61.8% (fib_618_buy) 💰 Buy Trap (61.8%) The most common entry point (Buy Trap). When the price consolidates in an uptrend: Green
50.0% 50.00% Mid-trend consolidation level. Yellow
127.2% (fib_1272_sell) 🎯 127.2% target (sell trap) Profit target (Target/Sell Trap) for uptrend trading after the price breaks through the previous High. Orange
161.8% (fib_1618_sell) 🎯 161.8% target (sell trap) Profit target (Target/Sell Trap) The most important and popular for Fibonacci extensions. Red
I created this indicator to help traders who know nothing about trading. It might be worthless if you don't use it. Only 200 baht for this amazing indicator.
Momentum Wave Projector [Scalping-Algo]
══════════════════════════════════════════════════════════════════════════════
█ OVERVIEW
The Momentum Wave Projector (MWP) is an advanced momentum analysis tool that goes beyond traditional oscillators by projecting potential future momentum paths. While standard indicators only show you where momentum IS, MWP shows you where momentum is LIKELY TO GO.
This indicator combines:
• Adaptive momentum calculation with dynamic trend coloring
• Signal line crossover system for entry/exit timing
• Predictive wave projection using damped harmonic oscillation
• Confidence bands that expand with uncertainty over time
█ HOW IT WORKS
The indicator consists of three main components:
1. MOMENTUM LINE (Cyan/Red)
The core momentum oscillator that measures the speed and magnitude of price changes. The color automatically shifts based on trend direction:
• Cyan = Bullish momentum (above signal line)
• Red = Bearish momentum (below signal line)
2. SIGNAL LINE (Thick Red)
A smoothed average of momentum that acts as a trigger line. Crossovers between momentum and signal generate trading signals.
3. WAVE PROJECTION (Dashed Lines)
The unique feature of this indicator. It projects the probable future path of momentum using:
• Current velocity (how fast momentum is moving)
• Acceleration (is momentum speeding up or slowing down)
• Mean reversion (tendency to return to equilibrium)
• Cycle analysis (historical rhythm of momentum swings)
The projection uses a damped sine wave formula that naturally models how momentum oscillates and eventually returns toward the middle.
█ HOW TO USE
─────────────────────────────
ENTRY SIGNALS - LONG
─────────────────────────────
✓ Momentum crosses ABOVE signal line
✓ Cross occurs in oversold zone (below 30) = STRONG signal
✓ Wave projection is curving upward
✓ Triangle marker appears at bottom of indicator
Example setup:
1. Wait for momentum to drop into oversold zone (<30)
2. Watch for wave projection to start curving up
3. Enter when momentum crosses above signal line
4. Place stop loss below recent swing low
─────────────────────────────
ENTRY SIGNALS - SHORT
─────────────────────────────
✓ Momentum crosses BELOW signal line
✓ Cross occurs in overbought zone (above 70) = STRONG signal
✓ Wave projection is curving downward
✓ Triangle marker appears at top of indicator
Example setup:
1. Wait for momentum to rise into overbought zone (>70)
2. Watch for wave projection to start curving down
3. Enter when momentum crosses below signal line
4. Place stop loss above recent swing high
─────────────────────────────
EXIT SIGNALS
─────────────────────────────
For LONG positions:
• Take profit when momentum reaches projected wave peak
• Exit when momentum enters overbought zone (>70)
• Exit if momentum crosses back below signal line
For SHORT positions:
• Take profit when momentum reaches projected wave trough
• Exit when momentum enters oversold zone (<30)
• Exit if momentum crosses back above signal line
─────────────────────────────
TREND IDENTIFICATION
─────────────────────────────
STRONG UPTREND:
• Momentum stays above signal line consistently
• Momentum holds above 50 level
• Wave projection shows shallow dips that stay above 50
STRONG DOWNTREND:
• Momentum stays below signal line consistently
• Momentum holds below 50 level
• Wave projection shows shallow bounces that stay below 50
RANGING/CHOPPY:
• Momentum oscillates around signal line frequently
• Multiple crossovers in short period
• Wave projection shows full oscillation cycles
REVERSAL WARNING:
• Extreme reading (>80 or <20)
• Wave projection curving opposite to current direction
• Divergence between price and momentum
█ SETTINGS GUIDE
MOMENTUM SETTINGS
• Momentum Length (default: 14)
Lower = more sensitive, more signals, more noise
Higher = smoother, fewer signals, less noise
Recommended: 10-14 for scalping, 14-21 for swing trading
• Source (default: close)
Use 'close' for most cases
Use 'hlc3' for smoother readings
SIGNAL LINE SETTINGS
• Signal Length (default: 20)
Controls how smooth the signal line is
Higher values = slower, more reliable signals
Recommended: 14-21
• Signal Type (default: SMA)
SMA = balanced response
EMA = faster response to recent changes
WMA = weighted toward recent data
RMA = very smooth, slow response
WAVE PROJECTION SETTINGS
• Projection Length (default: 20)
How many bars into the future to project
Longer projections have more uncertainty
• Cycle Estimate (default: 28)
Estimated length of one full momentum cycle
Adjust based on your observed patterns
Tip: Count bars between momentum peaks
• Wave Strength (default: 1.0)
Controls amplitude of projected waves
Increase if your asset has large momentum swings
Decrease for more stable assets
• Show Confidence Bands (default: on)
Displays upper/lower probability envelope
Bands widen over time showing increasing uncertainty
LEVELS
• Overbought (default: 70)
• Oversold (default: 30)
Adjust based on asset volatility
More volatile assets: use 80/20
Less volatile assets: use 70/30
█ BEST PRACTICES
1. TIMEFRAME SELECTION
• Scalping: 1m, 5m, 15m
• Day trading: 15m, 1H
• Swing trading: 4H, Daily
2. COMBINE WITH PRICE ACTION
• Use support/resistance levels for confirmation
• Look for candlestick patterns at signal points
• Check higher timeframe trend direction
3. RISK MANAGEMENT
• Wave projection is probabilistic, NOT guaranteed
• Always use stop losses
• Don't risk more than 1-2% per trade
• Higher confidence when projection aligns with trend
4. AVOID FALSE SIGNALS
• Skip signals during major news events
• Be cautious of signals against the higher timeframe trend
• Wait for candle close before entering
• Look for confluence with other indicators
5. OPTIMAL CONDITIONS
• Best in trending markets with clear cycles
• Works well on liquid assets (major forex, crypto, indices)
• Less reliable during low volume/choppy conditions
█ ALERTS
The indicator includes 6 built-in alerts:
1. Bullish Crossover - Momentum crosses above signal
2. Bearish Crossover - Momentum crosses below signal
3. Strong Buy Signal - Bullish cross from oversold zone
4. Strong Sell Signal - Bearish cross from overbought zone
5. Entering Overbought - Momentum rising above 70
6. Entering Oversold - Momentum falling below 30
To set alerts:
1. Right-click on the indicator
2. Select "Add Alert"
3. Choose your preferred condition
4. Set notification preferences
█ DISCLAIMER
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss. Always do your own research and consider your financial situation before trading. Use proper risk management and never trade with money you cannot afford to lose.
══════════════════════════════════════════════════════════════════════════════
END OF DESCRIPTION
══════════════════════════════════════════════════════════════════════════════
══════════════════════════════════════════════════════════════════════════════
SHORT DESCRIPTION (For the brief description field)
══════════════════════════════════════════════════════════════════════════════
Advanced momentum oscillator with predictive wave projection. Features adaptive coloring, signal line crossovers, and future momentum path forecasting using damped harmonic oscillation. Includes confidence bands and built-in alerts for scalping and swing trading.
══════════════════════════════════════════════════════════════════════════════
ICT Master: Type-Safe Sessions & FVGsasia, london , new york session and killzones used by ict and other top traders
RAPF Plus - Forecast Cones - Payoff Greeks - Calibration HarnessRAPF+ Manual (v2.2 — “variable ↔ chart label” clarified)
RAPF+ — Forecast Cones + Payoff Greeks + Calibration Harness
──────────────────────────────────────────────────────────────────────────────
0) What this indicator is
──────────────────────────────────────────────────────────────────────────────
RAPF+ is a forecast-and-score system: it predicts a future price range, then later
checks whether that prediction was accurate — and only generates signals whenthe
conditions are trustworthy.
Core idea (the “lightbulb moment”):
You’re not trading a static band. You’re trading “today’s range that was predicted
h bars ago.”
──────────────────────────────────────────────────────────────────────────────
1) Mental Model (Non-Quant Friendly)
──────────────────────────────────────────────────────────────────────────────
Weather Forecast Analogy
- Bollinger Bands are like looking out the window to see if it’s raining now.
- RAPF+ is like checking the forecast made 3 days ago for today, then grading it.
Interpretation:
- If the forecast said “normal range” and the price stays inside the cone:
→ forecast held → “hold/trend environment”
- If price breaks outside the cone:
→ forecast failed → “breakout shock” or “overextension” (depends on mode)
Why this matters:
RAPF+ is about whether the *old forecast* was correct, not just where the price is now.
──────────────────────────────────────────────────────────────────────────────
2) What You See on the Chart (and what the internal variables are called)
──────────────────────────────────────────────────────────────────────────────
Important: Variable names like aUp/aDn/aMid are INTERNAL to the code.
On the chart and in the Data Window, you’ll see them by their PLOT NAMES.
How to read exact values:
- Hover a candle → open TradingView “Data Window” → find this indicator → read plot values.
- Or hover the plotted line to see its value.
- Or enable “Indicators Values” on the right scale to see last values.
A) Forecast Cones (future projections)
These are projected to the right of current candles (offset by H1/H2/H3).
Code variables (forecast for each horizon):
- mid1 / up1 / dn1 = forecast median/upper/lower at Horizon H1 (projected right)
- mid2 / up2 / dn2 = forecast median/upper/lower at Horizon H2 (projected right)
- mid3 / up3 / dn3 = forecast median/upper/lower at Horizon H3 (projected right)
Chart plot names (what users will see):
- “P50 H1”, “Upper H1”, “Lower H1”
- “P50 H2”, “Upper H2”, “Lower H2”
- “P50 H3”, “Upper H3”, “Lower H3”
Use forecast cones for planning (expectations, targets), NOT direct signal triggers.
B) Density Fan (optional)
Layered confidence bands (50–95%) for a selected horizon.
Code variables:
- upDen50/dnDen50 … upDen95/dnDen95 (selected density horizon)
Chart plot names:
- “Den Up 50”, “Den Dn 50”, … “Den Up 95”, “Den Dn 95” (usually hidden; fills visible)
C) Applied Cone (the tradeable one)
This is the cone that actively interacts with the CURRENT candle.
The Applied Cone is a “prediction made h bars ago, applied to today.”
It uses “old” cone values (shifted buffers) and then selects one horizon.
Internal variables (used by signals):
- aMid = applied median line for the selected Signal Horizon (H1/H2/H3)
- aUp = applied upper bound for the selected Signal Horizon
- aDn = applied lower bound for the selected Signal Horizon
Chart plot names (what users will see):
- aMid → “Applied Mid”
- aUp → “Applied Up”
- aDn → “Applied Dn”
Trading cue:
- Signals are generated by price crossing the Applied Cone (aUp/aDn),
meaning price broke outside the range that was predicted h bars ago for today.
Visual cue (important):
- Applied Cone = the one interacting with current candles (now).
- Forecast Cones = projected to the right into the future.
──────────────────────────────────────────────────────────────────────────────
3) The Stats Table (How to Trust It)
──────────────────────────────────────────────────────────────────────────────
The table grades the model across H1/H2/H3:
Coverage (most important)
- “How often did realized price land inside the predicted cone?”
- Target ≈ conf (e.g., 80%)
Interpretation:
- Coverage below target: cones too tight OR regime changed
- Coverage above target: cones conservative (wider than needed)
Dir Acc (Direction Accuracy)
- “How often was the direction of the forecast correct?”
- Compares sign(forecast mid - old spot) vs sign(realized move)
MAE (Mean Absolute Error)
- Average miss from the predicted midline (lower is better)
Avg Width
- Average cone width (how “expensive” the forecast is in range terms)
Warm-up note (important)
- Stats use warmupBars (default 50) to avoid early-history spikes.
- If you see dashes/empty values on load, wait for more bars to load/scroll back.
Horizon selection tip
Pick the horizon that best balances:
- Coverage near/above target
- Dir Acc acceptable
- MAE low
- Width reasonable
──────────────────────────────────────────────────────────────────────────────
4) The Risk Gate (When Signals Matter)
──────────────────────────────────────────────────────────────────────────────
RAPF+ has an explicit “stand down” filter.
Signals are considered valid only when okRisk = YES, based on:
- Trust ≥ Min Trust
- RegimeRisk ≤ Max RegimeRisk
- Coverage(selected horizon) ≥ Min Coverage
- Enough bars have elapsed for that horizon
HUD labels (what users see) vs code variables:
- “RegimeRisk” in HUD = regimeRisk in code
- “Trust” in HUD = trustTrend in code
- “μ(bar)” in HUD = muBar in code
- “σ(bar)” in HUD = sigmaBar in code
- “okRisk YES/no” = okRisk boolean in code
If okRisk = NO:
DEFAULT ACTION = HOLD / reduce risk / stay flat
This is “no signal.” It is a “low-quality environment.”
What RegimeRisk/Trust mean (simple)
- RegimeRisk rises when volatility is high and/or unstable.
- Trust = 1 − RegimeRisk
- Drift (μ) is damped when Trust is low.
──────────────────────────────────────────────────────────────────────────────
5) Buy / Sell / Hold Playbooks
──────────────────────────────────────────────────────────────────────────────
All rules below assume okRisk = YES.
A) Breakout Mode (continuation/trend)
Signal logic:
- BUY/LONG when price crosses above Applied Upper:
• internal: close crosses above aUp
• chart: close crosses above “Applied Up”
- SELL/SHORT when price crosses below Applied Lower:
• internal: close crosses below aDn
• chart: close crosses below “Applied Dn”
Drift direction filter (recommended ON):
- Longs require μ > 0 (muBar > 0)
- Shorts require μ < 0 (muBar < 0)
Management / Hold:
- Long bias while price is above aMid (“Applied Mid”)
- Short bias while price is below aMid (“Applied Mid”)
Exit ideas (choose your style):
- Conservative: exit if price re-enters inside the cone (failed breakout)
- Balanced: exit on cross back through aMid
- Hard stop: exit on cross opposite band
Best conditions for Breakout:
- Coverage at/above target
- Dir Acc decent
- Trust healthy (RegimeRisk contained)
B) Fade Mode (mean reversion/overextension)
Signal logic (opposite philosophy):
- SHORT when price breaks above aUp (“Applied Up”)
- LONG when price breaks below aDn (“Applied Dn”)
Profit logic:
- aMid (“Applied Mid”) is the “magnet” / mean reversion target
- Many traders scale out toward aMid
Re-entry circles (what they mean):
- When the price was outside, then it crossed back INSIDE the Applied Cone.
- In code: reenterFromAbove / reenterFromBelow
- On the chart: small yellow circles near the candle
Use as confirmation that the “shock” is fading and/or as take-profit prompts.
Best conditions for Fade:
- Dir Acc mediocre/low (choppy drift)
- Coverage struggling vs target (more violations)
- RegimeRisk higher (but still within your maxRisk gate)
C) Auto (Cal Error) Mode (adaptive behavior)
If Signal Mode = Auto (Cal Error):
- If realized coverage ≥ target → uses Breakout
- If realized coverage < target → uses Fade
Plain English:
“If my cones are behaving well, ride continuation.
If they’re failing, mean-revert the brakes.”
──────────────────────────────────────────────────────────────────────────────
6) What HOLD Means (3 distinct cases)
──────────────────────────────────────────────────────────────────────────────
Hold Type 1: No-trade hold (risk gate fails)
- If Trust too low OR RegimeRisk too high OR Coverage too low:
→ HOLD / reduce risk / stand down
Hold Type 2: Inside-cone hold (normal noise)
- Inside the Applied Cone is often “business as usual.”
- Breakout traders: wait, avoid impulsive adds
- Fade traders: take profit / don’t overstay
Hold Type 3: Midline bias hold
- aMid (“Applied Mid”) acts like “forecast fair value”
- Above aMid: bullish bias
- Below aMid: bearish bias
- Frequent flips around aMid: chop → prefer Fade or no-trade
──────────────────────────────────────────────────────────────────────────────
7) Setup Checklist (Practical Defaults)
──────────────────────────────────────────────────────────────────────────────
Step 0 — Select Your Timeframe (avoid noise first)
- Daily (1D): Recommended for most crypto assets.
Best balance of signal stability + trend capture.
- Weekly (1W): Use for macro trend bias (Drift check).
Great for direction context, but signals are slower/fewer.
- Intraday (1H/4H): Advanced users only.
Noisier; typically requires:
• Higher confidence (e.g., 0.90+)
• Stricter risk gates (higher Min Trust, higher Min Coverage, lower Max RegimeRisk)
• Patience with calibration stability
Step 1 — Pick Signal Horizon
- H1: quick swing
- H2: typical swing
- H3: position-style
Step 2 — Calibrate Coverage (don’t guess)
- Coverage below target → increase Cone Width Multiplier
- Coverage above target → decrease Cone Width Multiplier
- Optional: enable Auto-calibrate Cone Width (servo toward conf + margin)
Important: Use Cone Width Multiplier for coverage tuning (that’s what it’s for).
Avoid “fixing” coverage by changing cycle settings.
Step 3 — Set risk gates (reasonable baseline)
- Min Trust ≈ 0.45
- Max RegimeRisk ≈ 0.70
- Min Coverage ≈ 0.55+ (raise for fewer, higher-quality trades)
Step 4 — Keep Drift Filter ON (recommended)
Prevents trading against μ (drift direction).
──────────────────────────────────────────────────────────────────────────────
8) Optional: Payoff + Greeks (Advanced Layer)
──────────────────────────────────────────────────────────────────────────────
(Note: The Greeks engine is disabled by default to save performance.
You must enable it in indicator settings to see these metrics.)
If enabled, RAPF+ estimates the expected payoff for Straddle/Call/Put under the model
distribution (with optional fat-tail mixture) plus Δ / Γ / ν / Θ.
Use cases:
- Assess convexity vs mean reversion preference
- Spot/vol sensitivity awareness
- Horizon comparisons for “optionality-like” behavior
If you’re a spot-only trader, you can ignore this section.
──────────────────────────────────────────────────────────────────────────────
9) One-Page Rules Card
──────────────────────────────────────────────────────────────────────────────
PRE-CHECK
- Choose timeframe (prefer 1D for most crypto)
- Choose signal horizon (H1/H2/H3)
- Prefer horizon with good Coverage and acceptable Dir Acc
- Trade only if okRisk = YES
BREAKOUT MODE
- Buy on cross above “Applied Up” (aUp) (μ>0 if drift filter ON)
- Sell/short on cross below “Applied Dn” (aDn) (μ<0 if drift filter ON)
- Hold while aligned with “Applied Mid” (aMid)
- Exit on re-entry / aMid cross / opposite band (your style)
FADE MODE
- Short on break above “Applied Up” (aUp)
- Long on break below “Applied Dn” (aDn)
- Target “Applied Mid” (aMid) as the mean reversion magnet
- Re-entry circles confirm the “shock fade”
STAND DOWN
- If okRisk = NO → HOLD / reduce risk / no-trade
──────────────────────────────────────────────────────────────────────────────
Quick Glossary
──────────────────────────────────────────────────────────────────────────────
H1/H2/H3: Forecast horizons in bars
conf: Desired coverage probability (e.g., 0.80)
Coverage: % of times realized price stayed inside the cone
Dir Acc: % of times direction was correct
MAE: Avg error vs forecast midline
Width: Avg cone width (upper-lower)/spot
RegimeRisk: Combined “vol high/unstable” score
Trust: 1 − RegimeRisk (how much to trust drift)
μ(bar): Estimated per-bar drift (directional bias)
σ(bar): Estimated per-bar volatility
Applied Cone (present, tradeable):
- aMid / aUp / aDn are internal variables
- On the chart/Data Window, they appear as:
aMid = “Applied Mid”
aUp = “Applied Up”
aDn = “Applied Dn”
Forecast Cones (future projections):
- mid1/up1/dn1 (H1), mid2/up2/dn2 (H2), mid3/up3/dn3 (H3)
- On the chart, they appear as:
“P50 H1/Upper H1/Lower H1”, etc.
ilker %90This strategy is a short-term momentum approach based on moving averages and volume. Studies show it performs more effectively on the 1-hour and 4-hour timeframes. Take-profit and stop-loss distances are kept short, resulting in a high win rate, while the profit factor ranges between 1.4 and 2.
RSI Divergence + RSI Indicator MegartCombined RSI Divergence Indicator and RSI.
Highlights important RSI levels 70–80–90 and 30–20–10.
All calculations are always based on standard Japanese candlesticks, even when used on other chart types.
HTF Balanced Price RangeThis script is based off of TradeForOpp's BPR indicator, but I adapted it to work on higher timeframes
Market Breadth & Sector Rotation Analyzer -[KK]A real-time market environment analyzer for NSE India built for swing traders and breakout traders.
Designed to answer one question before every trade: Should I take this trade today?
What This Indicator Does
Analyzes 33 NSE indices across market cap, sectors, themes, and volatility to deliver a complete snapshot of current market health, sector rotation, and risk conditions. Shows only live conditions with no historical clutter.
Market Breadth Score 0–100
Composite score based on 30 percent market cap breadth, 40 percent sector breadth using 19 sectors above 50 MA, 25 percent long-term momentum using 200 MA, and 5 percent India VIX for volatility and fear assessment.
Actionable Trading Guidance
Automatically classifies market regime as Bull, Trending, Neutral, or Bear. Provides clear trade guidance, position sizing recommendations, and sector focus based on current market conditions.
Sector Rotation Analysis
Groups sectors into five mega sectors.
Financial: Banks, Private Banks, PSU Banks, Finance, Financial Services
Technology: IT, Services, Media
Cyclical: Auto, Metal, Realty, Infra, Energy, Oil and Gas
Defensive: FMCG, Pharma, Healthcare
Consumer: Consumer Durables, Consumption
Market Phase Detection
Identifies Expansion, Recovery, Defensive, Contraction, or Rotation phases based on sector leadership. Helps align trades with the broader economic cycle.
Trading Rules by Market Breadth
75 to 100: Bull market, trade all quality setups with full position size
60 to 75: Trending market, selective trades with normal size
40 to 60: Neutral market, very selective trades with 50 percent size
Below 40: Bear market, raise cash and use minimal exposure
Sector Strength Interpretation
Above 80 percent: Leading sector, trade aggressively
60 to 80 percent: Strong sector, good opportunities
40 to 60 percent: Weak sector, be selective
Below 40 percent: Avoid or use minimal exposure
Defensive Sector Logic
High defensive strength signals fear, not strength. Defensive above 70 percent with weak technology indicates market topping. Defensive below 40 percent indicates a risk-on environment.
Indices Covered
Market Cap: NIFTY, CNX100, CNX500, NIFTY Total Market, NIFTY Midcap 150, CNX Midcap, NIFTY Mid Small 400, NIFTY Small-cap 250, NIFTY 500 Multicap, NIFTY IPO
Banking and Finance: BANKNIFTY, NIFTY Private Bank, CNX PSU Bank, CNX Finance, NIFTY Fin Service 25 50
Technology: CNX IT, CNX Service, CNX Media
Cyclicals: CNX Auto, CNX Metal, CNX Realty, CNX Infra
Energy: CNX Energy, NIFTY Oil and Gas, CPSE
Defensives: CNX FMCG, CNX Pharma, NIFTY Healthcare
Consumer: NIFTY Consumer Durables, CNX Consumption
Thematic: NIFTY MNC, NI15
Volatility: India VIX
Market Alerts
Bull Market alert when breadth crosses above 75
Bear Market alert when breadth drops below 40
Broad Rally alert when more than 75 percent of sectors are bullish
Settings
Table position with 9 placement options, table size from Tiny to Large, customizable short and long moving averages. Default settings are Top Right position, Normal size, 50 MA and 200 MA.
Best Useful Script for
Ideal for swing traders, breakout traders, position traders, and NSE equity traders who need market context before taking trades. Not suitable for scalping, day trading, or non-NSE markets.
Disclaimer
This indicator is for educational purposes only and does not constitute any kind of financial advice to buy/sell any financial securities.
Trading involves risk and past performance does not guarantee future results.
Adaptive Momentum Oscillator [AMO]# Adaptive Momentum Oscillator
## Description
**What it does:**
AMO measures buying vs selling pressure by weighting price changes with volume. It automatically adjusts smoothing based on market conditions - faster response in trends, more filtering in choppy markets.
**How it works:**
1. Calculates market efficiency (trending vs choppy)
2. Applies adaptive smoothing to volume
3. Measures volume-weighted bullish/bearish momentum
4. Outputs normalized 0-100 oscillator
**How to read:**
- Above 50 = Bullish momentum (blue zone)
- Below 50 = Bearish momentum (red zone)
- Above 60 = Overbought, watch for reversal
- Below 40 = Oversold, watch for bounce
**Signals:**
- ◆ Blue at 50: Bullish shift (potential long entry)
- ◆ Red at 50: Bearish shift (potential short entry)
- ▽ at 75: Overbought warning
- △ at 25: Oversold warning
**Settings:**
- Lookback Period: Lower = more signals, Higher = smoother
- Adaptation Period: Controls efficiency calculation speed
**Use as:** Trend confirmation, entry timing, or exit signals when reaching extreme zones.
SMC Market Structure (HH/HL/LH/LL + BOS/CHoCH/MSS)SMC Market Structure (HH/HL/LH/LL + BOS/CHoCH/MSS) is a clean price-action / Smart Money Concepts market structure tool designed to automatically identify and label key structural events on the chart:
Swing structure points: HH, HL, LH, LL
Continuation confirmations: BOS (Break of Structure)
Early reversal warnings: CHoCH (Change of Character)
Stronger reversal signals: MSS (Market Structure Shift) using a displacement filter
The script is built to remain visually tidy: it draws simple horizontal structure lines at the broken swing level and prints small abbreviations (BOS / CHoCH / MSS) directly on the chart without cluttering candles or adding heavy panels.
What the Indicator Detects
1) Swing Points (HH / HL / LH / LL)
Swings are detected using confirmed pivots (left/right “Swing length” bars).
HH (Higher High): a swing high above the previous swing high
LH (Lower High): a swing high below the previous swing high
HL (Higher Low): a swing low above the previous swing low
LL (Lower Low): a swing low below the previous swing low
These labels help define the market’s active structure:
Bullish structure: HH + HL sequence
Bearish structure: LL + LH sequence
Range / consolidation: mixed swing progression
2) BOS (Break of Structure) – Trend Continuation
A BOS prints when price breaks the most recent swing level in the direction of the current structure:
In a bullish market state → break above the most recent swing high
In a bearish market state → break below the most recent swing low
This is typically treated as confirmation that the existing trend is continuing.
3) CHoCH (Change of Character) – Early Reversal Signal
A CHoCH prints on the first break against the current structure:
In a bullish market state → break below the most recent swing low
In a bearish market state → break above the most recent swing high
CHoCH is intended as an early warning that the market may be transitioning into a new directional bias.
4) MSS (Market Structure Shift) – Stronger Reversal via Displacement
MSS is treated as a “strong CHoCH” and requires a decisive, displacement-style candle at the break.
To qualify as MSS, the script requires:
A break against structure with a CLOSE break, and
A displacement candle where:
Candle body > ATR × Displacement Multiplier
This helps filter out shallow wicks or minor liquidity grabs and highlights shifts that show stronger participation and momentum.
How the Indicator Draws on the Chart
When a BOS / CHoCH / MSS occurs:
A horizontal line is drawn from the swing point to the break bar at the broken level.
A small abbreviation label (BOS / CHoCH / MSS) is placed either:
In the middle of the line segment, or
On the break bar (selectable)
Swing labels (HH/HL/LH/LL) are optional and can be disabled for a cleaner “event-only” layout.
Inputs & Settings
Swing Length (Pivot Left/Right)
Controls how sensitive the swing detection is.
Lower values (3–5): more structure points, more signals
Higher values (8–14): fewer, cleaner swings (better for higher timeframes)
Break Confirmation (Wick vs Close)
Wick: break triggers when the candle’s wick crosses the swing level
Close: break triggers only when the candle closes beyond the swing level
Many SMC traders prefer Wick for detecting liquidity runs and early breaks, while others prefer Close to reduce false signals.
MSS Displacement Filter
ATR Length: ATR calculation period
Displacement Multiplier: Minimum body size = ATR × multiplier
Higher multiplier = fewer MSS signals, but stronger quality threshold.
Display Toggles
Show/Hide Swing Labels (HH/HL/LH/LL)
Show/Hide BOS, CHoCH, MSS
Optional EQH/EQL labeling (equal highs/lows)
Visual Controls
Bullish / bearish structure colors
Line width / style
Text offset (in ticks) to keep labels neat above/below level
Maximum structure objects to keep on screen (prevents object-limit issues)
Recommended Usage
Trend Following
Use HH/HL or LL/LH progression to define the trend.
Wait for BOS to confirm continuation.
Use BOS levels as:
Bias confirmation
Potential retest zones
Risk reference for stop placement
Reversal / Shift Detection
Identify prevailing structure (bullish or bearish).
Watch for CHoCH as the first sign of a possible reversal.
Treat MSS as a stronger “shift” event (displacement + close break), often suitable for:
Changing directional bias
Switching from pullback trading to reversal continuation setups
Multi-Timeframe Workflow (Common SMC Method)
Higher timeframe (HTF): use swings and BOS to define macro bias
Lower timeframe (LTF): use CHoCH/MSS to time entries and manage risk
Confirm entries with your preferred tools (order blocks, FVGs, liquidity pools, session timing, etc.)
Notes & Limitations
This script uses confirmed pivots, so swing labels appear only after the swing is fully formed (after Swing length bars). This avoids repainting swing points.
BOS/CHoCH/MSS events are derived from the most recent confirmed swing levels.
MSS requires a close break and displacement threshold even if “Wick” breaks are enabled for other events (by design, to keep MSS strict).
Best Settings by Timeframe (General Guide)
Scalping (1–5m): Swing length 3–5, Wick breaks, MSS multiplier 1.2–1.8
Intraday (15m–1h): Swing length 5–8, Wick or Close, MSS multiplier 1.5–2.0
Swing trading (4h–1D): Swing length 8–14, Close breaks, MSS multiplier 1.8–2.5






















