online Moment-Based Adaptive Detection🙏🏻 oMBAD (online Moment-Based Adaptive Detection): adaptive anomaly || outlier || novelty detection, higher-order standardized moments; at O(1) time complexity
For TradingView users: this entity would truly unleash its true potential for you ‘only’ if you work with tick-based & seconds-based resolutions, otherwise I recommend to keep using original non-online MBAD . Otherwise it may only help with a much faster backtesting & strategy development processes.
...
Main features :
O(1) time complexity: the whole method works @ O(1) time complexity, it’s lighting fast and cheap
HFT-ready: frequency, amount and magnitude of data points are irrelevant
Axiomatic: no need to optimize or to provide arbitrary hyperparameters, adaptive thresholds are completely data-driven and based on combination of higher-order central moments
Accepts weights: the method can gain additional information by accepting weights (e.g. volume weighting)
Example use cases for high-frequency trading:
Ordeflow analysis: can be applied on non-aggregated flow of market orders to gauge its imbalance and momentum
Liquidity provision: can be applied to high-resolution || tick data to place and dynamically adjust prices of limit orders
ML-based signals: online estimates of higher-order central moments can be used as features & in further feature engineering for trading signal generation
Operation & control: can be applied on PnL stream of your strategy for immediate returns analysis and equity control
Abstract:
This method is the online version of originally O(n) MBAD (Moment-Based Adaptive Detection) . It uses higher-order central & standardized moments to naturally estimate data’s extremums using all data while not touching order-statistics (i.e. current min and max) at all. By the same principles it also estimates “ever-possible” values given the data-generating process stays the same.
This online version achieves reduced time complexity to O(1) by using weighted exponential smoothing, and in particular is based on Pebay et al (2008) work, which provides mathematically correct results for the moments, and is numerically stable, unlike the raw sum-based estimates of moments.
Additionally, I provide adjustments for non-continuous lattice geometry of orderbooks, and correct re-quantization math, allowing to artificially increase the native tick size.
The guidelines of how to adjust alpha (smoothing parameter of exponential smoothing) in order to completely match certain types of moving averages, or to minimize errors with ones when it’s impossible to match; are also provided.
Mathematical correctness of the realization was verified experimentally by observing the exact match with the original non-recursive MBAD in expanding window mode, and confirmed by 2 AI agents independently. Both weighted and non-weighted versions were tested successfully.
...
^^ On micro level with moving window size 1
^^ With artificial tick size increase, moving window size 64
^^ Expanding window mode anchored to session start
^^ Demonstrates numerical stability even on very large inputs
...
∞
Băng tần và kênh
Momentum Gamma StraddleExact definition of what that script does
1) Purpose
The script is a decision aid for intraday expiry-day ATM straddle trades. It detects intraday structure breakouts and signals candidate long straddle entries for Nifty or Sensex using price structure, volume, RSI momentum, and a user-supplied combined ATM premium value (CE + PE). It draws support/resistance, shows an info box, and raises alerts.
2) Inputs the user can change
Trading time window: startHour, startMin, endHour, endMin.
Structure lookback: res_lookback (how many candles to use to compute resistance/support).
Minimum candle body as fraction of candle range: min_body_pct.
Volume multiplier threshold: vol_mult (breakout candle volume must exceed vol_mult * sma5).
RSI length and thresholds: rsi_len, rsi_bull_thresh, rsi_bear_thresh.
Combined premium source: choose Manual or Symbol. If Manual, set manual_combined. If Symbol, provide a TradingView symbol that returns CE+PE combined ATM premium.
Combined premium acceptable band: min_combined_ok and max_combined_ok.
Profit target percent and SL percent (target_pct and sl_pct).
Misc pattern heuristics: min_res_hits (min tests of resistance inside lookback), low_slope_min (used to detect rising lows).
Micro-confirmation toggle, micro timeframe, nonrepaint option, show_entry_label toggle (in the later fixed versions some of these were added, but the earlier fixed script had basic combined_symbol options and a lookahead fallback).
3) Data calculated on each bar
Safety check hasEnough: true when bar_index >= res_lookback.
resistance: the highest high over res_lookback bars.
support: the lowest low over res_lookback bars.
res_hits: count of bars within lookback whose high is within a tolerance of resistance. Tolerance is 10 percent of the range between resistance and support.
low_slope: simple slope of lows over res_lookback bars.
body_pct: the candle body as a fraction of its high-low range. strong_body true when body_pct >= min_body_pct.
bull_breakout: true if hasEnough and current close > resistance and strong_body and res_hits >= min_res_hits.
bear_breakout: true if hasEnough and current close < support and strong_body and res_hits >= min_res_hits.
vol_sma5 and vol_ok: vol_ok true when current volume > vol_mult * vol_sma5.
rsi and rsi checks: rsi_bull_ok true if rsi >= rsi_bull_thresh; rsi_bear_ok true if rsi <= rsi_bear_thresh.
combined_premium: either the manual_combined input or the value read from combined_symbol via request.security. The script attempted a fallback to manual when the symbol was not valid.
combined_ok: true if combined_premium lies between min_combined_ok and max_combined_ok.
final signals: bull_signal when in_time_window and bull_breakout and vol_ok and rsi_bull_ok and combined_ok. bear_signal similar for bearish breakout.
4) Visual output and alerts
Plots resistance and support lines on the chart.
Plots a label shape "STRADDLE BUY" below the bar for bull_signal and above the bar for bear_signal.
Creates an info label (on last bar) that shows TimeOK, VolOK and vol ratio, RSI, Combined premium and whether it is OK, ResHits and LowSlope.
Sets two alertcondition events: "Bull Straddle BUY" and "Bear Straddle BUY" with a short candidate message. The alerts fire when the corresponding signal is true.
5) Execution assumptions you must follow manually
The script does not place any orders or compute option strike-level prices or greeks. It only flags candidate entry bars.
When combined_source is Manual you must type CE+PE yourself. The indicator will only accept the manual number and treat it as the combined premium.
When combined_source is Symbol the script uses request.security to read that symbol. For historical bars the indicator may repaint depending on lookahead settings. The earlier fixed script attempted to use request.security inside a conditional which leads to runtime or compile errors. You experienced that exact error.
6) Known implementation caveats and bugs you encountered
Pine typing issue with low_slope. The earlier version set low_slope = na without explicit type. That triggers the Pine error: "Value with NA type cannot be assigned to a variable that was defined without type keyword". This required changing to float low_slope = na.
The earlier version attempted to call request.security() inside an if block or conditional. Pine prohibits request.security in conditional blocks unless allowed patterns are followed. That produced the error you saw: "Cannot use request.* call within loops or conditional structures" or similar. The correct pattern is to call request.security at top-level and decide later which value to use.
If combined_symbol is invalid or not available on your TradingView subscription, request.security can return na and the script must fall back to manual value. The earlier fixed script attempted fallback but compiled errors prevented reliable behavior.
The earlier script did not include micro-confirmation or advanced nonrepaint controls. Those were added in later versions. Because of that, the earlier script may have given signals that appear to repaint on historical bars or may have thrown errors when using combined_symbol.
7) Decision logic summary (exact)
Only operate if current chart time is inside user set time window.
Only consider trade candidates when enough history exists for res_lookback.
Identify a resistance level as the highest high in the lookback. Count how many times that resistance was tested. Ensure the breakout candle has a strong body and volume spike. Ensure RSI is aligned with breakout direction.
Require combined ATM premium to be inside a user preferred band. If combined_symbol is used the script tries to read that value and use it; otherwise it uses manual_combined input.
If all the above conditions are true on a confirmed bar, the script plots a STRADDLE BUY label and triggers an alertcondition.
8) What the script does not do
It does not calculate CE and PE prices by strike. It only consumes or accepts combined premium number.
It does not compute greeks, IV, or OI. OI and IV checks must be done manually.
It does not manage positions. No SL management or automatic exits are executed by the script.
It does not simulate fills or account for bid/ask spreads or slippage.
It cannot detect off-exchange block trades or read exchange-level auction states beyond raw volume bars.
It may repaint historical labels if the combined_symbol was read with lookahead_on or the script used request.security in a way that repainted. The corrected final version uses nonrepaint options.
9) Manual checks you must always perform even when the script signals BUY
Confirm the live combined ATM premium and the bid/ask for CE and PE.
Check ATM IV and recent IV movement for a potential IV crush risk.
Check option OI distribution and recent OI changes for strike pinning or large player exposure.
Confirm CE and PE liquidity and depth. Wide spreads make fills unrealistic.
Confirm there is no scheduled news or auction within the next few minutes.
Confirm margin and position sizing fits your risk plan.
10) Quick testing checklist you can run now
Add the script to a 5-minute chart with combined_source = Manual.
Enter manual_combined equal to the real CE+PE at the moment you test.
Set startHour and endHour so the in_time_window is true for current time.
Look for STRADDLE BUY label on confirmed bars. Inspect the info box to see why it did or did not signal.
If you set combined_source = Symbol, verify the symbol exists and that TradingView returns values for it. If you previously saw the request.security error, that was caused by placing the request inside a conditional. The correct behavior is to call request.security unconditionally at top-level like in the final fixed version.
BVWY Stamp WatermarkOverview
This script creates a clean, compact watermark “stamp” for your charts — combining a custom title/subtitle with symbol info (ticker, timeframe, date) in one neat block. It’s designed for traders and educators who want their charts branded and professional without clutter.
Features
• 🖋️ Customizable title and subtitle (default: RICH BVYWY)
• 📊 Symbol info line with independent toggles for ticker, timeframe, and date
• 🎨 Full control over colors, sizes, alignment, and background opacity
• 📍 Position anywhere on the chart (top/middle/bottom, left/center/right)
• 🪶 Lightweight and efficient — no redundant tables or clearing logic
Use Cases
• Branding your shared charts with a signature watermark
• Teaching and documentation — stamp your visuals with context and identity
• Clean overlays for presentations, reports, or social media posts
Notes
This script is built with Pine Script v5 and follows TradingView’s style guide for clarity and efficiency. It’s streamlined to overwrite cells each bar, ensuring smooth performance without flicker or lag
Two individual BB - AxeThis indicator combines two Bollinger Bands into a single script, designed for traders who utilize dual-band strategies but want to keep their chart and indicator list clean.
Instead of adding two separate indicators, this script allows you to manage two Bollinger Bands within one interface. It maintains the full flexibility of the classic Bollinger Bands while adding independent toggles for better visibility control.
Long an Short Liq filter rev 3.0 /nnaCan help you to see horizontal Liquidation maps on cryptocurrency market. Script created to help you with EP. Calibration parameters for different coins could be different. Write me in Dm. i can help you with that
BALA'S Indicator - Dynamic + 5-Min + Pre-Market LevelsINTRADAY Strategy on Nifty with 15min Candle Setup.
CloudScore by ExitAnt [Upgrade]📘 CloudScore PRO by ExitAnt (v13)
CloudScore PRO는 일목균형표(REAL Ichimoku Cloud)의 ‘진짜 상방 돌파’만을 감지하고,
여기에 총 10가지 추세·모멘텀·패턴·거래량 요소를 점수화하여 (0~9점)
현재 추세 전환의 강도를 직관적으로 알려주는 고급 추세 분석 지표입니다.
일목 구름은 본래 강력한 추세 전환 신호를 제공하지만
“위→안→위” 또는 “부분 돌파” 같은 왜곡 신호가 매우 많습니다.
v13은 이를 완전히 제거하고,
오직 아래→안→위 또는 아래→위(직통) 형태의 ‘진짜 돌파’에서만 점수를 계산합니다.
🎯 지표 목적
* 진짜 일목구름 돌파만 필터링하여 신뢰도 상승
* 10개 기술 요소의 점수화(0~9점)로 한눈에 추세 강도 판단
* 거짓 진입 신호(위→안→위) 완전 제거
* 점수 0일 때도 ‘🔴’로 명확하게 무효 신호 표시
* 초보자부터 숙련자까지 모두 활용 가능한 추세 진입 필터링 지표
🧠 점수 계산 방식 (가중치 기반)
구름 돌파가 유효하게 발생하면,
아래 10가지 조건을 체크하여 각 항목별 가중치 점수가 합산됩니다.
▶ 기존 +1 점 항목 (5개)
1. 골든 크로스 발생
Fast MA가 Slow MA를 최근 N봉 내 상향 돌파
2. RSI 과매도 구간
RSI < 설정값 → 반등 가능성 증가
3. MACD 강세 전환
MACD < 0 & 시그널 상향 돌파
4. RSI 상승 다이버전스
가격 하락, RSI 상승 → 바닥 가능성
5. 종가 > MA200
장기 추세와 일치하는 경우만 점수 강화
▶ 신규 +1 점 항목 (추가 5개)
6. ADX > 20 (추세 강도)
추세가 실제로 형성되고 있을 때
7. 거래량 스파이크 발생
거래량이 평균 대비 일정 배수 이상 증가 → 큰 매수 유입
8. Stochastic Oversold Cross
%K < 30에서 골든크로스 → 저점 반등 신호
9. Bollinger Band Rebound
이전 봉이 하단 밴드를 이탈하고, 현재 봉이 중심선을 회복한 경우
10. 강세 캔들 패턴 (Bullish Engulfing / Hammer 등)
강한 반전 패턴 발생 시
> 점수는 단순 +1 합산이 아니라
> 각 요소의 중요도에 따른 가중치 합산 방식으로 계산됩니다.
📊 점수별 이모지 (8단계)
| 점수 구간 | 이모지 | 의미 |
| -------- | ------ | -------------- |
| ≤ 0 | 🔴 | 무효 신호 |
| 0 ~ 1 | ⚪ | 매우 약함 |
| 1 ~ 2 | 🟡 | 약함 |
| 2 ~ 3 | 🟢 | 관찰 필요 |
| 3 ~ 4 | 🔵 | 양호 |
| 4 ~ 5 | 📈 | 추세 형성 |
| 5 ~ 6.5 | 🚀 | 매우 강함 |
| **6.5+** | **👑** | **최상급 고신뢰 구간** |
> 👑 이모지는 6.5점 초과에서만 표시되며,
> 여러 핵심 조건이 동시에 충족된 극소수 구간에서만 나타납니다.
🖥 차트 표시 요소
* REAL Ichimoku Cloud(미래 이동 없는 실제 구름)을 기반으로 계산
* TRUE breakout(아래 → 위 돌파) 시 캔들 위에 점수 이모지 표시
* 최근 N개의 캔들만 표시 가능
* 우측 상단에 현재 점수 요소 설명 패널 표시
* 점수 0점일 때도 🔴 표시하여 신호의 부재를 명확히 표현
* 위→안→위처럼 잘못된 돌파는 완전히 제외됨
🔧 사용자 설정
* Tenkan / Kijun / SenkouB 기간 설정
* 점수 요소 개별 활성화/비활성화
* 이모지 커스터마이즈
* 최근 몇 개의 캔들까지 표시할지 설정
* MA, RSI, MACD, ADX, Bollinger 등 점수 요소 사용자 정의 가능
⚠️ 유의사항
이 지표는 일목구름 돌파 기반의 확률적 보조 도구이며,
단독으로 매수·매도 결정을 내리는 용도로 사용해서는 안 됩니다.
* 시장 변동성
* 시간 프레임
* 거래량 환경
에 따라 신호 강도는 달라질 수 있습니다.
실제 매매 적용 전 반드시 백테스트 및 시뮬레이션을 권장합니다.
오케이. 그럼 **지금 네 코드(v13, 가중치 + 8단계 이모지 기준)** 와
**완전히 1:1로 맞는 영어 설명 최종본**을 줄게.
(퍼블릭 배포용으로 그대로 써도 되는 수준)
# 📘 **CloudScore PRO by ExitAnt (v13)**
CloudScore PRO is an advanced **Ichimoku-based trend scoring indicator**
that detects only **true, valid Ichimoku Cloud breakouts** and evaluates the
strength of the trend using a **weighted score system built from 10 technical components**.
Unlike standard Ichimoku signals — which often generate distorted breakouts such as
**“above → inside → above”** —
CloudScore PRO v13 **filters these out completely** and only accepts the following structures as valid breakouts:
* **below → inside → above**
* **below → above (direct breakout)**
This ensures that scoring is applied **only when a genuine trend transition occurs**.
## 🎯 Purpose of the Indicator
* Filter out false Ichimoku Cloud breakouts
* Evaluate trend strength using **10 weighted confirmation signals**
* Visualize trend quality instantly using **8-stage emoji scoring**
* Clearly mark invalid signals (score ≤ 0)
* Serve as a robust **entry filter** for both beginners and advanced traders
## 🧠 Scoring Logic (Weighted System)
When a valid cloud breakout occurs, CloudScore PRO evaluates the following
10 components and **adds weighted scores based on their importance**.
### ▶ Core Trend & Momentum Components (5)
1. **Golden Cross**
* Fast MA crosses above Slow MA within the defined lookback period
2. **RSI Oversold Condition**
* RSI below threshold, indicating potential reversal
3. **MACD Bullish Shift**
* MACD below zero with bullish signal-line crossover
4. **RSI Bullish Divergence**
* Price makes a lower low while RSI makes a higher low
5. **Close Above MA200**
* Price aligned with the long-term trend direction
### ▶ Additional Confirmation Components (5)
6. **ADX Trend Strength**
* Confirms that a real trend is forming
7. **Volume Spike**
* Significant increase in trading volume vs average
8. **Stochastic Oversold Cross**
* %K crosses upward below the 30 level
9. **Bollinger Band Rebound**
* Price recovers after breaking below the lower band
10. **Bullish Candlestick Pattern**
* Engulfing, Hammer, or similar reversal patterns
> Scores are **not simple +1 increments**.
> Each component contributes a **weighted value**, reflecting its real-world importance.
## 📊 Emoji Score System (8 Levels)
| Score Range | Emoji | Meaning |
| ----------- | ------ | ---------------------------------- |
| ≤ 0 | 🔴 | Invalid / no signal |
| 0 ~ 1 | ⚪ | Very weak |
| 1 ~ 2 | 🟡 | Weak |
| 2 ~ 3 | 🟢 | Moderate |
| 3 ~ 4 | 🔵 | Decent |
| 4 ~ 5 | 📈 | Trend forming |
| 5 ~ 6.5 | 🚀 | Very strong |
| **6.5+** | **👑** | **Premium, high-confidence setup** |
👑 **The crown emoji appears only when the total weighted score exceeds 6.5**,
meaning multiple high-importance conditions are aligned simultaneously.
This prevents “emoji inflation” and ensures that premium signals remain rare and meaningful.
## 🖥 Chart Features
* Uses **REAL Ichimoku Cloud** (no future displacement)
* Displays score emojis directly on breakout candles
* Supports LONG / SHORT / BOTH modes
* Optional display limited to the most recent N bars
* Top-right panel explains scoring structure and logic
* Completely ignores false breakouts (above → inside → above)
## 🔧 User Options
* Adjust Ichimoku, MA, RSI, MACD, ADX parameters
* Enable or disable individual scoring components
* Fully customize emoji symbols
* **Display only signals above a chosen minimum score**
* e.g. show only 👑 setups by setting minimum score to 6.5
## ⚠️ Disclaimer
CloudScore PRO is a **probability-based trend evaluation tool**,
not a standalone buy or sell signal.
Signal strength may vary depending on:
* Market volatility
* Timeframe
* Volume environment
Always perform proper backtesting and apply sound risk management
before using this indicator in live trading.
JH MantraBAND-C + AlphaWave Signals v1.3 (Clean)AlphaWave는 추세 + 눌림 + 반전을 하나의 흐름으로 묶은 트레이딩 시그널입니다.
• 20 HMA 기반 추세 판단
• 변동성 밴드 구간(상·하단)에서의 눌림/되돌림 포착
• 과도한 신호를 줄이고 확률 높은 구간만 표시
권장 타임프레임:
- 3분 / 5분 (단타, 스캘핑)
- 일봉 (추세 확인용)
※ 이 지표는 신호 남발을 피하고,
‘기다렸다가 들어가는 매매’를 목표로 설계되었습니다.
AlphaWave is a trend-following indicator designed to capture pullbacks and reversals within volatility zones.
• 20 HMA based trend structure
• Upper / lower volatility bands for context
• Filtered signals to reduce noise
Best used on:
- 3m / 5m intraday charts
- Daily charts for trend confirmation
This indicator focuses on patience and high-probability setups.
Bollinger Bands Forecast [QuantAlgo]🟢 Overview
Bollinger Bands are widely recognized for mapping volatility boundaries around price action, but they inherently lag behind market movement since they calculate based on completed bars. The Bollinger Bands Forecast addresses this limitation by adding a predictive layer that attempts to project where the upper band, lower band, and basis line might position in the future. The indicator provides three unique analytical models for generating these projections: one examines swing structure and breakout patterns, another integrates volume flow and accumulation metrics, while the third applies statistical trend fitting. Traders can select whichever methodology aligns with their market view or trading style to gain visibility into potential future volatility zones that could inform position planning, risk management, and timing decisions across various asset classes and timeframes.
🟢 How It Works
The core calculation begins with traditional Bollinger Bands: a moving average basis line (configurable as SMA, EMA, SMMA/RMA, WMA, or VWMA) with upper and lower bands positioned at a specified number of standard deviations away. The forecasting extension works by first generating predicted price values for upcoming bars using the selected method. These projected prices then feed into a rolling calculation that simulates how the basis line would update bar by bar, respecting the mathematical properties of the chosen moving average type. As each new forecasted price enters the calculation window, the oldest historical price drops out, mimicking the natural progression of the moving average. The system recalculates standard deviation across this evolving price window and applies the multiplier to determine where upper and lower bands would theoretically sit. This process repeats for each of the forecasted bars, creating a connected chain of potential future band positions that render as dashed lines on the chart.
🟢 Key Features
1. Market Structure Model
This forecasting approach interprets price through the lens of swing analysis and structural patterns. The algorithm identifies pivot highs and lows across a definable lookback window, then tracks whether price is forming higher highs and higher lows (bullish structure) or lower highs and lower lows (bearish structure). The system looks for break of structure (BOS) when price pushes beyond a previous swing point in the trending direction, or change of character (CHoCH) when price starts creating opposing swing patterns.
When projecting future prices, the model considers current distance from recent swing levels and the strength of the established trend (measured by counting higher highs versus lower lows). If bullish structure dominates and price sits near a swing low, the forecast biases upward. Conversely, bearish structure near a swing high produces downward bias. ATR scaling ensures the projection magnitude relates to actual market volatility.
Practical Implications for Traders:
Useful when you trade based on swing points and structural breaks
The Structure Influence slider (0 to 1) lets you dial in how much weight structure analysis carries versus pure trend
Helps visualize where bands could form around key structural levels you're watching
Works better in trending conditions where structure patterns are clearer
Might be less effective in choppy, sideways markets without defined swings
2. Volume-Weighted Model
This method attempts to incorporate volume flow into the price forecast. It combines three volume-based metrics: On-Balance Volume (OBV) to track cumulative buying/selling pressure, the Accumulation/Distribution Line to measure money flow, and volume-weighted price changes to emphasize moves that occur on high volume. The algorithm calculates the slope of these indicators to determine if volume is confirming price direction or diverging from it.
Volume spikes above a configurable threshold are flagged as potentially significant, with the direction of the spike (whether it occurred on an up bar or down bar) influencing the forecast. When OBV, A/D Line, and volume momentum all align in the same direction, the model projects stronger moves. When they conflict or show weak volume support, the forecast becomes more conservative.
Practical Implications for Traders:
Relevant if you use volume analysis to confirm price moves
More meaningful in markets with reliable volume data
The Volume Influence parameter (0 to 1) controls how much volume factors into the projection
Volume Spike Threshold adjusts sensitivity to what constitutes unusual volume
Helps spot scenarios where volume doesn't support a move, suggesting possible consolidation
Might be less effective in low-liquidity instruments or markets where volume reporting is unreliable
3. Linear Regression Model
The simplest of the three methods, linear regression fits a straight line through recent price data using least-squares mathematics and extends that line forward. This creates a clean trend projection without conditional logic or interpretation of market characteristics. The forecast simply asks: if the recent trend continues at its current rate of change, where would price be in 10 or 20 bars?
Practical Implications for traders:
Provides a neutral, mathematical baseline for comparison
Works well when trends are steady and consistent
Can be useful for backtesting since results are deterministic
Requires minimal configuration beyond lookback period
Might not adapt to changing market conditions as dynamically as the other methods
Best suited for trending markets rather than ranging or volatile conditions
🟢 Universal Applications Across All Models
Regardless of which forecasting method you select, the indicator projects future Bollinger Band positions that may help with:
▶ Pre-planning entries and exits: See where potential support (lower band) or resistance (upper band) might develop before price gets there
▶ Volatility context: Observe whether forecasted bands are widening (suggesting potential volatility expansion) or narrowing (possible compression or squeeze setup)
▶ Target setting: Reference projected band levels when determining profit targets or stop placement
▶ Mean reversion scenarios: Visualize potential paths back toward the basis line when price extends to a band extreme
▶ Breakout anticipation: Consider where upper or lower bands might sit if price begins a strong directional move
▶ Strategy development: Build trading rules around forecasted band interactions, such as entering when price is projected to return to the basis or exit when forecasts show band expansion
▶ Method comparison: Switch between the three forecasting models to see if they agree or diverge, potentially using consensus as a confidence filter
It's critical to understand that these forecasts are projections based on recent market behavior. Markets are complex systems influenced by countless factors that cannot be captured in a technical calculation or predicted perfectly. The forecasted bands represent one possible scenario of how volatility might unfold, so actual price action may still diverge from these projections. Past performance and historical patterns provide no assurance of future results. Use these forecasts as one input within a broader trading framework that includes proper risk management, position sizing, and multiple forms of analysis. The value lies not in prediction accuracy but in helping you think probabilistically about potential market states and plan accordingly.
Fractal Dimension (Katz, Quant Lab)This indicator estimates the Katz Fractal Dimension of the price series over a rolling window.
It computes:
• L = sum of absolute price changes within the window
• d = maximum distance between any point and the first point in the window
• n = window length
Then applies Katz’s formula:
FDI = ln(n) / (ln(n) + ln(d / L))
The resulting Fractal Dimension typically lies between 1.0 and 2.0:
• FDI ≈ 1.0–1.3 → Strong, directional trend (low randomness)
• FDI ≈ 1.3–1.5 → Mixed / transitional behavior
• FDI ≈ 1.5–2.0 → Noisy, choppy, mean-reverting / range market
Variance Ratio & Efficiency Ratio (Quant Lab)1️⃣ Variance Ratio (VR)
Formula:
VR ≈ Var(q-step returns) / (q × Var(1-step returns))
Interpretation:
• VR ≈ 1 → The market is like a random walk; neither trend nor mean-reversion is dominant.
• VR > 1 → Trend behavior is dominant.
• Trend-following systems (EMA, Supertrend, breakout) work better.
• VR < 1 → Mean-reversion is dominant.
• Range/reversal strategies (Z-score, Bollinger fade, RSI reversal) work better.
In short:
• VR > 1 → Trending market
• VR < 1 → Mean-reverting market
This tells you:
“Should I build a trend system or a mean-reversion system for this instrument?”
⸻
2️⃣ Efficiency Ratio (ER)
Formula logic:
ER = |Close_now – Close_n-bars-ago| / Σ|Close_i – Close_{i+1}|
In other words:
• Numerator → Net movement over N bars
• Denominator → Total noise over N bars
Interpretation:
• ER ≈ 1 → The price has moved in almost a straight line in one direction.
→ The trend is very efficient, noise is low.
• ER ≈ 0 → The price has fluctuated a lot but hasn't gone anywhere definitively.
→ A complete noise/range market.
This tells you:
“How clear is the trend in this last N bars, and how much noise is there?”
⸻
🔥 The intelligence provided by both together:
• VR > 1 and ER is high (0.6–1.0) →
➜ Strong, high-quality trend. Golden age for trend-following.
• VR > 1 but ER is low (0.2–0.4) →
➜ Trend exists but there is a lot of noise, many fake movements. • VR < 1 and ER is low →
➜ Net range / sideways market. Ideal for mean-reversion.
Rolling Z-Score (Quant Lab)What does this Z-Score measure?
• src (default = close) → the value of the series you selected
• len → the window you are measuring based on the average of the last few bars
• Z ≈ 0 → price close to the average
• Z > 2 → price 2 standard deviations above the average (extremely positive deviation)
• Z < -2 → 2 standard deviations below the average (extremely negative deviation)
In modern mean-reversion strategies:
• Z > +2 → short / take profit candidate
• Z < –2 → long / dip buy candidate
DR/IDR, fractals, break + EMA Clouds + VWAPThis indicator is a powerful, multi-layered trading tool that combines three distinct forms of market analysis—volume, trend, and opening volatility—onto a single chart.
1. Opening Range Breakout (ORB) System
This is the foundation of the indicator, designed to capture the initial volatility and set key price boundaries for the trading day.
Time Focus: The indicator's primary analysis is centered on a specific, user-defined time period (default is 9:30 AM to 10:30 AM New York Time). Nothing related to the ORB drawing will appear on the chart before this session starts.
Wick High/Low (The Trigger): These lines track the absolute highest and lowest prices reached during the time window. They define the full extent of the initial range and are used to determine when a genuine breakout occurs.
Body High/Low (The Range & Targets): These lines track the highest and lowest open/close prices of the candles within the session. This area forms the central, shaded zone, representing the core consolidation area.
Range Shading: The background between the Body High and Body Low is shaded, but this visual feature only appears during the active forming time window (e.g., 9:30 AM to 10:30 AM) to maintain chart clarity.
Fractals: While the range is forming, the indicator detects 5-bar Williams Fractal patterns that occur inside the range. These small triangles (▲ or ▼) highlight minor reversal points established by the early trading action.
Breakout Signal: After the user-defined time window closes, the indicator waits. If a subsequent candle's price moves above the Wick High or below the Wick Low, a "BREAK" label is displayed on that candle. It is programmed to label only the first decisive break in each direction per day.
Extension Targets: When a breakout occurs, target lines are automatically projected above the Body High (for a bullish break) or below the Body Low (for a bearish break). The distance between these targets is calculated based on a user-defined fraction (e.g., 0.5 steps) of the total height of the Body Range.
Line Cutoff: For tidiness, you can set a "Stop Time" (e.g., 4:00 PM) after which the ORB lines will automatically disappear.
2. EMA Clouds (Trend and Momentum)
Four distinct Exponential Moving Average (EMA) clouds are plotted to provide a dynamic, multi-speed view of the market's trend and momentum.
Structure: Each "Cloud" is the shaded area between two EMAs (one shorter length and one longer length). The indicator includes four customizable pairs (defaulting to common settings like 8/9, 8/14, 34/50, and 14/21).
Trend Coloring: The clouds are color-coded:
Bullish (Greenish): The shorter EMA is trading above the longer EMA, signaling upward momentum.
Bearish (Reddish): The shorter EMA is trading below the longer EMA, signaling downward momentum.
Application: These clouds are used to confirm the overall market direction or identify potential zones of support and resistance.
3. Volume-Weighted Average Price (VWAP)
The VWAP is a crucial anchor for measuring the market's efficiency throughout the trading day.
Function: It calculates the average price of the asset, giving more weight to prices where higher volume was traded.
Context: It helps traders quickly determine if the current price is trading at a premium (above VWAP) or a discount (below VWAP) relative to the day's volume.
Reset: The VWAP line automatically resets at the beginning of each trading day.
Customization: The VWAP line can be toggled on or off, and its color and width are fully adjustable.
ICT Key Levels Suite |MC|Parts of this script were created by TheTickMagnet, Bankulov, and others. Many thanks to them; credit is due to all of you. I simply compiled them into a suite...
🌟 Overview 🌟
This tool highlights key price levels, such as highs, lows, and session opens, that can influence market movements. Based on ICT concepts, these levels help traders spot potential areas for market reversals or trend continuations.
🌟 Key Levels 🌟
🔹 Week Open (at Sunday 6:00pm EST for Futures)
Marks the start of the trading week. This level helps track price direction and is useful for framing the weekly candle formation using ICT’s Power of 3.
🔹 (Trading) Day Open: 6:00pm EST for Futures or 5:00pm EST for Forex.
🔹 Midnight Open (True Day Open) (00:00 EST)
The Midnight Open (MNOP) marks the start of the new trading day. Price often retraces to this level for liquidity grabs, setting up larger moves in the daily trend. It's also key for framing the Daily Power of 3 and spotting possible market manipulation.
🔹 Previous Day High/Low (customizable)
These levels show where liquidity remains, often serving as targets for price revisits, ideal for reversals or continuation trades.
🔹 Daily divider lines with Weekday label (customizable)
🌟 Overview 🌟
The ICT Sessions & Ranges Indicator helps traders identify key intraday price levels by marking custom session highs/lows and opening ranges.
It helps traders spot potential liquidity grabs, reversals, and breakout zones by tracking price behavior around these key areas
🌟 Session Highs & Lows – Liquidity Zones 🌟
Session highs and lows often attract price due to stop orders resting above or below them. These levels are frequently targeted during high-volatility moves.
🔹 Asia session
- Usually ranges in low volatility.
- Highs/lows often get swept during early London.
- Price may raid these levels, then reverse.
🔹 London session
- First major volatility of the day.
- Highs/lows often tested or swept in New York.
- Commonly forms the day's true high or low.
🔹 NY AM, Lunch & PM Session
🌟 Customizable Settings 🌟
The indicator includes 5 configurable ranges, each with:
Start & End Time – Set any custom time window.
Display Type – Choose Box (highlight range) or Lines (mark high/low) or both (Box and extended Lines).
Color Settings – Set custom colors for boxes and lines.
🌟 Default Settings (according to ICT) 🌟
Range 1: 6:00pm - 2:00am (Asia Session)
Range 2: 02:00 - 07:00 (London Session)
Range 3: 07:00 - 12:00 (NY AM Session)
Range 4: 12:00 - 1:30pm (NY Lunch Session)
Range 5: 1:30pm - 5:00pm (NY PM Session)
Happy trading!
Volatility of Volatility (Quant Lab)• VOV (white line)
• Around 0 → Volatility fluctuates normally
• Upward spike → Volatility changes very rapidly
• Often occurs during periods of breakouts, collapses, liquidations, and sharp trends
• When it stays low downwards → Volatility is stable, the market is moving at its “usual pace” • Regime histogram (columns)
• +1 (reddish) → Volatility Expanding
• Risk is increasing, “storm mode”
• Trend burst, flash move, news, liquidation effect
• 0 (orange) → Neutral
• Volatility behavior is normal
• -1 (turquoise) → Volatility Contracting
• Volatility is decreasing, movements are becoming smaller
• This may be a period before a big move after a squeeze
Keep this in mind:
• Volatility Regime → “What is the volatility level?”
• Volatility of Volatility → “How much is that volatility changing?”
When VoV spikes:
“Not only is market movement increasing, but the structure of the movement is also deteriorating; risk mode has been activated.”
This is crucial for identifying crash/pump periods.
Volatility Regime (Quant Lab)The Volatility Regime Indicator measures the current volatility environment of the market by combining two independent volatility metrics:
1. ATR-based volatility (how large price bars are)
2. Return standard deviation (how noisy or unstable returns are)
Both components are normalized (Z-score), averaged, and smoothed to produce a single Volatility Score, which identifies the market’s volatility regime.
The indicator classifies volatility into three distinct regimes:
Low Volatility (score < threshold)
• The market is calm and compressed.
• Price ranges are tight and movement is limited.
• Breakouts typically originate from this regime.
• Mean-reversion strategies perform best here.
Normal Volatility (within thresholds)
• The market is behaving normally.
• Trend-following and swing trades are stable.
• Risk is moderate.
High Volatility (score > threshold)
• The market is aggressive and unstable.
• Large price swings, news shocks, liquidations, manipulation possible.
• Risk and opportunity are both high.
• Leverage should be reduced or avoided.
A background color and regime histogram help visualize regime transitions instantly.
⸻
⭐ What this indicator tells you (Short Summary):
This indicator answers the question:
“Is the market calm, normal, or dangerous right now?”
You should interpret it as:
• Low Volatility → market is quiet, accumulation/squeeze phase, breakout likely soon.
• Normal Volatility → ideal trading conditions; trends behave cleanly.
• High Volatility → chaotic market; big moves coming; manage risk carefully.
The Volatility Regime Indicator helps you choose:
• Which strategy type to use (trend vs mean reversion)
• What stop size is appropriate
• Whether a breakout is real or likely to fail
• When to reduce position size due to risk expansion
It is a core tool used by quantitative traders to understand market conditions before applying any strategy.
Log Returns (Quant Lab)Log Returns Indicator
This indicator calculates the logarithmic return of each bar using the formula:
logReturn = ln(Close / Close )
It then visualizes:
• A log-return histogram (green for positive, red for negative returns)
• A rolling mean of log returns (yellow line)
• ±1 standard deviation bands around the mean (orange lines)
This indicator is used to:
• Measure the true statistical return behavior of the asset
• Detect volatility expansions and contractions
• Identify abnormal return spikes (news, liquidation cascades, manipulation)
• Evaluate market efficiency and momentum strength
• Prepare quantitative features for machine learning models
In simple terms, the Log Returns indicator shows whether the asset’s recent price behavior is normal or statistically unusual.
Standard Deviation Levels with Settlement Price and VolatilityStandard Deviation Levels with Settlement Price and Volatility.
This indicator plots the standard deviation levels based on the settlement price and the implied volatility. It works for all Equity Stocks and Futures.
For Futures
Symbol Volatility Symbol (Implied Volatility)
NQ VXN
ES VIX
YM VXD
RTY RVX
CL OVX
GC GVZ
BTC DVOL
The plot gives you an ideas that the price has what probability staying in the range of 1SD,2SD,3SD ( In normal distribution method)
Please provide the feedback or comments if you find any improvements
In-Range Rolling SL
In-Range Rolling SL Indicator Guide
The In-Range Rolling SL indicator is a dynamic stop-loss system designed for intraday trading that identifies squeeze conditions and trade entry opportunities based on rolling price windows.
Core Concept
The indicator analyzes the highest high and lowest low over a defined lookback period (default: 2 candles) to establish an "in-range" zone. When price stays within this range without breaking either boundary, it creates a squeeze condition—signaling potential breakout opportunities.
Trading Strategy
Wait for the Squeeze Setup
The most effective approach is to wait for the in-range stop-loss squeeze to form. This occurs when both the long SL (green line) and short SL (red line) are active simultaneously, indicated by the yellow status dot (🟡) in the indicator table. Analyze the wick high/close relationship against the in-range SL while price remains compressed—this setup identifies which side is more likely to break first.
Entry Timing and Risk Management
Long Entry: Enter when a candle closes above the in-range short SL (red line) without any wick above it. This "perfect breakout candle" confirms bullish momentum. Your entry should be around the region, with your stop-loss placed just below the top of the breakout candle's high.
Short Entry: Enter when a candle closes below the in-range long SL (green line). The stop-loss for short trades should be set 34.26 points above your entry for appropriate risk protection.
Risk-Reward Considerations
If you enter at the low of a breakout candle, expect only 8.26 points of drawdown potential. However, if you accidentally go long and your stop gets hit, you'll experience the full in-range stop-loss distance as your loss.
Advanced Techniques
Failed Breakout Trap: If a follow-up candle doesn't make a higher high after the initial breakout, consider adding a "winner" for compensation rather than holding for a trap. When your buy-stop sits on top of the breakout candle high, this isn't a valid long trade setup.
Flip Trade Opportunity: In-range stop-loss attempts to flip often provide ideal entry points. If the up candle doesn't break the previous low, this validates the long continuation.
Long Scalp Trading: A failed long scalp can be traded if you missed the initial market open down-up-down trend. With a stop-loss of 34 points and potential profit exceeding 50 points, this provides favorable risk-reward ratios.
Sustained Loss Management: Stop-loss for long positions should target 26 points maximum loss. The indicator automatically invalidates stop-losses when price violates them, keeping your chart clean for the next setup.
-------------------------
In-Range Rolling SL Indicator Guide
The In-Range Rolling SL indicator is a dynamic stop-loss system designed for intraday trading that identifies squeeze conditions and breakout opportunities based on rolling price windows.
How the Indicator Works
The indicator tracks the highest high and lowest low over your selected lookback period (default: 2 candles) to establish dynamic support and resistance levels. These levels create an "in-range" zone that adapts as new price action develops.
Visual Components
Green Line (Long SL): The rolling window's lowest low - your stop-loss level for long positions
Red Line (Short SL): The rolling window's highest high - your stop-loss level for short positions
Status Indicators:
🟡 Yellow: Squeeze condition (both SLs active)
🟢 Green: Long-only setup
🔴 Red: Short-only setup
⚪ White: Neutral (no active SLs)
The Squeeze Setup Strategy
Step 1: Wait for the Squeeze
The most effective way to use the In-Range Rolling SL is to wait for the in-range stop-loss squeeze to form. During the squeeze, both the green and red lines are active, meaning price has stayed within the rolling window without breaking either boundary. This compression phase indicates that it's "go time" to prepare your trade.
While in the squeeze, analyze the wick high/close relationship against the in-range SL levels. This analysis helps you determine which side is more likely to split when the breakout occurs.
Step 2: Identify the Perfect Breakout
Long Breakout: A perfect breakout candle should close above the in-range stop-loss high (red line) without any wick above it. This clean breakout demonstrates strong momentum and reduces the risk of a false breakout.
Short Breakout: Look for a candle that closes below the in-range SL low (green line), indicating a short-side trade is coming up.
Step 3: Entry Execution
Long Entry: Your entry should be around the region of the breakout. Position your stop-loss just below the top of the breakout candle's high. This placement protects you from failed breakouts while giving the trade room to develop.
Short Entry: Enter as the candle closes below the in-range SL low. The stop-loss for short-side trades is typically 34.26 points of potential loss based on the indicator's measurements.
Risk-Reward Analysis
Entry at Breakout Low
If you enter here at the low of the breakout candle, you're looking at only 8.26 points of drawdown potential. This represents your best-case entry scenario.
Accidental Wrong-Side Entry
However, if you accidentally go long here and your stop gets hit, you'll experience the full in-range stop-loss distance as your loss. This emphasizes the importance of waiting for clear breakout confirmation.
Long Scalp Opportunity
A failed long scalp can be traded here if you missed the market open down-up-down trend. With a stop-loss of 34 points and potential profit greater than 50 points, this setup offers a favorable risk-reward ratio of approximately 1:1.5.
Advanced Trade Management
Failed Breakout Recognition
Follow-Up Candle Validation: If a follow-up candle did not make a higher high than the breakout candle, this could be a trap. Your buy-stop on top of the breakout candle high is not a valid long trade setup in this scenario. Consider adding a "winner" for compensation rather than holding through the potential reversal.
Flip Trade Opportunities
In-range stop-loss tries to flip to the other side often provide excellent entries. If the up candle did not break the previous low, this validates the long continuation and suggests the squeeze is resolving to the upside.
Sustained Position Management
Stop-Loss Guidelines: Stop-loss for long positions should be 26 points of maximum loss. The indicator table displays the delta (Δ) showing your real-time distance to the active stop-loss, helping you manage risk dynamically.
Entry Timing: Your entry should be around the region where the breakout confirms, rather than chasing price after a large move. In order to prepare your trade, position your stop-loss on top of the breakout candle's high for long trades.
Practical Example from the Chart
Looking at the MNQ1! chart, you can see multiple squeeze formations throughout the session. The most notable sequence shows:
An initial downtrend creating a squeeze setup
A perfect breakout candle closing above the red line without upper wick
The subsequent candle validating the move
Later, a failed breakout attempt that created a short opportunity
Multiple flip attempts that provided re-entry points for scalpers
The indicator's table in the top-right continuously updates with the current SL levels, gap size, candle size, and delta values - giving you all the information needed to assess each trade's risk-reward profile in real-time.
SWING [DEMAK]SWING
EMA 5, 25, 50, 200, 250
SMA 10
Indicator for finding swing trades and reading direction
STOCKS / CRYPTO / FUTURES
SCOTTGO Advanced MACD🌟 Custom MACD: Enhanced Visuals & Crossover Signals
This indicator is a highly customized version of the traditional Moving Average Convergence Divergence (MACD) oscillator, designed to provide clear, immediate visual confirmation of signal line crossovers and zero-line crossings.
Core Features:
MACD Crossover Shadow Fill: The area between the MACD line and the Signal line is filled with a customizable shadow. This instantly visualizes whether the MACD is above (bullish crossover) or below (bearish crossover) the Signal line.
Signal Crossover Markers (Arrows & Dots):
Crossover Dot: A small, configurable solid dot is plotted exactly at the point where the MACD and Signal lines intersect, providing pinpoint accuracy for the crossover event.
Crossover Arrows: Customizable up (green) and down (red) arrows are plotted using a small numerical offset from the crossover point, ensuring visibility without cluttering the indicator lines.
Zero-Line Crossing Markers: Distinct, small markers (circles/diamonds) are used to signal when the MACD line crosses the zero line, indicating a shift in momentum relative to the baseline.
Customizable MA Type: The user can select either Exponential Moving Average (EMA) or Simple Moving Average (SMA) for both the MACD oscillator calculation and the signal line calculation.
This indicator is ideal for traders who rely on MACD crossovers and require precise, configurable visual feedback directly on the chart.






















