Machine Learning-Inspired Supply & Demand Zones [AlgoPoint]This indicator is a Smart Supply & Demand Zone tool, developed with principles inspired by Machine Learning (ML). It intelligently filters out market noise, allowing you to focus only on the most significant zones where institutional order flow is likely present.
💡 How It Works: Why Is This Indicator "Smart"?
Unlike traditional indicators that only measure simple price movements, this script uses an algorithm that asks the same critical questions an experienced market analyst would to qualify a zone:
- 1. Price Imbalance: How fast and aggressively did the price leave the zone? Our algorithm measures the body size of the "departure candle" relative to the current market volatility (ATR). A zone is only considered if it was formed by an explosive move that is statistically significant, indicating a major imbalance between buyers and sellers.
- 2. Volume Confirmation: Did the "smart money" participate in this move? The script checks if the volume on the departure candle was significantly higher than the recent average volume. A spike in volume confirms that the move was backed by institutional interest, adding strength and validity to the zone.
- 3. Valid Pivot Structure: Did the zone originate from a meaningful swing high or low? The algorithm first identifies a valid pivot structure, ensuring that zones are not drawn from insignificant or random price fluctuations.
Only when a potential zone passes these three critical tests—our "quality filter"—is it drawn on your chart.
🚀 Features & How to Use
Using the indicator is straightforward. You will see two primary types of boxes on your chart:
* 🟥 Red Box (Supply Zone): An area of potential resistance where selling pressure is likely to be strong. Look for potential shorting opportunities as the price approaches this zone.
* 🟩 Green Box (Demand Zone): An area of potential support where buying pressure is likely to be strong. Look for potential long opportunities as the price pulls back into this zone.
Dynamic Zone Management
This indicator is not static; it lives and breathes with the market:
- Fresh Zone: A newly formed zone appears in its full, vibrant color. These are the highest-probability zones as they have not yet been re-tested.
- Broken / Flipped Zone: You have full control over what happens when a zone is broken! In the settings, you can choose:
- Delete Zone: The zone will be removed completely when the price closes through it.
- Show as Broken (Flip): When broken, the zone will turn gray, stop extending, and remain on your chart. This is extremely useful for identifying Support/Resistance Flips, where a broken demand zone becomes new resistance, or a broken supply zone becomes new support.
⚙️ Settings & Customization
Fine-tune the indicator to match your personal trading style via the settings menu:
- Breakout Behavior: The most powerful feature. Choose between Delete Zone and Show as Broken (Flip) to customize your chart.
- Zone Finding Logic: Control the indicator's sensitivity.
- Selective: Requires both strong imbalance and high volume. Finds fewer, but higher-quality, zones.
- Moderate: Requires either strong imbalance or high volume. Finds more potential zones.
- Sensitivity Settings: Adjust the ATR Multiplier and Volume Multiplier to make the criteria for a "strong" zone stricter or looser.
Bantlar ve Kanallar
Universal ORB Strategy v2 # Universal ORB **v2** — Pine v6 Strategy
Opening Range Breakout strategy with a compact, real-time HUD, risk-managed exits, and guardrails to avoid late entries.
---
## Table of Contents
- (#what-it-does)
- (#quick-start)
- (#recommended-timeframes--sessions)
- (#inputs-reference)
- (#how-trades-trigger-logic-flow)
- (#risk--exits-r-multiples)
- (#hud-guide)
- (#plots--labels)
- (#backtesting-tips)
- (#live-trading-tips)
- (#troubleshooting)
- (#example-presets)
- (#user-journey-example)
- (#install--run)
- (#changelog)
- (#disclaimer)
---
## What It Does
- Builds an **Opening Range (OR)** from the **first _N_ minutes** after session open.
- Goes **long** on breaks **above** OR high; **short** on breaks **below** OR low.
- Optional **filters**:
- **Minimum OR width** (skip tiny, choppy ranges).
- **Volume filter** (current volume must exceed SMA).
- **Entry guard** (only allow entries ≤ _X_ bars after the initial break).
- **Risk-managed exits**:
- Stop based on **ATR × multiplier**.
- Two profit targets (**TP1**, **TP2**) at configurable **R multiples** (50/50 split).
---
## Quick Start
1. **Add the script** to a chart in TradingView (see (#install--run)).
2. In **Settings → Inputs**:
- Set **Session** (e.g., `0930-1600` for US equities; a daily boundary for crypto).
- Set **First N Minutes** (common: **5**, **15**, **30**).
- Optionally enable **Volume Filter** and set a **Min OR Width**.
3. Pick a timeframe (1m–15m typical).
4. After the first N minutes, the OR locks. Breakouts that pass filters/guard will **auto-enter** with TP/SL attached.
5. Review results in **Strategy Tester**. Tweak inputs to fit your market.
---
## Recommended Timeframes & Sessions
| Market | Session Example | First N Minutes | Chart Timeframe | Notes |
|-------------|-------------------|----------------:|----------------:|------|
| US Equities | `0930-1600` | 5–30 | **1m–5m** | 5–15m OR is common; 1–3m chart for precision. |
| Futures | RTH or chosen day | 5–30 | 1m–5m | Use exchange RTH if you trade regular hours only. |
| Crypto | `0000-2359` (or preferred daily reset) | 15–60 | **3m–15m** | 24/7—pick a consistent daily open to define OR. |
**Heuristics**
- Shorter **N** → more trades, more noise.
- Longer **N** → fewer trades, higher average quality.
- Increase **Min OR Width** for very volatile symbols.
---
## Inputs Reference
### Opening Range
- **Session** (`0930-1600` by default): Trading window that defines each session/day.
- **First N Minutes**: Minutes after session open used to build the OR high/low.
### Filters
- **Min OR Width (points)**: Minimum acceptable range height; `0` disables.
- **Enable Volume Filter**: Requires `volume > SMA(volume, len)`.
- **Volume SMA Length**: Period for volume SMA.
### Risk / Targets
- **ATR Length**: ATR period for stop calculation.
- **ATR ×**: Stop distance multiplier (`stop = ATR × multiplier`).
- **TP1 = R Multiple**: First target measured in R (risk units).
- **TP2 = R Multiple**: Second target measured in R.
### Entry Guard
- **Max Bars After Break**: Reject entries that occur more than _X_ bars after the initial break.
### Visuals
- **Plot OR High/Low**: Draw the OR lines (forming vs locked).
- **Show Break Labels**: “LONG/SHORT” markers at entries.
---
## How Trades Trigger (Logic Flow)
1. **Build OR** during the first _N_ minutes of the session (track highest high & lowest low).
2. When _N_ minutes pass, **OR locks**.
3. **Detect breakouts**:
- **Up-break** when `close` crosses **above** OR high.
- **Down-break** when `close` crosses **below** OR low.
4. **Check filters**:
- **Min OR Width** (if set) must pass.
- **Volume Filter** (if enabled) must pass.
- **Entry Guard** must pass (bars since initial break ≤ limit).
5. **Place entry** (long/short) with attached **stop** (ATR-based) and **two targets** (TP1, TP2).
6. **Exit logic**: TP1 and TP2 each close **50%** of the position; stop exits the remainder.
---
## Risk & Exits (R Multiples)
- **R** = stop distance (entry price to stop).
- Example (long): ATR-based stop is **100** points below entry ⇒ **1R = 100**.
- **TP1 @ 1R** = entry + 100
- **TP2 @ 2R** = entry + 200
- Default split: **50%** size to TP1, **50%** to TP2.
Tune via **ATR Length**, **ATR ×**, and **TP1/TP2** R settings.
---
## HUD Guide
Compact table in the **top-right** with real-time updates on the live bar.
| Row | Meaning |
|------------|---------|
| **Universal ORB v2 / Filters + Guard** | Header |
| **OR Mode** | “First N Min” |
| **OR Hi / OR Lo** | Current OR levels (forming, then locked) |
| **Width** | OR High − OR Low |
| **Break** | Direction of the **last** break: Up / Down / None |
| **Setup** | Playbook hint: Await Break / Await Retest Long / Await Retest Short |
| **Position** | Above Range / Below Range / In Range |
| **Min OR** | PASS / FAIL |
| **VolFilt** | ON (PASS) / ON (FAIL) / OFF |
| **Stop/TP** | Current stop and TP levels (contextual) |
| **Guard** | “≤X | now:Y” bars since initial break |
---
## Plots & Labels
- **OR High/Low**
- Translucent while forming; solid after locking.
- **Entry Labels**
- “LONG” plotted above bar on up-break entries; “SHORT” below bar on down-break entries.
---
## Backtesting Tips
- Use **1m–5m** charts for intraday ORB on equities/futures; **3m–15m** for crypto.
- Keep the **Session** aligned with the instrument (RTH vs 24h).
- Experiment with:
- **First N Minutes**: 5 / 15 / 30
- **ATR ×**: 1.0–2.0
- **Min OR Width**: symbol-specific
- **Volume Filter**: often helpful in chop
- Evaluate **Net Profit**, **Max Drawdown**, **Win Rate**, and **Trade Count**—avoid over-filtering to zero trades.
---
## Live Trading Tips
- Account for **spread & slippage**; avoid targets unrealistically close to entry.
- If you find yourself chasing, **tighten Entry Guard**.
- If you’re getting chopped, **increase N** and/or **Min OR Width**, and consider enabling **Volume Filter**.
- Many traders prefer **“first valid break only”** per session—consider that as a personal rule.
---
## Troubleshooting
- **No trades:**
- OR might still be forming.
- Filters may be blocking (Min Width, Volume, Guard).
- Session may not match the instrument/time.
- **Too many trades:**
- Increase **First N Minutes** or **Min OR Width**; enable **Volume Filter**.
- **Labels/lines missing:**
- Ensure **Visuals** toggles are on in Settings.
---
## Example Presets
**Equities (active, early breakout)**
- Session: `0930-1600`
- First N Minutes: **5–15**
- Timeframe: **1m–3m**
- Min OR Width: start around **0.2–0.5%** of price (symbol-dependent)
- Volume Filter: **ON**, Length **20**
- Entry Guard: **≤ 3 bars**
**Futures (RTH breakout)**
- Session: Exchange RTH
- First N Minutes: **15–30**
- Timeframe: **1m–5m**
- Volume Filter: ON
- ATR ×: **1.5**
- TP1/TP2: **1R / 2R**
**Crypto (daily OR)**
- Session: `0000-2359` (or chosen reset)
- First N Minutes: **30–60**
- Timeframe: **3m–15m**
- Min OR Width: ON (tune per pair)
- Volume Filter: optional (exchange-dependent)
---
## User Journey Example
**Persona:** Sam, intraday trader on US equities, likes momentum out of the open.
1. **Add to Chart**
Sam opens the AAPL 1-minute chart, pastes the script into TradingView Pine Editor, and hits **Add to chart**.
2. **Configure**
- Session: `0930-1600`
- First N Minutes: `15`
- Min OR Width: `0.4` (about ~0.25–0.5% of typical AAPL price)
- Volume Filter: **ON**, Length `20`
- Entry Guard: `3` bars
- ATR ×: `1.5`, TP1 `1R`, TP2 `2R`
3. **Observe the Open**
From 9:30 to 9:45, the HUD shows **OR Hi/Lo** forming. After 9:45, the range locks and OR lines turn solid.
4. **First Breakout**
Price pops above **OR High** at ~9:47. The HUD shows **Break: Up**. Volume passes; Min Width passes; within 3 bars of the break. Strategy enters **LONG** with ATR stop and two targets.
5. **Trade Management**
The HUD line **Stop/TP** displays current SL and both TPs. Sam watches TP1 fill quickly; TP2 trails behind and eventually fills on extension. If price reverses, the ATR stop is there to cap the loss.
6. **Review & Iterate**
After the close, Sam checks **Strategy Tester** results. The day looks solid, but on a different symbol the range was too tight, so Sam increases **Min OR Width** to avoid similar chop tomorrow.
---
## Install / Run
1. Open **TradingView → Pine Editor**.
2. Paste the **Universal ORB v2 (Pine v6)** code.
3. Click **Add to chart**.
4. Open **Settings** to configure inputs per your market/timeframe.
> The strategy is written for **Pine Script v6**.
---
## Changelog
- **v2**
- Consolidated docs and naming.
- Compact, real-time HUD with clear status rows.
- ORB logic with Min Width, Volume filter, and Entry guard.
- ATR-based stop and dual TP exits (R-based).
---
## Disclaimer
This script is for educational purposes only and **not financial advice**. Markets involve risk. Test thoroughly in a simulator before using on live capital.
Mean-Reversion Indicator_V2_SamleeOverview
This is the second version of my mean reversion indicator. It combines a moving average with adaptive standard deviation bands to detect when the price deviates significantly from its mean. The script provides automatic entry/exit signals, real-time PnL tracking, and shaded trade zones to make mean reversion trading more intuitive.
Core Logic
Mean benchmark: Simple Moving Average (MA).
Volatility bands: Standard deviation of the spread (close − MA) defines upper and lower bands.
Trading rules:
Price breaks below the lower band → Enter Long
Price breaks above the upper band → Enter Short
Price reverts to MA → Exit position
What’s different vs. classic Bollinger/Keltner
Bandwidth is based on the standard deviation of the price–MA spread, not raw closing prices.
Entry signals use previous-bar confirmation to reduce intrabar noise.
Exit rule is a mean-touch condition, rather than fixed profit/loss targets.
Enhanced visualization:
A shaded box dynamically shows the distance between entry and current/exit price, making it easy to see profit/loss zones over the holding period.
Instant PnL labels display current position side (Long/Short/Flat) and live profit/loss in both pips and %.
Entry and exit points are clearly marked on the chart with labels and exact prices.
These visualization tools go beyond what most indicators provide, giving traders a clearer, more practical view of trade evolution.
Key Features
Automatic detection of position status (Long / Short / Flat).
Chart labels for entries (“Entry”) and exits (“Exit”).
Real-time floating PnL calculation in both pips and %.
Info panel (top-right) showing entry price, current price, position side, and PnL.
Dynamic shading between entry and current/exit price to visualize profit/loss zones.
Usage Notes & Risk
Mean reversion may underperform in strong trending markets; parameters (len_ma, len_std, mult) should be validated per instrument and timeframe.
Works best on relatively stable, mean-reverting pairs (e.g., AUDNZD).
Risk management is essential: use independent stop-loss rules (e.g., limit risk to 1–2% of equity per trade).
This script is provided for educational purposes only and is not financial advice.
News Volatility Bracketing StrategyThis is a news-volatility bracketing strategy. Five seconds before a scheduled release, the strategy brackets price with a buy-stop above and a sell-stop below (OCO), then converts the untouched side into nothing while the filled side runs with a 1:1 TP/SL set the same distance from entry. Distances are configurable in USD or %, so it scales to the instrument and can run on 1-second data (or higher TF with bar-magnifier). The edge it’s trying to capture is the immediate, one-directional burst and liquidity vacuum that often follows market-moving news—entering on momentum rather than predicting direction. Primary risks are slippage/spread widening and whipsaws right after the print, which can trigger an entry then snap back to the stop.
Gaussian Channel Strategy – GC + Kijun + VAPI Gate Gaussian Channel Strategy – Description
This strategy combines multiple technical tools into a rules-based trading system designed for crypto and other volatile markets. The main components are:
- **Gaussian Channel (GC):** Acts as the core trend filter. When price is above the Gaussian filter, conditions favor longs; when below, shorts are favored. The channel bands (high/low) also provide visual guidance of volatility and dynamic support/resistance.
- **Kijun-Sen (Ichimoku baseline, period 120):** Serves as a secondary trend filter. Long trades are only considered if price is above the Kijun-Sen, shorts only if price is below.
- **VAPI (Volume Accumulation Percentage Indicator):** Adds a volume confirmation layer. Long setups require positive accumulation, while short setups require negative accumulation. This helps to filter out low-volume and false signals.
- **Risk Management (ATR):** Stop-losses are set at 3× the ATR distance from entry, dynamically adjusting to volatility. Position sizing is calculated as a percentage of account equity at risk per trade.
- **Take Profit & Trailing Exit:** Positions are split into two legs. Leg A (30% of size) takes fixed profit at 0.75× the stop-loss distance (RR 0.75). Leg B (70% of size) uses a trailing stop that follows price with an ATR-based buffer, aiming to capture extended moves.
- **Trade Management:** Long and short entries are triggered only when all three conditions (GC, Kijun, VAPI) align. Exits are handled automatically through fixed TP, SL, and trailing stops.
Overall, the strategy seeks to balance safety and trend-following by combining a smooth Gaussian filter with trend/volume confirmation and adaptive risk management.
Rayner Teo's EMA SettingCollection of Indicators for Rayner Teo's Strategy
- Displays the 20, 50, and 200 EMA s.
- Highlights the bar when the price enters the area between the 20 EMA and the 50 EMA .
- A green signal appears when the 20, 50, and 200 EMAs are aligned .
- A red signal appears when the price crosses down the 20 EMA during a bullish trend.
- The dim steplines below and above price bar show the 1.5 x ATR(20) used for stop loss .
Volatility % Bands (O→C)Volatility % Bands (O→C) is an indicator designed to visualize the percentage change from Open to Close of each candle, providing a clear view of short-term momentum and volatility.
**Histogram**: Displays bar-by-bar % change (Close vs Open). Green bars indicate positive changes, while red bars indicate negative ones, making momentum shifts easy to identify.
**Moving Average Line**: Plots the Simple Moving Average (SMA) of the absolute % change, helping traders track the average volatility over a chosen period.
**Background Bands**: Based on the user-defined Level Step, ±1 to ±5 zones are highlighted as shaded bands, allowing quick recognition of whether volatility is low, moderate, or extreme.
**Label**: Shows the latest candle’s % change and the current SMA value as a floating label on the right, making it convenient for real-time monitoring.
This tool can be useful for volatility breakout strategies, day trading, and short-term momentum analysis.
Day Range Breakout Strategy + Trend Structure Filter🚀 Enhanced Strategy for Breaking Previous Day’s Extremes with Market Structure-Based Trend
The strategy focuses on breakouts of previous day’s highs and lows, filtered by trend direction based on market structure.
🔑 Key Improvements
1️⃣ Solved the repainting issue.
There are similar strategies in the community, but the historical results of those algorithms do not correspond to the results of real backtesting.
2️⃣ Added a trend filter.
In most cases, this makes it possible to achieve higher profitability. It works as follows:
The script determines market structure based on a defined number of previous candles.
If there are higher highs and higher lows, this is considered an uptrend structure.
If there are lower highs and lower lows, this is considered a downtrend structure.
The trend filter is adjusted using the Lookback Period setting.
3️⃣ Choice of entry principle.
Implemented the ability to choose whether trades are opened based on closing prices or by high/low breakout, which allows finding the optimal settings for a specific instrument.
4️⃣ Improved entry/exit logic.
When an opposite signal appears, before entering a trade, the script first closes the previous position.
✅ This makes the strategy fully ready for algorithmic trading via webhook on any exchange that supports this function.
5️⃣ Better visualization.
🟥 Red and 🟩 green backgrounds indicate the trend direction.
⚙️ How It Works
The principle of the strategy as follows:
Wait for the breakout of the previous day’s high or low.
Enter long on a breakout of the high, or short on a breakout of the low in the market structure trend direction.
Exit occurs on the breakout of the opposite extreme.
📈 This allows capturing long trends.
⚠️ But, like all similar strategies, in a sideways market it produces losing trades.
⚙️ Default Settings
Breakout Confirmation:
The breakout is determined by the candle close.
You can also choose high/low, but this often gives more false signals. However, on some assets, it may show higher profitability in backtesting.
Trend Structure Period:
The default value is 15.
This means the script analyzes the last 15 candles on the selected timeframe to determine market structure as described above.
Position Size:
Fixed at $1,000, which is 1% of the initial capital of $100,000 to keep risks under control.
Commission:
Set to 0.1%, which is sufficient for most cryptocurrency exchanges.
Slippage:
Configured at 1 tick.
Funding Note:
Keep in mind that funding is not included in this strategy.
It’s impossible to predict whether it will be positive or negative, and it can vary significantly across exchanges, so it is not part of the default settings.
🕒 Recommended Settings
Timeframe: 1H and higher
On lower timeframes → significant discrepancies may occur between historical and real backtesting data.
On higher timeframes → minor differences are possible, related to slippage, sharp moves, and other unpredictable situations.
⚠️ Important Notes
Always remember: Strategy results may not repeat in the future.
The market constantly changes, so:
✅ Monitor the situation
✅ Backtest regularly
✅ Adjust settings for each asset
Also remember about possible bugs in any algorithmic trading strategy.
Even if a script is well-tested, no one knows what unpredictable events the market may bring tomorrow.
⚠️ Risk Management:
Do not risk more than 1% of your deposit per trade, otherwise you may lose your account balance, since this strategy works without stop losses.
⚠️ Disclaimer
The author of the strategy does not encourage anyone to use this algorithm and bears no responsibility for any possible financial losses resulting from its application!
Any decision to use this strategy is made personally by the owners of TradingView accounts and cryptocurrency exchange accounts.
📝 Final Notes
This is not the final version. I already have ideas on how to improve it further, so follow me to not miss updates.
🐞 Bug Reports
If you notice any bugs or inconsistencies in my algorithm,
please let me know — I will try to fix them as quickly as possible.
💬 Feedback & Suggestions
If you have any ideas on how this or any of my other strategies can be improved, feel free to write to me. I will try to implement your suggestions in the script.
Wishing everyone good luck and stable profits! 🚀💰
BTC Power-Law Decay Channel Oscillator (0–100)🟠 BTC Power-Law Decay Channel Oscillator (0–100)
This indicator calculates Bitcoin’s position inside its long-term power-law decay channel and normalizes it into an easy-to-read 0–100 oscillator.
🔎 Concept
Bitcoin’s long-term price trajectory can be modeled by a log-log power-law channel.
A baseline is fitted, then an upper band (excess/euphoria) and a lower band (capitulation/fear).
The oscillator shows where the current price sits between those bands:
0 = near the lower band (historical bottoms)
100 = near the upper band (historical tops)
📊 How to Read
Oscillator > 80 → euphoric excess, often cycle tops
Oscillator < 20 → capitulation, often cycle bottoms
Works best on weekly or bi-weekly timeframes.
⚙️ Adjustable Parameters
Anchor date: starting point for the power-law fit (default: 2011).
Smoothing days: moving average applied to log-price (default: 365 days).
Upper / Lower multipliers: scale the bands to align with historical highs and lows.
✅ Best Use
Combine with other cycle signals (dominance ratios, macro indicators, sentiment).
Designed for long-term cycle analysis, not intraday trading.
Peak Reversal v3# Peak Reversal v3
## Summary
Peak Reversal v3 adds new configurability, clearer visuals, and a faster trader workflow. The release introduces a new Squeeze Detector , expanded Keltner Channels , and streamlined Momentum signals , with no repaints and improved performance. The menus have been reorganized and simplified. Color swatches have been added for better customization. All other colors will be derived from these swatches.
## Highlights
New Squeeze Detector to mark low-volatility periods and prepare for breakouts.
New: Bands are now fully configurable with independent MA length, ATR length, and multipliers.
Five moving average bases for bands: EMA (from v2), SMA, RMA, VMA, HMA.
Simplified color system: three swatches drive candles, on-chart marks, and band fill.
Reorganized menu with focused sections and tooltips for each parameter making the entire trader experience more intuitive.
No repaints and faster performance across calculations.
## Overview
Configuration : Pick from three color swatches and apply them to candles, plotted characters, and band fill for consistent chart context. Use the reorganized menu to reach Keltner settings, momentum signals, and squeeze detection without extra clicks; tooltips clarify each input.
Bands and averages: Choose the band basis from EMA, SMA, RMA, VMA, or HMA to match your strategy. Configure two bands independently by setting MA length, ATR length, and band multipliers for the inner and outer envelopes.
Signals : Select the band responsible for momentum signals. Choose wick or close as the price source for entries and exits. Control the window for extreme momentum with “Max Momentum Bars,” a setting now exposed in v3 for direct tuning.
Squeeze detection : The Squeeze Detector normalizes band width and uses percentile ranking to highlight volatility compression. When the market falls below a user-defined threshold, the indicator colors the region with a gradient to signal potential expansion.
## Details about major features and changes
### New
Squeeze Detector to highlight low-volatility conditions.
Five MA bases for bands: EMA, SMA, RMA, VMA, HMA.
“Max Momentum Bars” to cap the bars used for extreme momentum.
### Keltner channel improvements
Refactored Keltner settings for flexible inner and outer band control.
MA type selection added; band calculations updated for consistency.
Removed the third Keltner band to reduce noise and simplify setup.
### Display and signals
Gradient fills for band breakouts, mean deviations, and squeeze periods.
“Show Mean EMA?” set to true and default “Signal Band” set to “Inner.”
Clearer tooltips and input descriptions.
### Reliability and performance
No more repaints. The indicator waits for confirmation before drawing occurs.
Faster execution through targeted refactors.
All algorithms have been reviewed and now use a consistent logic, naming, and structure.
MNQ - Recursive Prev High/Low Outside Window (Extended)previous high/low” will always reference the last high/low outside the current window
4-Hour Range HighlighterThe 4-Hour Range Highlighter is a powerful visual analysis tool designed for traders operating on lower timeframes (like 5m, 15m, or 1H). It overlays the critical price range of the 4-hour (4H) candlestick onto your chart, providing immediate context from a higher timeframe. This helps you align your intraday trades with the dominant higher-timeframe structure, identifying key support and resistance zones, breakouts, and market volatility at a glance.
Key Features:
Visual Range Overlay: Draws a semi-transparent colored background spanning the entire High and Low of each 4-hour period.
Trend-Based Coloring: Automatically colors the range based on the 4H candle's direction:
Green: Bullish 4H candle (Close > Open)
Red: Bearish 4H candle (Close < Open)
Blue: Neutral 4H candle (Close = Open)
Customizable High/Low Lines: Optional, subtle lines plot the exact high and low of the 4H bar, acting as dynamic support/resistance levels.
Fully Customizable: Easily change colors and toggle visual elements on/off in the settings to match your chart's theme.
How to Use It:
Identify Key Levels: The top and bottom of the shaded area represent significant intraday support and resistance. Watch for price reactions at these levels.
Trade in Context: Use the trend color to gauge sentiment. For example, look for buy opportunities near the low of a bullish (green) 4H range.
Spot Breakouts: A strong candle closing above the high or below the low of the current 4H range can signal a continuation or the start of a new strong move.
Gauge Volatility: A large shaded area indicates a high-volatility 4H period. A small area suggests consolidation or low volatility.
Settings:
Visual Settings: Toggle the background and choose colors for Bullish, Bearish, and Neutral ranges.
Line Settings: Toggle the high/low lines and customize their colors.
Note: This is a visual aid, not a standalone trading system. It provides context but does not generate buy/sell signals. Always use it in conjunction with your own analysis and risk management.
Perfect for Day Traders, Swing Traders, and anyone who needs higher-timeframe context on their chart!
How to Use / Instructions:
After adding the script to your chart, open the settings menu (click on the indicator's name and then the gear icon).
In the "Inputs" tab, you will find two groups: "Visual Settings" and "Line Settings".
In Visual Settings, you can:
Toggle Show 4H Range Background on/off.
Change the Bullish Color, Bearish Color, and Neutral Color for the transparent background.
In Line Settings, you can:
Toggle Show High/Low Lines on/off.
Change the line colors for each trend type.
Adjust the colors to your preference. The default settings use transparency for a clean look that doesn't clutter the chart.
risk indirisk indi using kelly. Got twap, vwap. Uses b bands etc to measure whether the markets it bullish, bearish or ranging. Uses volume and points out whether it high or really high. Un check all the shit other than volume or whatever. Just looks cluttered if you have all of it on. Lmk yert.
BBMA Enhanced Pro - Multi-Timeframe Band Breakout StrategyShort Title : BBMA Pro
Overview
The BBMA Enhanced Pro is a professional-grade trading indicator that builds on the Bollinger Bands Moving Average (BBMA) strategy, pioneered by Omar Ali , a Malaysian forex trader and educator. Combining Bollinger Bands with Weighted Moving Averages (WMA) , this indicator identifies high-probability breakout and reversal opportunities across multiple timeframes. With advanced features like multi-timeframe Extreme signal detection, eight professional visual themes, and a dual-mode dashboard, it’s designed for traders seeking precision in trending and consolidating markets. Optimized for dark chart backgrounds, it’s ideal for forex, stocks, and crypto trading.
History
The BBMA strategy was developed by Omar Ali (BBMA Oma Ally) in the early 2010s, gaining popularity in the forex trading community, particularly in Southeast Asia. Building on John Bollinger’s Bollinger Bands, Omar Ali integrated Weighted Moving Averages and a multi-timeframe approach to create a structured system for identifying reversals, breakouts, and extreme conditions. The BBMA Enhanced Pro refines this framework with modern features like real-time dashboards and customizable visualizations, making it accessible to both novice and experienced traders.
Key Features
Multi-Timeframe Extreme Signals : Detects Extreme signals (overbought/oversold conditions) on both current and higher timeframes simultaneously, a rare feature that enhances signal reliability through trend alignment.
Professional Visual Themes : Eight distinct themes (e.g., Neon Contrast, Fire Gradient) optimized for dark backgrounds.
Dual-Mode Dashboard : Choose between Full Professional (detailed metrics) or Simplified Trader (essential info with custom notes).
Bollinger Band Squeeze Detection : Identifies low volatility periods (narrow bands) signaling potential sideways markets or breakouts.
Confirmation Labels : Displays labels when current timeframe signals align with recent higher timeframe signals, highlighting potential consolidations or squeezes.
Timeframe Validation : Prevents selecting the same timeframe for current and higher timeframe analysis.
Customizable Visualization : Toggle signal dots, EMA 50, and confirmation labels for a clean chart experience.
How It Works
The BBMA Enhanced Pro combines Bollinger Bands (20-period SMA, ±2 standard deviations) with WMA (5 and 10 periods) to generate trade signals:
Buy Signal : WMA 5 Low crosses above the lower Bollinger Band, indicating a recovery from an oversold condition (Extreme buy).
Sell Signal : WMA 5 High crosses below the upper Bollinger Band, signaling a rejection from an overbought condition (Extreme sell).
Extreme Signals : Occur when prices or WMAs move significantly beyond the Bollinger Bands (±2σ), indicating statistically rare overextensions. These often coincide with Bollinger Band Squeezes (narrow bands, low standard deviation), signaling potential sideways markets or impending breakouts.
Multi-Timeframe Confirmation : The indicator’s unique strength is its ability to detect Extreme signals on both the current and higher timeframe (HTF) within the same chart. When the HTF generates an Extreme signal (e.g., buy), and the current timeframe follows with an identical signal, it suggests the lower timeframe is aligning with the HTF’s trend, increasing reliability. Labels appear only when this alignment occurs within a user-defined lookback period (default: 50 bars), highlighting periods of band contraction across timeframes.
Bollinger Band Squeeze : Narrow bands (low standard deviation) indicate reduced volatility, often preceding consolidation or breakouts. The indicator’s dashboard tracks band width, helping traders anticipate these phases.
Why Multi-Timeframe Extremes Matter
The BBMA Enhanced Pro’s multi-timeframe approach is rare and powerful. When the higher timeframe shows an Extreme signal followed by a similar signal on the current timeframe, it suggests the market is following the HTF’s trend or entering a consolidation phase. For example:
HTF Sideways First : If the HTF Bollinger Bands are shrinking (low volatility, low standard deviation), it signals a potential sideways market. Waiting for the current timeframe to show a similar Extreme signal confirms this consolidation, reducing the risk of false breakouts.
Risk Management : By requiring HTF confirmation, the indicator encourages traders to lower risk during uncertain periods, waiting for both timeframes to align in a low-volatility state before acting.
Usage Instructions
Select Display Mode :
Current TF Only : Shows Bollinger Bands and WMAs on the chart’s timeframe.
Higher TF Only : Displays HTF bands and WMAs.
Both Timeframes : Combines both for comprehensive analysis.
Choose Higher Timeframe : Select from 1min to 1D (e.g., 15min, 1hr). Ensure it differs from the current timeframe to avoid validation errors.
Enable Signal Dots : Visualize buy/sell Extreme signals as dots, sourced from current, HTF, or both timeframes.
Toggle Confirmation Labels : Display labels when current timeframe Extremes align with recent HTF Extremes, signaling potential squeezes or consolidations.
Customize Dashboard :
Full Professional Mode : View metrics like BB width, WMA trend, and last signal.
Simplified Trader Mode : Focus on essential info with custom trader notes.
Select Visual Theme : Choose from eight themes (e.g., Ice Crystal, Royal Purple) for optimal chart clarity.
Trading Example
Setup : 5min chart, HTF set to 1hr, signal dots and confirmation labels enabled.
Buy Scenario : On the 5min chart, WMA 5 Low crosses above the lower Bollinger Band (Extreme buy), confirmed by a recent 1hr Extreme buy signal within 50 bars. The dashboard shows narrow bands (squeeze), and a green label appears.
Action : Enter a long position, targeting the middle band, with a stop-loss below the recent low. The HTF confirmation suggests a strong trend or consolidation phase.
Sell Scenario : WMA 5 High crosses below the upper Bollinger Band on the 5min chart, confirmed by a recent 1hr Extreme sell signal. The dashboard indicates a squeeze, and a red label appears.
Action : Enter a short position, targeting the middle band, with a stop-loss above the recent high. The aligned signals suggest a potential reversal or sideways market.
Customization Options
BBMA Display Mode : Current TF Only, Higher TF Only, or Both Timeframes.
Higher Timeframe : 1min to 1D.
Visual Theme : Eight professional themes (e.g., Neon Contrast, Forest Glow).
Line Style : Smooth or Step Line for HTF plots.
Signal Dots : Enable/disable, select timeframe source (Current, Higher, or Both).
Confirmation Labels : Toggle and set lookback window (1-100 bars).
Dashboard : Enable/disable, choose mode (Full/Simplified), and set position (Top Right, Bottom Left, etc.).
Notes
Extreme Signals and Squeezes : Extreme signals often occur during Bollinger Band contraction (low standard deviation), signaling potential sideways markets or breakouts. Use HTF confirmation to filter false signals.
Risk Management : If the HTF shows a squeeze (narrow bands), wait for the current timeframe to confirm with an Extreme signal to reduce risk in choppy markets.
Limitations : Avoid trading Extremes in highly volatile markets without additional confirmation (e.g., volume, RSI).
Author Enhanced Professional Edition, inspired by Omar Ali’s BBMA strategy
Version : 6.0 Pro - Simplified
Last Updated : September 2025
License : Mozilla Public License 2.0
We’d love to hear your feedback! Share your thoughts or questions in the comments below.
Session & Swing Levels + Smart AlertsMulti-Timeframe Level Tracker with Advanced Alert System
This comprehensive indicator combines session-based trading levels with multi-timeframe swing analysis, for key level identification and alert management.
Key Features:
Session Analysis:
Asia Session (7:00 PM - 4:00 AM ET) - Tracks high/low levels during Asian market hours
London Session (3:00 AM - 11:00 AM ET) - Identifies key European session levels
Previous Day Levels - Displays prior day's high and low levels
Visual session backgrounds and customizable timezone support
Multi-Timeframe Swing Detection:
Up to 5 configurable timeframes (default: 15m, 1h, 4h, 1D, 1W)
Intelligent swing high/low identification using customizable pivot strength
Each timeframe uses distinct colors for easy identification
Advanced Alert System:
Anti-repainting protection - Alerts only trigger on confirmed bars for reliable live trading
Specific alert messages for each level type (Asia High, London Low, Previous Day levels, etc.)
Individual alert toggles for each session and timeframe
Timestamps in Eastern Time for consistency
Visual Customization:
Independent color schemes for sessions and timeframes
Configurable line styles (solid, dashed, dotted) and widths
Separate styling for active vs. mitigated levels
Optional line extension past mitigation points
📊 How It Works:
Level Creation: Automatically identifies and draws key levels at session closes
Mitigation Detection: Monitors price interaction with levels in real-time
Visual Updates: Changes line appearance when levels are crossed
Smart Alerts: Sends targeted notifications with level-specific information
Prototipe Strategi (DCMS)Gunakan Indikar ini Secara Bebas.
Nanti akan di Buatkan Untuk Indikator yang lainnya
Commodity Channel Index DualThe CCI Dual is a custom TradingView indicator built in Pine Script v5, designed to help traders identify potential buy and sell signals using two Commodity Channel Index (CCI) oscillators. It combines a shorter-period CCI (default: 14) for quick momentum detection with a longer-period CCI (default: 50) for confirmation, focusing on mean-reversion opportunities in overbought or oversold conditions.
This setup is particularly suited for volatile markets like cryptocurrencies on higher timeframes (e.g., 3-day charts), where it highlights reversals by requiring both CCIs to cross out of extreme zones within a short window (default: 3 bars).
The indicator plots the CCIs, customizable bands (inner: 100, OB/OS: 175, outer: 200), dynamic fills for visual emphasis, background highlights for signals, and alert conditions for notifications.
How It Works
The indicator calculates two CCIs based on user-defined lengths and source (default: close price):
CCI Calculation: CCI measures price deviation from its average, using the formula: CCI = (Typical Price - Simple Moving Average) / (0.015 * Mean Deviation). The short CCI reacts faster to price changes, while the long CCI provides smoother, trend-aware confirmation.
Overbought/Oversold Levels: Customizable thresholds define extremes (Overbought at +175, Oversold at -175 by default). Bands are plotted at inner (±100), mid (±175 dashed), and outer (±200) levels, with gray fills for the outer zones.
Dynamic Fills: The longer CCI is used to shade areas beyond OB/OS levels in red (overbought) or green (oversold) for quick visual cues.
Signals:
Buy Signal: Triggers when both CCIs cross above the Oversold level (-175) within the signal window (3 bars). This suggests a potential upward reversal from an oversold state.
Sell Signal: Triggers when both cross below the Overbought level (+175) within the window, indicating a possible downward reversal.
Visuals and Alerts: Buy signals highlight the background green, sells red. Separate alertconditions allow setting TradingView alerts for buys or sells independently.
Customization: Adjust lengths, levels, and window via inputs to fit your timeframe or asset—e.g., higher OB/OS for crypto volatility.
This logic reduces noise by requiring dual confirmation, but like all oscillators, it can produce false signals in strong trends where prices stay extended.
To mitigate false signals (e.g., in trending markets), layer the CCI Dual with MACD (default: 12,26,9) and RSI (default: 14) for multi-indicator confirmation:
With MACD: Only take CCI buys if the MACD line is above the signal line (or histogram positive), confirming bullish momentum. For sells, require MACD bearish crossover. This filters counter-trend signals by aligning with trend strength—e.g., ignore CCI sells if MACD shows upward momentum.
With RSI: Confirm CCI oversold buys only if RSI is below 30 and rising (or shows bullish divergence). For overbought sells, RSI above 70 and falling. This adds overextension validation, reducing whipsaws in crypto trends.
I made this customizable for you to find what works best for your asset you are trading. I trade the 6 hour and 3 day timeframe mainly on major cryptocurrency pairs. I hope you enjoy this script and it serves you well.
Edric TrendThis is a very simple way for Trend by using Ema.
Created by Edric Le Hoang Dung (lehodu) from Vietnam
ADX Only (Custom, same as TradingView)This is ADX indicator , same as default indicator. But it will change colour when ADX is bullish and bearish.
Anchorman - EMA Channel + EMA + MTF Status Table PRICE BREAKOUTUses a high/low EMA Channel to tell you when strong price breakouts are happening plus comes with a EMA to help follow the trend if you like. I designed it so it can alert you when a single TF touch happens or a breakout alignment on MTF happens (I recommend this) its up to you also its single alert so no need to do bullish or bearish signals just one signal will alert you when a breakout happens in EITHER direction.