Risk Manager & ATR TS Strategy📌 Overview
This script is not a simple indicator mashup. It is a Risk & Trade Planning Engine that combines a strategy-based signal generator with a snapshot-based risk, sizing, and expectancy model. It is designed to support real trading decisions, not just to generate cosmetic signals or overfitted backtests.
The core idea is to separate market logic from risk logic, evaluating each trade only at the moment it becomes actionable using fixed reference points that do not change afterward.
🎯 What makes this script original Unlike most tools that merely combine indicators or visualize entries, this script introduces several non-standard design choices:
Snapshot-based risk sizing (The "Time Machine" logic).
Expected Value (EV) calculation in both Money and R-multiples.
Kelly Criterion applied with weighted multi-target logic.
Strict architectural separation between the signal engine and the risk engine.
Decision-oriented dashboard instead of decorative plots.
These components are not merged for convenience; they are architecturally dependent on each other.
🧠 Conceptual Architecture
1️⃣ Signal Engine (Market Context) The signal engine is based on an ATR Trailing Stop system combined with trend regime filters (ADX and Choppiness Index). Its only responsibility is to answer one question: "Is this a valid directional opportunity right now?" It does not manage risk; it only identifies the opportunity.
2️⃣ Snapshot Logic (Key Design Choice) When a valid signal occurs, the script captures a Snapshot of the Entry price, Initial Stop-Loss, and Risk Distance. This snapshot is frozen at signal time. It is never updated, even if the trailing stop moves later. This avoids the most common error in TradingView scripts: recalculating position size using a moving stop, which falsifies the risk data.
3️⃣ Risk Engine (Sizing & Control) Using the snapshot values, the script computes:
Monetary risk per trade (capped at your user-defined max).
Position size derived from the fixed stop distance.
Effective leverage (informational).
4️⃣ Multi-Target Reward Model Instead of assuming a single take-profit, the script supports multiple targets with user-defined probability weights. From this, it derives a Weighted Risk/Reward Ratio, which feeds directly into the EV and Kelly calculations.
5️⃣ Expected Value (EV) in Money & R The script calculates EV in your account currency (real impact) and normalized in R-multiples (statistical quality). This allows you to compare trade quality across different assets and timeframes objectively.
6️⃣ Kelly Criterion (Conservative) The Kelly Criterion is applied using the weighted reward model and is always subordinated to your hard risk cap. If Kelly suggests a negative value, the script advises "NO TRADE". It is used as a filter, not a leverage amplifier.
📊 Dashboard & Alerts The on-chart dashboard summarizes everything you need at the moment of the signal:
Risk % and Position Size
Expected Value (Money + R)
Kelly Suggestion
Signal Strength
Alerts are triggered once per signal (on bar close) using snapshot data, ensuring no repainting and no spam.
🔍 How this is NOT a mashup Each component exists because another component depends on it. Snapshot logic is required for valid risk sizing; Risk sizing is required for EV normalization; Weighted RR is required for meaningful Kelly. Removing any part breaks the system’s logic.
📘 How to use
Choose your account size and risk parameters in the settings.
Configure your stop logic and reward targets.
Wait for a valid signal.
Evaluate the dashboard: Decide if the trade quality (EV, R, Risk) justifies participation.
⚖️ Open-Source Notice This script is published under the Mozilla Public License 2.0 (MPL-2.0). It does not copy or replicate any single public script. Standard concepts (ATR, ADX) are used as building blocks, but the architecture and calculations are original.
🚫 Disclaimer This script is a planning and evaluation engine designed to help traders think in terms of risk, expectancy, and discipline. It does not guarantee profitability.
✅ Summary This is a professional-grade framework built to answer one core question: “Is this trade worth taking, given my risk and my expectations?” Not every signal is a trade, and not every trade deserves capital. This script helps you make that distinction.
Трендовый анализ
(5M) REG SuperTrend Pullback SystemThis indicator implements a rule-based SuperTrend pullback system
designed for short-term trend continuation.
Core features:
• Regression-based SuperTrend with flip detection
• Pullback + reclaim entry logic (non-repainting, bar-close confirmed)
• Regime filter (Trend vs Range suppression)
• Exhaustion detection to avoid late entries
• ADX + EMA bias alignment
• USDT Dominance risk filter (risk-on / risk-off)
• Clear BUY / SELL and Pullback AI-style entry labels
This is NOT a trading bot and does NOT place orders.
All signals are for analytical and educational purposes only.
SIV Trading LightSmartInVisions Trading Light (SIV Trading Light)
**Multi-Factor Market Regime & Trade Bias Indicator**
---
## Overview and Purpose
**SmartInVisions Trading Light (SIV Trading Light)** is a market **context and trade-bias indicator**, not a signal generator.
Its purpose is to answer one practical trading question:
> *“Given the current market conditions, is it statistically more favorable to think LONG, SHORT, or stay neutral?”*
Instead of relying on a single indicator, SIV Trading Light **combines several independent market dimensions into one coherent score**.
This allows traders to avoid over-trading in unfavorable environments and to align trades with the dominant market context.
---
## Why This Is NOT a Simple Indicator Mashup
This script does **not** simply merge popular indicators.
Each component is:
* normalized,
* weighted,
* evaluated against thresholds,
* and translated into **positive, neutral, or negative score contributions**.
Only the **combined interaction** of these components produces the final trade bias.
No single indicator can dominate the result on its own.
---
## Core Calculation Concept
At every bar, the indicator evaluates multiple independent factors.
Each factor contributes points to a **total bias score**.
The score is then classified into one of three states:
* **LONG bias**
* **NEUTRAL**
* **SHORT bias**
The indicator does **not** predict price direction.
It classifies the **current trading environment**.
---
## Components and How They Work Together
### 1. Trend Structure (Moving Averages)
**Purpose:** Identify the dominant directional structure.
* Fast MA vs Slow MA relationship
* Price position relative to the slow MA
* Optional slope confirmation
Contribution:
* Positive points in aligned uptrends
* Negative points in aligned downtrends
* Neutral in mixed or unclear structures
---
### 2. Momentum (RSI)
**Purpose:** Measure directional strength.
* RSI above upper threshold → bullish momentum
* RSI below lower threshold → bearish momentum
* Mid-range RSI → neutral
Momentum refines trend signals by confirming or weakening them.
---
### 3. Trend Quality / Choppiness (ADX)
**Purpose:** Filter out sideways or noisy markets.
* ADX above threshold → trending environment
* ADX below threshold → choppy environment
ADX does **not** define direction.
It modifies how much weight trend and momentum signals receive.
---
### 4. Volatility Risk (ATR%)
**Purpose:** Penalize structurally dangerous environments.
ATR is normalized as a percentage of price:
* Excessively high volatility → risk penalty
* Extremely low volatility → participation penalty
* Balanced volatility → neutral or positive contribution
This prevents aggressive trading in unstable regimes.
---
### 5. Market Participation (Relative Volume)
**Purpose:** Confirm whether moves are supported by volume.
* High relative volume → confirmation
* Low volume → weaker confidence
Volume acts as a confidence modifier, not as a directional signal.
---
### 6. Higher-Timeframe Market Regime (Optional)
**Purpose:** Align trades with the dominant higher-timeframe context.
On a user-defined **regime timeframe**, the script evaluates:
* trend structure
* RSI momentum
The regime filter can:
* amplify signals aligned with the higher timeframe
* suppress signals against it
This avoids trading aggressively against dominant market structure.
---
## Multi-Timeframe Design
The indicator separates two concepts:
* **Trading Timeframe**: the chart timeframe used for execution
* **Regime Timeframe**: a higher timeframe used for contextual bias
This design allows the same logic to be applied to:
* day trading
* swing trading
* longer-term investing
---
## Presets and Customization
Built-in presets are provided for:
* Day Trading (USA / Europe)
* Swing Trading (USA / Europe)
* Investing (USA / Europe)
Presets define:
* factor weights
* thresholds
* score boundaries
They do **not** define:
* timeframes
* moving average types or lengths
This keeps structural decisions under user control while simplifying parameter tuning.
A **Custom mode** allows full manual configuration.
---
## Visual Output
The indicator provides:
* two moving average overlays (fast / slow)
* an optional background color reflecting the current bias
* a compact badge summarizing mode, score, and state
* an optional breakdown table showing how each factor contributes to the score
These visuals are designed to explain **why** the current bias exists.
---
## Alerts
Alerts are based on **state changes**, not on every bar.
Alert outputs include:
* numerical state (`1 = LONG, 0 = NEUTRAL, -1 = SHORT`)
* score value
* rounded moving average values
This allows integration into discretionary or systematic workflows without alert noise.
---
## How This Indicator Should Be Used
✔ As a **trade filter**
✔ To avoid trading in unfavorable conditions
✔ To align discretionary entries with market context
---
## What This Indicator Is NOT
✘ Not a buy/sell signal
✘ Not a prediction model
✘ Not a replacement for risk management
---
## Credits and License
**Publisher:** SmartInVisions GmbH
**Concept & Design:** Reiner Ernst
**Implementation & Iterative Development:** SmartInVisions GmbH + ChatGPT (OpenAI)
**License:** Mozilla Public License 2.0 (MPL-2.0)
---
## Disclaimer
This script is provided for educational and research purposes only.
It does not constitute financial advice. Trading involves risk.
---
Session VWAP Cumulative BiasThe Session VWAP Cumulative Bias indicator is designed to differentiate between "choppy" price action and true "institutional" trend days. Unlike standard VWAP indicators that only show where price is now, this tool tracks the cumulative sentiment of the entire session.
Core Functions:
Cumulative Z-Score Logic: It calculates the distance between price and VWAP (in Standard Deviations) and sums it up over the course of the day. This reveals the "weight" of the market bias—the longer price stays pinned away from the VWAP, the more extreme the histogram becomes.
Scale Protection: It includes a "Capping" mechanism that prevents morning gaps or low-volume outliers from distorting the scale, ensuring the histogram remains readable from open to close.
Momentum vs. Regime Toggles: Users can switch between VWAP Slope (measuring the speed of the average's movement) and Cumulative Bias (measuring total session dominance).
Visual price Overlay: It automatically colors the price candles and plots a session-anchored VWAP line on the main chart, providing a clear visual of when price is "fair" versus "overextended."
How to read it:
Trend Confirmation: A steadily growing "mountain" in the histogram confirms an institutional trend day where dips are being bought (or rips sold).
Mean Reversion: When price hits a new high but the Cumulative Histogram begins to round off or diverge, it signals that the "elastic band" is stretched and price is likely to return to the orange VWAP line.
Regime Shifts: A cross of the zero-line on the histogram indicates a total shift in session control from buyers to sellers (or vice versa).
Ichimoku bull bear trend Multi-BG by Pranojit Dey It gives you bullish and bearish bias using ichimoku, VWAP, SMA and Pivot. can be used as a great confirmation tool for trading. Use it. You will love it. Lets trade traders....
Multi-Timeframe EMA-VWAP EntryTrend Following strategy. Based on Exponential moving averages and Volume weighted average price. Good for trending instruments on day trading basis
Trailing Stoploss % BasedA minimalistic trend-following indicator that plots a single trailing line based on a user-defined percentage using price highs and lows.
The line:
Trails price in trends
Moves only in the direction of the trend
Flattens when price is not making new highs or lows
Acts as support in uptrends and resistance in downtrends
Useful on all instruments and all timeframes for clean trend tracking and trailing stop management.
AHR999 Index (Renewed)AHR999 Indicator
The AHR999 Indicator is created by a Weibo user named ahr999. It assists Bitcoin investors in making investment decisions based on a timing strategy. This indicator implies the short-term returns of Bitcoin accumulation and the deviation of Bitcoin price from its expected valuation.
When the AHR999 index is < 0.45, it indicates a buying opportunity at a low price.
When the AHR999 index is between 0.45 and 1.2, it is suitable for regular investment.
When the AHR999 index is > 1.2, it suggests that the coin price is relatively high and not suitable for trading.
In the long term, Bitcoin price exhibits a positive correlation with block height. By utilizing the advantage of regular investment, users can control their short-term investment costs, keeping them mostly below the Bitcoin price.
RSI Chebyshev Pro with Goldilocks Fractals - NR [NPR21]RSI Chebyshev Pro with Goldilocks Fractals - Non-Repaint
----------------------------------------------------------------------------------------------------------------------
CHART INFORMATION
Instrument: /MNQ (Micro E-mini Nasdaq-100 Futures)
Timeframe: 2-minute
Indicator: RSI Chebyshev Pro with Goldilocks Fractals - NR
----------------------------------------------------------------------------------------------------------------------
THE PROBLEM
Standard RSI is too choppy and noisy – it whipsaws all over the place in volatile markets like futures, giving false oversold/overbought signals that burn you on entries. I was sick of missing real reversals or getting stopped out on fakeouts. I wanted something smoother that still catches the big momentum shifts without lagging too much, plus actual market structure to make it more reliable for quick trades.
WHAT MAKES THIS UNIQUE
Unlike basic RSI indicators that use simple moving average smoothing, this combines several advanced techniques that aren't commonly found together:
1. Chebyshev Type I Filtering - Signal processing mathematics (not basic EMAs) that kills noise while keeping real swings sharp. Most RSI smoothing just blurs everything - this keeps responsiveness without the chop.
2. MAMA Adaptive Period - The moving average adapts to actual market cycles using the MESA algorithm, not fixed periods that lag in changing conditions.
3. RSI Pivot Fractals - These aren't price fractals slapped onto RSI. The fractals detect pivots directly on RSI values at extreme levels, with signals appearing back at the exact pivot bar (not current bar), showing you where the actual reversal happened.
4. True Non-Repainting Implementation - Signals appear delayed BUT locked at the historical pivot location forever. What you see in backtests is exactly what appeared live - no vanishing signals, no shifting.
5. All-in-One Integration - Instead of running 3-4 separate indicators (RSI + fractals + patterns + smoothing), everything works together in a single, optimized calculation with confluence built in.
This isn't just RSI with some Williams Fractals thrown on top - it's a complete rethink of how to identify high-probability RSI reversals using signal processing and adaptive algorithms.
ORIGIN & ENHANCEMENTS
Original Source: ChartPrime RSI Chebyshev indicator
Converted & Enhanced by: NPR21
What I Added:
✅ Converted to Pine Script v6 - Made this available to TradingView traders
✅ Goldilocks Fractals - RSI alone doesn't tell you about price structure. These fractals nail those "just right" pivot points where highs/lows confirm. I kept seeing RSI extremes that reversed hard when they lined up with fractals - this was the missing piece for confluence.
✅ 100% Non-Repainting - I've been burned by repainters. You'd backtest something, looks amazing, then live it vanishes or shifts. Lost real money on that. This is rock-solid: signals show delayed but once they're there, they're locked forever. Makes backtesting trustworthy.
✅ Candlestick Patterns - Engulfing, Morning Star, Evening Star detection for confluence
✅ Customizable Visuals - BUY/SELL labels, multiple display styles, full color/size control
✅ Complete Alert System - Get notified on all signal types
HOW IT WORKS
Chebyshev Filtering:
Like putting noise-canceling on your RSI – smooths out jittery ups and downs from random price spikes without flattening into useless lag. It's signal processing math that keeps important swings sharp while killing BS noise. Way better than simple EMA smoothing that blurs everything.
The Components:
Ultra-Smooth RSI - Chebyshev Type I filtering + adaptive MAMA algorithm
Goldilocks Fractals - Pivot detection confirmed after N bars (default 5)
Pattern Recognition - Detects Engulfing, Morning/Evening Star patterns
Visual Styles - Candle Trend (hollow green/solid red) or traditional candles
SIGNAL DELAY vs REPAINTING
✅ THIS HAS SIGNAL DELAY (GOOD) - NOT REPAINTING (BAD)
Signal Delay:
Signals appear after N bars (default 5 bar delay)
Once visible, NEVER disappears or moves
Perfect for backtesting - 100% reliable
What you see in history is what you'd see live
Why the Delay:
To confirm a pivot, we need to see price didn't go lower/higher in the next N bars. This confirmation makes signals reliable. The delay is the price for trustworthy signals.
Want faster? Drop Fractal Periods to 2-3 (more signals, less confirmation).
HOW I TRADE IT
My /MNQ Scalping (1-3 min charts):
LONG: BUY label appears (down fractal + maybe morning star/engulfing) → Check RSI crossing up from oversold (<30) → Confirm with volume → Long with stop below fractal low → Target 1-2R
SHORT: SELL label (up fractal + maybe evening star) → RSI from overbought → Short with stop above
Filter: Only longs in uptrends (watch the MA). Exit partials if momentum fades.
Best Timeframes: 1-5 min for futures scalping. Works on 15 min for swings but for pure scalping, stay under 5 min in high-vol sessions.
SETTINGS I USE
Standard Setup:
Length: 24, Smoothing: 3
Auto MA: ON, Multiplier: 1-2
Fractal Periods: 5 (good confirmation)
Choppy Days:
Smoothing to 5
Aggressive:
Fractal Periods to 3
Pro Tip: Pair with volume or price EMA. Love when fractal BUY + engulfing bull align. Use Candle Trend style. Test on demo first.
KEY SETTINGS
RSI: Length (24), Smoothing (3), Auto MA, Style (Candle/Candle Trend)
Fractals: Periods (5 = more reliable, 3 = faster/riskier), Label colors/sizes, Offsets
Alerts: All signals fire only on confirmed, non-repainting events
DISCLAIMERS
⚠️ Tool, not a complete system - use proper risk management
⚠️ Signals have delay for reliability - not for instant entries
⚠️ Best with price action, volume, other analysis
⚠️ Test on demo before live trading
Questions? Comment below!
NPR21
MB-MACD## Description
**MB-MACD** is a custom Pine Script indicator designed to enhance momentum analysis by combining a volume-based "Main Buy Ratio" (MB) calculation with a traditional MACD oscillator. The MB Ratio estimates institutional buying pressure by apportioning volume based on the candle's range and close position, providing a unique proxy for "smart money" flow. This smoothed MB value is then used as the source for MACD computation, allowing for divergence detection between price action, the MB line, and the MACD Histogram.
Key features include:
- **MB Line**: A histogram-style plot showing smoothed buy/sell ratio, colored bullishly (teal) or bearishly (pink) based on direction.
- **MACD Histogram**: Standard MACD applied to the MB source, with optional smoothing.
- **Divergence Detection**: Identifies bullish and bearish divergences on both the MB line and MACD Histogram, with configurable filters for momentum decay and zero-line alignment.
- **Visualization Options**: Display divergence lines and labels in the indicator pane or synced as an overlay on the main chart for better context.
- **Alerts**: Triggers for bullish or bearish divergences to notify users of potential reversal setups.
This indicator is particularly useful for swing traders and momentum followers looking to spot hidden divergences that may signal trend reversals or continuations. It emphasizes risk management by highlighting where price and momentum decouple, but remember: divergences are probabilistic signals and should be confirmed with other tools.
As this is a community-shared script, I encourage users to test it thoroughly and provide feedback. If you spot any bugs, calculation errors, or improvements (e.g., edge cases with low-volume symbols or performance issues on certain timeframes), please comment below or reach out—your input helps refine it for everyone!
## User Manual
### Introduction
The **MB-MACD** indicator integrates volume analysis with MACD to detect divergences in price and momentum. The core innovation is the "Main Buy Ratio" (MB), which approximates buying vs. selling volume within each bar based on its range and close position. This MB value is smoothed and fed into a MACD calculation, enabling divergence scans on both the MB line and the resulting MACD Histogram.
Divergences occur when price makes higher highs/lower lows, but the oscillator (MB or Histogram) fails to confirm—often signaling potential reversals. The script offers flexible display options, filters to reduce false positives, and alerts for real-time notifications.
**Important Notes:**
- This is not financial advice; use it for educational purposes and backtest on your symbols/timeframes.
- Works best on liquid stocks or indices with reliable volume data (e.g., daily or higher timeframes).
- Performance may vary on low-volume assets or during after-hours trading.
- If you encounter issues (e.g., no divergences detected or rendering errors), check your chart settings and report them in the comments for community debugging.
### Inputs Explanation
The inputs are grouped for ease of configuration. Adjust them via the indicator's settings panel in TradingView.
#### Core Parameters
- **Show MB Line** (Default: True): Enables/disables the MB Ratio histogram plot.
- **Show MACD Histogram** (Default: True): Enables/disables the MACD line and histogram plots.
- **MB Smoothing (SMA)** (Default: 10, Min: 1): Length for smoothing the raw MB Ratio using a Simple Moving Average (SMA). Higher values reduce noise but may lag.
- **Pivot Lookback Length** (Default: 5, Min: 2): Bars to look back/forward for detecting price pivots (highs/lows) used in divergence logic.
- **Max Lines Kept** (Default: 100, Min: 10): Limits the number of divergence lines/labels to prevent chart clutter.
#### Display Settings
- **Show Lines (Indicator Pane)** (Default: True): Draws divergence lines on the MB line in the indicator pane.
- **Show Labels (Indicator Pane)** (Default: True): Adds labels (e.g., "L" for line divergence) at divergence points in the pane.
- **Show Hist Divergence Lines** (Default: True): Draws dashed lines for MACD Histogram divergences in the pane.
- **Show Hist Divergence Labels** (Default: True): Adds labels (e.g., "H" for histogram divergence) in the pane.
- **Sync Lines to Main Chart (Overlay)** (Default: True): Mirrors divergence lines and labels onto the main price chart for context (slightly offset for visibility).
#### Filters & Tolerance
- **Peak Alignment Tolerance (Bars)** (Default: 5, Min: 0): Allows flexibility in matching oscillator peaks/valleys to price pivots (e.g., within ±5 bars).
- **Max Divergence Distance (Bars)** (Default: 20, Min: 5): Maximum bars between two pivots for a valid divergence; prevents detecting overly distant signals.
- **Enable Momentum Decay Filter** (Default: True): For Histogram divergences, requires the current peak/valley to have a smaller absolute value than the previous (indicating convergence/decay).
- **Enable Zero-Side Filter** (Default: False): Ensures both peaks/valleys in a divergence are on the same side of the zero line (e.g., both positive or both negative).
#### MACD Settings
- **MACD Fast Length** (Default: 12): Fast EMA length for MACD.
- **MACD Slow Length** (Default: 26): Slow EMA length for MACD.
- **MACD Signal Length** (Default: 9): Smoothing length for the MACD signal line.
- **MACD Source Smoothing** (Default: 3, Min: 1): Additional SMA smoothing applied to the MB Ratio before MACD calculation.
### How It Works
1. **MB Ratio Calculation**: For each bar, the script computes the position of the close within the high-low range (0-1). This scales the volume into "buy" and "sell" portions, then derives a net ratio (-100% to +100%). It's smoothed via SMA for the final MB line.
2. **MACD Application**: The (optionally smoothed) raw MB is used as the MACD source, producing a MACD line, signal line, and histogram.
3. **Pivot Detection**: Uses Pine's `ta.pivothigh`/`ta.pivotlow` to find price highs/lows over the lookback period.
4. **Divergence Scanning**:
- **Bearish (on Highs)**: Price makes a higher high, but MB/Hist makes a lower high.
- **Bullish (on Lows)**: Price makes a lower low, but MB/Hist makes a higher low (closer to zero).
- Scans nearby bars for oscillator matches and applies filters.
5. **Rendering**: Lines/labels are drawn in the indicator pane or overlaid on the chart. Colors: Teal for bullish, Pink/Maroon for bearish.
6. **Cleanup**: Automatically removes old lines/labels to stay under the max limit.
### Interpreting the Outputs
- **MB Line (Columns)**: Positive (teal) indicates net buying pressure; negative (pink) shows selling. Watch for crossovers above/below zero as momentum shifts.
- **MACD Histogram (Area)**: Green/teal for positive momentum; red/maroon for negative. Widening bars suggest strengthening trends; narrowing indicates weakening.
- **Divergence Lines/Labels**:
- Solid lines: MB line divergences (thicker, labeled "L").
- Dashed lines: Histogram divergences (thinner, labeled "H").
- Bullish: Teal lines sloping up (potential bottom reversal).
- Bearish: Pink lines sloping down (potential top reversal).
- **Overlay on Chart**: Lines connect price pivots (or offset slightly for Histogram). Use this to visualize how divergences align with candlesticks.
- **Zero Line**: Gray horizontal line; divergences filtered by side if enabled.
**Example Usage**:
- On a daily stock chart, enable overlays and watch for a bullish "L" or "H" label near a price low—could signal a buy if confirmed by volume breakout.
- In a downtrend, bearish divergences on highs might warn of further downside.
### Alerts
- **Bullish Divergence (L or H)**: Triggers on any detected bullish divergence (MB or Histogram).
- **Bearish Divergence (L or H)**: Triggers on bearish divergences.
- Set up via TradingView's alert menu: Select the indicator, choose the condition, and customize the message (e.g., includes ticker).
### Troubleshooting / Known Issues
- **No Divergences Shown**: Increase "Peak Alignment Tolerance" or reduce filters. Ensure pivot length suits your timeframe (shorter for intraday).
- **Too Many Lines/Labels**: Lower "Max Lines Kept" or increase "Max Divergence Distance" to filter distant signals.
- **Performance on Low-Volume Symbols**: MB Ratio may be unreliable; test on high-volume assets first.
- **Rendering Errors**: If lines don't appear, check chart zoom or ensure "force_overlay=true" isn't conflicting with other indicators.
- **NaN/Undefined Values**: Rare on live data but possible in historical backtests; report with symbol/timeframe for fixes.
### Feedback and Contributions
This script is open for community improvement! If you find bugs (e.g., false positives in divergences, calculation edge cases, or UI glitches), or have suggestions (like additional filters or visualizations), please share in the comments. Your feedback helps make it better—let's debug and enhance it together!
Institutional Volatility Expansion & Liquidity Thresholds (IVEL)Overview
The IVEL Engine is an institutional-grade volatility modeling tool designed to identify the mathematical boundaries of price delivery. Unlike retail oscillators that use fixed scales, this script utilizes dynamic ATR-based multiples to map Institutional Premium and Discount zones in real-time.
How to Use
To maximize the effectiveness of the IVEL Engine, traders should focus on Price Delivery at the extreme thresholds:
Identifying Institutional Premium (Short Setup) : When price expands into the Upper Red Zone, it has reached a mathematical exhaustion point. Seek short-side entries when price shows signs of rejection from this level back toward the Fair Value Baseline.
Identifying Institutional Discount (Long Setup) : When price reaches the Lower Green Zone, it is considered "cheap" by institutional algorithms. Look for long-side absorption or accumulation patterns within this zone.
Mean Reversion Targets: The Fair Value Baseline (Center Line) acts as the primary magnetic target. Successful trades taken at the outer thresholds should use the baseline as the first objective for profit-taking.
Alerts & Execution Strategy
The IVEL Engine is designed for automated monitoring so you don't have to watch the screen 24/7. To set up your execution workflow:
Set the Alert : Right-click the indicator and select "Add Alert." Set the condition to "Price Crossing Institutional Premium" (Upper Red) or "Price Crossing Institutional Discount" (Lower Green).
Wait for the Hit : Do not market-enter as soon as the alert fires. The alert tells you price has entered a High-Probability Liquidity Zone.
Confirm the Rejection : Once alerted, drop down to a lower timeframe (e.g., 5m or 15m) and look for a "Shift in Market Structure" or an SMT Divergence.
Execute : Enter once the rejection is confirmed, targeting the Fair Value Baseline as your primary TP1.
Methodology
The script anchors to an EMA-based baseline and projects expansion bands that adapt to current market conditions.
Value Area : The blue inner region where the majority of trading volume occurs.
Liquidity Exhaustion : The red and green outer regions where the probability of "Smart Money" reversal is highest.
Elite Risk-On/Risk-Off Oscillator (6 pairs) The Elite Risk-On / Risk-Off Oscillator is a market-regime indicator designed to determine whether conditions favor aggressive risk-taking or defensive capital preservation rather than to predict price direction.
It combines six carefully selected relative-strength pairs that measure risk appetite across the most important parts of the market:
IEI/HYG (credit stress, weighted most heavily because credit often leads equities)
SPHB/SPLV (equity risk appetite via high-beta versus low-volatility stocks)
IWM/SPY (liquidity and growth sensitivity through small-caps versus large-caps)
MTUM/QUAL (trend durability versus balance-sheet quality)
XLY/XLP (consumer cyclicality, wants versus needs)
EEM/SPY (global risk and dollar-sensitive capital flows)
Each pair is evaluated using relative performance against a moving-average and slope filter to classify it as risk-on (+1), neutral (0), or risk-off (-1), with defensive ratios inverted so that positive readings always indicate risk-on conditions; the weighted signals are then aggregated, normalized to a -100 to +100 scale, and smoothed into a single oscillator. Readings above approximately +40 indicate a supportive risk-on environment where trends are more likely to persist, readings between -40 and +40 reflect transitional or choppy conditions with lower conviction, and readings below -40 signal a risk-off regime where capital preservation and defense should be prioritized.
The indicator is intended as a context and position-sizing tool, helping traders align strategy aggressiveness with underlying market conditions rather than relying on forecasts or narratives.
Session Liquidity Sweep + Trend ConfirmationThis strategy aims to capture high-probability intraday trades by combining liquidity sweeps with a trend confirmation filter. It is designed for traders who want a systematic approach to trade breakouts during specific market sessions while controlling risk with ATR-based stops.
How it Works:
Session Filter: Trades are only considered during a defined session (default 9:30 - 11:00). This helps avoid low-volume periods that can lead to false signals.
Trend Confirmation: The strategy uses a 50-period EMA to identify the market trend. Long trades are only taken in an uptrend, and short trades in a downtrend.
Liquidity Sweep Detection:
A long entry occurs when price dips below the prior N-bar low but closes back above it, indicating a potential liquidity sweep that stops being triggered before the trend continues upward.
A short entry occurs when price spikes above the prior N-bar high but closes below it, signaling a potential sweep of stops before the downward trend resumes.
ATR-Based Risk Management:
Stop loss is calculated using the Average True Range (ATR) multiplied by a configurable factor (default 1.5).
Take profit is set based on a risk-reward ratio (default 2.5x).
Position Sizing: Default position size is 5% of equity per trade, making it suitable for risk-conscious trading.
Inputs:
Session Start/End (HHMM)
Liquidity Lookback Period (number of bars to define prior high/low)
ATR Length for stop calculation
ATR Stop Multiplier
Risk-Reward Ratio
EMA Trend Filter Length
Visuals:
Prior Liquidity High (red)
Prior Liquidity Low (green)
EMA Trend (blue)
Why Use This Strategy:
Captures stop-hunt moves often triggered by larger market participants.
Only trades with trend confirmation, reducing false signals.
Provides automatic ATR-based stop loss and take profit for consistent risk management.
Easy to adjust session time, ATR, EMA length, and risk-reward to suit your trading style.
Important Notes:
Assumes 0.05% commission and 1-pip slippage. Adjust according to your broker.
Not financial advice; intended for educational, backtesting, or paper trading purposes.
Always test strategies thoroughly before applying to live accounts.
4MAs+5VWAPs+FVG+ Fractals4MAs + 5VWAPs + FVG + Fractals
All-in-one market structure indicator combining 4 moving averages, 5 VWAP timeframes, fair value gaps, fractals, and order blocks.
🔧 Features:
· 4 MAs - SMA/EMA, customizable lengths & colors
· 5 VWAPs - Daily, Weekly, Monthly, RTH, Custom sessions
· Fractals - Market structure with breakout lines & custom colors
· FVG/Imbalances - Bullish/bearish gap detection with alerts
· Order Blocks - Dynamic institutional levels
· Smart Labels - VWAP labels with color matching
⚙️ Quick Setup:
1. Toggle groups in Master Control Panel
2. Customize colors for each component
3. Set sessions for RTH/Custom VWAP
4. Adjust fractal periods (default: 2)
📈 Trading Use:
· Identify market structure with fractals
· Find confluence at VWAP + MA levels
· Trade FVG fills and order block reactions
· Multiple timeframe analysis with 5 VWAPs
Customizable • Color-Coordinated • Performance Optimized
Combined Indicators V2 by DeepsageCombined Indicators V2 – Overview
Combined Indicators V2 is an advanced trading indicator that builds on Combined Indicators V1 by Deepsage and Weighted Market Screener by Deepsage. It is designed to provide precise signals for long and short trades on very low timeframes (1m–5m) while aligning entries with the overall market trend.
Background: The Original Indicators
1. Combined Indicators V1 (Deepsage)
Combines three specialized indicators to generate signals:
Breakout Indicator: Uses Bollinger Bands and volume behavior to identify potential breakout trades.
Price Action Indicator: Detects price interaction with support and resistance levels, incorporating trend, volatility, and candlestick patterns.
Range Trading Indicator: Calculates RSI or Stochastic oscillator and plots signals against predefined upper and lower bands for range-bound markets.
2. Weighted Market Screener (Deepsage)
Monitors the overall market trend using 12 different indicators, each weighted based on its relevance.
Produces a market trend rating: strong buy, buy, neutral, sell, or strong sell.
What’s New in V2
1. Trend-Aligned Entries
In V2, the entry indicators (Breakout, Price Action, Range Trading) only generate signals when the Market Screener confirms the trend (can be turned off).
Long trades: Screener must rate the market as Buy or Strong Buy.
Short trades: Screener must rate the market as Sell or Strong Sell.
2. Session-Based Optimization
V2 supports the NY, London, and Tokyo trading sessions.
Each indicator can be restricted to the session where it performs best (can be turned off):
NY: Breakout Indicator
London: Price Action Indicator
Asia: Range Trading Indicator
3. Additional Enhancements
Market Screener locked to 15-minute timeframe, giving a clear view of the overall trend while entries are still executed on 1-minute charts.
Fully customizable alerts for buy and sell signals.
Settings allow traders to toggle indicators and alerts on/off for maximum flexibility.
Summary
Combined Indicators V2 is a powerful, session-aware, trend-aligned trading tool that merges multiple strategies into one cohesive system. It allows traders to:
Trade low timeframes with precise entries
Only take trades that align with the overall market trend
Optimize strategies based on trading sessions
Customize alerts and indicator settings for personal preferences
XAUUSD: Ultimate Sniper🔥 Stop Gambling, Start Trading with Logic!
Gold (XAUUSD) is not just a chart; it is a global asset driven by the Dollar (DXY) and US Yields (US10Y). Standard indicators (RSI, MACD) often fail because they ignore these macro factors. XAUUSD Ultimate Sniper is designed to solve this problem by combining Macro Economics with Statistical Math.
This script is not just a signal generator; it is a complete trading system.
🚀 KEY FEATURES:
1. Macro Correlation Filter:
The script analyzes DXY (Dollar Index) and US10Y (10-Year Yields) in the background.
Logic: If the Dollar and Yields are rising, Gold is under pressure (Bearish). If they are falling, Gold has room to fly (Bullish).
Dashboard: A live panel on the top-right shows the trend of these assets instantly.
2. Linear Regression Channel (The Tunnel):
Instead of guessing support/resistance, we use a statistical Linear Regression Channel.
The channel shows the "Fair Value" of price. Deviations outside the channel indicate "Overbought" or "Oversold" zones mathematically.
3. Smart "Re-Entry" Logic (No Repainting):
Most indicators signal too early while the price is still crashing/rallying.
Our Solution: This script waits for the price to close back inside the channel. It captures the confirmed reversal, not the falling knife.
4. ATR Based Dynamic Risk Management:
Stop Loss (SL) and Take Profit (TP) levels are automatically calculated using ATR (Average True Range).
Live Labels: When a signal appears, you will see exact price levels for your SL and TP on the chart.
🛠️ HOW TO USE:
Timeframe: Optimized for 15 Minutes (15m).
The Panel: Check the top-right table. If DXY and US10Y are GREEN, look for BUY signals. If RED, look for SELL signals.
The Signals: Wait for the "AL" (Buy) or "SAT" (Sell) labels.
Execution: Enter the trade and set your Stop Loss / Take Profit exactly where the label tells you.
Risk Warning: Past performance is not indicative of future results. This tool is for educational purposes. Always manage your risk.
USDC/USDT PremiumUSDC/USDT Premium Index
Overview
This indicator tracks the premium or discount of USD Coin (USDC) relative to Tether (USDT) using data from Binance. It serves as a barometer for sentiment within the stablecoin market. A premium on USDC often suggests a flight to quality or higher demand for a stablecoin perceived as more transparent and regulated.
Key Features
•
Premium Calculation: The premium is calculated as (USDC/USDT Price - 1) * 100 to represent the deviation from parity in basis points. For example, a value of 0.1 means USDC is trading at a 0.1% premium to USDT (i.e., a price of 1.001).
•
Dynamic Coloring: The indicator's line color changes based on its position relative to a moving average (MA):
•
Green: The premium is currently above its moving average, suggesting bullish momentum for USDC.
•
Red: The premium is below its moving average, indicating bearish momentum.
•
Zero Line: A zero line is plotted to clearly distinguish between a premium (above zero) and a discount (below zero).
•
Customizable MA: You can adjust the moving average period and type (SMA, EMA, etc.) to fine-tune the indicator's sensitivity.
How to Use
1.
Gauge Stablecoin Sentiment: A rising premium (green line) can indicate that traders are favoring USDC over USDT, which might happen during times of market uncertainty or concerns about USDT's reserves.
2.
Identify Shifts in Momentum: Look for the color to flip from red to green as a sign that the USDC premium is gaining strength. A flip from green to red may signal a weakening trend.
3.
Spot Extremes: Extreme deviations from the zero line can signal market stress or significant capital flows between the two major stablecoins.
Interpretation
•
Green Line (Premium > MA): Suggests that the short-term trend for the USDC premium is positive and strengthening.
•
Red Line (Premium < MA): Suggests that the short-term trend is negative, with USDC's value declining relative to its recent average against USDT.
•
Above Zero Line: USDC is trading at a premium to USDT.
•
Below Zero Line: USDC is trading at a discount to USDT.
This tool provides a nuanced view of the stablecoin ecosystem, helping traders understand capital flows and risk appetite. It is most effective when used to complement a broader market analysis strategy.
Chart This in GoldProduces a historical line chart in the bottom pane to reflect how many units of spot gold (XAU) could be exchanged for one unite of the underlying asset.
All-In-One Trading Toolkit [wjdtks255]Title: All-In-One Trading Toolkit
Description: This professional toolkit integrates 5 essential indicators into one seamless interface to enhance your market analysis. It provides a comprehensive view of trend, momentum, and volatility.
Features:
Bollinger Bands: Tracks price volatility and potential reversal zones.
Ichimoku Cloud: Visualizes long-term trend support and resistance.
RSI Dashboard: Real-time momentum monitoring in the top-right corner.
MACD Signals: Direct Buy/Sell shape indicators on the chart for instant decision making.
Volume Profile: Identifies key price levels with high trading activity.
Strategy:
Entry: Follow the MACD crossover signals (Green/Red triangles) when they align with the Ichimoku Cloud direction.
Thick Wick OverlayI have a hard time seeing the wick and made a simple overlay indicator to create a "thicker wick". You can change the thickness and wick color to your desired color and thickness.
NY Open | Opening Drive | Close UTC Open (15m)📝 Indicator Description
This indicator highlights key institutional market timing levels on a 15-minute chart, using New York session time for precision.
It visually marks and colors candles for the most important intraday moments used by active traders:
🔹 Features
NY Open (9:30 AM ET)
- Identifies the official U.S. market open.
Opening Drive Entry (9:45 AM ET)
- Marks the end of the opening volatility window and potential directional confirmation.
NY Close (4:00 PM ET)
- Highlights the U.S. equity market close.
UTC Daily Open (7:00 PM ET / 00:00 UTC)
- Marks the start of the new UTC trading day and colors the candle teal for easy recognition.
🎯 Designed For
- Crypto traders
- Index & futures traders
- Intraday and session-based strategies
- Traders who use time-based entries and session structure
⚙️ Notes
- Built specifically for the 15-minute timeframe
- Automatically adjusts for New York daylight savings
- Works on all markets that trade through the NY session
ULTIMATE Multi-TF Previous CloseULTIMATE Multi-TF Previous Close displays previous close levels across multiple timeframes in one simple, non-repainting indicator.
These levels often act as key decision points, providing natural support, resistance, and directional bias.
Ideal for day traders, swing traders, and scalpers who want higher-timeframe context without clutter.
Features include:
Yearly → 5-minute timeframe coverage
Right-extended horizontal levels
Optional labels with exact prices
Tick-accurate rounding
Designed for clarity. Built for precision.






















