08-2018 Stochastic 5m [ALERT SETUP] [INDICATOR]This is an accumulation of small buy orders and a complete sell order strategy, that can be used for manual trading or for a trading bot. The strategy is based on stockastic divergences ( an indicator that I made myself and is published on my profile earlier ), and I added my personnal touch of course. Note that the bullish and bearish stochastic divergences are calculated separately and can be configured in the inputs.
To be used with a 5m timeframe, and on a flat or bullish pair.
Everyone can favorite the script, apply it to the chart, but only I can see or modify the code. If you need anything, leave a comment, thanks :D
More info about the script, such as inputs description, how to configure the script, strategy explanation, alert configuration can be found here : blockchainfiesta.com
--------------------------------------------------------------------------------------------------------------
I do commission work: TradingView Pine Script development & Reverse Engineering.
contact@blockchainfiesta.com.
You can also send me a message in TradingView or Discord (discord.gg)
Bitcoin address: 19sVQvCDmVfEACq7BiMnWSMqFPZ8qfSQ2K
ETH address: 0xc8a5d3a63a05db0c2363ea1c08b37a01cce9ebfb
"bear"に関するスクリプトを検索
RSI_EMA & Bearish EngulfingThis is a RSI-RSI of EMA and bearish candlestick reversal pattern formed by two candlesticks. Following an uptrend, the first candlestick is a up candlestick which is followed by a down candlestick which has a long real body that engulfs or contains the real body of the prior bar. following an uptrend, if RSI and EMA line cross then Sell and for downtrend if RSI and EMA line cross then Buy.
Spicytrader [BUY and SELL signals + Breakouts + Trendline]
BUY and SELL signals (with alerts)
Support and resistant breakout (with alerts)
Auto trendlines : Bullish and bearish market (with alerts)
100% Compatible with Autoview bot (Buy, Sell, Takeprofit, Stop loss)
TRY IT FOR FREE : spicytrader.com
Stochastique Divergences IndicatorHello,
I made a custom indicator.
Divergences with stochastique and price are really strong signals.
About the indicator
A bullish divergence happens when the stoch K makes a higher low and is depicted by a green triangle up.
A bearish divergence happens when the stoch K makes a lower high and is depicted by a red triangle down.
This script is the base for my next strategy that I should upload soon.
I will grant access (to this script and my others) to people willing to make a small donation.
Here is my BTC address : 19sVQvCDmVfEACq7BiMnWSMqFPZ8qfSQ2K
If you prefer ETH : 0xc8a5d3a63a05db0c2363ea1c08b37a01cce9ebfb
Send me a Private Message with the ID of the transaction
If you want to do some forward testing first, send me a message.
Also check blockchainfiesta.com
wTF50This is a customized trend filter that has several uses:
It helps identify trend direction, either bullish or bearish
It distinguishes between a pullback and a trend reversal
It helps identify areas where traders should stand aside
It highlights areas of consolidation
dTF50This is a customized trend filter that has several uses:
It helps identify trend direction, either bullish or bearish
It distinguishes between a pullback and a trend reversal
It helps identify areas where traders should stand aside
It highlights areas of consolidation
OBV divergence hidden and regular on both bearish and bullish.OBV (on balance volume) divergence indicator with hidden and regular signal on both bearish and bullish.
CMYK VRMI◊ Introduction
This script indicates the relative movement of price x volume.
◊ Origin
Based on 'The Relative Momentum Index' by Roger Altman : February, 1993 issue of Technical Analysis of Stocks & Commodities magazine.
While RSI counts up and down days from close to close, the Relative Momentum Index counts up and down days from the close relative to a close x number of days ago.
This results in an RSI that is smoother. The input has been changed to the change of a smoothed close multiplied by a smoothed volume.
The polarity of VRMI indicates bearish/bullish movement.
◊ Adjustments
CMYK color theme applied.
◊ Usage
VRMI indicates the force the market moves with.
◊ Future Prospects
-
◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊
CMYK VRMI RAYS ◊ Introduction
Introducing VRMI in this script, an RMI based on price movement and volume, to indicate bullish and bearish trends.
This script marks the background depending on RMI <> VRMI , VRMI polarity and large buy/sell sprees.
◊ Origin
Based on 'The Relative Momentum Index' by Roger Altman : February, 1993 issue of Technical Analysis of Stocks & Commodities magazine.
While RSI counts up and down days from close to close, the Relative Momentum Index counts up and down days from the close relative to a close x number of days ago.
This results in an RSI that is smoother.
In addition VRMI reacts quick, it is used to cut off latency from RMI, and it's polarity indicates the beginning and end of a trend.
Large buy sell sprees and detected in their proportion with an sma on the volume
◊ Adjustments
CMYK color theme applied.
◊ Usage
This indicator can be used to detect trends and mark reversals.
◊ Prospects
◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊
Bullish and Bearish Engulfing Patterns auto detectionThis simple indicator detects automatically most important bullish and bearish candlestick patterns formations. Used to locate potential supply and demand imbalances.
Copyright 2017 Alfonso Moreno www.set-and-forget.com
Super Envolvente (Bullish y Bearish)Identificador de Super-envolventes (SE), se encarga de darle un color verde a la SE alzista (Bullish) verde y rojo a la bajista (Bearish).
Bears VS BullsThis indicator will work on ANY instrument.
The red line is a moving average of ONLY sellers in the market.
The blue line is a moving average of ONLY buyers in the market.
The period or "length" of the individual moving averages can be adjusted in the indicator settings.
The default, it is set to 50.
Buying and selling trends often provide indications of market moves such as the most recent bottom in Cryptocurrencies.
Feel free to comment and share any indicator concepts or ideas for content you would like to see added to the Technical Indicator Bundle on www.kenzing.com
bearish Price Below PDL - Complete Multi-Confirmation Alert🎯 KEY IMPROVEMENTS:
1. Enhanced Alert Visibility:$jmoskyhigh
✅ HUGE triangle down marker with "SELL" text
✅ Alert title: "SELL SIGNAL - PDL BREAKDOWN CONFIRMED"
✅ Prominent info panel with red theme
✅ Clear "SELL ALERT: TRIGGERED" status
2. Better Visual Feedback:
Red frame around info panel
Larger shapes and markers
Color-coded confirmations (green = OK, red = FAIL)
Progress percentage displayed
Breakdown price label
3. Complete Alert System:
Main Alert: "SELL SIGNAL - PDL BREAKDOWN CONFIRMED"
Early Warning: "PDL Breakdown Started - Monitoring"
Reset Alert: "Confirmation Lost - Breakdown Reset"
Bearish signal using Point of Control (POC) with PAC by guruThis indicator code helps traders identify potential sell opportunities using several important technical indicators:
Point of Control (POC) – This is the price level where the most volume was traded over the past several days.
Previous Day's Low – This shows the lowest price reached during the previous day.
PAC (Price Action Channel) EMA – These are two moving averages (one based on the low price and one based on the close price) that help determine if the price is trending within a certain range.
Volume SMA – This is a 3-day simple moving average (SMA) of volume, which helps filter out signals based on market activity.
What the Script Does:
Point of Control (POC):
The script looks at the last 50 days (configurable) and calculates which price level had the highest trading volume.
It then plots a red line on the chart at the POC level. This is important because it helps identify areas where there was strong market interest in the past.
Volume Moving Average:
The script calculates a 3-day SMA of volume, but it excludes the current day to avoid premature signals based on today’s trading.
The volume SMA is used to ensure there’s enough market activity (with a threshold set to 25 units) before triggering a sell signal.
Price Action Channel (PAC) EMA:
The PAC consists of two exponential moving averages (EMAs):
The PAC Low EMA: This is based on the low prices over the last 34 periods (configurable).
The PAC Close EMA: This is based on the closing prices over the last 34 periods.
These EMAs help determine if the price is trending above or below certain price levels.
Sell Signal Logic: The script checks three conditions before displaying a "Sell" signal:
Price Below POC and Previous Day’s Low:
The close price must be below both the Point of Control (POC) and the previous day's low.
Volume SMA Above 25:
The 3-day volume SMA must be greater than 25. This ensures the signal only triggers when there’s enough trading volume in the market.
Today’s Low is Above PAC EMAs:
Today's low price must be above both the PAC low EMA and the PAC close EMA. This prevents sell signals when prices are already significantly below the PAC, indicating possible exhaustion in the downtrend.
If all three conditions are met, the script will display a red "Sell" label on the chart, signaling a potential selling opportunity.
No Sell Signal if Price Reverses:
If the price crosses back above the POC or the previous day's low, the script will remove the sell signal and reset for a new opportunity.
Summary of Conditions:
For the script to display a "Sell" label:
The close price must be below the Point of Control (POC) and the previous day’s low.
The 3-day volume SMA (excluding today) must be greater than 25 units.
The low price of the current day must be above both the PAC low EMA and the PAC close EMA.
If these conditions are met, a red sell label appears on the chart as a potential signal for a short (sell) trade.
Guneet-ScalperBearish trend candle color change to red with sell print
Bullish trend candle color change to green with buy print
thanks
jas toor
Suspension Blocks [TakingProphets]-----------------------------------------------------------------------------------------------
SUSPENSION BLOCKS
-----------------------------------------------------------------------------------------------
Suspension Blocks are a new ICT concept designed to highlight price inefficiencies created by displacement and body-to-body gaps across a precise 3-candle sequence. These structures represent areas where price was temporarily “suspended” before continuation, often acting as high-probability reaction zones on future revisits.
This indicator automatically detects, visualizes, manages, and invalidates Suspension Blocks in real time, while intelligently limiting chart clutter to only the most relevant structures near current price.
-----------------------------------------------------------------------------------------------
PURPOSE AND SCOPE
-----------------------------------------------------------------------------------------------
- Detect ICT-style Bullish and Bearish Suspension Blocks using strict 3-candle body relationships
- Require measurable body-to-body separation defined in true ticks (instrument-aware)
- Automatically draw and extend Suspension Blocks forward in time
- Invalidate blocks only when price decisively closes beyond the defining boundary
- Optionally display Consequent Encroachment (50% equilibrium) within each block
- Limit on-chart visibility to the closest N blocks per side relative to current price
- Provide session-based, directional alerting for new block formations
-----------------------------------------------------------------------------------------------
WHAT IS A SUSPENSION BLOCK
-----------------------------------------------------------------------------------------------
A Suspension Block is a 3-candle displacement pattern defined by body gaps on both sides of a middle candle.
Bullish Suspension Block logic:
- Candle 1 close is BELOW Candle 2 open by at least the Minimum Body Separation
- Candle 3 open is ABOVE Candle 2 close by at least the Minimum Body Separation
- Candle 3 open is ABOVE Candle 1 close to ensure a valid vertical range
- The block spans from Candle 1 close (low) to Candle 3 open (high)
- The block remains valid until price CLOSES below Candle 1 close
Bearish Suspension Block logic (mirror conditions):
- Candle 1 close is ABOVE Candle 2 open by at least the Minimum Body Separation
- Candle 3 open is BELOW Candle 2 close by at least the Minimum Body Separation
- Candle 3 open is BELOW Candle 1 close to ensure a valid vertical range
- The block spans from Candle 1 close (high) to Candle 3 open (low)
- The block remains valid until price CLOSES above Candle 1 close
All calculations are performed using true tick values via `syminfo.mintick` to ensure precision across instruments.
-----------------------------------------------------------------------------------------------
GENERAL SETTINGS
-----------------------------------------------------------------------------------------------
- Minimum Body Separation (ticks)
- Defines the minimum required body-to-body gap between candles
- Measured in true ticks (0.25 = quarter tick, 1.0 = full tick, etc.)
- Max Visible Blocks per Side
- Limits the number of bullish and bearish blocks displayed
- Only the closest blocks to current price remain visible
-----------------------------------------------------------------------------------------------
VISUALIZATION SETTINGS
-----------------------------------------------------------------------------------------------
- Bullish Suspension Blocks
- Toggle bullish block visibility
- Custom fill color with adjustable transparency
- Optional border with selectable line style (Solid / Dashed / Dotted)
- Bearish Suspension Blocks
- Toggle bearish block visibility
- Custom fill color with adjustable transparency
- Optional border with selectable line style (Solid / Dashed / Dotted)
- Consequent Encroachment (CE)
- Optional 50% equilibrium line drawn inside each block
- Custom color and line style
- Automatically extends with the block
Blocks dynamically extend to the current bar and are hidden or shown based on proximity to price to keep the chart clean and actionable.
-----------------------------------------------------------------------------------------------
BLOCK MANAGEMENT & INVALIDATION
-----------------------------------------------------------------------------------------------
- Each block is stored persistently and extended forward bar-by-bar
- Bullish blocks are invalidated only when price CLOSES below the block low
- Bearish blocks are invalidated only when price CLOSES above the block high
- Invalidated blocks and their CE lines are automatically removed
- Visibility logic ensures only the most relevant structures are emphasized
-----------------------------------------------------------------------------------------------
ALERT SYSTEM
-----------------------------------------------------------------------------------------------
- Optional alerts when new Suspension Blocks form
- Independent toggles for bullish and bearish alerts
- Fully customizable alert messages
- Alerts can be restricted to specific trading sessions:
- Session 1 (default: 09:30–16:00 NY)
- Session 2 (optional)
- Session 3 (optional)
- Alerts include ticker and timeframe context automatically
-----------------------------------------------------------------------------------------------
BEST USE CASES
-----------------------------------------------------------------------------------------------
- High-probability reaction zones after displacement
- Confluence with liquidity, PD arrays, and market structure
- Execution refinement within ICT-based models
- Intraday and higher-timeframe contextual bias
- Clean, rules-based identification of inefficiency zones
-----------------------------------------------------------------------------------------------
DISCLAIMER
-----------------------------------------------------------------------------------------------
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results.
© TakingProphets
-----------------------------------------------------------------------------------------------
IFVGs [NINE]Overview
The IFVG Indicator is a precision-engineered tool designed to identify and display Inversion Fair Value Gaps (IFVGs), a powerful price action concept rooted in ICT (Inner Circle Trader) methodology. This indicator automatically detects when price closes through an existing Fair Value Gap, causing the zone to "invert" and flip its directional bias, signaling potential areas of institutional interest for future price reactions.
What is an Inversion Fair Value Gap?
A Fair Value Gap (FVG) is a three-candle pattern where a gap exists between the wicks of the first and third candles, representing an imbalance in price delivery. These zones often act as magnets for price to return and "fill" the inefficiency.
An Inversion Fair Value Gap (IFVG) occurs when price doesn't just tap into an FVG, it closes through it with a candle body. This "inversion" transforms the zone:
A Bullish FVG that gets closed through becomes a Bearish IFVG (potential resistance/supply zone)
A Bearish FVG that gets closed through becomes a Bullish IFVG (potential support/demand zone)
IFVGs represent areas where the market has shown its hand — institutional order flow has aggressively moved through a prior inefficiency, and the inverted zone now becomes a point of interest for potential reversals or continuations.
Key Features
Automatic IFVG Detection
The indicator continuously monitors for Fair Value Gaps and automatically converts them to IFVGs when price body closes through the zone. No manual identification required.
Multiple Display Styles
Choose from four distinct visualization modes to match your chart aesthetic:
Level — Clean, minimal single line at the IFVG extreme (top for bullish, bottom for bearish)
Normal — Filled zone with dashed borders and dot label
Minimalist — High/low boundary lines with connecting link
Classic — Filled box with 50% midline only
Full Customization
Independent colors for bullish and bearish IFVGs
Adjustable transparency for zone fills
Optional 50% midline (Consequent Encroachment level)
Flexible label styles: "IFVG" or "+/−" notation
Multiple label sizes: Tiny, Small, Normal, Large
Smart Extension Options
Extend to Current Bar — Zones dynamically extend as price progresses
Extend to Confirmation — Zones end at the bar where inversion occurred
Manual Offset — Fine-tune extension length in bars
Clustered IFVG Filter
Prevents chart clutter by ensuring only one IFVG per direction forms within a 5-bar cooldown period. When a single candle closes through multiple FVGs, only the first IFVG of that directional series is displayed — eliminating redundant signals and keeping your chart clean.
FVG Lookback Control
Limit which FVGs can become IFVGs based on their age. Options include 10, 50, 100, 200, or 300 bars. This filters out old, stale FVGs that may create less relevant inversions.
Session Time Filters
Optional time-based filtering allows you to focus on specific trading sessions:
Configurable session windows (e.g., 9:30 AM - 12:00 PM)
Support for two independent session filters
Multiple timezone options including New York, London, Tokyo, and more
Volume Imbalance Detection
Optionally include Volume Imbalances (VIs) — gaps between candle bodies rather than wicks — expanding the scope of detectable inefficiencies.
Invalidation Tracking
IFVGs are automatically invalidated when price closes back through the zone in the opposite direction, with optional display of invalidated zones.
How to Use
Entry Confirmation
IFVGs serve as areas for trade entries. When price returns to a confirmed IFVG:
Bullish IFVG — Look for long entries as price taps the zone from above
Bearish IFVG — Look for short entries as price taps the zone from below
Settings Reference
Inversion Fair Value Gaps
Show IFVGs? — Master toggle for IFVG display
Style — Level, Normal, Minimalist, or Classic
Transparency % — Zone fill opacity (0-100)
Historical Display — Maximum IFVGs to show per direction
Bullish/Bearish Colors — Independent color selection
Show Invalidated? — Display IFVGs that have been invalidated
Extend IFVGs? — Enable dynamic zone extension
Extension Mode — Current Bar or Confirmation
Manual Offset — Additional bars to extend
High/Low Lines — Show boundary lines (Minimalist style)
50% Midline — Show Consequent Encroachment level
Show Labels? — Display zone labels
Label Style — IFVG or +/− notation
FVG Lookback — Maximum age of FVGs that can invert
Clustered Filter — Prevent multiple same-direction IFVGs in quick succession
Volume Imbalances — Include body gaps in detection
Session Filters
Enable 1st/2nd Time Filter — Activate session filtering
Session Times — Define active trading windows
Timezone — Reference timezone for session calculations
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, and nothing contained herein constitutes a recommendation, solicitation, or offer to buy or sell any securities, options, or other financial instruments.
Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. You should carefully consider your investment objectives, level of experience, and risk appetite before making any trading decisions.
The developer of this indicator makes no representations or warranties regarding the accuracy, completeness, or reliability of the information provided. You are solely responsible for your own trading decisions and any profits or losses that may result.
Always conduct your own research and consider seeking advice from a licensed financial professional before trading.
EMA-10 Candle BreaksThe EMA-10 Trend Pullback Breakout indicator helps traders identify high-probability continuation entries by combining EMA direction, pullback candle behavior, and breakout confirmation.
It highlights key pullback candles during a strong EMA-10 trend and marks precise breakout points when price resumes in the trend direction.
📈 How It Works
🔹EMA Direction
Green EMA → EMA-10 is rising (bullish trend)
Red EMA → EMA-10 is falling (bearish trend)
🔹 Pullback Candle Detection
Bearish candle above EMA during an uptrend
Bullish candle below EMA during a downtrend
These candles often act as liquidity traps or pullbacks before trend continuation.
🔹 Breakout Labels
RB (Red Breakout)
Appears when price breaks above the high of the last bearish pullback candle in an uptrend.
GB (Green Breakout)
Appears when price breaks below the low of the last bullish pullback candle in a downtrend.
These labels highlight potential trend continuation entries
⚙️ Inputs
✅ Highlight Bearish Candles Above EMA (optional)
✅ Highlight Bullish Candles Below EMA (optional)
You can enable or disable candle highlighting to keep your chart clean.
⚠️ Notes
This indicator is not a standalone trading system.
Always use proper risk management and confirmation (market structure, volume, higher timeframe trend).
Avoid ranging or low-volatility conditions.
Beast Mode PRO v4.0# Beast Mode PRO v4.0 - Advanced Multi-Regime Trading System
## Overview
Beast Mode PRO v4.0 is a sophisticated technical analysis indicator designed for active traders seeking high-probability setups across multiple timeframes. This system combines machine learning-inspired clustering algorithms with traditional technical analysis to identify market regimes and generate precision entry signals. The indicator adapts to different trading styles through intelligent preset configurations and multiple trading modes.
---
## Core Methodology
### Signal Generation Framework
The indicator employs a **multi-component voting system** that analyzes market conditions through several independent technical perspectives:
**Technical Components:**
- **RSI (Relative Strength Index)**: Momentum oscillator measuring overbought/oversold conditions
- **Fisher Transform**: Price transformation technique that normalizes price distributions for clearer turning points
- **DMI (Directional Movement Index)**: Trend strength indicator measuring directional pressure
- **Z-Score Analysis**: Statistical measure identifying price deviations from historical norms
- **Moving Average Ratio**: Price relationship to its moving average baseline
- **MFI (Money Flow Index)**: Volume-weighted momentum indicator
- **Stochastic Oscillator**: Momentum indicator comparing closing price to price range
- **CCI (Commodity Channel Index)**: Measures current price level relative to average price level
### Clustering Engine
The system utilizes a **k-means inspired clustering algorithm** that categorizes each technical indicator's normalized values into distinct market regimes (bullish, bearish, neutral). This approach:
1. **Normalizes** all indicators using z-score transformation over a historical lookback window
2. **Clusters** normalized values using percentile-based thresholds
3. **Aggregates** individual votes into a composite score ranging from -100 to +100
4. **Smooths** the composite score using selectable methods (SMA, EMA, WMA, HMA, TEMA, DEMA)
The clustering percentiles adapt dynamically based on current market volatility (ATR-normalized), ensuring the system remains responsive across different market conditions.
---
## Trading Modes
### 1. Normal Mode
Standard crossover-based signals using fixed thresholds (+10/-10). Suitable for balanced trading with moderate signal frequency.
### 2. Scalper Mode
Dynamic threshold adjustment based on recent score volatility. Generates more frequent signals by adapting to short-term price movements.
### 3. Aggressive Mode
Reversal-focused approach that triggers signals when the composite score crosses extreme levels (+80/-80), targeting major trend reversals.
### 4. Hybrid Mode
Combines Normal and Aggressive signals, capturing both standard crossovers and extreme reversals for comprehensive market coverage.
### 5. Super Scalper Mode
Ultra-responsive mode using signal line crossovers (14-period HMA of composite score) for maximum trade frequency.
### 6. Sniper Mode (Premium Feature)
Multi-confirmation system requiring alignment of:
- Composite score threshold breach
- Positive fast momentum (10-period SMI)
- Positive trend momentum (200-period SMI)
- Price above/below smart trend filter MA
This mode prioritizes precision over frequency, filtering out low-probability setups.
---
## Timeframe Presets
Pre-optimized configurations for common trading timeframes:
### 1 Minute Preset
- Fast smoothing (10-period WMA)
- Tight chop filter (61.8 threshold)
- Optimized for rapid scalping with minimal lag
### 2 Minute Preset
- Balanced smoothing (12-period EMA)
- Enhanced volume filtering
- Moderate cooling period (5 bars)
### 3 Minute Preset
- HMA smoothing for reduced lag
- Stochastic and CCI enabled
- Balanced approach for intraday trading
### 5 Minute Preset
- TEMA smoothing for trend following
- Stronger filters to reduce noise
- Extended lookback (1000 bars)
### 15 Minute Preset
- DEMA smoothing for swing positions
- Maximum filtering configuration
- All technical indicators enabled
- Suitable for swing trading and position building
Users can also select "Custom" to manually configure all parameters.
---
## Advanced Filtering System
### 1. Choppy Market Filter
Uses Choppiness Index calculation to identify consolidating markets. When CI exceeds the threshold, signals are suppressed to avoid whipsaw trades.
### 2. Smart Trend Filter
Configurable moving average (SMA/EMA/WMA/HMA/TEMA/DEMA/VWMA/RMA) that prevents counter-trend signals. Long signals require price above the MA, shorts require price below.
### 3. Volume Filter
Compares current volume to its moving average. Signals are suppressed when volume falls below the specified multiplier of average volume.
### 4. ATR Volatility Filter
Prevents trading during low volatility periods when ATR falls below its moving average multiplied by the specified factor.
### 5. Session Filter
Time-based filtering for Asia, London, New York, or combined sessions. Ensures trading only during preferred market hours.
### 6. Multi-Timeframe Confirmation
Optionally requires higher timeframe alignment before generating signals, adding confluence for higher probability trades.
### 7. Cooling Off Period
Prevents signal clustering by enforcing a minimum number of bars between consecutive signals.
---
## Smart Money Concepts Integration
### Order Block Detection
Identifies institutional supply/demand zones using multi-timeframe analysis:
- Detects strong directional candles followed by breakout moves
- Volume confirmation ensures significance
- Customizable timeframe selection (current TF or higher TF: 5m, 15m, 30m, 1H, Daily)
- Visual boxes mark active order blocks with automatic expiration after lookback period
- Price interaction alerts when touching active zones
### Liquidity Zones
Marks equal highs (EQH) and equal lows (EQL) where stop losses typically cluster, indicating potential reversal or breakout points.
---
## Momentum Analysis
### Fast Momentum (Default: 10-period)
Short-term momentum oscillator using Stochastic Momentum Index (SMI) calculation. Provides early warning of momentum shifts.
### Trend Momentum (Default: 200-period)
Long-term momentum gauge confirming overall trend direction. Used in Sniper Mode for multi-confirmation.
### Momentum Divergence Detection
Automatically identifies:
- **Regular Divergence**: Price makes new high/low but momentum doesn't (reversal signal)
- **Hidden Divergence**: Price makes higher low/lower high but momentum doesn't (continuation signal)
---
## Visual Components
### Price Chart Overlay
- **Smart Trend MA**: Dynamically colored moving average based on price position
- **EMA Cloud**: 50/200 EMA cloud showing long-term trend (background shading)
- **Trend Background**: Subtle background coloring based on composite score
- **Order Block Boxes**: Institutional supply/demand zones
- **Entry/Exit Markers**: Clear visual signals with emoji labels
- **Liquidity Markers**: EQH/EQL identification
### Bar Coloring
Bars change color based on active mode and market regime:
- **Sniper Mode**: Purple (bull) / Pink (bear)
- **Aggressive Mode**: Bright Green / Bright Red
- **Super Scalper**: Neon Green / Neon Red
- **Timeframe Presets**: Unique color schemes per preset
- **Choppy/Neutral**: Always gray regardless of mode
### Oscillator Pane
- **Composite Score Line**: Gradient-colored stepline showing current regime strength
- **Fast/Trend Momentum**: Optional overlays (gold/cyan colors)
- **Divergence Markers**: Visual alerts for regular, hidden, and momentum divergences
- **Power Zones**: Overbought/oversold regions (80/-80 levels)
- **Dynamic/Fixed Thresholds**: Visual reference lines based on active mode
### Interactive Dashboards
**Main Dashboard** displays:
- Active preset/mode configuration
- Real-time indicator values and votes
- Current market status (active/choppy/counter-trend/low volume/low ATR/MTF misalignment)
- Regime classification (Strong Long/Long/Neutral/Short/Strong Short)
- Smart Trend MA status
**Performance Dashboard** shows:
- Exit strategy (Fixed TP/SL, Trailing Stop, Opposite Signal)
- Total trades and win rate
- Total points and average per NY session
- Profit factor and recovery factor
- Best/worst trades and max drawdown
- Maximum winning/losing streaks
- Sharpe ratio and average risk:reward
**TP Optimizer** (33 variations tested):
- Tests take profit levels from 40 to 200 ticks (5-tick increments)
- Sortable by: Profit Factor, Win Rate, Total Points, Sharpe Ratio
- Displays top 5 configurations with full metrics
- Real-time optimization during backtesting
---
## Backtest Engine
### Exit Strategies
**1. Fixed TP/SL**
- Configurable in Ticks, ATR multiples, or Percentage
- Precise risk management with predefined targets
**2. Exit on Opposite Signal**
- Closes position when counter-signal appears
- Adapts to changing market conditions
- Useful for trend-following approaches
**3. Trailing Stop**
- Dynamic stop loss that follows profitable moves
- Configurable trailing offset percentage
- Locks in profits while allowing trends to develop
### Risk Management
- Optional minimum risk:reward filter
- Prevents trades below specified R:R threshold
- Date range filtering for historical analysis
- Session-based performance tracking
### Performance Metrics
- Win rate, profit factor, Sharpe ratio
- Maximum drawdown and recovery factor
- Consecutive win/loss streaks
- Average win/loss analysis
- Gross profit vs gross loss breakdown
---
## Alert System
Comprehensive alert conditions for:
- Entry signals (Long/Short)
- Exit events (TP/SL/Opposite/Trailing)
- Trend signals (Strong bullish/bearish)
- Divergences (Regular/Hidden/Momentum)
- Order block detection and touches
- Multi-condition strong signals (all confirmations aligned)
---
## How to Use
### Quick Start
1. Select your preferred timeframe preset (1m, 2m, 3m, 5m, 15m, or Custom)
2. Choose a trading mode (Normal, Scalper, Aggressive, Hybrid, Super Scalper, or Sniper)
3. Configure session filter to match your trading hours
4. Enable desired filters (choppy, trend, volume, ATR, MTF)
5. Set your exit strategy and TP/SL levels
6. Monitor signals on price chart and oscillator pane
### Optimization Workflow
1. Enable "Run TP Optimizer" in backtest settings
2. Run backtest on historical data
3. Review Optimizer Dashboard for best TP levels
4. Sort by preferred metric (Profit Factor, Win Rate, Total Points, Sharpe)
5. Apply winning configuration to live trading
### Advanced Configuration
- Customize individual indicator lengths and enable/disable specific components
- Adjust clustering parameters (lookback window, percentiles, cluster count)
- Fine-tune smoothing methods and lengths
- Configure order block detection timeframe and sensitivity
- Set cooling off period to control signal frequency
---
## Unique Features
1. **Adaptive Clustering**: Volatility-adjusted percentiles ensure consistent performance across market conditions
2. **Multi-Mode Architecture**: Six distinct trading modes from conservative to ultra-aggressive
3. **Timeframe Intelligence**: Pre-optimized presets eliminate guesswork for common timeframes
4. **Smart Money Integration**: Order block detection and liquidity zone marking
5. **Comprehensive Backtesting**: Three exit strategies with 33-variation TP optimization
6. **Visual Clarity**: Mode-specific bar coloring and clean chart presentation
7. **Filter Stack**: Seven-layer filtering system prevents low-quality signals
8. **Real-Time Metrics**: Live performance tracking with advanced statistics
---
## Benefits
- **Reduced False Signals**: Multi-confirmation clustering approach filters noise
- **Adaptability**: Works across timeframes and market conditions through preset system
- **Transparency**: Open visualization of all component votes and filtering status
- **Risk Management**: Built-in TP/SL optimization and R:R filtering
- **Time Efficiency**: Preset configurations save hours of manual optimization
- **Educational Value**: Dashboard shows exactly why signals trigger or get filtered
- **Professional Tools**: Institutional concepts (order blocks, liquidity zones) accessible to retail traders
---
## Best Practices
- Use Sniper Mode for high-probability setups during volatile markets
- Enable choppy filter during consolidation periods
- Combine Smart Trend Filter with MTF confirmation for swing trades
- Run TP Optimizer monthly to adapt to changing market dynamics
- Monitor Sharpe Ratio in addition to win rate for risk-adjusted performance
- Use session filters to avoid low-liquidity hours
- Start with preset configurations before custom optimization
---
## Technical Requirements
- TradingView Premium/Pro/Pro+ for full feature access
- Minimum chart history: 500 bars (adjustable in clustering settings)
- Works on all instruments (stocks, forex, crypto, futures)
- Compatible with standard candles (Heikin Ashi optional but not recommended for backtesting)
---
## Disclaimer
This indicator is a technical analysis tool designed to assist trading decisions. It does not guarantee profits and should be used in conjunction with proper risk management, fundamental analysis, and personal trading experience. Past performance does not indicate future results. Users should thoroughly test the indicator on demo accounts before live trading.
---
**Version**: 4.0
**Language**: Pine Script v6
**Type**: Overlay Indicator with Oscillator Pane
**Calculation**: On bar close (default) or real-time (configurable)
Malama's Range BreakoutMalama's Range Breakout is a dynamic Pine Script v6 indicator designed to automatically detect periods of price consolidation (tight ranges) on any timeframe or market, visually highlight them with expandable boxes, and generate actionable signals for breakouts and wick-based reversals.
Key Features
Adaptive Consolidation Detection: Uses a volatility-adjusted threshold (ATR multiplier) over a user-defined lookback period to identify genuinely tight ranges, avoiding false detections in trending or high-volatility conditions.
Preset Profiles: Quickly switch between optimized settings for different trading styles:
Tight Ranges (Scalping): Short lookback, low threshold for frequent small-range setups.
Normal Ranges (Intraday): Balanced for day trading.
Swing Trading: Longer lookback for larger consolidations.
Options Selling (Chop): Very low threshold to capture extended sideways/choppy phases.
Custom: Full manual control.
Visual Elements: Draws semi-transparent boxes around detected ranges (with optional dashed midline), dynamically extending them until a valid breakout occurs. Limits historical boxes for clean charts.
Breakout Signals: Triggers buy/sell labels and alerts only on confirmed breakouts, optionally requiring a volume spike (above SMA threshold) for higher-probability momentum moves.
Wick Reversal Signals: Detects rejection wicks touching range boundaries (without closing outside), signaling potential fakeouts or early reversals. Optional next-bar confirmation (e.g., bearish candle after upper wick) reduces false signals.
Built-in Alerts: Separate alert conditions for range detection, bullish/bearish breakouts, and confirmed/unconfirmed wick reversals.
How It Works
The script continuously monitors the price range over the selected lookback period. When the range contracts below the ATR-based threshold, it initiates a consolidation box starting from the tightest point. The box expands with new highs/lows while price remains inside.
A true breakout closes outside the box (with optional volume confirmation) → ends the range and plots a directional signal.
Wicks probing boundaries without closing outside → flags potential rejection/reversal zones inside the range.
This combination helps traders anticipate volatility expansion after compression, while distinguishing strong momentum breakouts from traps/false breaks.
Why It's Useful
Unlike fixed-time Opening Range Breakout (ORB) tools or simple consolidation detectors, this indicator adapts to current market volatility (via ATR) and works across all timeframes—ideal for scalping tight intraday ranges, capturing swing consolidations, or identifying chop for premium-selling strategies. The volume filter and wick reversal detection add confluence, helping avoid low-conviction trades in ranging markets.
Usage Tips
Best on liquid assets (stocks, futures, forex, crypto).
Combine breakouts with trend filters (e.g., higher-timeframe EMA) for directional bias.
Use wick signals cautiously in strong trends—they shine in ranges or at key levels.
Test presets on your preferred timeframe; "Normal" is a solid default for most intraday work.
No repainting: All logic based on confirmed closes.






















