Daily 20/50/100/200 SMA with Auto-Labeling (Multi-Timeframe)This script plots the four most widely used Simple Moving Averages - 20, 50, 100, and 200-period SMAs from the Daily timeframe - directly onto any chart, regardless of the chart’s timeframe. It provides a clean, easy-to-read visual overlay for traders who rely on higher-timeframe moving averages for trend analysis, support and resistance, or confluence.
To improve clarity, the script automatically places floating labels beside the most recent price bar, identifying each SMA by color and period. These labels stay neatly positioned to the right of the chart and update dynamically without cluttering historical bars.
Features
• Plots Daily SMA-20, SMA-50, SMA-100, SMA-200 on any timeframe
• Clean multicolored lines with consistent formatting
• Automatic right-side labels that identify each moving average
• Labels update only on the latest bar - no chart clutter
• Adjustable label offset for perfect placement
• Ideal for trend traders, swing traders, and timeframe confluence strategies
This indicator keeps your chart clean while giving you instant awareness of key daily moving averages that institutions and technical traders watch closely.
Moving Averages
3 MAs Flexíveis (Tipos Variáveis)Multi-Type 3 Moving Averages (Fully Customizable)
This indicator plots three independent moving averages on the chart, designed for traders who want full control over their trend tools.
Each moving average can be configured separately:
Custom period
Custom price source (close, open, hl2, etc.)
Selectable MA type:
EMA – Exponential Moving Average
SMA – Simple Moving Average
WMA – Weighted Moving Average
HMA – Hull Moving Average
RMA – Smoothed MA (used in RSI)
VWMA – Volume-Weighted Moving Average
Individual color, line thickness and show/hide option
Typical use cases:
Build short-, mid- and long-term trend structure (e.g. fast/medium/slow MAs)
Use as dynamic support and resistance
Visual confirmation of momentum shifts when the fast MA crosses above/below the slower ones
Adapt the MA type to your strategy (e.g. HMA for smoother trend, VWMA for volume-sensitive moves)
This tool is purely visual and analytical: it does not generate signals or alerts by default, making it ideal as a base layer to combine with your own price action or indicator strategy.
TUAN DO – EMA35/105/500 Entry + SL/TP v1.0EMA35/105/500 Gold M1 system with automatic Entry, SL, TP, pip calculation and exit labeling.
Dix$ons Tackle BoxDixsons Tackle Box — Multi-Tool Trend & Levels Suite (MA/EMA + VWAP + BB + Adaptive Trend Channels + Auto Fibs)
---
**Dixsons Tackle Box** is an all-in-one overlay for traders who want a clean chart with *stacked edge* instead of stacked indicators.
It combines:
* A **5-slot MA/EMA pack** with live slope % labels and MTF smoothing
* A **full VWAP engine** with event-based anchors, trend angle coloring, and VWAP bands
* **Bollinger Bands** with volatility-aware coloring and optional gradient background
* A **Short-Term & Long-Term Adaptive Trend Channel (ATC)** with automatic period detection, log-regression channels, and performance tables
* A **Dixson Auto Fibonacci suite**: ATR-based “rail” Fibs + Lookback Fibs off HH/LL, both driving a shared, fully customizable Fib bank
Everything is controlled logically by feature groups under the **“Tackle Box”** section, so you can quickly turn modules on/off and tune the tool to your style (scalp, intraday, swing, or position).
> **Important:** This is an analysis/visualization tool only. Nothing here is financial advice or an automatic trading system. Always test and manage risk yourself.
---
## 1. MA/EMA Pack — 5 Smart Averages with Slope %
**Group:** `Tackle Box` + per-slot groups `MA/EMA 1` … `MA/EMA 5`
**Main toggle:** `Enable MA's`
**Per-slot master row:** `_maRow1` … `_maRow5`
### What it does
This module gives you **five independent MA/EMA slots**, each with:
* Its own **type** (MA or EMA)
* **Length**, **color**, **line width**, and **plot style** (`Solid`, `Step`, or `Circles`)
* **Timeframe per slot** (MTF)
* Rich **label controls** (slope %, length/type text, timeframe text, etc.)
* **Label size** per slot (`tiny → huge`)
On top of that, each average has a **live slope % readout**, normalized by instrument tick size, so you can compare trend steepness across assets.
### Key features
* **Master slot row (1–5):**
In the `Tackle Box` group you have `_maRow1`–`_maRow5` toggles. These gate each slot globally, so you can quickly show/hide specific MAs without digging into each slot.
* **MTF Smoothed Mode:**
* `MTF Smoothed Mode` (on by default) makes higher-timeframe MAs **update only when the HTF bar closes (and on the last bar)**.
* That reduces the stair-stepping noise you often get when pulling HTF data onto an LTF chart, while still giving you accurate levels and a smooth, tradeable line.
* **Per-slot label text controls:**
Each MA group has toggles to control exactly what the label shows:
* `Show Label` – show/hide label entirely
* `Slope` – append slope % to the label
* `Len+Type` – show e.g. `50EMA` or `200MA`
* `TF` – show HTF name if the slot is on an MTF
* `'slope' text` – optionally include the word `slope` in the label
* **Slope % (angle) logic:**
Slope for each MA uses a normalized **“angle %” in **, based on the 1-bar change vs `syminfo.mintick`.
* Big positive values = strong uptrend
* Big negative values = strong downtrend
* Near zero = flat/neutral
This makes it easy to build rules like:
* “Only trade long if the **50EMA slope** is above +20% and price is above VWAP”
* “Take profit if slope on my faster MA collapses back toward 0.”
### Typical use
* Slot 1–2: **fast intraday EMAs** (e.g., 9 / 20 EMA)
* Slot 3–4: **structural EMAs/MAs** (e.g., 50 / 200)
* Slot 5: a **dedicated MTF trend filter** (e.g., 5-minute or 1-hour EMA on a 1-minute chart)
---
## 2. VWAP Engine + Bands — Anchor-Aware, Angle-Aware VWAP
**Group:** `Enable VWAP` + `------ VWAP Settings ------`, `Bands Settings`, `Color Settings`
### Core VWAP
* **Anchors:**
`Anchor Period` lets you choose where each VWAP reset starts:
* `Session` (day session VWAP, perfect for intraday)
* `Week`, `Month`, `Quarter`, `Year`, `Decade`, `Century`
* Corporate events: `Earnings`, `Dividends`, `Splits`
This lets you build VWAP logic around:
* **Intraday mean reversion** (Session VWAP + bands)
* **Swing anchor VWAPs** (Weekly/Monthly)
* **Event-based anchors** (earnings/dividend/split reaction)
* **Hide on DWM:**
`Hide VWAP on 1D or Above` lets you keep intraday VWAP from cluttering higher-TF charts.
* **Angle/Trend Detection:**
The VWAP engine computes a **regression slope** over each anchor segment and converts it to an **angle %**:
* `Angle Lookback (bars)` controls how many bars are used
* `Angle Trend Threshold (%)` sets the threshold where a slope is considered “trending”
With `Color VWAP by Trend` enabled:
* Uptrend > threshold → VWAP turns **trend up color** (e.g., lime)
* Downtrend < −threshold → VWAP turns **trend down color** (e.g., red)
* Inside threshold → VWAP uses a neutral color
You can also set separate **line widths** for neutral vs trend state and transparency to give a “Hull-style” visual feel.
* **VWAP Labels:**
You get a single, de-duplicated VWAP label on the last bar with:
* Optional **name** (`VWAP`)
* Optional **price** (`$xxx.xx`)
* Optional **angle %** and optional `"slope"` word
* Global **label size** for VWAP + bands
### VWAP Bands
* **Calc modes:**
`Bands Calculation Mode`:
* `Standard Deviation` – classic VWAP ± n * σ
* `Percentage` – bands as a fixed % of VWAP
* **Bands 1-3:**
Each band has:
* Visibility toggle, independent multiplier (`×`)
* Separate **upper/lower colors** per band
* Optional **fill** between upper/lower for each band
* Label toggles:
* `Show All Labels`
* `Show Band #X Label`
* `Band Labels: Show Names` (VWAP+1, VWAP-1, etc.)
* `Band Labels: Show Prices`
This lets you configure anything from a minimalist “just VWAP + 1 band” view to a full 3-band ladder.
### VWAP Highlight Fill
* **Premium/discount shading**:
Optional fill that shades:
* Region **above VWAP** when price is above (e.g., greenish)
* Region **below VWAP** when price is below (e.g., reddish)
This makes it extremely easy to see when price is trading at **premium vs discount** relative to the current anchor VWAP.
### Typical use
* Intraday scalpers: Session VWAP + 1–2 bands + highlight fill
* Swing traders: Weekly/Monthly VWAP + only the main line and label
* Event traders: Earnings-anchored VWAP, tracking post-earnings drift
---
## 3. Bollinger Bands — Volatility-Aware BB with Gradient Fill
**Group:** `Enable Bollinger Bands` + `------ Bollinger Band settings ------`
### What it adds
A clean Bollinger Band overlay designed to play nicely with the VWAP/MA stack:
* `Bollinger Bands Length` (default 20)
* `Bollinger Bands Multiplier` (default 2.0)
* `BB Basis Color` & **line width**
* Upper/lower bands colored based on **width change**:
* Expanding volatility → `BB Expanding Color`
* Contracting volatility → `BB Contracting Color`
You can also toggle:
* `Show Center Line MA Label` – prints something like `20ma` on the last bar.
* `Enable Gradient Background Fill` – draws a gradient between price and the bands:
* `Gradient Fill Up Color` for below-price fill
* `Gradient Fill Down Color` for above-price fill
### Why it’s unique here
Instead of just static bands, this implementation **flags volatility regimes** (expansion vs contraction) via color and optional gradient. That pairs nicely with ATR Fibs and VWAP:
* Use **BB contraction (squeeze)** + flat VWAP angle to anticipate breakouts.
* Use BB + VWAP bands to filter which “touches” are genuinely overextended.
---
## 4. Dixson Adaptive Trend Channel (ATC) — Short-Term & Long-Term Log Channels
**Master toggle:** `Enable Adaptive Trend Channel`
**Groups:** `------ Dixson ATC Settings ------`, `Short-Term Channel Settings`, `Long-Term Channel Settings`, `Short-Term Midline Settings`, `Long-Term Midline Settings`, `Channel Trend Background Fill Settings`, `Short-Term Table Settings`, `Long-Term Table Settings`
### Under the hood
ATC is a **log-scale regression channel engine** that automatically:
1. Scans a set of candidate periods.
* **Short-term:** 20 → 200 bars
* **Long-term:** 300 → 1200 bars
2. For each period, it computes:
* Log-price regression slope & intercept
* Standard deviation of residuals
* A Pearson-style R value (trend “strength”)
3. Picks the period with the **highest correlation (|R|)** and uses that as the **detected trend length**.
This yields a **data-driven channel** that adapts to whatever trend the market is actually respecting.
> For long-term stats, annualized return only makes sense on **daily/weekly** charts. On intraday charts, treat the “Annual Return” purely as informational.
### Short-Term Channel
Controls in `Short-Term Channel Settings` + `Short-Term Midline Settings`:
* `Show Short-Term Channel` – on/off
* `Deviation Multiplier (Short-Term)` – how wide the channel is (in standard deviations)
* **Upper/Lower colors**, line width, style (Solid/Dotted/Dashed), transparency
* `Line Extension Style` – Extend Right / Extend Both / Extend None / Extend Left
Optional **Short-Term Midline**:
* Toggle + color, style, width, transparency
* Tracks the regression line itself (center of the channel)
Background fill:
* `Enable ST Background Fill` with separate **ST Uptrend** / **ST Downtrend** colors
* Trend direction is inferred from regression slope sign
### Long-Term Channel
Mirrors the ST controls with its own group:
* `Show Long-Term Channel`
* `Deviation Multiplier (Long-Term)`
* Upper/Lower channel colors, thickness, style, transparency
* `Line Extension Style`
* Optional Long-Term midline + colors/styles
* Optional **background fill** with separate colors for up vs down
You can run **both channels at once**, giving a panel of:
* **Macro trend structure** (Long-Term ATC)
* **Current swing trend** (Short-Term ATC)
* MAs, VWAP, and Auto Fibs on top for entries/exits
### Trend Info Tables
Each channel has its own table options:
* `Show Detected Period` (bars used)
* `Show Trend Strength` – either:
* Descriptive text: “Extremely Weak” → “Ultra Strong”, or
* Raw Pearson R value if `Show Pearson R` is enabled
* `Show Annualized Return` (when timeframe is daily/weekly)
* Table position (`Top Left`, `Bottom Right`, etc.)
* Text size (`Small`, `Normal`, `Large`)
These tables quantify:
* Over what lookback the trend is being measured
* How “clean” that trend is
* What the approximate annualized performance of that trend has been
---
## 5. Dixson Auto Fibonacci Suite — ATR Fibs + Lookback Fibs + Shared Fib Bank
**Master toggle:** `Enable Auto Fibonacci`
**Groups:** `Dixson Auto Fibonacci`, `ATR Auto Fib`, `Previous ATR Fib`, `Lookback Auto Fib`, `Lookback Anchor Overrides`, `Fibonacci Levels`
You get **two separate engines** (ATR-based and Lookback-based) that both draw from the **same customizable Fib bank**, with optional log scaling.
---
### 5.1 Global Auto Fib Settings
* `Logarithmic Scale`
* When ON, Fib levels are interpolated in log-space (better for assets that move in percentages).
* When OFF, interpolation is linear in price.
This applies to **both** the ATR and Lookback engines.
---
### 5.2 ATR Auto Fib (Rail-Based, Supertrend-Driven)
**Groups:** `ATR Auto Fib`, `Previous ATR Fib`
The ATR engine builds **“rails”** that hug price without letting candles touch them, then projects Fib levels between these anchors.
#### How it works
1. Uses built-in `ta.supertrend` with:
* `ATR Period`
* `ATR Multiplier`
2. Builds dynamic **upper and lower rails** around price:
* Uses ATR to define a **proximity gap** (`Proximity (×ATR)`) so rails stay **just outside the wicks** (no-touch behavior).
* Smooths raw highs/lows slightly (RMA) to avoid spiky rails.
* Ensures the upper rail is always ≥ high+gap and lower rail ≤ low−gap.
3. The **direction** (uptrend/downtrend) is inferred from the Supertrend direction:
* On trend flips, the script:
* Captures the prior rail pair as a **“previous segment”**
* Starts a new rail segment in the new direction
4. From these rails, the script draws **directional Fib “ladders”**:
* For the **current ATR Fib**:
* The Fib is drawn from one anchor to the other depending on the trend sign.
* Rays are projected `Ray Length` bars to the right of `Current Offset`.
* For the **previous ATR Fib**:
* The last completed segment’s start/end rails are used as anchors
* Rays are projected using `Prev Fib Offset` and `Prev Fib Length`
#### Current ATR Fib controls
* `Enable ATR Fib` – toggles current ATR Fib bank
* `ATR Period`, `ATR Multiplier` – control the “engine” behind the rails and ST logic
* `Current Offset`, `Ray Length` – where and how far rays are drawn
* `Show Level Text`, `Show Price`, `Display % not ratio` – label style
* `Label Size (Current ATR Fib)` – for all current ATR Fib labels
Visual extras:
* `Plot Hi/Low Anchor Lines` – shows upper/lower rails
* `Plot ATR Trailing Stop` – shows clamped Supertrend as a continuous line
#### Previous ATR Fib controls
* `Enable Prev ATR Fib` – toggles previous segment ladders
* Independent `Prev Fib Offset`, `Prev Fib Length`
* Separate label controls:
* `Show Level Text (Prev)`
* `Show Price (Prev)`
* `Display % not ratio (Prev)`
* `Label Size (Previous ATR Fib)`
Use the **current ATR Fib** as your active trading “ladder” and the **previous ATR Fib** to track recently broken structure and potential retest zones.
---
### 5.3 Lookback Auto Fib — HH/LL-Driven Fib Bank, MTF + Manual Overrides
**Group:** `Lookback Auto Fib` + `Lookback Anchor Overrides`
This engine draws Fibs between **highest high** and **lowest low** within a given lookback window on a chosen timeframe.
#### How it works
1. Select higher timeframe:
* `Lookback Timeframe` (empty = chart timeframe)
2. Choose your range:
* `Lookback Bars` – number of bars on the selected TF to scan for extremes
3. Optionally allow look-ahead:
* `Look-ahead Bars (repainting)`
* `0` = no look-ahead (no forward info, no repainting)
* `>0` = uses `barmerge.lookahead_on` for forward-looking extremes (can repaint)
4. For that range, the script finds:
* Highest high + its bar offset
* Lowest low + its bar offset
5. Trend direction is determined by **which extreme is more recent**:
* Recent high → **down** direction (high → low)
* Recent low → **up** direction (low → high)
6. Manual direction overrides:
* `Force Uptrend` / `Force Downtrend` – override the auto decision
7. Manual anchor overrides:
* `Manual Anchor High (LB)`
* `Manual Anchor Low (LB)`
If both are set, those become the anchors and direction is deduced from which is higher.
8. The engine then draws a **directional Fib ladder**:
* Anchors between high/low based on direction
* Rays extend `Lookback Fib Length` bars from `Lookback Fib Offset`
#### Label controls
* `Show Level Text`, `Show Price`, `Display % not ratio`
* `Label Size (Lookback Fib)`
* Labels are prefixed with `LB` to distinguish them from ATR Fibs.
This engine is ideal for:
* **Swing structure mapping:** Drawing Fibs across the last major swing on the HTF.
* **Confluence:** Aligning Lookback Fibs with ATR Fibs, ATC channel boundaries, and VWAP bands.
---
### 5.4 Shared Fibonacci Levels — Fully Custom Fib Bank for Both Engines
**Group:** `Fibonacci Levels`
The ATR and Lookback engines **both** use the same Fib bank:
* **Ratios provided by default:**
* 0.000
* 0.146
* 0.236
* 0.382
* 0.500
* 0.618
* 0.650
* 0.707
* 0.786
* 0.886
* 1.000
* 1.130
* 1.272
* 1.618
* 2.000
Each ratio has its own:
* `Enable Level X.XXX`
* `Level X.XXX` (the actual ratio – fully editable)
* `Thickness X.XXX` (line width)
* `Style X.XXX` (Solid / Dashed / Dotted)
* `Color X.XXX` (line + label color)
Adjusting a level here **instantly updates both** ATR and Lookback ladders. This makes it very easy to:
* Run “standard” Fib sets for classic retracements
* Or define your **own Fib presets** (e.g., 0.25 / 0.5 / 0.75, or custom extension clusters)
---
## How to Use & Suggested Workflows
**Scalpers / 0DTE / Intraday:**
* Enable:
* MA/EMA pack (fast EMAs + one MTF slot)
* VWAP (Session anchor) + 1–2 VWAP bands + highlight fill
* ATR Auto Fib (current + previous)
* Optionally hide:
* Lookback Fibs
* Long-Term ATC (unless you want HTF bias on your intraday chart)
Use slope labels, VWAP angle %, and ATR Fib ladders to structure trades around pullbacks, mean reversion, and breakouts.
**Swing / Position traders:**
* Turn on:
* Long-Term ATC (with table)
* Short-Term ATC for swing structure
* Lookback Auto Fib on a higher timeframe (e.g., D on 4H chart)
* Keep VWAP anchored to Week or Month, and MA slots for key reference MAs.
Use ATC channels for **trend structure**, Lookback Fibs for **swing levels**, and long VWAPs for **value zones**.
---
## Final Notes & Disclaimer
* Works on **all symbols** and **all timeframes**, but some stats (like “Annualized Return”) are only meaningful on **daily/weekly** data.
* Some options (like Look-ahead mode for Lookback Fibs) can **repaint** on purpose. These are clearly labeled — use them only if you understand and want forward-looking behavior.
* This script does **not** place trades. It is a visual / analytical tool only.
* Nothing in this indicator or description is financial advice. Always do your own research, forward-test, and manage risk appropriately.
If you have **invite-only access** to **Dixsons Tackle Box**, you’re getting the full Dixson overlay stack in one place — designed to be the central “hub” for your chart, not just another line on it.
Book of Fish: Universal Deep DiveAhoy, Captain. 🏴☠️
Here is your official Angler’s Manual for the Book of Fish: Universal Deep Dive. This guide translates every pixel on your TradingView chart into nautical instruction so you can navigate the currents and land the big catch.
Print this out, tape it to your monitor, and respect the code of the sea.
________________________________________
📖 The Angler’s Manual: How to Fish
A Guide to the "Universal Deep Dive" Indicator
🌊 1. Check the Current (Background Color)
Before you cast a line, you must know which way the river is flowing.
• Green Water (Background): The tide is coming in. The broad market (Advancers) is beating the losers.
o The Rule: We prefer Longs (Calls). Swimming upstream against the green current is dangerous.
• Red Water (Background): The tide is going out. The market is heavy.
o The Rule: We prefer Shorts (Puts). Don't fight the gravity.
Captain’s Note: If your specific fish (stock) is Green while the water is Red, that’s a Monster Fish (Relative Strength). It’s strong, but keep a tight drag—if it gets tired, the current will drag it down fast.
________________________________________
🐟 2. Identify the Species (Candle Colors)
The color of your bars tells you exactly what strategy to deploy.
🟢 The Marlin (Ultra Bull)
• Visual: Green Candles. Price is riding above the Yellow Wave (20 EMA), and the Yellow Wave is above the White Whale (200 EMA).
• Strategy: Trend Following.
• How to Fish:
o Wait for the fish to swim down and touch the Yellow Wave.
o If it bounces? CAST! (Enter Long).
o Target: Let it run until the trend bends.
🔴 The Barracuda (Ultra Bear)
• Visual: Red Candles. Price is diving below the Yellow Wave, and the Yellow Wave is below the White Whale.
• Strategy: Trend Following (Short).
• How to Fish:
o Wait for the fish to jump up and hit the Yellow Wave.
o If it rejects? CAST! (Enter Short).
🟠 The Bottom Feeder (No Man’s Zone)
• Visual: Orange or Lime Candles. The price is fighting the trend (e.g., Price is below Yellow, but Yellow is still above White).
• Strategy: Reversion to Mean (Scalping).
• How to Fish:
o You are catching small fry here.
o Target: The Purple Anchor (VWAP) or the White Whale (200 EMA).
o Rule: As soon as it hits the Anchor or the Whale, cut the line and take your profit. Do not hold for a home run.
________________________________________
🎣 3. The Tackle Box (Signals & Icons)
These shapes are your triggers. They tell you when to strike.
Icon Name Meaning Action
▲ (Green Triangle) 3-Bar Play THE STRIKE. Momentum is breaking out after a rest. ENTER NOW. This is the sharpest hook in the box. Trend is resuming.
🔷 (Blue Diamond) Inside Bar The Nibble. Price is coiling/resting. Set a trap. Place a stop-entry slightly above the diamond (for longs).
⚫ (Black Dots) The Squeeze Calm Waters. Volatility has died. DO NOT CAST. Wait. When the dots disappear, the storm (and the move) begins.
9️⃣ (Red/Green Number) Exhaustion Full Net. The school has swum too far in one direction. Take Profits. A Red 9 at the top means the bull run is tired. A Green 9 at the bottom means the bear dive is ending.
✖️ (Purple Cross) RSI Snag Hazard. The engine is overheated (Overbought/Oversold). Don't add weight. The line might snap if you buy here.
________________________________________
🗺️ 4. The Map (The Lines)
• The Yellow Wave (20 EMA): Your surfboard. In a strong trend, price should surf this line. If it closes below it, the surf is over.
• The White Whale (200 EMA): The deep ocean trend. This is massive support/resistance. We generally do not short above the Whale or long below it.
• The Purple Anchor (VWAP): The average price. Prices love to return here when they get lost in the No Man's Zone.
• The Dotted Lines (PDH/PDL): The Horizon. Previous Day High (Green) and Low (Red). Crossing these means you are entering open ocean (Discovery Mode).
⚓ The Captain's Code
1.Don't force the fish. If the chart is chopping (Gray candles), stay on the dock.
2.Respect the '9'. When you see that number, lock in some gains.
3.The Trend is your Friend. Green Candles + Green Background = Smooth Sailing.
Fair winds and following seas.
FMT Double EMA Symbol&AlertFMT_2xEMA – Trend Made Simple!
This indicator combines 2 EMA lines to clearly show trend direction, with handy features like automatic alerts, colored candle confirmation, and fully customizable colors. Perfect for spotting momentum at a glance!
It can be used on any instrument such as stocks, futures, crypto, and more, with double EMAs adjustable to fit your own trading strategy.
Pro tip: Use 2 timeframes — a higher timeframe to spot EMA rejections, and a lower timeframe to enter trades when the cross occurs. Happy trading!
Prowl's EMA 10/20/50 trend followingThis indicator is designed to simplify trend trading by visually filtering market noise. It removes the need to constantly analyze multiple moving average crossovers by converting complex trend alignment into a simple "Traffic Light" background system.
How it Works This script utilizes a triple-EMA (Exponential Moving Average) system to gauge market conditions on two levels:
Momentum: It analyzes the relationship between the Fast and Medium EMAs to determine immediate short-term momentum.
Trend Filter: It compares the current price action against a Slow (Baseline) EMA to ensure the major trend is respected.
Visual Guide
Green Background: This indicates a "High Probability Buy Zone." It only triggers when both the short-term momentum is positive (Fast EMA ≥ Medium EMA) AND the price is maintaining its structure above the long-term baseline (Price ≥ Trend EMA).
Red Background: Indicates neutral or bearish conditions where the trend alignment is broken.
The Lines:
Red Line: Fast EMA (Short-term reaction)
Orange Line: Medium EMA (Intermediate trend)
Green Line: Trend EMA (Long-term baseline)
Features
Visual Simplicity: The background color allows you to instantly see if the trend is in your favor without cluttering your mental space.
Fully Customizable: All EMA lengths are adjustable in the settings to fit your specific timeframe (Scalping vs. Swing Trading).
Gradient Colors: The lines are color-coded (Red to Green) to visually represent the time horizon.
Adjustable Opacity: Users can control the intensity of the background color to keep their charts clean.
Usage Strategy This tool is best used as a "Trend Filter." Traders can look for their specific entry setups (candlestick patterns, breakouts, etc.) only when the background is Green, and stand aside or look for shorts when the background is Red.
Matt's Multi-Timeframe MACD Direction AlertThe indicator monitors the direction of the Moving Average Convergence Divergence (MACD) lines on four specific timeframes: 1-hour, 15-minute, 5-minute, and 1-minute.
It only generates a signal when the MACD in all four timeframes is trending in the same direction (either all are bullish, or all are bearish). This alignment suggests a strong, synchronized market momentum from short-term scalping views up to immediate-term swing views.
Key Features:
Multi-Timeframe Confirmation: Uses TradingView's request.security() function to fetch data from different timeframes (1h, 15m, 5m, 1m), preventing the need to manually switch charts.
Visual Dashboard: A dashboard table is displayed on your chart, providing an immediate visual status (Bullish/Bearish/Neutral) for each of the four timeframes.
On-Chart Signals: The indicator plots visual shapes (green triangles for bullish alignment, red triangles for bearish alignment) directly on the sub-chart when the condition is met.
Custom Alert Integration: It includes a built-in alertcondition() function, allowing traders to set up real-time, hands-free notifications whenever a synchronized trading opportunity arises.
This tool helps filter out noise and potential false signals that might appear on a single timeframe, focusing instead on robust signals confirmed by a consensus of time perspectives.
ChronoFlow## ChronoFlow Sentinel
ChronoFlow Sentinel is a regime console that blends normalized fast/mid/slow regression slopes, phases them against a dual-speed EMA spread, and grades alignment so you instantly know whether the time stack is trending, rotating, or fighting itself.
HOW IT WORKS
Multi-Timeframe Slopes – Linear regression slopes are fetched via request.security() for your chosen fast, mid, and slow frames.
Normalized Weighting – User weights are rescaled so the composite chrono score is always on a consistent scale, regardless of configuration.
Phase Differential – The indicator subtracts a slow EMA from a fast EMA to detect whether price impulse confirms the slope mix.
Alignment Score – Signs of the three slopes are compared to compute a 0-1 alignment metric; backgrounds and alerts use this to signal confidence vs. chop.
Diagnostics Console – A bottom-right table streams each slope, the blended score, and which timeframe currently dominates.
HOW TO USE IT
Trend Qualification : Only push multi-contract positions when chrono score is positive, phase is positive, and alignment stays above your alert threshold (default 0.66).
Chop Defense : When alignment dips and conflict markers appear, immediately switch into mean-reversion tactics or sit flat.
Swing + Intraday Bridge : Pair ChronoFlow with other structure tools; require both aligned backgrounds and price confirmation before committing to swing entries.
CRYPTOCAP:SOL | CRYPTOCAP:XRP side by side view with ChronoFlow
VISUAL FEATURES
Optional flow curves: Enable Plot Raw Flows to audit each timeframe's slope when troubleshooting a signal.
Background intensity: Opacity auto-adjusts with alignment, so weak trends look faded while strong regimes glow vividly.
Signal/Conflict toggles: Long/short and chop markers are opt-in, keeping the panel pristine until you need annotations.
Conflict alerts: Built-in alert condition fires whenever alignment falls below your threshold, warning execution layers to scale down risk.
PARAMETERS
Fast Frame (default: 30): Fast timeframe for regression slope calculation.
Mid Frame (default: 120): Mid timeframe for regression slope calculation.
Slow Frame (default: D): Slow timeframe for regression slope calculation.
Fast Regression (default: 21): Regression length for fast timeframe.
Mid Regression (default: 34): Regression length for mid timeframe.
Slow Regression (default: 55): Regression length for slow timeframe.
Phase Length (default: 13): EMA period for phase differential calculation.
Fast Weight (default: 0.45): Influence of the fast timeframe in the composite score.
Mid Weight (default: 0.35): Influence of the mid timeframe in the composite score.
Slow Weight (default: 0.20): Influence of the slow timeframe in the composite score.
Plot Raw Flows (default: disabled): Enable to audit each timeframe's slope when troubleshooting.
Show Signal Labels (default: disabled): Toggle long/short signal markers.
Show Conflict Labels (default: disabled): Toggle conflict/chop markers.
Conflict Alert Level (default: 0.66): Set the alignment threshold that should trigger reduced size or flat positioning.
ALERTS
The indicator includes three alert conditions:
ChronoFlow Bullish: Detected a bullish regime shift
ChronoFlow Bearish: Detected a bearish regime shift
ChronoFlow Conflict: Flagged a low-alignment regime
LIMITATIONS
This indicator requires access to multiple timeframes via request.security() , which may consume additional resources. The alignment score is a simplified metric—real market conditions are more complex than a 0-1 scale can capture. The phase differential calculation assumes EMA spreads are meaningful proxies for momentum, which may not hold in all market regimes. Users should test parameter combinations on their specific instruments and timeframes, as default values are optimized for typical index futures trading.
---
Momentum Breakout Pro (Zeiierman)█ Overview
Momentum Breakout Pro (Zeiierman) is a breakout-focused quantitative system engineered to identify only the strongest momentum expansions in the market. Instead of reacting to price movement, it reconstructs a refined momentum signal, evaluates its strength and persistence, and validates each breakout against the broader market context. Only when momentum pressure aligns with structural direction, trend state, candle behavior, and spacing requirements will a breakout be considered qualified.
The result is a clean and context-aware signal flow that removes noise and highlights only the breakouts with the highest probability of continuation. Traders receive precise Break signals at qualified points, adaptive trend lines, candle-based trend visualization, structure levels, and volatility-driven confirmation markers. Internally, the system operates as a layered confirmation model designed to enforce directional consensus and filter out the shallow or unreliable moves that typically weaken breakout strategies.
In short, Momentum Breakout Pro offers a refined breakout selection system that focuses on quality over quantity, designed for traders who want clean and well-supported breakout signals backed by structured technical logic.
⚪ Why This One Is Unique
Momentum Breakout Pro’s uniqueness comes from its multi-layered confirmation process. The internal momentum reconstruction ensures that only sustained directional pressure is considered meaningful. Optional filters such as Dynamic Trend, SuperTrend, Average Trend, VWAP, and Market Structure provide an adjustable decision stack, allowing traders to decide how strict or flexible the validation should be. Breakouts are released only when the enabled components agree.
█ Main Features
⚪ Breakout Signals
The Breakout Signals are the core feature of the indicator. They help traders identify high probability breakouts that are more likely to follow through. With built-in confirmation levels, it becomes much easier to judge whether a breakout is strong or likely to fail. Combined with the suggested take profit points, traders can quickly find confirmed breakout opportunities with realistic first profit targets.
⚪ Breakout Filters
The indicator includes multiple filters that align each breakout with the current trend, structure, and momentum. This is essential for identifying only the strongest and most reliable breakout setups.
⚪ Dynamic Trend
The Dynamic Trend is a volatility-aware long-term trend filter. It removes noise and adapts to sharp volatility swings, staying focused on the true underlying trend direction. This helps traders avoid false signals and remain aligned with the broader market drift.
⚪ Moving Average
A standard moving average with a user-defined length. Simple, effective, and easy to understand. It acts as a clean trend filter for both beginners and advanced traders.
⚪ Super Trend
A Super Trend filter that restricts breakout signals to appear only in the direction of the active SuperTrend. This adds an additional layer of directional confirmation.
⚪ VWAP
VWAP (Volume Weighted Average Price) is a powerful anchor, especially on lower timeframes. It serves as a dynamic support or resistance level and a highly reliable trend filter.
⚪ Candle Coloring
The candle coloring engine tracks how long the price has moved in one direction and translates that persistence into a graded bull, mid, or bear color spectrum. This helps traders quickly understand trend strength, confirm momentum, and allow the market enough space to move before a larger breakout occurs.
⚪ Momentum
The momentum filter identifies bursts of momentum and highlights the strongest correlations between price and movement strength. It filters out weak breakouts that are not backed by real momentum, improving accuracy significantly.
⚪ Market Structure
Trading with the current market structure is crucial. This filter ensures that breakout signals appear only when they align with the existing structure, helping traders stay on the right side of the market.
█ How to Use
⚪ Breakouts
Use this tool to identify high-quality breakouts. To increase accuracy, combine the breakout signals with the trend, structure, and momentum filters. When these elements align, the probability of a successful breakout increases significantly.
⚪ Confirmation Levels
The indicator includes three confirmation levels that adapt based on current market volatility.
These levels help you judge the strength of the breakout:
When the three levels are tight and close to the price, it indicates strong conditions. Price is more likely to break through all levels quickly and confirm the breakout.
When the levels are spread out and far from the price, the breakout becomes weaker. Price must travel too far to confirm the move, which lowers the probability of a clean follow-through.
What you want to see is a breakout where all three confirmation levels are penetrated within the next few candles. That is the ideal scenario, indicating a confirmed breakout with a higher chance of continuation in that direction.
⚪ Take Profit Strategy
The indicator includes built-in take profit levels, which act as your first two targets after a confirmed breakout:
Once Take Profit 1 is hit, move your stop loss to break even.
When Take Profit 2 is hit, move your stop loss to the first take profit level.
From there, allow the position to run until the candle coloring shifts, signaling that momentum may be slowing or reversing.
This approach helps you secure profits early, reduce risk, and stay in the trade for larger moves when the trend is strong.
█ Setting Realistic Expectations: Win-Rate and Risk–Reward
Research on breakout systems, trend-following strategies, and directional volatility all show the same behavioral pattern. Win rates tend to be moderate, while risk and reward are positively skewed. Most breakout attempts are tested quickly by the market and may result in small losses or breakeven trades. The real edge comes from the smaller group of breakouts that expand into multi-stage moves and generate significantly larger gains. This is a well-established characteristic of momentum-driven price dynamics.
Momentum Breakout Pro is designed to work within this framework. It is not built to win on every signal, but to highlight conditions that historically align with stronger follow-through. The tool provides structure levels, confirmation lines, and initial target markers to help traders measure extension and manage risk objectively. Actual results will vary depending on the filters enabled, the markets traded, and how stops and exits are managed. However, the overall expectation remains consistent with established breakout research: frequent smaller outcomes combined with fewer but more impactful winners.
█ How It Works
⚪ Breakout System
The breakout system detects emerging directional expansions by transforming price movement into a stabilized signal curve. It evaluates localized impulse strength, directional bias, and short-term acceleration to determine when the price is exerting statistically meaningful pressure in one direction. When this pressure breaches the system’s internal thresholds, a breakout candidate is registered.
Calculation: Price is processed through a multi-stage smoothing pipeline to construct a normalized signal curve. The script analyzes the curve’s gradient and micro-momentum characteristics within a compact evaluation window. A breakout event is triggered when these combined directional metrics exceed the system’s momentum-pressure threshold.
⚪ Momentum Confirmation
To prevent weak or premature breakouts, the system verifies that momentum behavior aligns with the directional expansion. This ensures that only breakouts supported by sustained impulse strength are considered.
Calculation: The script evaluates the strength, stability, and directional consistency of momentum over the developing move. Instead of reacting to isolated shifts, it assesses whether momentum maintains a coherent and persistent trajectory that reinforces the breakout direction. A breakout is confirmed only when momentum structure and directional pressure are synchronized.
⚪ Confirmation Levels
Once a breakout is detected, three confirmation levels indicate how far the price must travel to confirm the breakout's strength.
Calculation: The levels are spaced using a volatility-adjusted distance formula. A breakout is considered strong when the price clears all three levels within a short time window.
⚪ Targets
Targets provide simple reference points for early take profits and risk management.
Calculation: The distance to a nearby structural or volatility-based reference is measured, then projected outward as proportional 1R / 2R style levels.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
GCM MACD based Range OscillatorGCM MACD based Range Oscillator (MRO)
Introduction
The GCM MACD based Range Oscillator (MRO) is a hybrid technical indicator that combines the momentum-tracking capabilities of the classic MACD (Moving Average Convergence Divergence) with a custom Range Oscillator.
The core problem this script solves is normalization. Usually, Range Oscillators and MACD Histograms operate on vastly different scales, making it impossible to overlay them accurately. This script dynamically scales the Range Oscillator to fit within the recent amplitude of the MACD Histogram, allowing traders to visualize volatility and momentum on a single, unified interface.
How It Works (The Math)
1. MACD Calculation: The script calculates a standard MACD (Fast MA - Slow MA) and its Signal line to derive the MACD Histogram.
2. Weighted Range Oscillator: Instead of a simple RSI or Stochastic, this script uses a volatility-based calculation. It compares the current Close to a Weighted Moving Average (derived from price deltas).
3. Dynamic Fitting: The script looks back 100 bars to find the maximum amplitude of the MACD Histogram. It then normalizes the Range Oscillator values to match this amplitude.
4. Bands & Coloring:
o Slope Coloring: Both the MACD and the Oscillator change color based on their slope. Green indicates rising values (bullish pressure), and Red indicates falling values (bearish pressure).
o Fixed Bands: Horizontal bands are placed at +0.75 and -0.75 relative to the scaled data to act as Overbought and Oversold zones, with a yellow-tinted background for visibility.
How to Use This Indicator
• Trend Confirmation: When both the MACD line and the Range Oscillator are green, the trend is strongly bullish. When both are red, the trend is bearish.
• Contraction & Expansion: The yellow zone (between -0.75 and +0.75) represents the "equilibrium" or ranging area. Breakouts above the Upper Band (+0.75) usually signal strong expansion or overbought conditions, while drops below the Lower Band (-0.75) signal oversold conditions.
• The "Fill" Gap: The space between the Range Oscillator line and the MACD line is filled. A widening gap between these two metrics can indicate a divergence between pure price action (Range) and momentum (MACD).
• High/Low Marks: Small markers are plotted on the most recent 3 candles to show the exact High and Low oscillation points for short-term entries.
Settings Included
• Range Length & Multiplier: Adjust the sensitivity of the Range Oscillator.
• MACD Inputs: Customizable Fast, Slow, and Signal lengths, with options for SMA or EMA types.
• Visuals: Fully customizable colors for Rising/Falling trends, band opacity, and line thickness.
How this follows House Rules
1. Originality:
o Rule: You cannot simply upload a generic MACD.
o Compliance: This is not a standard MACD. It is a complex script that performs mathematical normalization to fit two different indicator types onto one scale. The "Dynamic Fitting" logic makes it unique.
2. Description Quality:
o Rule: You must explain the math and how to read the signals.
o Compliance: The description above details the "Weighted MA logic" and the "Dynamic Fitting" process. It avoids saying "Buy when Green" (which is low effort) and instead explains why it turns green (slope analysis).
3. Visuals:
o Rule: Plots must be clear and not cluttered.
o Compliance: The script uses overlay=false (separate pane). The specific colors you requested (#37ff0c, #ff0014, and the Yellow tint) are high-contrast and distinct, making the chart easy to read.
4. No "Holy Grail" Claims:
o Rule: Do not promise guaranteed profits.
o Compliance: The description uses terms like "Trend Confirmation" and "Signal," avoiding words like "Guaranteed," "Win-rate," or "No Repaint."
FAIRPRICE_VWAP_RDFAIRPRICE_VWAP_RD
This script plots an **anchored VWAP (Volume Weighted Average Price)** that resets
based on the user-selected anchor period. It acts as a dynamic “fair value” line
that reflects where the market has actually transacted during the chosen period.
FEATURES
- Multiple anchor options: Session, Week, Month, Quarter, Year, Decade, Century,
Earnings, Dividends, or Splits.
- Intelligent handling of the “Session” anchor so it works correctly on both 1m
(resets each new day) and 1D (continuous, non-resetting VWAP).
- Manual VWAP calculation using cumulative(price * volume) and cumulative(volume),
ensuring the line is stable and works on all timeframes.
- Optional hiding of VWAP on daily or higher charts.
- Offset input for horizontal shifting if desired.
- VWAP provides a true “fair price” reference for trend, mean-reversion,
and institutional-level analysis.
PURPOSE
This indicator solves the common problem of VWAP behaving incorrectly on higher
timeframes, on synthetic data, or with unusual anchors. By implementing VWAP
manually and allowing flexible reset conditions, it functions reliably as
an institutional-style fair value benchmark across any timeframe.
TREND_34EMA_RDTREND_34EMA_RD - Enhanced 34 EMA Trend Suite (Ryan DeBraal)
This indicator overlays a trend-adaptive 34 EMA along with optional ATR-based
volatility bands, trend-strength scoring, and crossover alerts. It is built
to give a clean, fast visual read on the current trend direction, volatility,
and momentum quality.
FEATURES
-----------------------------------------------------------------------------
• Core 34 EMA Trend Line
- Standard EMA calculation (default length 34)
- Aqua coloring for clean visibility
- Adjustable line thickness
• ATR-Based Volatility Bands
- Upper and lower bands derived from ATR
- Adjustable ATR length and multiplier
- Optional shaded channel for volatility visualization
- Helps identify trend stability and over-extension
• Trend Strength Score
- Measures slope of the EMA over a lookback window
- Normalizes slope using ATR for consistency across markets
- Outputs a 0–100 score
- Auto-updating label placed at the latest bar
• Gray for weak trend
• Orange for moderate trend
• Green for strong trend
• Optional Crossover Signals
- Detects when price crosses above or below the EMA
- Can display arrows on the chart
- Built-in alert conditions
PURPOSE
-----------------------------------------------------------------------------
This suite provides a clean, minimalistic way to monitor directional bias,
volatility, and trend quality. Ideal for:
• Identifying early trend shifts
• Confirming trend continuation
• Filtering trades based on trend strength
• Detecting over-extension using volatility bands
Watchlist Volume Surge AlertOverview
This indicator is designed for traders who monitor large watchlists and need instant notification when a stock is experiencing unusual volume activity relative to its recent history.
Standard volume indicators often include the current day's volume in the average calculation. This causes a problem: if a stock is having a massive breakout, that high volume pulls the average up immediately, making it harder to hit the "relative" threshold.
This script solves that by comparing the current volume against the Simple Moving Average (SMA) of the previous n bars. This ensures a clean baseline and accurate alerts, even during massive volatility.
Key Features
Smart RVOL Calculation: Calculates Relative Volume (RVOL) based on the previous 30 bars (adjustable), ensuring the current breakout doesn't skew the average.
Visual Clarity:
Bars: Normal volume is transparent. Surge volume turns bright Teal (Bullish Close) or Red (Bearish Close).
Background: The indicator panel background highlights when a surge is active, making it impossible to miss when scanning visually.
Data Window: Displays the exact RVOL ratio (e.g., 2.11) in the Data Window for verification.
Watchlist Alert Optimized: Specifically designed to work with TradingView's "Any alert function call" or standard condition alerts across multiple tickers.
How to Set Up Alerts
This script is perfect for setting a single alert on a large watchlist to catch breakouts as they happen.
Add the indicator to your chart.
Go to the Alerts menu and create a new alert.
Condition: Select Watchlist Volume Surge Alert.
Trigger: Select "Once Per Bar".
Note: Using "Once Per Bar" ensures you are notified the moment the volume crosses the threshold during the trading day, rather than waiting for the market to close.
Message: The script includes a dynamic message: "Volume Surge! {{ticker}} volume is {{plot("RVOL Ratio")}}x the average."
Settings
Average Length (Days): The lookback period for the volume average (Default: 30).
Alert Threshold (x Average): The multiple required to trigger an alert (Default: 1.5x).
Note: This works better when you have a watchlist with similar volatility and/or market cap
Market Regime & Bias Assistant [Prototype v1.1]
Market Regime & Bias Assistant
### **Overview**
The **Market Regime & Bias Assistant** is an all-in-one trend filtration and trading system designed to keep traders on the right side of the market. Instead of relying on a single moving average, this indicator combines **ADX (Trend Strength)**, **Multi-Timeframe EMAs**, **RSI**, and **Volume Spread Analysis (VSA)** concepts to generate a quantitative "Confidence Score" for the current market bias.
It automatically adapts its settings based on your timeframe (Intraday vs. Swing) and provides clear visual cues via background shading, candle coloring, and a data panel.
---
### **Key Features**
* **Auto-Adaptive Modes:** Automatically switches between "Intraday" and "Swing" settings based on your timeframe.
* *Intraday:* Uses faster EMAs (Aggressive 9/30 or Conservative 20/50) and VWAP.
* *Swing:* Uses standard 20/50 EMAs with 200/800 long-term context moving averages.
* **Market Regime Detection:** Identifies if the market is in a **Trend (Bull/Bear)** or a **Range (Neutral)** using a combination of ADX thresholds and EMA alignment.
* **Confidence Scoring (0-100):** A proprietary algorithm that scores the quality of the trend based on RSI alignment, Volume confirmation, and Long-term EMA context.
* **Vector Volume Candles:** Color-coded candles to highlight institutional activity (High Volume) vs. Climactic Volume (Exhaustion).
* **Pullback Signals:** "L" and "S" markers indicating high-probability entries after a pullback into the EMA value zone.
* **Data Dashboard:** A bottom-right panel displaying the current Mode, Regime, Bias, and quantitative Confidence Score.
---
### **How to Read the Visuals**
#### **1. Background Colors (The Regime)**
* **Green Background:** Confirmed **Bullish Trend**. Only look for Longs.
* **Red Background:** Confirmed **Bearish Trend**. Only look for Shorts.
* **Gray Background:** **Neutral / Range**. The market is chopping or consolidating. Stand aside or trade strictly mean-reversion.
#### **2. Candle Colors (Vector Volume)**
* **Green/Red Borders:** Normal volume.
* **Blue / Fuchsia:** **High Volume (1.2x Average)**. Indicates institutional interest or a breakout.
* **Lime / Bright Red:** **Climactic Volume (1.8x Average)**. Indicates potential exhaustion or a stopping volume event.
#### **3. The EMAs**
* **Fast/Slow Lines:** Show the immediate trend direction.
* **Gray/White Lines:** The 200 and 800 EMAs. These act as major support/resistance levels and define the "Big Picture" bias.
* **Lime Line (Intraday Only):** The VWAP (Volume Weighted Average Price).
---
### **How to Use This Indicator**
**Step 1: Check the Regime**
Look at the background color and the Dashboard panel. Is the Trend Strength "Strong" or "Very Strong"?
* *Rule:* Do not take trend-following trades if the Regime is "Range/Neutral."
**Step 2: Check the Confidence**
The dashboard calculates a score from 0 to 100.
* **High Confidence (>67):** All systems go. Alignment of RSI, Volume, and Trend.
* **Medium Confidence (34-66):** Caution warranted. Usually implies divergence in RSI or low volume.
* **Low Confidence (<34):** The trend is weak or failing.
**Step 3: Wait for the Setup (The Arrows)**
The indicator looks for pullbacks into the "Value Zone" (the space between the Fast and Slow EMA).
* **Triangle Up (L):** Appears when price pulls back into the zone during a Bull trend, then bounces out with volume confirmation.
* **Triangle Down (S):** Appears when price rallies into the zone during a Bear trend, then rejects lower.
---
### **Settings & Customization**
* **Mode:** Default is "Auto," but you can force "Intraday" or "Swing" manually.
* **Intraday Style:** Choose between "Aggressive" (9 EMA / 30 EMA) for scalping or "Conservative" (20 EMA / 50 EMA) for day trading.
* **ADX Threshold:** Adjusts how strict the trend filter is (Default: 20).
* **Visual Toggles:** Turn off/on the Panel, Background shading, or Vector candles to clean up your chart.
### **Alerts**
This script comes with built-in alert conditions for:
1. **Bullish Regime Start**
2. **Bearish Regime Start**
3. **High-Confidence Setup Detected**
HTF/CTF High/Low Mitigation with SignalsHTF/CTF High/Low Mitigation with Signals Indicator
Overview
HTF/CTF High/Low Mitigation with Signals (shortened as "H/L Signals+") is an advanced overlay indicator for TradingView, designed to identify and visualize higher timeframe (HTF) and current timeframe (CTF) swing highs/lows, track their mitigation, and generate filtered buy/sell signals using an EMA ribbon trend filter. It incorporates automated trade simulation with risk/reward (RR) visualization, position sizing based on user-defined risk, and a statistics table for performance evaluation. This tool is ideal for multi-timeframe traders focusing on swing trading, breakout strategies, or trend reversals across assets like forex, futures, metals (e.g., XAU/USD, XAG/USD), stocks, or cryptocurrencies.
The "meshup" (mashup) integrates several complementary elements: Multi-timeframe swing level detection (HTF for broader structure, CTF for finer details) with mitigation logic ensures signals align with market structure breaks; an EMA ribbon provides a dynamic trend bias to filter counter-trend trades; risk management automates position sizing and RR calculations for disciplined trading; and built-in backtesting stats offer quick insights into hypothetical performance. This combination reduces noise from isolated indicators—e.g., raw swings can be choppy, EMAs alone lag structure, and manual RR is error-prone—creating a cohesive system for spotting high-probability setups where structure, trend, and risk align. By meshing these, it aims to enhance decision-making in trending or ranging markets, though it's reactive and best used with confirmation. Note: This is a technical tool for educational purposes only; it does not provide financial advice, guarantees of profitability, or trading recommendations. Past performance is not indicative of future results, and users should backtest thoroughly on their specific assets/timeframes, in compliance with TradingView's house rules.
Key Features
• HTF Swing Levels: Detects and draws session highs/lows from a user-selected higher timeframe (e.g., Daily), extends lines until mitigated (by wick or body close), with alerts on mitigation.
• CTF Swing Levels: Identifies local swing highs/lows on the chart timeframe using a pivot candle formation (default 5-candle), with separate limits for unmitigated/mitigated lines.
• EMA Ribbon: A three-EMA system (fast 8, mid 13, slow 21) with gradient fills (green for bullish, red for bearish) to visualize trend strength and filter signals.
• Signal Generation: Buy/sell labels ("BUY"/"SELL") triggered post-mitigation when price aligns with EMA trend (e.g., above slow EMA with stacked bulls for buys).
• Trade Simulation & Risk Management: On signals, calculates stop-loss (SL) from recent extremes, position size based on fixed risk amount (e.g., $100 per trade, adjusted for asset type like futures point value or forex lots), and full take-profit (TP) at user-defined RR level (1-5). Draws RR boxes for visuals.
• Statistics Table: Displays total trades, wins/losses, win rate (%), net R-return, and max consecutive losses in a top-right table.
• Alerts: Customizable alerts for HTF mitigations and new trades (including entry, SL, TP, size).
• Visual Customizations: Toggle lines/ribbon/boxes, adjust colors/styles/widths for unmitigated/mitigated lines (HTF/CTF), min box width.
• Performance Optimization: Automatically cleans up excess lines to stay within max limits (e.g., 15 unmitigated HTF, 5 CTF).
How It Works
• HTF Logic: On new HTF bars (via time(htf_timeframe)), captures session high/low and draws extendable lines. Lines extend rightward until mitigated (high/close > high level for highs, low/close < low level for lows, toggle wick/body). Mitigation sets "waiting" flags for signals and triggers alerts.
• CTF Logic: Scans for pivot highs/lows using a user-defined candle count (e.g., 2 left/right for 5-candle swings). Draws and extends lines similarly, mitigating on wick touches, with separate styles for mitigated (e.g., dotted gray).
• EMA Ribbon Logic: Computes 8/13/21 EMAs; fills mid-slow and fast-mid with bullish green (close > slow EMA) or bearish red gradients.
• Signal Conditions: Post-mitigation (waiting_for_buy/sell true), checks EMA stack—buys require close > slow, fast > mid > slow; sells require close < slow, fast < mid < slow. Signals only on confirmed bars.
• Trade Execution: On signal, sets entry at close, scans back to mitigation bar for tightest SL (lowest low for buys, highest high for sells). Calculates risk points (entry - SL for buys), then position size via helper function (asset-specific: e.g., XAU *100, futures *pointvalue, forex 100000pointvalue). Sets full TP at entry ± (risk * full_tp_level). Draws risk/reward boxes (e.g., long: dark risk below entry, blue reward above) with RR and size text. Alerts with trade details.
• Trade Management: Monitors for SL hit (low <= SL for longs) or TP hit (high >= TP for longs); updates stats (wins if TP, losses if SL, tracks consec losses, net R as +full_tp_level or -1). Places summary label ("Hit TP5 (Win)" or "Stopped Out (Loss)").
• Cleanup: Counts unmitigated/mitigated lines; deletes oldest excess to respect max limits (e.g., max_lines_input=15 for HTF unmitigated, max_mit_lines_ctf=5 for CTF mitigated).
• Why This Meshup?: Standalone tools often fall short—HTF swings ignore local noise, but without CTF, miss entries; EMAs filter trends but overlook structure; manual RR lacks automation. Meshing them creates a "mitigation-to-signal" flow: HTF/CTF provide structural context (e.g., BOS/CHOCH), EMA ensures trend alignment (reducing whipsaws), and RR simulation adds practical risk control with stats for optimization. This holistic approach potentially improves edge in structure-based trading, especially in volatile markets, by combining macro/micro analysis with quantifiable risk—though it may lag in ranges or require tuning.
All logic uses arrays for line management, barstate.isconfirmed for reliability, and syminfo for asset-specific sizing. No repainting, but historical trades simulate based on chart data.
Settings and Customization
Inputs are grouped for usability:
1. Higher Timeframe (HTF) Settings:
o Show HTF Lines: Toggle visibility (default: true).
o Use Wick for Mitigation: True for wick touch, false for body close (default: false; tooltip explains).
o Timeframe: HTF period (default: "D").
o Max Unmitigated HTF Lines: Limit for active lines (default: 15, min 1, max 250).
2. Current Timeframe (CTF) Settings:
o Show CTF Swings: Toggle (default: true).
o CTF Swing Candle Count: Left/right candles for pivot (default: 2, min 1; tooltip: '2' = 5-candle formation).
o Max Unmitigated CTF Lines: (default: 5, min 1, max 250).
o Max Mitigated CTF Lines: (default: 5, min 1, max 250).
3. EMA Settings:
o Show EMA Ribbon: Toggle (default: true).
o Fast/Middle/Slow EMA Length: Defaults 8/13/21.
4. Risk/Reward Settings:
o Risk Amount per Trade ($): Fixed risk (default: 100.0, min 0.1; tooltip: for position sizing).
o Full Take Profit Level (1-5): RR for full win (default: 5; tooltip: counts as win in stats).
o Show Trade Visuals & Stats: Toggle boxes, labels, table (default: true).
5. 🎨 Visuals:
o Draw Risk/Reward Box: Toggle (default: true).
o Minimum Box Width (in bars): (default: 5, min 1).
o Long - Risk/Reward Box Colors: Defaults dark gray (risk), blue (reward).
o Short - Risk/Reward Box Colors: Defaults dark gray (risk), orange (reward).
6. Alert Settings:
o Alert on HTF Level Mitigation: Toggle (default: true).
7. HTF Line Style Settings:
o High (Unmitigated): Color (maroon 20%), width (1).
o High (Mitigated): Color (gray 40%), style (dotted/dashed, default dotted).
o Low (Unmitigated): Color (teal 20%), width (1).
o Low (Mitigated): Color (gray 40%), style (dotted/dashed, default dotted).
8. CTF Line Styles:
o CTF High (Unmitigated): Color (purple #8d198d 25%), width (1), style (Solid/Dotted/Dashed, default Solid).
o CTF High (Mitigated): Color (gray 50%), width (1), style (default Dotted).
o CTF Low (Unmitigated): Color (teal #008080 25%), width (1), style (default Solid).
o CTF Low (Mitigated): Color (gray 50%), width (1), style (default Dotted).
Usage Tips
• Multi-Timeframe Strategy: Use HTF (e.g., D1) for major levels, CTF for entries. Signals post-mitigation with EMA filter—enter on "BUY"/"SELL" labels, use boxes for RR visualization.
• Risk Management: Set risk_amount_per_trade to 1-2% of capital; adjust full_tp_level for strategy (e.g., 3 for conservative). Position size auto-adapts to asset (e.g., smaller for high-vol like XAU).
• Customization: Enable wick mitigation for aggressive setups; increase max lines in trending markets. Tune EMAs for asset (shorter for crypto).
• Alerts Integration: Use for notifications on mitigations or trades; messages include all details for quick action.
• Stats Analysis: Table shows hypothetical results—use for optimization (e.g., aim for >50% win rate, low consec losses). Reset on chart reload.
• Chart Compatibility: Best on candlestick charts; test on lower TFs with higher HTF for confluence.
Limitations
• Reactive Signals: Waits for mitigation + EMA alignment, so may miss early reversals or lag in fast markets.
• Chop in Ranges: Frequent mitigations without trend can generate false signals; EMA helps but not foolproof.
• Simulation Only: Trades are backtested on visible data—no live execution; stats assume full TP or SL hits, ignoring partials or slippage.
• Line Limits: Caps at user max to prevent overload; oldest deleted first.
• Asset Specificity: Position sizing tailored to forex/futures/metals; may need tweaks for others.
• Disclaimer: For informational use only. Trading involves risk of loss; results vary by market, timeframe, and settings. Consult professionals and backtest extensively. No profitability claims per TradingView rules.
EdgeFlow: Momentum RibbonThought for 11s
EdgeFlow: Momentum Ribbon Indicator
Overview
EdgeFlow: Momentum Ribbon is a versatile momentum-based trading indicator for TradingView, developed by @jay555b on X. This overlay tool combines a simple EMA ribbon for trend identification with a selectable oscillator (Stochastic RSI or Regular Stochastic) for detecting overbought/oversold conditions, all enhanced by higher timeframe (HTF) logic and price confirmation for robust entry signals. It's designed to help traders spot potential momentum shifts and trend continuations in various markets and timeframes, such as stocks, forex, or cryptocurrencies.
The "meshup" (mashup) of components—EMA crossovers, oscillator extremes, HTF filtering, and strict price-based confirmation—creates a multi-layered system that reduces false signals common in single-indicator strategies. EMAs provide the core trend bias, the oscillator adds momentum sensitivity, HTF ensures alignment with broader market structure, and the price close condition (e.g., closing above previous high for longs) acts as a final filter for conviction. This integration aims to capture "edge flows" where momentum aligns with trend, making it suitable for swing trading, scalping on lower timeframes, or confirming entries in trend-following systems. Note: This is a technical tool for educational purposes only; it does not provide financial advice, guarantees of profitability, or trading recommendations. Past performance is not indicative of future results, and users should backtest and use at their own risk, in compliance with TradingView's house rules.
Key Features
• EMA Ribbon: A visual band between fast (9-period) and slow (21-period) EMAs, filled green for bullish trends (fast > slow) or red for bearish, offering an at-a-glance trend overview.
• Selectable Oscillator: Choose between Stochastic RSI (for RSI-smoothed momentum) or Regular Stochastic (matching TradingView's default formula), with customizable lengths and smoothing.
• Setup and Confirmation Signals: Plots tiny squares for "setups" (oscillator crosses at extremes aligned with EMA trend) and triangles with "L"/"S" labels for confirmed entries (setup + HTF close + price break).
• Higher Timeframe (HTF) Integration: Processes logic on a user-defined HTF (or chart TF if blank), with a "max opposite-stack bars" tolerance to allow minor counter-trend bars before disarming signals.
• Persistent Arming Logic: Setups "arm" the system, persisting until confirmed or invalidated, preventing rapid flipping in choppy markets.
• Alerts: Built-in conditions for bullish/bearish setups and confirmations, with clean messages for easy integration into TradingView alerts.
How It Works
• EMA Trend Logic: The fast EMA (default 9) is compared to the slow EMA (default 21) to determine bullish (fast > slow) or bearish trends. This forms the ribbon's color and biases all signals—bullish setups require a bullish EMA, and vice versa.
• Oscillator Calculation:
o Stochastic RSI: Computes RSI (default 14 on close), then applies Stochastic (default length 8, %K smoothing 3, %D smoothing 3) to it, creating a bounded oscillator sensitive to relative strength momentum.
o Regular Stochastic: Uses high/low/close sources (defaults unchanged for accuracy), with %K length (8), %K smoothing (3), and %D smoothing (3), exactly matching TradingView's built-in Stochastic for consistency.
o Shared levels: Overbought (80) for bearish setups (crossover above), Oversold (20) for bullish setups (crossunder below).
• Setup Conditions: A bullish setup occurs on an oversold crossunder during a bullish EMA trend; bearish on overbought crossover during bearish EMA. These arm the system persistently.
• Confirmation Logic: On HTF bar close, confirm if armed, trend-aligned, within max opposite bars (default 0 for strictness), and price confirms (close > previous high for long, close < previous low for short). This meshup filters noise: EMAs ensure trend context, oscillator spots extremes, HTF adds multi-TF confluence, and price break demands immediate strength.
• Projection and Plotting: Signals project onto the chart's TF from HTF, plotting only on new HTF bars for clarity. Ribbon fill uses semi-transparent green/red based on trend.
• Why This Meshup?: Isolated indicators often fail in ranging or volatile markets—e.g., EMAs lag, oscillators whipsaw. By meshing them:
o EMAs provide directional bias to avoid counter-trend trades.
o Oscillator adds timing at extremes, catching pullbacks in trends.
o HTF reduces lower-TF noise, ensuring signals align with bigger-picture structure.
o Price confirmation (close beyond prior bar's extreme) adds a candlestick-like filter for momentum conviction, mimicking breakout strategies. This creates a "flow" of edges: trend + momentum + structure + price action, potentially improving signal quality over standalone tools. It's inspired by classic momentum strategies but customized for modern volatility.
All calculations use request.security for HTF data with lookahead off, ensuring real-time accuracy without repainting.
Settings and Customization
Inputs are grouped for ease:
1. EMA Settings:
o Fast EMA Length: Period for fast EMA (default: 9).
o Slow EMA Length: Period for slow EMA (default: 21).
2. Oscillator Selection:
o Oscillator Type: "Stochastic RSI" (default) or "Regular Stochastic".
3. Stochastic RSI Settings (active when selected):
o RSI Source: Input source (default: close).
o RSI Length: RSI period (default: 14).
o Stoch RSI Length: Stochastic length on RSI (default: 8).
o %K Smoothing: Smoothing for %K (default: 3).
o %D Smoothing: Smoothing for %D (default: 3).
4. Regular Stochastic Settings (active when selected):
o High/Low/Close Sources: Defaults to high/low/close (do not change for accuracy, as per tooltip).
o %K Length: Period for Stochastic (default: 8, min 1).
o %K Smoothing: Smoothing for %K (default: 3, min 1).
o %D Smoothing: Smoothing for %D (default: 3, min 1).
5. Shared Oscillator Settings:
o Overbought Level: Threshold for bearish setups (default: 80).
o Oversold Level: Threshold for bullish setups (default: 20).
6. HTF Settings:
o Higher Timeframe: Blank uses chart TF; otherwise, specify (e.g., "1D").
o Max Opposite-Stack Bars: Tolerance for counter-trend bars while armed (default: 0; higher allows more flexibility).
No additional plots or tables; all visuals are shapes and fills for minimal chart clutter.
Usage Tips
• Trend Trading: Use the ribbon color as your primary filter—enter longs only in green, shorts in red. Confirmed triangles ("L"/"S") signal entries; setups (squares) as early warnings.
• Timeframe Strategy: Set HTF to 1-2 levels higher (e.g., 15m chart with 1H HTF) for confluence. Increase max opposite bars in trending markets to catch pullbacks.
• Oscillator Choice: Stochastic RSI for smoother, RSI-biased signals in volatile assets; Regular Stochastic for price-based purity in ranging markets.
• Alert Integration: Set up TradingView alerts for setups (potential watches) and confirmations (entries). Messages are concise for notifications.
• Combination Ideas: Pair with volume indicators or support/resistance for exits. Backtest on your asset/timeframe to optimize lengths.
• Chart Compatibility: Works on any chart type; signals plot small to avoid obstruction.
Limitations
• Reactive Nature: Signals confirm after HTF close and price break, so they may lag in fast markets. Not ideal for ultra-short scalps.
• False Signals in Ranges: Like all trend-momentum tools, performs best in trending conditions; chop can produce disarmed setups without confirmations.
• No Repainting: Uses lookahead off, but HTF projection means signals appear on new bars—test live.
• Customization Risks: Changing source inputs (e.g., in Regular Stochastic) may break accuracy; stick to tooltips.
• Disclaimer: This indicator is for informational use only. Trading involves risk; consult professionals. Abiding by TradingView rules, no claims of profitability are made—results vary by market conditions and user strategy.
MTF EMA Trend Table (20/50) - stableDisplays various EMA results in a table.
The EMA 20 and 50 are fixed.
If the EMA 20 is above the EMA 50, the table displays Up and Blue in the respective time frame, and if the EMA 20 is below the EMA 50, it displays Red and Down.
TF= M1/M5/M15/M30/H4/D
RSI < 25 + Price Below 200 SMA (4H) - Text Signal
Price below 200MA on 4hr chart
RSI is below 25 ovsersold
Start buying small positions at every signal
Eventually price will capture the 200MA on 4hr
This will work great for NVDA, AAPL, MSFT, NFLX, PANW, AMZN, PLTR, CRWD and META.
Good for swing trading based on price action, RSI oversold and reversal
Add more on the Pin bar candles on 4hr time frame once the price is oversold.
Nexural ORB Nexural ORB - Multi-Timeframe Opening Range Breakout Indicator
Introduction
This indicator was built out of frustration. After testing dozens of ORB tools, both free and paid, I found that most of them either did too little or cluttered the chart with unnecessary information. The Opening Range Breakout is one of the oldest and most reliable intraday strategies, yet most indicators treat it as an afterthought - just a box on the chart with no context.
This is not that kind of indicator.
The Nexural Ultimate ORB tracks the Opening Range across three timeframes simultaneously, provides quality scoring to help you identify high-probability setups, detects when multiple levels align for confluence, and now includes historical ORB data so you can scroll back and review previous sessions. It does not tell you when to buy or sell. It does not promise profits. What it does is give you clean, accurate levels with the context you need to make informed decisions.
I am going to be completely transparent about what this indicator does, how it works, what it does well, and where it falls short. If you are looking for a magic solution that prints money, this is not it. If you are looking for a professional-grade tool that will become a permanent part of your charting setup, keep reading.
What Is The Opening Range Breakout
Before diving into the indicator itself, let me explain the strategy it is built around.
The Opening Range is simply the high and low price established during the first portion of the trading session. For US equities and futures, this typically begins at 9:30 AM Eastern Time. The theory behind trading the Opening Range is straightforward: the first 15, 30, or 60 minutes of trade often sets the tone for the rest of the day. Institutional traders, algorithms, and market makers are all actively positioning during this window, and the levels they establish become reference points for the remainder of the session.
When price breaks above the Opening Range High, it suggests bullish momentum and the potential for continuation higher. When price breaks below the Opening Range Low, it suggests bearish momentum and the potential for continuation lower. The strategy has been used by floor traders for decades and remains relevant today because the underlying market dynamics have not changed - the open is when the most information gets priced in, and the levels established during that period matter.
This indicator does not trade the ORB for you. It identifies the levels, tracks multiple timeframes, and provides context. The actual trading decisions are yours.
How The Opening Range Is Calculated
The indicator calculates the Opening Range for three timeframes:
The 15-Minute ORB captures the high and low from 9:30 AM to 9:45 AM. This is the shortest timeframe and typically produces the tightest range. Breakouts from the 15-minute ORB tend to occur earliest in the session and can provide early directional signals, though they are also more prone to false breakouts due to the narrow range.
The 30-Minute ORB captures the high and low from 9:30 AM to 10:00 AM. This is considered by many institutional traders to be the most significant timeframe. The 30-minute window allows enough time for the initial volatility to settle while still capturing the core opening activity. Many professional trading desks reference the 30-minute ORB as their primary intraday framework.
The 60-Minute ORB captures the high and low from 9:30 AM to 10:30 AM. This is the widest range and produces fewer signals, but those signals tend to be more reliable. The 60-minute ORB is particularly useful on high-volatility days when the 15 and 30-minute ranges get quickly violated.
The calculation itself is simple. As each bar completes during the opening period, the indicator compares the current high and low to the stored values and updates them if new extremes are reached. Once the timeframe completes, the levels lock in and do not change for the rest of the session.
I want to be absolutely clear about one thing: there is no repainting. The ORB levels are calculated in real-time as the opening period develops. Once a timeframe completes, those levels are final. You will not look back at your chart and see different levels than what appeared in real-time. This is critically important for any indicator you use for actual trading decisions.
Visual Hierarchy and Line Styles
One of the main problems with multi-timeframe indicators is visual clutter. When you have six lines on the chart representing three different ORBs, it becomes difficult to quickly identify which level belongs to which timeframe.
This indicator solves that problem through a clear visual hierarchy. Each timeframe has its own color, line width, and line style, all of which are fully customizable.
By default, the 15-Minute ORB uses solid lines with the heaviest weight. This makes it the most prominent on the chart because it is typically the first level to be tested and often the most actively traded.
The 30-Minute ORB uses dashed lines with a medium weight. This keeps it visible but clearly secondary to the 15-minute levels.
The 60-Minute ORB uses dotted lines with a medium weight. This places it in the background as a reference level rather than an active trading zone.
You can change any of these settings. If you prefer to trade the 30-minute ORB exclusively, you can make it solid and bold while keeping the others subtle. If you only want to see the 60-minute ORB, you can disable the other two entirely. The flexibility is there because every trader has different preferences.
The dashboard in the top right corner of the chart displays the corresponding line style next to each timeframe, so you always know which line on the chart matches which row in the dashboard.
The Quality Scoring System
Not every Opening Range is worth trading. Some days produce tight, clean ranges with strong follow-through. Other days produce wide, choppy ranges that lead to multiple false breakouts. One of the most valuable features of this indicator is the Quality Score, which grades each session from A-plus down to C.
The Quality Score is calculated based on several factors:
Range Size is the most important factor. The indicator compares the current ORB range to the average daily range over the past 20 sessions. A tight range, defined as less than 40 percent of the average daily range, receives the highest score. The logic here is simple: tight ranges indicate consolidation, and consolidation often precedes expansion. When the ORB is tight, a breakout has more room to run.
A normal range, between 40 and 80 percent of the average daily range, receives a moderate score. These are typical trading days without any particular edge from a range perspective.
A wide range, greater than 80 percent of the average daily range, receives the lowest score. When the ORB is already wide, much of the day's move may have already occurred during the opening period, leaving less opportunity for breakout continuation.
Volume is the second factor. Above-average volume during the opening period indicates genuine institutional participation. The indicator compares the current volume to the 20-bar average. Significantly elevated volume adds to the quality score, while below-average volume does not penalize the score but does not help it either.
Day of Week matters more than most traders realize. Statistical studies of market behavior consistently show that Tuesday, Wednesday, and Thursday produce cleaner trending days than Monday or Friday. Monday mornings often see erratic price action as the market digests weekend news and repositions. Friday afternoons often see reduced participation as traders close out positions before the weekend. The quality score reflects these tendencies by adding points for mid-week sessions and subtracting points for Monday mornings and Friday afternoons.
Overnight Activity is relevant primarily for futures traders. If the overnight session produced a significant range, defined as greater than half of the average true range, it suggests that institutions were active during the overnight hours. This often leads to more directional behavior during the regular session.
The quality score is displayed in the dashboard as a letter grade. A-plus indicates excellent conditions across multiple factors. A indicates good conditions. B indicates average conditions. C indicates below-average conditions that warrant caution.
I want to be honest about the limitations of this system. The quality score is a guideline, not a guarantee. A C-rated day can still produce a profitable breakout. An A-plus day can still result in a failed breakout that reverses. The score helps you calibrate your expectations and position sizing, but it does not predict the future.
Confluence Detection
Confluence occurs when multiple significant price levels cluster together within a tight range. When the 15-minute ORB high aligns with the overnight high, or when the ORB low sits right at the session opening price, you have confluence. These zones tend to produce stronger reactions because multiple types of traders are watching the same level.
The indicator automatically detects confluence using a tolerance-based system. By default, the tolerance is set to 0.15 percent of price. This means that if two levels are within 0.15 percent of each other, they are considered confluent.
The levels that are checked for confluence include the Session Opening Price, which is the exact price at 9:30 AM. This level matters because it represents the point where the market transitioned from overnight to regular session trading. Many traders reference the opening print throughout the day.
The Overnight High and Low are also checked. For futures markets, this includes all trading from 6:00 PM the previous evening through 9:29 AM. For stocks, this includes extended hours trading. These levels represent the extremes established before the regular session began.
Finally, the indicator checks whether the ORB levels from different timeframes align with each other. When the 15-minute high matches the 30-minute high, that level gains additional significance.
When confluence is detected, two things happen on the chart. First, the affected ORB line changes color to gold, making it visually obvious that this level has additional significance. Second, the dashboard displays a Confluence row at the bottom, alerting you to the condition.
The Confluence label also appears directly on the chart, positioned within the ORB zone so you can immediately see where the confluence exists.
Smart Label System
A common problem with indicators that display multiple price levels is label overlap. When you have six ORB levels plus auxiliary levels like the session open and overnight high and low, the right side of the chart can become a cluttered mess of overlapping text.
This indicator solves that problem with a smart labeling system that combines matching levels. If the 15-minute low, 30-minute low, and 60-minute low are all at the same price, instead of displaying three separate labels, the indicator displays a single label that reads 15L/30L/60L followed by the price.
The system uses a tolerance of 2 percent of the ORB range to determine whether levels are close enough to combine. This keeps the labels clean while still displaying separate labels when levels are meaningfully different.
The labels are positioned to the right of the current price action, extending beyond the last bar so they remain visible as new bars form. Each label includes the level identifier and the exact price value.
Historical ORB Display
This feature addresses one of the most common limitations of ORB indicators: the inability to see previous sessions when scrolling back through your chart.
With the history feature enabled, the indicator stores ORB data for up to 20 previous sessions. When you scroll back in time, you will see the ORB levels for each historical session, drawn from the session start to the session end.
Historical ORBs are displayed with slightly faded colors, using 50 percent transparency compared to the current session. This creates a clear visual distinction between current and historical levels while still allowing you to analyze past price action relative to those levels.
The history depth is configurable. You can set it anywhere from 1 to 20 days depending on your needs. If you primarily care about the current session and the previous day for context, set it to 1 or 2. If you want to analyze an entire week or more of ORB behavior, increase the setting.
You can also disable the history feature entirely by enabling Current Session Only mode. This returns the indicator to showing only the active session, which some traders prefer for a cleaner chart during live trading.
Breakout Detection and Filters
The indicator marks breakouts with triangle signals. A green triangle below the bar indicates a bullish breakout above the ORB high. A red triangle above the bar indicates a bearish breakout below the ORB low.
However, not every crossing of an ORB level represents a valid breakout worth acting on. The indicator includes several filters to reduce false signals.
The Volume Filter requires that volume on the breakout bar be at least 1.2 times the 20-bar average volume. You can adjust this multiplier in the settings. The logic is straightforward: breakouts on weak volume are more likely to fail. A genuine breakout that is going to follow through should be accompanied by above-average participation.
The Time Filter prevents breakout signals after a specified hour. The default is 2:00 PM Eastern. The rationale is that late-session breakouts often lack follow-through because there is not enough trading time remaining for the move to develop. You can adjust or disable this filter based on your trading style.
The Single Trigger mechanism ensures that each breakout fires exactly once per session. If price crosses above the ORB high, you will see one bullish signal on the bar where the crossing occurred. If price subsequently pulls back and crosses above again, you will not see a second signal. This prevents signal spam and keeps your chart clean.
The indicator also includes Reclaim Detection. If price breaks out and then returns back inside the ORB zone, you will see a warning signal marked with an X. This condition often indicates a failed breakout and potential reversal. It is not a trade signal, but rather information that the breakout you just witnessed may not be valid.
Range Extensions
Once the ORB is established, many traders look for profit targets based on the range itself. The indicator includes extension levels that project multiples of the ORB range above and below the extremes.
By default, two extension levels are shown: 1.0 times the range and 1.5 times the range. If the 15-minute ORB is 50 points, the 1.0 extension above the high would be 50 points above the high, and the 1.5 extension would be 75 points above the high.
These extensions serve as potential profit targets for breakout trades. The 1.0 extension represents a measured move equal to the ORB itself. The 1.5 extension represents a slightly more ambitious target.
You can adjust the extension multipliers in the settings. Some traders prefer 0.5 and 1.0. Others prefer 1.0 and 2.0. The flexibility is there to match your trading approach.
The extension lines are displayed as faint dotted lines so they do not compete visually with the ORB levels themselves. The labels show the multiplier value along with the exact price.
## The Midline
The 50 percent level of the ORB, known as the midline, is displayed as a dashed line within the ORB zone. This level matters because it often acts as short-term support or resistance during consolidation periods within the range.
When price is trading inside the ORB and approaches the midline, you may see a reaction. The midline can also serve as a reference for whether price is showing strength or weakness within the range. If price is spending most of its time above the midline, that suggests a bullish bias even before a breakout occurs. If price is spending most of its time below the midline, that suggests a bearish bias.
The midline can be disabled in the settings if you prefer a cleaner chart.
The Dashboard
The dashboard is positioned in the top right corner of the chart and provides all relevant ORB information at a glance.
The header row displays the indicator name, the current Quality Score grade, the Range Classification, and the Session Status.
The Range Classification shows whether the current 15-minute ORB is Tight, Normal, or Wide compared to the 20-day average. This gives you immediate context about whether the range is unusual in either direction.
The Session Status shows whether the market is currently in session or closed. A green Live indicator means the session is active. A red Closed indicator means the session has ended.
Below the header, each timeframe row displays the following information:
The Timeframe column shows 15m, 30m, or 60m along with a visual indicator of the line style you have selected for that timeframe.
The High column displays the ORB high price for that timeframe.
The Low column displays the ORB low price for that timeframe.
The Range column displays the distance between high and low.
The Status column shows the current state. Before the ORB completes, this shows a countdown of minutes remaining. After completion, it shows whether the price has broken out bullish, broken out bearish, or remains in range.
Below the timeframe rows, the Distance row shows how far the current price is from the nearest ORB level. This helps you gauge whether price is approaching a potential breakout zone.
If confluence is detected, a highlighted row appears at the bottom of the dashboard indicating that significant level alignment exists.
Supported Markets and Sessions
The indicator supports multiple market types with appropriate session times:
US Stocks use a session from 9:30 AM to 4:00 PM Eastern.
US Futures use a session from 9:30 AM to 4:00 PM Eastern, with overnight tracking from 6:00 PM the previous evening.
Forex uses a 24-hour session since the market trades continuously.
Crypto uses a 24-hour session since the market trades continuously.
Custom allows you to define your own session times for markets not covered by the presets.
The timezone is configurable. The default is America/New_York, but you can change it to Chicago, Los Angeles, London, Tokyo, or UTC depending on your location and preference.
Settings Overview
The settings are organized into logical groups:
General settings include the market type, current session only toggle, and history days.
Session settings include custom session times and timezone selection.
ORB Timeframes settings include individual toggles for showing or hiding each timeframe, color selection, line width, and line style. This is where you customize the visual appearance of each ORB level.
Quality Scoring settings include the ATR period and range comparison lookback. These affect how the quality score is calculated.
Confluence Detection settings include the tolerance percentage and toggles for the session open and overnight high and low levels.
Breakout Settings include the volume filter toggle and multiplier, time filter toggle and cutoff hour, and reclaim detection toggle.
Visuals settings include toggles for the fill zone, labels, dashboard, distance display, and midline.
Extensions settings include toggles for showing extensions and the multiplier values for each extension level.
How I Use This Indicator
I will share my personal approach, though you should adapt it to your own style.
First, I wait for the ORB to complete. I do not trade during the first 15 to 30 minutes of the session. The levels are still forming, and the price action during this window is often erratic. I let the dust settle and the range establish itself.
Second, I check the Quality Score. If it is an A or A-plus day with a tight range and good volume, I am more aggressive. If it is a C day with a wide range on a Friday afternoon, I am either sitting on my hands or trading with reduced size.
Third, I look for confluence. If the 15-minute high is sitting right at the overnight high, that level has additional significance. Breakouts through confluence zones tend to be more decisive.
Fourth, I confirm with volume. Even though the indicator filters for volume, I still glance at the volume bars. I want to see that breakout candle have conviction.
Fifth, I manage expectations based on range type. If the ORB is tight, I expect an explosive move and give the trade room to develop. If the ORB is wide, I expect choppier action and tighten my parameters.
Sixth, I use the distance reading. If price is already 50 points beyond the ORB high and the range was only 40 points, I have missed the move. Chasing extended price is not smart trading.
Honest Pros and Cons
What this indicator does well:
It provides clean, accurate ORB levels that do not repaint. This is the foundation, and it is done correctly.
It offers multi-timeframe tracking with clear visual differentiation. You can see all three ORBs at once without confusion.
The quality scoring system helps you avoid low-probability setups. It is not perfect, but it adds valuable context.
The confluence detection highlights significant level alignment automatically. This saves you from manually checking multiple levels.
The smart label system prevents visual clutter. Labels combine when appropriate and remain readable.
The historical ORB display allows you to scroll back and review previous sessions. This is valuable for analysis and pattern recognition.
The customization is extensive. Every visual element can be adjusted to match your preferences.
It works across stocks, futures, forex, and crypto with appropriate session handling.
What this indicator does not do:
It does not give you buy and sell signals with entries and exits. This is a levels and analysis tool, not a trading system.
It does not include backtesting or performance tracking. You need a separate strategy tester for that.
It does not guarantee that breakouts will follow through. The filters help, but failed breakouts still occur.
The quality score is a guideline, not a prediction. Low-quality days can still produce good trades. High-quality days can still produce losing trades.
The confluence detection is proximity-based. It identifies when levels are near each other but does not know if those levels are actually significant to other traders.
Technical limitations to be aware of:
On chart timeframes larger than 15 minutes, the ORB calculation becomes less precise because you have fewer bars in the opening period. This indicator works best on 1 to 15 minute charts.
The overnight high and low tracking works best on futures. Stocks do not have true overnight sessions in the same way.
If your chart does not have volume data, the volume filter will not function properly.
Risk Management
This section is not about the indicator. It is about trading.
No indicator, no matter how well designed, can protect you from poor risk management. Before you trade any ORB breakout, you need to define your risk.
Where is your stop? A common approach is to place the stop on the opposite side of the ORB zone. If you are taking a bullish breakout above the high, your stop goes below the low. This means your risk is the full ORB range plus any slippage.
Is that risk acceptable? If the ORB range is 100 points and you are trading a 50 dollar per point contract, your risk is 5000 dollars plus commissions. Can you afford that loss? If not, either reduce your size or skip the trade.
Where is your target? The extensions provide potential targets, but you need to decide in advance where you will take profits. Hoping for an unlimited run while watching your profits evaporate is not a strategy.
What is your win rate? ORB breakouts do not work every time. Depending on the market and conditions, you might win 50 to 60 percent of the time. That means you will have losing trades. Are you prepared for a string of three or four losers in a row? It will happen.
None of this is specific to this indicator. It applies to all trading. But I include it here because I see too many traders focus on the indicator while ignoring the fundamentals of risk management. The indicator can help you identify setups. It cannot manage your risk for you.
Final Thoughts
I built this indicator for my own trading, then refined it to the point where I felt comfortable sharing it. It is not a holy grail. It will not make you profitable if you do not already have a trading process. What it will do is give you clean, accurate ORB levels with context that most indicators do not provide.
The Opening Range Breakout works because institutions and algorithms reference these same levels. When the first 30 or 60 minutes of trading establishes a range, that becomes a reference point for the rest of the session. This indicator makes those levels visible and adds intelligence around when they are worth paying attention to.
Use it as a tool, not a crutch. Combine it with your own analysis. Manage your risk properly. And please, do not trade with money you cannot afford to lose.
If you have questions or feedback, I am actively maintaining this indicator and will consider feature requests for future updates.
Trade well.
Tags
ORB, Opening Range Breakout, Intraday, Day Trading, Futures, Stocks, Multi-Timeframe, Breakout, Support Resistance, Session, NQ, ES, SPY, QQQ, Opening Range, Institutional Levels
Recommended Timeframes
This indicator works best on 1-minute, 2-minute, 3-minute, 5-minute, 10-minute, and 15-minute charts. It can be used on higher timeframes, but the ORB calculation becomes less precise.
Recommended Markets
US Stock Indices and Futures including ES, NQ, YM, RTY, SPY, QQQ, DIA, IWM. Individual stocks with sufficient liquidity. Forex major pairs. Cryptocurrency with defined trading sessions.
BADSHAHI TRADINGTradingView indicator that posts buy and sell signals along with support and resistance levels, you need to develop a Pine Script that identifies key support and resistance levels and then displays buy and sell signals based on certain conditions. Here's a breakdown of how to approach this:
1. Support and Resistance Basics
Support and resistance are critical concepts in technical analysis:
Support: This is a price level where an asset tends to find buying interest, preventing the price from dropping further.
Resistance: This is a price level where selling pressure tends to increase, preventing the price from rising further.
To detect support and resistance, we typically use methods like pivot points, recent swing highs/lows, or price levels that have repeatedly reversed direction in the past.
2. Buy and Sell Signals
Buy and sell signals are often generated based on certain criteria like:
Price crossing above or below a moving average
Candlestick patterns (like Doji, engulfing)
Breakouts from support/resistance levels
In this example, we’ll consider a simple strategy where:
Buy signal is generated when the price breaks above resistance.
Sell signal is generated when the price breaks below support.
________________________________________
Warning:
• While this indicator aids in decision-making and risk management, no indicator is 100% accurate.
• Always consider broader market conditions and apply sound risk management techniques.






















