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!
Trend Analysis
RS Score (1-100) vs NQ/ES/YM - TP# RS Score (1–100) vs NQ/ES/YM — How to Use & Interpret
## What this indicator is doing
It gives you a **single score from 1 to 100** that tells you whether a stock is acting like a **leader** or a **laggard** compared to the **overall U.S. market** (Nasdaq + S&P + Dow), using about **1 year of data**.
---
## The core idea: “Is this stock beating the market?”
This script compares your stock to a blended benchmark of:
* **Nasdaq futures (NQ)**
* **S&P futures (ES)**
* **Dow futures (YM)**
### Why that matters
A stock can be going up, but if the market is going up faster, the stock is **not a leader**.
This tool answers:
* “Is this stock outperforming the big market?”
* “Is it doing it consistently, or is it just wild and noisy?”
---
## What the 1–100 score means
Think of **50** as the “middle line.”
### The most important rule
* **Above 50 = outperforming the market blend**
* **Below 50 = underperforming**
* **Around 50 = roughly market-like**
### Easy interpretation bands
* **80–100 (Strong Leader):** stock is outperforming the market clearly and consistently
* **60–80 (Healthy):** generally outperforming, decent leadership
* **45–60 (Neutral-ish):** not special, close to market performance
* **30–45 (Weak):** lagging the market
* **1–30 (Very Weak):** strong underperformance
**Think “leaders live above 50,” and “real leaders tend to stay 70+.”**
---
## Why this score is “smarter” than just comparing returns
This script doesn’t just ask *“did it outperform?”*
It also asks *“did it outperform in a clean, steady way?”*
So it penalizes:
* choppy, unstable performance
* “one lucky spike” moves
That’s why it’s great for finding **higher-quality leadership**.
---
## Timeframe consistency: why it works on Daily, Weekly, Monthly
You added **Lock to last completed Daily bar**.
That means:
* it uses the **same daily reference point** no matter what chart timeframe you switch to
* your RS score won’t “walk around” just because the current day/week/month is still forming
**Practical meaning:**
If your score says 72, it should be 72 whether you’re looking at Daily, Weekly, or Monthly (as of the last completed day).
---
## The “RS New High” marker (NH) — what it’s telling you
The marker shows when your RS score hits a **new high** over your chosen lookback period (default ~252 trading days).
### In plain terms:
> “This stock is now showing its strongest relative performance vs the market (in about a year).”
### Why it’s powerful
A lot of the best leaders:
* show RS new highs **before** price breaks out
* or show RS new highs **during** breakouts
**So NH is a “leadership confirmation” signal.**
### How to use NH in real life
* **Best case:** RS hits a new high **while price is near breakout levels**
→ this often means institutions are accumulating and the stock is acting like a leader
* **Okay case:** price makes new highs but RS does not
→ stock is rising, but it’s not leading (could still work, but less attractive)
---
## Divergences: when RS and price disagree
This is one of the most useful ways to use RS.
### Bearish divergence (warning)
**Price makes a higher high, but RS makes a lower high.**
In simple terms:
> “The stock is still going up, but it’s losing leadership versus the market.”
This often shows up before:
* pullbacks
* breakout failures
* trend weakening
* rotation into stronger names
**It’s a caution sign, not an automatic sell.**
### Bullish divergence (early strength)
**Price makes a lower low, but RS makes a higher low.**
In simple terms:
> “The stock is holding up better than the market — strength is building underneath.”
This can happen before:
* reversals
* strong bounce setups
* early leadership emergence
---
## How to use this indicator in a simple trading workflow
### 1) Screening (finding leaders)
When scanning charts:
* Prefer stocks **above 50**
* Strong candidates are typically **70+**
* Bonus points if you see **NH markers** recently
**Quick rule:**
If RS < 50, it’s usually not worth your time unless you’re hunting deep value turnarounds.
---
### 2) Breakouts (confirming quality)
When a stock is near a breakout point:
* You want RS to be **rising**
* Ideally RS is near highs or prints **NH**
If price breaks out but RS is weak:
* it’s more likely to be a “meh breakout”
* sometimes it works, but it’s less “leader-like”
---
### 3) Managing positions (leadership health check)
If you’re already holding:
* RS staying high and rising = healthy leadership
* RS rolling over while price still rises = **possible early warning**
* RS plunging under 50 = the stock is now **lagging the market** (big red flag)
---
## Common “mistakes” and how to avoid them
### Mistake 1: Thinking RS > 50 means “guaranteed winner”
No — it means it’s acting **stronger than the market**, but price action still matters.
Use it with:
* trend structure
* volume/accumulation
* breakout levels
### Mistake 2: Overreacting to one divergence
One divergence is a warning.
You want confirmation like:
* failed breakout
* heavy sell volume
* loss of key moving averages
* repeated RS lower highs
### Mistake 3: Comparing RS values across totally different markets without context
RS works best when:
* comparing stocks within the same broad market environment
* keeping the same benchmark blend and same lookback
---
## Simple cheat sheet
* **RS > 50:** outperforming market (good)
* **RS 70–100:** leader zone
* **NH marker:** strongest relative strength in lookback window (leadership confirmation)
* **Price HH + RS LH:** bearish divergence (leadership weakening)
* **Price LL + RS HL:** bullish divergence (strength building)
Thank you!
Multi-Factor ConsensusMFC (Market Field Coherence)
A Triumph of Complexity: The Fusion of Three Professional Engines to Visualize the Unified
Mind of the Market
█ OVERVIEW: BEYOND THE INDICATOR
This is not another lagging indicator. This is a command suite.
MFC (Market Field Coherence) is not a single tool, but a seamless integration of three professional-grade, independent analytical engines fused into a singular, awe-inspiring system. It's a masterwork of signal processing and applied mathematics designed to visualize the invisible—the collective, underlying state of the market.
It moves beyond the simplistic analysis of individual price bars to measure something far more profound: the degree of emergent coherence across an entire ensemble of market oscillators. While traditional tools see the market as a series of disconnected data points, MFC sees it as a dynamic, fluctuating field of forces. By deploying its three specialized engines, MFC identifies moments of critical transition when disparate, chaotic market inputs converge into a single, unified, and tradable state of being. It measures the very instant the "noise" becomes a "symphony," and generates signals only when all three engines are in unanimous agreement.
█ A TRINITY OF SYSTEMS: THREE INDICATORS IN ONE
MFC's unparalleled precision comes from its unique tripartite architecture. It is not a monolithic tool. It is a fusion of three distinct, professional-grade analytical engines, each performing a critical and independent function. Their synergy is what produces the high-quality, filtered signals and the profound analytical clarity.
ENGINE 1: The Quantum Coherence Engine
The heart of the system. This is a pure regime-detection indicator. Its sole purpose is to perform the heavy lifting of converting the oscillator ensemble into complex-plane phasors and calculating the two most critical metrics: the Coherence Index (CI) and the Dominant Phase . It constantly works to answer the primary question: " How unified is the market, and in which direction is it leaning? "
ENGINE 2: The Multi-Layer Confirmation Matrix
A high CI from the first engine is not enough. This second, independent engine acts as the ultimate quality filter. It is, in essence, a sophisticated confirmation indicator that runs two rigorous, non-negotiable checks: the Phase-Lock Detector (is the alignment tight enough?) and the Pairwise Entanglement Web (is the alignment broad-based and not a fluke?). This is a purely logical system designed to reject ambiguity, eliminate false positives, and validate the findings of the Coherence Engine. It answers the crucial follow-up question: " Is this detected coherence real, or is it a statistical ghost? "
ENGINE 3: The Advanced Visualization Suite
Raw data is meaningless without interpretation. This third engine is a full-fledged visual indicator in its own right, dedicated to translating the abstract mathematics from the other two engines into an intuitive, multi-dimensional language. Featuring the revolutionary Circular Orbit Plot , the atmospheric Quantum Field Cloud , and deep-dive analytical grids, it allows you to see the market's state in a way that numbers alone never could. It answers the final question: " What does this confirmed state of coherence actually look like? "
An Ignition Signal only fires when all three of these independent systems reach a unanimous conclusion. This is the source of MFC's power and precision.
█ THE PHILOSOPHY & THEORETICAL FOUNDATION
MFC is built upon a synthesis of advanced mathematical frameworks, each chosen for its unique ability to extract a deeper layer of truth from market data. Their combination across the three engines creates a system far greater than the sum of its parts.
1. The Kernel: Gaussian-Weighted Smoothing for Intelligent Lag Reduction
Simple and Exponential Moving Averages are primitive tools. MFC's engines reject them. We employ a Gaussian Kernel for all internal smoothing. This "bell curve" weighting assigns the most significance to the most recent data, gracefully decaying influence for older data. The result is a beautifully smooth yet highly responsive measure of coherence, fundamentally reducing the lag that plagues other systems.
The formula for the weight w at a distance i from the center μ is:
w(i) = exp(- (i - μ)² / (2 * σ²))
2. The Lens: Sigmoid Normalization for Non-Linear State Definition
To compare an RSI of 80 to a MACD of 0.5, MFC utilizes the robust and mathematically elegant Sigmoid (Logistic) Function. Its non-linear, "S-shaped" curve squashes any input into a perfect, bounded range, creating extreme sensitivity near the neutral midpoint and gracefully compressing values at the extremes. This provides a crystal-clear distinction between "weak," "strong," and "extreme" conditions.
f(x) = 1 / (1 + exp(-k * x))
3. The Engine: Complex-Plane Phasors for Coherence Measurement
This is the heart of Engine 1. Each normalized oscillator is transformed from a single scalar value into a two-dimensional vector (a phasor) in the complex plane, capturing its magnitude (strength) and its phase angle (position and velocity).
Resultant Vector (R) = Σ e^(iφₙ) = Σ cos(φₙ) + i·Σ sin(φₙ)
The Coherence Index (CI) is the magnitude of this resultant vector, normalized by the number of oscillators N:
CI = |R| / N
This mathematical blending— Gaussian smoothing for clean data, Sigmoid normalization to define state, and Complex-Plane Analysis to measure collective coherence—is what allows MFC to generate insight that is simply impossible to achieve with conventional tools.
█ THE INPUTS MENU: YOUR COMMAND & CONTROL
Every parameter is exposed, allowing you to fine-tune MFC's three engines to any instrument, timeframe, or trading style. Here is an exhaustive guide:
Oscillator Settings (Engine 1)
Enable/Disable Toggles & Lengths: Construct the perfect ensemble for your market. Shorter lengths for scalping (e.g., 5m chart), longer lengths for swing trading (e.g., 4H chart). Disable any oscillator that consistently acts as an outlier to reduce noise.
Normalization Anchors: Define the "extreme" boundaries for the Sigmoid function. Widen these anchors (e.g., RSI 80/20) for highly volatile assets to better capture the larger price swings.
Coherence & Confirmation Settings (Engines 1 & 2)
CI Smoothing Window: Controls the Gaussian Kernel for the final Coherence Index. A short window (2-4) offers a fast reaction for scalpers. A longer window (5-10) creates a smoother CI line for swing traders.
Ignition Threshold: The CI level needed to activate a signal check. A lower threshold (0.70) generates more signals. A higher threshold (0.85) produces fewer, but extremely high-conviction signals.
Phase Lock Tolerance & Min Entangled Pairs: These are the core parameters for the Confirmation Engine (Engine 2). Use tighter tolerances (e.g., 25°) and a higher number of pairs (e.g., 5+) to demand an incredibly high standard for signal confirmation.
█ THE DASHBOARD: YOUR QUANTITATIVE READOUT
The dashboard provides a real-time, numerical dissection of the market field, summarizing the outputs of all three engines.
CI (Coherence Index): What it is: The master metric from Engine 1. How to interpret: < 40% (Chaos): The market is disjointed. 40-70% (Coherent): A regime is forming. > 70% (Ignition Zone): High consensus.
Dom Phase (Dominant Phase): What it is: The "average" direction from Engine 1. How to interpret: The arrow gives the immediate directional bias.
Field Strength: What it is: CI × Average Amplitude . How to interpret: Measures alignment with conviction. A high Field Strength is the signature of a powerful, aggressive trend.
Entangled Pairs & Phase Lock: What they are: The direct readouts from the Confirmation Engine (Engine 2). How to interpret: The 🔒 symbol and a high pair count are the final "green lights" before a signal can be generated.
State: What it is: A real-time classification of the market's condition based on the combined output of all engines. How to interpret:
🚀 IGNITION: All three engines are in unanimous, bullish/bearish agreement.
⚡ COHERENT: The trend is healthy and coherence is stable.
💥 COLLAPSE: The regime's integrity is compromised.
🌀 CHAOS: The market is unpredictable.
Collapse Risk: What it is: A 0-100% gauge measuring the rate of recent CI decay. How to interpret: A leading indicator for trend exhaustion. A value rising above 50% is a powerful signal to tighten stops.
█ THE VISUALS: THE ART OF ANALYSIS (ENGINE 3)
The Visualization Suite (Engine 3) translates the complex calculations into an intuitive visual language. Learning to read these displays is like learning to see the market in a new dimension.
The Circular Orbit Plot: The soul of MFC. A polar grid showing each oscillator as a labeled vector.
Angle = Phase, Length = Amplitude. Watch for Convergence: when scattered vectors cluster into a single quadrant, you are witnessing the birth of a new regime in real-time.
The Quantum Field Cloud: An atmospheric overlay on the price chart.
Color = Dominant Phase ( Green for bullish, Red for bearish). Opacity = Coherence Index . A dense, opaque cloud signifies an extremely strong, coherent regime.
The Entanglement Web Matrix & Phase-Time Heat Map: Deep-dive analytical tools. Use the Web to diagnose the quality and breadth of coherence. Use the Heat Map to identify historical patterns and pivotal moments of unified market phase.
█ THE DEVELOPMENT: A QUEST FOR TRUTH
MFC was not created to be just another tool. It was engineered to solve the fundamental ambiguity of technical analysis by creating a system of checks and balances between three specialized engines. I sought to replace subjective interpretation with objective, multi-stage mathematical measurement. The choice of Gaussian kernels, Sigmoid functions, and complex-plane analysis was a deliberate decision to embrace the multi-dimensional reality of market dynamics rather than simplifying it into a single, misleading number.
This is a tool for the discerning trader who understands that the market is not a random walk, but a complex, adaptive system. MFC provides a new set of senses to perceive the behavior of that system.
"The financial markets are generally unpredictable. So that one has to have different scenarios... The idea that you can actually predict what's going to happen contradicts my way of looking at the market."
— George Soros
MFC does not predict. It measures . Its three engines work in concert to provide a high-resolution image of the market's current state , allowing you to align yourself with moments of profound clarity and step aside during times of absolute chaos. Trade the coherence, not the forecast.
█ IMPORTANT WARNINGS & DISCLAIMER
This tool is designed for analytical and informational purposes. It identifies periods of high statistical confluence based on the behavior of technical oscillators. This is not a "signal" service and provides no financial advice.
RISK OF LOSS: All trading and investment activities involve substantial risk of loss. Do not trade with capital you cannot afford to lose.
NO GUARANTEE: This indicator does not guarantee profits or prevent losses. Past performance is not indicative of future results.
USE CONFIRMATION: "Ignition" markers denote a unanimous conclusion from all three internal engines, not explicit instructions to buy or sell. They should be used as one component within a comprehensive trading plan.
REGIME DEPENDENT: The effectiveness of this tool is dependent on market conditions. It performs best in markets with clear cyclical behavior.
Taking you to school. - Dskyz, Trade with probability. Trade with consensus. Trade with MFC.
A-A-M Dots + Failed Acceptance (Gold) [CLEAN v6]What this indicator does
This indicator visualizes real market behavior using an Order Flow logic sequence:
Absorption → Acceptance → Momentum (A-A-M)
plus a critical Failed Acceptance condition (trap detection).
It is designed specifically to help traders:
Validate price movement quality
Detect traps early
Avoid false continuation signals
This indicator does not predict price.
It highlights what the market is doing right now based on volume behavior and price response.
Core Concepts Explained
1️⃣ Absorption
Appears when:
Volume is high
Price fails to move far
Long wicks + small body
This suggests large passive orders absorbing aggression.
Absorption is often where moves start or fail — but never confirmation by itself.
2️⃣ Acceptance
Occurs when price:
Breaks above/below the absorption zone
Closes and holds beyond that level
Acceptance confirms the market is willing to trade at a new price.
3️⃣ Momentum
Triggered when:
Strong candle body
Clear follow-through after acceptance
Momentum confirms continuation strength, not entry timing.
4️⃣ Failed Acceptance (Trap)
Appears when:
Acceptance happens
Price then returns back into the absorption zone
This signals a trap:
Failed bullish acceptance → potential downside
Failed bearish acceptance → potential upside
This is one of the most powerful reversal validations in order flow trading.
How to Use This Indicator
Use it as a confirmation tool, not a standalone entry signal
Best combined with:
Market structure
Higher-timeframe bias
Risk management rules
Recommended for:
Gold (XAUUSD / Gold Futures)
Intraday & swing traders
Traders who want context, not signals
What This Indicator Is NOT
❌ Not a signal generator
❌ Not a prediction tool
❌ Not a shortcut to profits
It is a market behavior validator.
Final Note
If you understand why price moves,
you no longer need to chase where price might go.
RegimeWorks Context Overlay Sessions Regime Panel OutcomeMost traders ask: “Where can I enter?”
This indicator asks a better question:
“Do I even have permission to trade?”
RegimeWorks is a decision framework, not a signal generator.
It helps you filter the market before you think about entries.
RegimeWorks shows when the market has permission to trade, not when you should.
Use it to filter bad setups and focus your attention where it matters.
What This Indicator Actually Does
1) Broker-Aligned Behavior Sessions (XAUUSD)
Visualizes the real participation windows on the Fusion feed:
London Behavior: 15:00–18:00 UTC+2
NY Behavior: 21:00–00:00 UTC+2
These are liquidity behaviors, not textbook FX clocks.
The goal is simple: trade only when the market is awake.
2) High-Timeframe Permission Layer
A structured HTF filter combining:
EMA alignment & direction
ATR expansion vs baseline
Slope agreement
Stretch / over-extension guard
This becomes a single answer:
Regime VALID → continuation is allowed
Regime INVALID → stand aside
Reversal Permitted → only when trend is weak and not stretched
The panel translates conditions into plain language:
Continuation Permitted (London)
No Trade – Conditions Not Met
Reversal Permitted (NY)
It teaches process without exposing any private entry logic.
How to Use (3 Steps)
Start with the panel.
If Regime = INVALID → you’re done. No trade.
Check the session.
Closed session = no business trading.
Read the Outcome line.
It tells you what behavior is allowed — not what button to press.
Regime → Session → Setup → Execution
Best Chart Setup
XAUUSD on 1H / 4H
Keep panel visible for journaling
Use “No Trade” days as part of your edge
Who This Is For
Traders tired of overtrading
Anyone building rule-based discipline
Educators who want a clean context layer
Disclaimers
Educational tool only.
Not financial advice.
Risk management remains your responsibility.
RegimeWorks — Trade Permission First
Simple MSS Detector + FVG Filter + Alerts (mihaifx888)Simple MSS (Market Structure Shift) + Break Line + FVG Filter
This indicator identifies Market Structure Shifts (MSS) using a clean, pivot-based approach and optionally filters them using Fair Value Gaps (FVGs) for higher-quality signals.
It is designed for traders who want a clear, minimal, and rule-based structure shift tool without overcomplication.
Personally, I use it to set up alerts for MSS after valid liquidity gets broken and/or price enters a FVG. This way I don't waste time on charts or setting up alerts manually.
You can play with the pivot length from 1 to 5, levels. I use it on level 2 and 3.
1 = aggressive
5 = super conservative
⸻
How it works
1. Structure definition
• Uses pivot highs and lows to define swing structure
• Tracks the most recent confirmed swing high and swing low
• Structure shifts are only detected when the trend flips:
• Bearish → Bullish (bullish MSS)
• Bullish → Bearish (bearish MSS)
2. Break confirmation
• Choose how structure is considered broken:
• Close beyond the swing level
• Wick beyond the swing level
3. MSS visualization
• When a valid MSS occurs, the script draws a horizontal line
• The line is drawn from the original swing level to the break candle
• Separate colors for bullish and bearish MSS
• Adjustable line thickness
⸻
Optional Fair Value Gap (FVG) filter
You can require a valid Fair Value Gap to appear before the MSS, adding confluence and filtering weaker structure shifts.
• Detects classic 3-candle FVGs:
• Bullish FVG: current low > high two candles back
• Bearish FVG: current high < low two candles back
• Configurable lookback window (number of bars)
• Optional minimum FVG size filter, based on ATR:
• Helps ignore very small or insignificant imbalances
You can enable or disable the FVG filter at any time.
⸻
Alerts
• Bullish MSS alert (Bear → Bull)
• Bearish MSS alert (Bull → Bear)
• Alerts respect all active filters and settings
⸻
Best use cases
• Intraday and lower-timeframe structure analysis
• Liquidity-based or reversal strategies
• MSS confirmation after sweeps, ranges, or session highs/lows
• Works on any market and timeframe
⸻
Notes
• This indicator does not repaint confirmed signals
• It is a structure-only tool and does not provide trade entries or risk management
• Intended as a context and confirmation indicator, not a standalone system
Liquidity Detector ADVANCED + Alerts v4 (mihaifx)Liquidity Detector ADVANCED + Alerts v4
Liquidity Detector ADVANCED is a multi-timeframe liquidity mapping indicator designed to highlight significant swing highs and lows across multiple timeframes and track when those levels are taken.
The script automatically identifies pivot-based liquidity levels on the 5-minute, 15-minute, 1-hour, and Daily timeframes, draws them on the chart, and visually updates each level once it is broken.
Once a liquidity gets broken, the SOLID line changes to DASHED and stays active on the chart for 120min (default, but can be changed in settings).
You can also add alerts based on this indicator to be automatically alerted when ANY liquidity gets broken OR you can add an alert for each type of liquidity: 5m, 15m, 1h, D.
Personally, I use it to be notified when significant liquidity gets broken and then I look for a valid MSS to enter a trade. With this indicator I don't have to waste time each day marking valid liquidity and setting an alert for each level. It's all done automatically.
The default settings are my recommended settings. Feel free to adjust based on your needs.
⸻
Key Features
• Multi-timeframe liquidity levels
Detects pivot highs and lows from 5m, 15m, 1H, and Daily timeframes.
• Clear visual distinction
Each timeframe uses its own color, making it easy to identify where liquidity originates.
• Live vs Broken state tracking
– Live liquidity levels are drawn using a user-selected line style
– Once a level is broken, it automatically switches to a separate style and color
• Customizable appearance
Fully adjustable:
• Line thickness
• Line style for live levels (solid, dotted, dashed)
• Line style for broken levels
• Individual colors for live and broken levels per timeframe
• Duplicate level handling
When multiple timeframes share the same price level, the script keeps only the most relevant version, preventing visual clutter.
• Broken-level lifetime control
Choose how long broken liquidity levels remain visible before being removed from the chart.
• Alerts included
Alerts can be enabled for:
• Any liquidity break
• 5m, 15m, 1H, or Daily liquidity breaks individually
⸻
How It’s Typically Used
This indicator is intended to help traders visually track areas where price previously reversed and observe when those areas are breached. It can be used as a structural reference alongside other analysis methods.
⸻
Notes
• Designed for use on all markets supported by TradingView
• Works on any chart timeframe
• This script is an analytical tool only and does not generate trade signals
Key Levels ICT📊 ICT Sessions • Opens • HTF FVG Levels (EST)
A complete ICT-style market structure toolkit designed for precision session trading and higher-timeframe confluence.
This indicator plots key institutional reference levels used by ICT / Smart Money traders, all aligned in New York (EST) time, with automatic management, sweep logic, and clean visual structure.
🔹 Sessions High & Low
Asia
London
New York
Features:
Exact session High & Low
Lines extend dynamically to the present price
Automatic sweep detection
Line stops extending once liquidity is taken
Adjustable number of previous sessions displayed
Clean right-side labels
🔹 Market Opens
True Day Open (00:00 EST)
New York 8:30 Open
Features:
Dotted horizontal lines
Only the latest open is displayed
Automatically extended to the right
Centered labels aligned with price
🔹 HTF Fair Value Gap Levels
Supported timeframes:
15m
1h
4h
Daily
Features:
HTF FVG detection using candle imbalance logic
Line plotted from the exact HTF candle start time
Level drawn at the closest price edge (not 50%)
Lines extend forward in real time
Automatic handling of mitigation:
< 50% fill → line remains active
≥ 50% fill → level is fully removed
Sweep logic cuts the line when liquidity is taken
Optional stacking of labels when multiple HTF FVGs align
Adjustable number of historical FVG levels kept on chart
🔧 Customization
Timezone fixed to America/New_York (EST)
Adjustable right-side extension length (candles)
Custom colors & line thickness
Optional session visibility
Label positioning optimized for sweep visibility
🎯 Designed For
ICT / Smart Money Concepts traders
Session-based trading
Liquidity sweep models
HTF–LTF confluence execution
Futures, Forex, Indices & Crypto
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.
Palm Tracer ElitePalm Tracer Elite
Palm Tracer Elite is a premium trend-following system designed specifically for FCPO (Crude Palm Oil Futures) trading. This tool simplifies market analysis by combining classic EMA crossovers with advanced money management visualization, allowing traders to execute Scalping or Swing strategies with precision.
🚀 Key Features
Trend Detection Engine
Uses a robust EMA 20 & EMA 50 Crossover logic to identify high-probability trend reversals.
Green Cloud : Uptrend confirmed.
Red Cloud : Downtrend confirmed.
Smart Money Management Overlay
Visual Trade Setup : Automatically draws Entry, Take Profit (TP), and Stop Loss (SL) lines on the chart as soon as a signal appears.
Profit & Risk Zones : Clearly shaded areas show you exactly where to aim (Green Zone) and where to exit (Red Zone).
Dynamic Trailing : Supports trailing stops to lock in profits during strong trends.
Dual Trading Modes
🎯 Scalping Mode : Tighter targets (Base TP: 30 ticks) for quick intraday moves.
🌊 Swing Mode : Wider targets (Base TP: 140 ticks) for capturing major market swings.
Custom Mode : Configure your own fixed TP/SL or use Fibonacci expansions.
Live Dashboard
Real-time stats including Win Rate , Net Points , and Total Trades .
Built-in filters: Displays RSI momentum and Volume Spikes to help you validate signals.
📖 How to Use
Select Your Mode
Go to settings and choose "SOP Scalping" or "SOP Swing" based on your trading style.
Wait for Signal
🟢 UP (Buy) : EMA 20 crosses above EMA 50.
🔴 DOWN (Sell) : EMA 20 crosses below EMA 50.
Execute Trade
Enter at the Cyan "Start" Line .
Set your Stop Loss at the Red "Risk" Line .
Take Profit at the Green "Target" Line .
Monitor
Use the dashboard to see if RSI favors your trade (Green text = Good Zone) and watch for Volume Spikes.
Disclaimer: This tool is for educational purposes only. Past performance does not guarantee future results. Always manage your risk.
Vortex Indicator (Smoothed Version)The original tradingview vortex indicator but with smoothed as default
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
TruFREND UST | Universal Signal Tracker & Integration SystemConcept & Purpose
TruFREND UST (Universal Signal Tracker) is the dedicated execution engine of the TruFREND ecosystem. It serves as the "Tactical Arm" to TruFREND Core, designed to capture persistent trends while managing trade states, Stop Losses, and Take Profits automatically.
Note on Originality & Evolution
This script represents a professional evolution of the basic "EMA/ATR Scalping" concepts we previously released as open-source educational material. While the fundamental premise of trend following remains, UST completely rebuilds the execution engine to offer advanced features not possible in the free version:
• Noise Filtering: Replaces standard EMAs with a proprietary "Combined MA" logic (blending TEMA and EMA) to reduce lag while preventing false signals during consolidation.
• Ecosystem Integration: Unlike the standalone free tool, UST connects directly to TruFREND Core to filter entries based on macro Risk Regimes.
• State Management: UST tracks the active trade lifecycle (Entry, In-Position, Exit) to prevent signal duplication and visual clutter.
How It Works
UST is designed to solve the problem of execution anxiety by providing objective rules. It operates in two distinct modes:
1. Standalone Mode (Independent)
Functions as a complete trend-following system. It utilizes internal volume and volatility filters to identify high-probability trends.
• Smart Signal Line: The script calculates a hybrid signal line that remains responsive to breakouts but smooths out chop, addressing the reactivity issues often found in standard Moving Average crossovers.
• Dynamic Risk Management: Automatically projects Stop Loss (ATR or %) and Take Profit levels on the chart, helping traders adhere to a disciplined Risk:Reward plan.
2. Integration Mode (Paired with TruFREND Core)
When paired with the TruFREND Core indicator, UST acts as the "Hands" to Core's "Brain".
• Risk-Based Filtering: UST listens to the "Risk Score" and "Leverage" data broadcast by Core.
• Regime Detection: It automatically blocks valid technical entries if Core detects a high-risk regime (e.g., Overextension or Liquidity Crunch). This ensures execution aligns with the favorable macro environment.
Key Features
• Trade State Logic: Unlike simple "alert" scripts, UST tracks the state of the trade. It visualizes the active trade lifecycle and prevents duplicate signals.
• MMAR Strength Panel: An integrated dashboard aggregates trend intensity across 6 time-weighted periods, giving a quick read on immediate trend velocity.
• Directional Bias: Includes a filter (Long/Short/Neutral) to align execution with your higher-timeframe thesis.
Settings
• Signal Mode: Choose "Standalone" for independent use or "Integration Mode" to connect with TruFREND Core.
• Execution Mode: Toggle between "Spot" (Trend following) and "Futures" (Reversal sensitivity).
• MA Composition: Fine-tune the blend between TEMA and EMA to adjust sensitivity.
Required Dependency: This script is designed to work with TruFREND Core:
Risk Disclaimer
This tool is for educational execution analysis only. Past trend performance—whether in this tool or previous educational prototypes—is not indicative of future results. Trading involves significant risk. Always manage risk responsibly.
55 Levelsmarks the high and low of the 3:55pm est candle with horizontal rays. The dashed lines are the current session 3:55 high/low and will become solid upon market open at 6pm est.
STAX# STAX - MapleStax Candle by Candle Automation
## Overview
STAX is a trend-following indicator that automates the "MapleStax Candle by Candle (CBC)" methodology for futures and equity trading. This system uses a higher timeframe anchor trend combined with lower timeframe execution filters to identify high-probability pullback entries in the direction of the prevailing trend.
## How It Works
### 1. Anchor Trend Detection (10-Minute CBC Flip)
The core of this system is the CBC (Candle by Candle) flip logic on the anchor timeframe (default: 10 minutes):
- **Bullish Flip**: Occurs when a 10m candle closes ABOVE the high of the previous 10m candle
- **Bearish Flip**: Occurs when a 10m candle closes BELOW the low of the previous 10m candle
- Once a flip occurs, the trend remains in that direction until an opposite flip happens
The anchor trend is calculated using `request.security()` with `lookahead=barmerge.lookahead_off` and indexed historical data ` ` to ensure non-repainting behavior. This means signals will not change or disappear after they appear.
### 2. Execution Filters (Current Timeframe)
On your current chart timeframe (recommended: 3 minutes), the indicator applies two key filters:
**EMA Confirmation**:
- For LONG signals: 9-period EMA must be greater than 20-period EMA
- For SHORT signals: 9-period EMA must be less than 20-period EMA
**VWAP Filter** (Strict or Target mode):
- **Strict Mode** (default): Only shows signals when price is on the correct side of VWAP
- LONG signals only above VWAP
- SHORT signals only below VWAP
- **Target Mode**: Shows all valid signals but uses VWAP as the take profit target when price is on the "wrong" side
### 3. Entry Signal Logic
The indicator looks for pullback entries:
- **BUY Signal**: 10m trend is Bullish + EMA 9 > 20 + Current 3m candle is RED (close < open)
- Logic: Wait for a red pullback candle in a bullish trend with bullish EMA alignment
- **SELL Signal**: 10m trend is Bearish + EMA 9 < 20 + Current 3m candle is GREEN (close > open)
- Logic: Wait for a green retracement candle in a bearish trend with bearish EMA alignment
This pullback logic helps you enter after a brief counter-trend move, improving risk/reward compared to chasing breakouts.
### 4. Risk Management
**Stop Loss**: Automatically set at the previous 10-minute candle's low (for longs) or high (for shorts). This represents the last swing point that would invalidate the trend structure.
**Take Profit**:
- When aligned with VWAP: Fixed tick-based target (default: 20 ticks, adjustable)
- When counter to VWAP: Target is VWAP itself, providing a logical profit target
The indicator displays TP and SL levels visually and alerts when they are hit.
### 5. Signal Management
To prevent over-trading, the indicator includes a **cooldown period** (default: 10 bars minimum between signals). This stops signal spam in choppy conditions and forces you to wait for the market to develop before taking another trade.
### 6. Time Session Filters
Two separate trading sessions can be configured with 12-hour clock inputs:
- **Session 1**: Default 9:30 AM - 4:00 PM (New York regular hours)
- **Session 2**: Optional second session for extended hours or different time zones
Signals only appear during enabled sessions, helping you trade during liquid market hours.
## What Makes This Original
This indicator automates a specific methodology (MapleStax CBC) that combines multiple proven concepts:
1. Higher timeframe trend structure (CBC flip logic)
2. Lower timeframe execution timing (EMA filters)
3. Pullback entry strategy (counter-colored candles)
4. Volume-based target selection (VWAP integration)
5. Swing-based stop placement (previous anchor swing points)
The combination of these elements into an automated system with visual feedback and alert functionality is what provides value beyond using these indicators separately.
## How to Use
1. **Choose Your Timeframes**:
- Anchor timeframe: 10 minutes (adjustable) for trend direction
- Execution timeframe: 3-5 minutes recommended for entries
2. **Select VWAP Mode**:
- **Strict Mode**: More conservative, only trades with VWAP bias
- **Target Mode**: More aggressive, uses VWAP as profit target
3. **Configure Sessions**: Enable Session 1 and optionally Session 2 to match your trading hours
4. **Set Risk Parameters**: Adjust take profit ticks based on your instrument and risk tolerance
5. **Watch for Signals**:
- Green "BUY" label below bars = Long entry
- Red "SELL" label above bars = Short entry
- Dashed red line = Stop loss level
- Green "TP ✓" or Red "SL ✗" labels show exit points
6. **Monitor the Status Table**: The table in the top-right shows:
- Current 10m trend direction
- EMA alignment status
- VWAP position
- Active session status
- Current signal state
- Active trade information
7. **Set Alerts**: Use TradingView's alert system with the built-in alert conditions:
- BUY Signal
- SELL Signal
- Take Profit Hit
- Stop Loss Hit
## Best Practices
- **Recommended Timeframes**: 3m execution chart with 10m anchor works well for active trading
- **Instrument Selection**: Works best on liquid futures contracts (ES, NQ, CL, etc.) and major forex pairs
- **Session Trading**: Enable Session 1 for New York hours; avoid low-volume periods
- **Backtest First**: Always backtest the settings on your specific instrument before live trading
- **Use Realistic Parameters**: Default 20-tick TP is conservative; adjust based on instrument volatility
## Limitations and Warnings
**This indicator does NOT**:
- Guarantee profitable trades (past performance does not indicate future results)
- Account for slippage, commissions, or real-world execution challenges
- Work equally well in all market conditions (performs poorly in low-volume, range-bound markets)
- Replace proper risk management and position sizing
- Provide financial advice
**Repainting**: This indicator is designed to be non-repainting. Signals use indexed historical data from the anchor timeframe, meaning they will not change or disappear after they appear. However, the current bar's status will update in real-time until it closes.
**Market Conditions**: This trend-following pullback system performs best in trending markets with clear directional bias. In choppy, range-bound conditions, expect more false signals despite the cooldown filter.
**Stop Loss Execution**: The stop loss levels shown are theoretical. In fast-moving markets, actual fills may occur at worse prices due to slippage.
## Input Parameters
**Anchor Settings**:
- Anchor Timeframe: Higher timeframe for trend detection (default: 10 minutes)
**EMA Settings**:
- Fast EMA: Short-period EMA for execution bias (default: 9)
- Slow EMA: Long-period EMA for execution bias (default: 20)
**VWAP Settings**:
- Strict VWAP Filter: Toggle between strict filtering and target mode
**Signal Management**:
- Min Bars Between Signals: Cooldown period to prevent spam (default: 10 bars)
**Time Filters**:
- Session 1 & 2: Configure up to two trading sessions with start/end times in 12-hour format
**Risk Management**:
- Take Profit (Ticks): Fixed tick target when aligned with VWAP (default: 20)
**Visual Settings**:
- Show Trend Background: Background color based on 10m trend
- Show Stop Loss Lines: Display SL levels on chart
- Show EMAs: Display 9/20 EMAs on chart
- Show VWAP: Display daily VWAP on chart
## Technical Notes
- Uses Pine Script v5
- Non-repainting implementation via `request.security()` with `lookahead_off` and indexed data
- Suitable for alerts and automated trading integration
- Maximum 50 labels and 50 lines to maintain performance
- Status table updates on each bar close
## Credits
This indicator automates the MapleStax Candle by Candle methodology. The CBC flip logic and pullback entry concept are part of the MapleStax trading education system.
---
**Disclaimer**: This indicator is for educational and informational purposes only. It is not financial advice. Trading futures, forex, and equities carries substantial risk of loss. Past performance is not indicative of future results. Always trade with risk capital you can afford to lose and use proper position sizing.
@traderbinj ict essentialsHere is a professional, feature-rich description ready for you to copy and paste into the TradingView publishing window.
I have structured it to highlight the unique behaviors (like the "Sweep" logic and the "Chart Precision" for gaps) so users understand why this script is superior to basic session indicators.
Title: ICT Sessions, Liquidity & Gaps
Description:
This is a comprehensive, all-in-one toolkit designed specifically for ICT (Inner Circle Trader) and SMC (Smart Money Concepts) traders. It consolidates Session Timing, Liquidity Targets, High Timeframe Levels, and Opening Gaps into a single, clean, and highly customizable indicator.
Unlike standard session indicators, this script focuses on chart cleanliness and price action logic. It features "Smart Labels" that move out of the way of price, "Sweep Logic" that cuts lines once liquidity is taken, and "WYSIWYG" precision for opening gaps.
🚀 Key Features
1. Smart Session Highs & Lows (with Sweep Logic)
Automatically marks the Asia, London, and New York AM sessions.
Sweep Logic: Session High/Low lines extend to the right as liquidity targets. However, the moment price sweeps (touches) a level, the line stops extending and "cuts" exactly at that candle. This keeps your chart clean and shows you exactly where liquidity was taken.
Smart Labels: Labels float to the right of current price. When a sweep occurs, the label jumps to the left of the sweep candle so it never obscures the wick.
Auto-Hide: Session boxes and lines automatically hide on timeframes higher than 1 Hour to prevent clutter.
Box Toggle: You can now toggle the colored background boxes ON/OFF individually while keeping the High/Low lines active.
2. High Timeframe (HTF) Context
PDH / PDL: Previous Day High & Low.
PWH / PWL: Previous Week High & Low.
Customizable: You can now change the line style (Solid, Dashed, Dotted) for these levels in the settings to match your preferred chart aesthetic.
Note: These levels remain visible on ALL timeframes.
3. Opening Gaps (NWOG & NDOG)
NWOG (New Week Opening Gap): Marks the gap between the previous week's close and the current week's open.
Tracks the last 3 NWOGs (NWOG 1, 2, and 3).
Includes settings to toggle NWOG 2 or 3 on/off individually.
NDOG (New Day Opening Gap): Marks the gap between yesterday's close and today's open (shows latest only).
Chart Precision: Uses visual chart data rather than HTF security calls to ensure lines anchor exactly to the candle bodies you see on your screen (Futures/Crypto friendly).
Visuals: Displays clean lines for the Gap High and Low (no intrusive boxes).
4. Midnight Open (MNO) & Dividers
MNO: Marks the exact Opening Price at 00:00 New York time.
Logic ensures only the current day's MNO is shown (auto-deletes history).
Daily Divider: A customizable vertical line drawn at 00:00 NY time to visually separate trading days.
⚙️ Settings & Customization
Times: All times are hardcoded to UTC-5 (New York), so the indicator works correctly regardless of your local chart timezone.
Visuals: Every color, line width, line style (Solid/Dashed/Dotted), and label size is fully customizable.
Label Offset: Adjust how far the text labels sit from the lines to prevent overlapping.
🛠 How to Use
Add the indicator to your chart (Works best on M1, M5, M15).
Use the Session High/Low lines as immediate liquidity targets.
Watch for Sweeps: If a line stops extending, that liquidity has been purged.
Use NWOG/NDOG lines as key support/resistance zones or draw-on-liquidity.
Reference PDH/PWH for higher timeframe bias.
Disclaimer: This tool is for educational and informational purposes only and does not constitute financial advice.
Opening Gaps (RTH Gap, NDOG, NWOG, NMOG) [Tradeisto]This indicator is a comprehensive tool developed to monitor significant market opening gaps across daily, weekly, and monthly timeframes, as well as specific Regular Trading Hours (RTH) gaps. It automates the detection and visualization of these key institutional levels, providing real-time status updates and mitigation tracking.
Key Features:
Multi-Timeframe Gap Tracking:
NDOG (New Day Opening Gap): Monitor daily opening gaps based on official settlement.
NWOG (New Week Opening Gap): Track weekly opening gaps.
NMOG (New Month Opening Gap): Track monthly opening gaps.
RTH Gap: Specifically monitors the Regular Trading Hours (RTH) gap.
Live RTH Gap Dashboard:
Real-Time Status: Instantly see if the current RTH gap is Bullish or Bearish.
Mitigation Tracking: Live updates on whether the gap is Unmitigated, Partially Mitigated, or Fully Mitigated (100%).
Smart Range Display: Shows the exact gap range (Abs(PrevClose - Open)). Displays "RTH Closed" during post-market hours.
Professional Settlement Logic:
Utilizes advanced ticker.modify logic to fetch Official Settlement Prices for true gap accuracy, ensuring levels match institutional standards.
Includes a Back-Adjusted Futures option for continuous contract analysis.
Intelligent Chart Management:
Auto-Hide on HTF: Automatically hides gap boxes and labels on timeframes greater than 4 hours to keep charts clean.
Customizable History: User-defined limits for how many days, weeks, or months of history to display.
Visual Customization:
Full control over colors, labels, and visibility for every gap type.
Clean, informative labels with Trading Day accuracy.
BK AK-2 POC🦁👑 BK AK-2 POC — THE LEDGER. THE COURT. THE RECEIPTS. 👑🦁
All glory to Gd — the only true source of wisdom, restraint, and right timing.
AK is honor — my mentor’s standard: clarity, patience, no shortcuts, no gambling.
Update / Record: A previous version of this publication was hidden by PineCoders moderation due to insufficient description. This republish includes a fully self-contained explanation of what the script does, how it works, and how to use it.
1) What this script does (outputs)
BK AK-2 POC plots Volume Profile levels for New York RTH (and optional anchored profiles) so you can track current value, prior value, and event-based value.
RTH (current session):
POC (Point of Control): highest-volume price level (session “gravity”)
VAH / VAL (Value Area High/Low): boundaries of accepted trade (Value Area % input)
Prior RTH (previous session):
Prior POC + VAH/VAL
Optional Prior High / Prior Low
Anchored Profile (optional):
Anchored POC + VAH/VAL
Anchor types: Time, Last Pivot Low, Last Pivot High
Optional anchor time marker
Extras:
Optional histogram (Total or Delta Split)
Labels in Text / Icons / Compact with optional price + distance readouts
Optional “Open Anchored POC” and “Swing/Channel POC” overlays (toggleable)
2) How it works (calculation method)
This script builds a profile by:
Taking the price range over the selected window and dividing it into Bins.
Distributing each bar’s volume into the bins that overlap that bar’s range
If range is tiny, volume is attributed near the close (fallback behavior)
Selecting POC as the bin with maximum total volume
Building Value Area by expanding outward from POC until Value Area % is reached.
Histogram mode:
Total = total volume per bin
Delta Split = splits volume into buy/sell using candle direction (close ≥ open = buy, else sell) for a consistent approximation.
3) Data source options (Chart vs Lower TF)
You can build the profile from:
Chart volume (simpler / faster), or
Lower TF volume (higher fidelity): pulls lower timeframe candles using request.security_lower_tf, stores them internally, and uses them to distribute volume more accurately across bins.
This matters because a single HTF candle can hide a lot of internal structure—Lower TF reduces that “blocky” profile effect.
Performance controls: lookback tiers, max bars, bins, and max LTF candles are included to prevent overload.
4) How to use it (practical rules)
This tool doesn’t predict. It shows where business proved acceptance.
Inside Value (VA): balance / rotation conditions
mean/POC acts like gravity
fade extremes carefully, manage risk, don’t chase
Outside Value: acceptance vs rejection test
hold outside VA = acceptance (new regime)
fail back inside VA = rejection (often leads back toward value)
POC is not a buy/sell signal — it’s the highest agreement price. Use it to judge whether continuation is real or just noise.
Anchored profiles are for “new agreement” zones (after events/turns).
Prior session levels act like “contracts” — revisits are tests.
5) What’s original about this script (why it’s not a clone)
Compared to typical session POC/VA scripts, BK AK-2 POC adds:
Dual profile system: RTH session + optional Anchored profile in one tool
Multiple anchor types: exact time anchor + pivot-based anchors
Lower-TF volume engine with internal storage and safety caps for stability
RTH Open anchored POC option (separately toggleable)
Swing/Channel POC (last N swings) for structure-based “chapter” profiling
Label system (icons/compact/text) with optional distance readouts
Line clutter control (left cutoff) to keep charts readable
6) Limitations (honest constraints)
This is bar-based volume distribution across candle ranges (not tick-by-tick order flow).
Delta split is an approximation using candle direction; it’s meant for consistency, not perfect bid/ask classification.
Lower TF mode can be heavier; use bins/lookback responsibly.
👑 Joseph’s Lens — Pit → Prison → Viceroy (Dreams Turned Into Governance)
Joseph didn’t become viceroy because he “called direction.” He became viceroy because he did something rarer: he translated revelation into an operating system.
Pharaoh had the dream. Joseph delivered the edge: interpretation + structure + timing. He didn’t stop at “what will happen.” He immediately moved to what must be built so the nation survives it: storehouses, measurements, release protocol, and discipline under pressure. That’s why authority was placed on him — because he could govern reality, not react to it.
Joseph’s Viceroy Blueprint is exactly what this indicator enforces:
The Dream = the market’s story. The Ledger = the market’s proof. You don’t trade candles. You trade where business proved acceptance.
Storehouses = where the grain actually accumulates (POC). POC is where the crowd paid rent — undeniable commitment.
Granary walls = boundaries separating order from panic (VAH/VAL). Inside value is order; outside value is regime-change territory where acceptance/rejection decides outcomes.
The ring = permission to execute, not permission to improvise. Joseph released grain on timing, not emotion. Same here: acceptance grants permission; rejection demands stand-down.
Viceroy mindset: second in rank, first in discipline. Measure first. Act only when the record is established.
ZENITH: Joseph built the infrastructure that made the crisis survivable.
BK AK-2 POC is that same law on-chart: value is the inventory, POC is the storehouse, VA is the boundary, and execution only happens when proof grants permission.
🙏 Respect
Respect to AK — the standard behind the discipline.
All glory to Gd — the source of wisdom and endurance.
🦁👑 BK AK-2 POC — mapped like a viceroy… executed like a lion. 👑🦁
Deviation Momentum For Loop | Lyro RSThe Deviation Momentum For Loop is a directional momentum tool that evaluates the persistence of price deviation from a moving average over a historical range using a custom loop-based scoring function. It quantifies relative momentum strength by comparing current deviation to previous values, assigning a net score used to assess trend bias, reversals, and volatility-adjusted strength.
Key Features
Deviation-Based Momentum: Calculates standardized deviation from a selected moving average by subtracting the MA from price and normalizing via standard deviation and a scaling constant. This standardization adjusts for volatility and creates a consistent scoring base across assets and timeframes.
Historical For-Loop Scoring: Implements a user-defined for-loop function that compares current deviation to values from earlier bars (configurable range). Each comparison adds or subtracts from a cumulative score based on whether current deviation exceeds historical ones, producing a dynamic momentum read.
Threshold-Based Signal Logic: Applies user-defined thresholds for long and short signals. If the loop score exceeds the long threshold, a bullish bias is inferred; if it drops below the short threshold, a bearish bias is indicated. These thresholds are plotted for visual clarity.
Multi-Palette Visual System:
Predefined Palettes – Choose from Classic, Mystic, Accented, or Royal schemes for bullish and bearish colors.
Custom Colors – Toggle on custom color selection to manually define bullish (UpC) and bearish (DnC) tones.
Dynamic Visuals – Oscillator line, threshold markers, background shading, bar and candle coloring are applied in real time based on trend state
.
Glow and Overlay Effects: Layered glow lines and optional bar/candle coloring reinforce signal strength and trend status directly on the chart.
Built-In Alerts: Provides alert conditions when the for-loop score crosses above or below the defined thresholds, enabling automated monitoring of trend conditions.
How It Works
MA Calculation – Applies the selected moving average to the chosen price source (e.g., close, open, high). Offers 16 moving average types including SMA, EMA, WMA, TEMA, JMA, FRAMA, ZLSMA, KAMA, and others via the LyroRS/LMAs/1 library.
Deviation Computation – Measures the deviation of price from its moving average, normalized by standard deviation and scaled by a fixed constant factor to account for volatility.
Loop Function – Iterates from user-defined indices (From → To) and compares current deviation to past deviations. Increments score for each instance where current > past, decrements when current < past. The resulting value is plotted as the primary oscillator.
Signal Logic – Long and short threshold values are configurable inputs. Crossing above the long threshold signals bullish bias; crossing below the short threshold signals bearish pressure.
Color Coding & Visual Feedback
Palette or custom colors reflect oscillator's directional state.
Additional glow lines increase signal emphasis.
Background shading highlights crossovers with mid-threshold for enhanced visibility.
Optional bar and candle coloring aligns price visualization with indicator signals.
Practical Use
Momentum Confirmation – Use a score rising above the long threshold as a potential bullish signal; falling below the short threshold may indicate bearish strength.
Volatility Normalization – Standardized deviation ensures consistency across assets of different volatility profiles.
Multi-Timeframe Adaptation – The wide selection of moving averages and loop depth settings allows calibration for scalping, swing, or long-term analysis.
Visual Clarity – Color-coordinated candles, bars, oscillator lines, and background simplify interpretation of signal context and trend structure.
Customization
Select from 16 moving average types to control sensitivity and smoothing.
Adjust loop depth (From/To) to define how far back deviation is compared.
Set custom threshold levels to reflect your preferred sensitivity to momentum shifts.
Customize visuals with predefined palettes or manual color settings for full chart integration.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
TruFREND Core | Risk Regime & Confluence EngineConcept & Purpose
TruFREND Core is the "Strategic Brain" of the TruFREND ecosystem. It is a market regime analysis engine designed to quantify risk before assessing trend.
In a market saturated with indicators that only tell you when to buy, Core is built to answer the more important question: "Is it safe to participate?"
It functions as a hierarchal "Regime Filter," synthesizing volatility, momentum, and multi-timeframe structure into actionable data. Its primary goal is Capital Preservation—helping traders avoid overextended moves, liquidity traps, and low-probability chop.
Methodology: The "Risk-First" Logic
The script utilizes a proprietary two-stage logic model where Risk governs Trend.
1. The Risk Engine (SRT - Sentiment Risk Tool)
At the heart of the system is the SRT. Instead of relying on static overbought/oversold levels, SRT calculates a dynamic "Timing Risk Score" (Very Low to Extreme) by analyzing:
• Volatility Extension: Uses ATR or Adaptive Standard Deviation bands to detect when price has deviated statistically far from its mean.
• Regime Cohesion: Monitors the "Ribbon Depth" and "Band Width" to detect Correlation Divergence—a state where price makes new highs but volatility structure weakens.
• Liquidity Health: Analyzes Volume Ratios to ensure the current move is supported by sufficient market participation.
2. The Confluence Engine (TVL - Trend Vital Logic)
Once risk is assessed, the TVL engine measures the strength of the market direction. It aggregates data from over 8 distinct sources—including TEMA ribbons, Ichimoku Clouds, and Gator bias —to generate a Confluence Health Score (0-100%).
Key Features
• Dynamic Leverage Sizing: Unlike standard scripts, Core calculates a "Max Recommended Leverage" (e.g., Max 2x, No Leverage) based on the current volatility environment . If risk is high, it advises reducing exposure automatically.
• Risk Vitals Dashboard: A comprehensive table displaying the current Risk Score, Trend Status, BTC Dominance impact, and Volatility State in a single view.
• Overextension Warnings: Detects "Parabolic Runs" where the trend has persisted without a pullback for a statistically improbable duration.
Ecosystem Integration
TruFREND Core is designed to function as the governing engine for TruFREND UST (Universal Signal Tracker).
• The Brain (Core): Analyzes the macro environment and broadcasts "Risk" and "Leverage" data.
• The Hands (UST): Receives this data and automatically blocks trade entries if Core detects a high-risk regime (e.g., Liquidity Crunch or Overextension).
Settings
• Trading Style: Defaults to "Conservative" for stable analysis but can be switched to "Aggressive" or "Crypto" to adjust volatility thresholds.
• View Mode: Toggle between "Risk" (Macro Dashboard) or "Confluence" (Detailed Trend Breakdown).
• Volatility Model: Switch between ATR (smoother) or Adaptive StDev (reactive) to tune how the system defines "Risk."
Risk Disclaimer
This tool is for educational market analysis only. The "Risk Score" and "Leverage" outputs are mathematical derivations of past price volatility and do not guarantee future safety or profit. Trading involves significant risk
Alpha-Gann SQ // Alpha- Gann SQ
// Developed by Mohammad Murad
// Professional Gann Square of 9 Calculator
// © 2025 - All Rights Reserved
Magic Hour Range + Window Levels (0/50/75/100 + Extensions)This indicator plots one or more “Magic Hour” ranges (by ET hour) by drawing the hour’s high/low box, then extending an aligned post-hour analysis window for a set number of hours. Inside that window it overlays key reversion targets—0% (High), 50% (Mid), 100% (Low), optional 25%/75%—plus optional extension levels beyond the range (±25/50/75/100% and extras). All levels are clipped to the analysis window for a clean, session-by-session view of range, targets, and extensions.






















