Timeframe WatermarkA clean, minimal watermark indicator that displays the current chart timeframe as a large, semi-transparent text overlay.
Features:
Automatically formats timeframes (1M, 15M, 1H, 4H, 1D, 1W, etc.)
Fully customizable appearance
9 position options (corners, edges, center)
Adjustable transparency for non-intrusive display
Works on all chart types and timeframes
Settings:
Appearance
Color : Watermark text color (default: gray)
Transparency : 0 = solid, 100 = invisible (default: 85)
Size : Tiny / Small / Normal / Large / Huge
Position
Vertical : Top / Middle / Bottom
Horizontal : Left / Center / Right
Use Cases:
Quick timeframe reference when analyzing multiple charts
Screenshot clarity for sharing chart analysis
Multi-monitor setups where timeframe visibility matters
Lightweight overlay indicator with zero impact on chart performance.
Candlestick analysis
IFM 2.0only for pips college
IFM (Inner Force Model) is a price-action based trading model that focuses on who controls the market internally—buyers or sellers—before the big move happens.
It’s not an indicator.
It’s a market behavior framework used to read institutional intent.
🔍 What IFM Really Means
IFM studies the internal strength (force) inside price by analyzing:
Liquidity grabs
Market structure shifts
Displacement (strong candles)
Premium / Discount positioning
The goal is simple:
👉 Enter where smart money has already committed
HTF Double BOS + Inducement (XAU) ebenThis indicator is a market structure and inducement scanner designed to assist discretionary traders.
It identifies:
• Higher-timeframe market regime using a double Break of Structure (BOS) on the Daily and 4H timeframes.
• Lower-timeframe Break of Structure (BOS).
• Valid inducement based on a minimum 70% retracement rule.
The script is intended to be used as a confirmation and alert tool, not as a standalone buy/sell system.
⸻
How It Works
1. The indicator first confirms directional bias using Daily and 4H BOS alignment.
2. When higher-timeframe bias is valid, it scans the active chart timeframe for:
• a Break of Structure,
• followed by inducement using a retracement-based rule.
3. When conditions align, the script displays a visual marker and can trigger an alert.
⸻
Important Notes
• This indicator does not predict price.
• It does not automatically execute trades.
• It should be used in conjunction with proper risk management and personal analysis.
• Signals may appear less frequently due to strict filtering logic.
⸻
Recommended Usage
• Best suited for trend-following strategies.
• Works well on Gold (XAUUSD) and other liquid markets.
• Designed for use on 30m, 15m, and 5m charts.
• Alerts should be treated as areas of interest, not direct trade instructions.
⸻
Disclaimer
This script is provided for educational and analytical purposes only.
The author is not responsible for trading losses. Use at your own risk.
RSI Divergence (No pivots, delta + cooldown)RSI Divergence (No Pivots, Delta + Cooldown)
This indicator detects classic RSI divergence without using pivots/fractals and without looking into future bars. It is designed to behave closer to “human eyeballing” by comparing current extremes to the last N bars, and it triggers signals only on bar close (non-repainting after the candle closes).
Logic
Bearish divergence: Price makes a new lookback high (relative to the previous lookback bars), while RSI does not make a new high.
A signal is printed only if RSI is at least Δ RSI points below the previous RSI high over the same lookback window.
Bullish divergence: Price makes a new lookback low (relative to the previous lookback bars), while RSI does not make a new low.
A signal is printed only if RSI is at least Δ RSI points above the previous RSI low over the same lookback window.
Inputs
RSI Length: RSI period.
Lookback (bars): Number of past bars used to define “new high/low” for both price and RSI.
Use High/Low (else Close): Choose whether price extremes are based on High/Low or Close.
RSI delta (points): Minimum RSI gap required to confirm the divergence (reduces weak/noisy signals).
Cooldown after signal (bars): After any signal, the indicator suppresses new signals for the next X bars to reduce alert/label spam.
Alerts
The script includes two alert conditions:
Bearish divergence (delta + cooldown)
Bullish divergence (delta + cooldown)
Recommended alert setting: Once per bar close.
WoAlgo Premium v3.0
WoAlgo Premium v3.0 - Smart Money Analysis
Overview
** WoAlgo Premium v3.0 ** is an advanced technical analysis indicator designed for educational purposes. This tool combines Smart Money Concepts with multi-factor confluence analysis to help traders identify potential market opportunities across multiple timeframes.
The indicator integrates market structure analysis, order flow concepts, and technical momentum indicators into a comprehensive dashboard system. It is designed to assist traders in understanding institutional trading patterns and market dynamics through visual analysis tools.
### What It Does
This indicator provides:
**1. Smart Money Concepts Analysis**
- Market structure identification (Break of Structure and Change of Character patterns)
- Order block detection with volume confirmation
- Fair value gap recognition
- Liquidity zone mapping (equal highs and lows)
- Premium and discount zone calculations
**2. Multi-Factor Confluence Scoring**
The indicator calculates a proprietary confluence score (0-100) based on five key components:
- Price action analysis (30% weight)
- Volume confirmation (20% weight)
- Momentum indicators (25% weight)
- Trend strength measurement (15% weight)
- Money flow analysis (10% weight)
**3. Multi-Timeframe Analysis**
- Scans 5 different timeframes (5M, 15M, 1H, 4H, Daily)
- Calculates alignment percentage across timeframes
- Displays trend and structure status for each period
**4. Visual Dashboard System**
- Comprehensive main dashboard with 13 metrics
- Real-time screener table with 10 data columns
- Multi-timeframe scanner
- Performance tracking panel
### How It Works
**Market Structure Detection**
The indicator identifies key structural changes in price action:
- **BOS (Break of Structure)**: Indicates trend continuation when price breaks previous swing points
- **CHoCH (Change of Character)**: Signals potential trend reversal when market structure shifts
**Order Block Identification**
Order blocks are detected when:
- Significant volume appears at swing points
- Price shows strong directional movement from these levels
- Enhanced detection with extreme volume confirmation (OB++ markers)
**Fair Value Gap Recognition**
Gaps between candles are identified when:
- Price leaves inefficiencies in the market
- Three consecutive candles create a gap pattern
- Gap size exceeds minimum threshold based on ATR
**Confluence Calculation**
The system evaluates multiple technical factors:
1. **Price Position**: Relative to moving averages (EMA 20, 50, 200)
2. **Volume Analysis**: Standard deviation-based volume spikes
3. **Momentum**: RSI, MACD, Stochastic indicators
4. **Trend Strength**: ADX measurements
5. **Money Flow**: MFI indicator readings
Each factor contributes weighted points to create an overall confluence score that helps assess signal strength.
### Signal Types
**Confirmation Signals (▲ / ▼)**
Generated when:
- EMA crossovers occur (20/50 cross)
- Volume confirmation is present
- RSI is in appropriate zone
- Confluence score exceeds 50%
**Strong Signals (▲+ / ▼+)**
Higher-confidence signals requiring:
- Confluence score above 70%
- Extreme volume confirmation
- Alignment with 200 EMA trend
- MACD confirmation
- Bullish or bearish market structure
**Contrarian Signals (⚡)**
Reversal indicators appearing when:
- RSI reaches extreme levels (<30 or >70)
- Stochastic shows oversold/overbought conditions
- Price touches Bollinger Band extremes
- Potential divergence patterns emerge
**Reversal Zones**
Visual boxes highlighting areas where:
- Market structure conflicts with momentum
- High probability of directional change
- Key support/resistance levels interact
**Smart Trail**
Dynamic stop-loss indicator that:
- Adjusts based on ATR (Average True Range)
- Follows trend direction
- Updates automatically as price moves
- Provides risk management reference points
### Dashboard Components
**Main Dashboard (13 Metrics)**
1. **Confluence Score**: Current bull/bear percentage (0-100)
2. **Market Regime**: Trend classification (Strong Up/Down, Range, Squeeze)
3. **Signal Status**: Active buy/sell signal indication
4. **Structure State**: Current market structure (Bullish/Bearish/Neutral)
5. **Trend Strength**: ADX-based measurement
6. **RSI Level**: Momentum indicator with overbought/oversold zones
7. **MACD Direction**: Trend momentum confirmation
8. **Money Flow Index**: Smart money sentiment
9. **Volume Status**: Current volume relative to average
10. **Volatility Rating**: ATR percentage measurement
11. **ATR Value**: Average true range for position sizing
12. **MTF Alignment**: Multi-timeframe agreement percentage
**Screener Table (10 Columns)**
- Current symbol and timeframe
- Real-time price and percentage change
- Quality rating (star system)
- Active signal type
- Smart trail status
- Market structure state
- MACD direction
- Trend strength percentage
- Bollinger Band squeeze detection
**MTF Scanner (5 Timeframes)**
Displays for each timeframe:
- Trend direction indicator
- Market structure classification
- Visual confirmation with color coding
**Performance Metrics**
- Win rate percentage (simplified calculation)
- Total signals generated
- Current confluence score
- MTF alignment status
- Volatility level
### Settings and Customization
**Preset Styles**
Choose from predefined configurations:
- **Conservative**: Fewer, higher-quality signals
- **Moderate**: Balanced approach (recommended)
- **Aggressive**: More frequent signals
- **Scalper**: Short-term focused
- **Swing**: Longer-term oriented
- **Custom**: Full manual control
**Smart Money Concepts Controls**
- Toggle each feature independently
- Adjust swing length (3-50 periods)
- Enable/disable internal structure
- Control order block display
- Manage breaker block visibility
- Show/hide fair value gaps
- Display liquidity zones
- Premium/discount zone visualization
**Signal Configuration**
- Enable/disable confirmation signals
- Toggle strong signal markers
- Control contrarian signal display
- Show/hide reversal zones
- Smart trail activation
- Sensitivity adjustment (5-50)
**Visual Customization**
- Moving average display options
- MA period adjustments (Fast: 20, Slow: 50, Trend: 200)
- Support/resistance line toggle
- Dynamic S/R lookback period
- Candle coloring based on trend
- Color scheme customization
- Dashboard size options (Small/Normal/Large)
- Position placement (4 corners)
### How to Use
**Step 1: Initial Setup**
1. Add indicator to chart
2. Select appropriate preset or use Custom
3. Adjust timeframe to match trading style
4. Configure dashboard visibility preferences
**Step 2: Analysis Workflow**
1. Check MTF Scanner for timeframe alignment
2. Review Main Dashboard confluence score
3. Observe Market Regime classification
4. Identify active signals on chart
5. Confirm with Smart Money Concepts (order blocks, FVG, structure)
**Step 3: Trade Consideration**
Strong signals (▲+ / ▼+) require:
- Confluence score >70%
- MTF alignment >60%
- Confirmation from multiple dashboard metrics
- Support from Smart Money Concepts
- Appropriate volume levels
**Step 4: Risk Management**
- Use Smart Trail as dynamic stop-loss reference
- Consider ATR for position sizing
- Monitor volatility rating
- Respect support/resistance levels
- Combine with personal risk parameters
### Best Practices
**For Scalping (1M-5M timeframes)**
- Use Scalper preset
- Reduce swing length to 5-7
- Focus on strong signals only
- Monitor MTF alignment closely
- Quick entries near order blocks
**For Intraday Trading (15M-1H timeframes)**
- Use Moderate preset (recommended)
- Default swing length (10)
- Combine confirmation and strong signals
- Check MTF scanner before entry
- Use fair value gaps for entries
**For Swing Trading (4H-D timeframes)**
- Use Swing preset
- Increase swing length to 15-20
- Focus on strong signals
- Require high MTF alignment
- Patient approach with major structure levels
### Technical Specifications
**Indicators Used**
- Exponential Moving Averages (20, 50, 200)
- Hull Moving Average
- Relative Strength Index (14)
- MACD (12, 26, 9)
- Money Flow Index (14)
- Stochastic Oscillator (14, 3)
- ADX / DMI (14)
- Bollinger Bands (20, 2)
- ATR (14)
- Volume Analysis (SMA 20 with standard deviation)
**Calculation Methods**
- Swing detection using pivot high/low functions
- Volume confirmation via statistical analysis
- Multi-factor scoring with weighted components
- Dynamic support/resistance using highest/lowest functions
- Real-time MTF data via security() function
### Limitations and Considerations
**Important Notes**
1. This indicator is designed for educational and analytical purposes only
2. Historical performance does not guarantee future results
3. Signals should be confirmed with additional analysis
4. Market conditions vary and affect indicator performance
5. Not all signals will be profitable
6. Risk management is essential for all trading
**Known Limitations**
- Confluence scoring is algorithmic and not predictive
- MTF analysis requires sufficient historical data
- Effectiveness varies across different market conditions
- Sideways markets may produce conflicting signals
- High volatility can affect signal reliability
- Backtesting results shown are simplified calculations
**Not Suitable For**
- Automated trading without human oversight
- Sole basis for trading decisions
- Guaranteed profit expectations
- Inexperienced traders without proper education
- Trading without risk management plans
### Market Applicability
**Effective On**
- Trending markets (any direction)
- Clear structure formation periods
- Liquid instruments with consistent volume
- Multiple asset classes (forex, stocks, crypto, commodities)
- Various timeframes with appropriate settings
**Less Effective During**
- Extended ranging/choppy conditions
- Extremely low volume periods
- Major news events causing gaps
- Early market open with high spread
- Illiquid instruments with erratic price action
### Risk Disclaimer
**⚠️ IMPORTANT NOTICE**
This indicator is provided for **educational and informational purposes only**. It does not constitute financial advice, investment recommendations, or trading signals.
**Key Risk Factors:**
- Trading financial instruments involves substantial risk of loss
- Past performance does not indicate future results
- No indicator can predict market movements with certainty
- Users should conduct independent research and analysis
- Professional financial advice should be sought when appropriate
- Risk management and position sizing are critical to successful trading
- Users are solely responsible for their trading decisions
**Responsible Usage:**
- Combine with comprehensive market analysis
- Use appropriate stop-loss orders
- Never risk more than you can afford to lose
- Maintain realistic expectations
- Continue education on technical analysis principles
- Test thoroughly on demo accounts before live trading
- Understand all indicator features before using
### Educational Resources
**Understanding Smart Money Concepts**
Smart Money Concepts analyze how institutional traders and large market participants operate. Key principles include:
- Institutional order flow patterns
- Market structure changes
- Liquidity manipulation
- Supply and demand imbalances
- Order block formations
**Multi-Timeframe Analysis Theory**
Analyzing multiple timeframes helps:
- Identify overall market direction
- Improve entry timing
- Confirm trend strength
- Recognize consolidation periods
- Reduce conflicting signals
**Confluence Trading Approach**
Using multiple confirming factors:
- Increases signal reliability
- Reduces false signals
- Provides conviction for trades
- Helps with position sizing
- Improves risk-reward ratios
### Version History
**v3.0 (Current)**
- Multi-factor confluence scoring system
- Complete Smart Money Concepts implementation
- Real-time multi-timeframe analysis
- Four professional dashboard panels
- Enhanced order block detection
- Breaker block identification
- Premium/discount zone calculations
- Smart trail stop-loss system
- Customizable preset configurations
- Performance tracking metrics
**Development Philosophy**
This indicator was developed with focus on:
- Educational value for traders
- Transparent methodology
- Comprehensive feature set
- User-friendly interface
- Flexible customization options
### Technical Support
**For Questions About:**
- Indicator functionality
- Parameter optimization
- Signal interpretation
- Dashboard metrics
- Best practice recommendations
Please use TradingView's comment section below. The developer monitors comments and provides assistance to users learning to use the indicator effectively.
### Acknowledgments
This indicator implements concepts from:
- Smart Money Concepts trading methodology
- Multi-timeframe analysis techniques
- Technical indicator theory
- Market structure analysis principles
- Institutional order flow concepts
All implementations are original code and calculations based on established technical analysis principles.
---
## ADDITIONAL INFORMATION SECTION
**Category**: Indicators
**Type**: Market Structure / Multi-Timeframe Analysis
**Complexity**: Intermediate to Advanced
**Open Source**: Code visible for transparency and education
**Pine Script Version**: v6
**Chart Overlay**: Yes
**Maximum Objects**: 500 boxes, 500 lines, 500 labels
5-Min ORB popsEmits if price has breached 5 min orb. Calculates orb first, then emits 1, na if price has breached orbs
All-in-one trend clarityTrendLens is a multi-layer, all-in-one overlay indicator designed to visually detect and filter market direction — not a buy/sell strategy.
It highlights early trend shifts based on candle behavior, then supports that view using Pivot High/Low structure, three customizable EMAs, and a visible daily session window to focus on active market hours.
What’s included (All inside one indicator)
Structural Trend Candles
If price closes above the highest high of the previous N bars → candle turns white (bullish structural breakout).
If price closes below the lowest low of the previous N bars → candle turns black (bearish structural breakdown).
Pivot High / Pivot Low Markers
Detects swing highs/lows using adjustable left/right bars (default 7) and plots small gray triangle markers on the chart.
Active Session Window
Highlights a fixed daily time window (default 06:00–18:00 UTC) with a transparent green background to visually mark the active trading session.
3 Customizable EMAs
EMA Fast (default 10)
EMA Mid (default 20)
EMA Long (default 100)
Each EMA supports custom length, source, color, and thickness.
How to use it
Use white/black candles as a quick trend filter and early structure shift cue.
Use EMA100 as the main trend bias reference; use EMA10/EMA20 positioning to gauge momentum.
Use Pivot High/Low to spot structure levels for potential support/resistance and risk management.
Enable the session highlight to focus analysis on high-activity hours.
Disclaimer
This indicator is a technical analysis helper, not a trading strategy.
It does not provide buy/sell recommendations. You are responsible for your own trade decisions and risk management.
UTC Daily High / Low Tracker (UTC Anchored)This indicator will track the Daily high and low AKA daily range of each day using UTC (00:00)
MA RespectRatio RespectRatio
A Structural Moving Average Quality Indicator
What is RespectRatio
RespectRatio is a statistical indicator designed to evaluate *how reliably a stock respects a specific moving average over time.
Instead of asking “Did price touch the MA?”, it answers a more meaningful question:
Does this moving average actually function as support for this stock consistently and structurally?
The indicator focuses on *historical behavior, not short-term signals, and is intended to support buy / hold / reduce decisions rather than precise trade timing.
Why RespectRatio Exists
Many stocks frequently touch moving averages, but only some of them:
Rebound cleanly
Hold above the average
Do so repeatedly over long periods
RespectRatio was built to separate real support from visual noise.
Core Concept
RespectRatio treats every interaction between price and the moving average as a measurable event.
Each event ends in one of two outcomes:
• Bounce — price respects the moving average
• Break — price fails and breaks below it
Over time, these outcomes form a probability profile of how the stock behaves around that average.
How an Event Starts
An event begins when price meaningfully interacts with the moving average, either by:
• Entering a volatility-adjusted proximity zone around the MA, or
• Crossing below the MA (including gap-downs)
The proximity zone is adaptive and defined as:
k = ATR% × kMultiplier
This keeps the definition of “close enough” consistent across assets and volatility regimes.
Event Outcomes
Bounce (Respect)
An event is classified as a Bounce when price:
• Moves back above the moving average
• Clears a minimal buffer above it
• *Maintains that position for a defined number of sessions.
This confirms that the moving average acted as real support not a temporary pause.
Break (Failure)
An event becomes a Break when price:
• Remains below the moving average for too long, or
• Falls significantly below it and fails to reclaim it within a short window
A Break signals structural weakness at that average.
Noise Control
To avoid statistical distortion:
• Only one outcome per event is recorded
• A cooldown period prevents immediate re-counting of the same struggle
• Each event is counted once, regardless of intraday noise
This ensures clean, independent data points.
The Final Metric
The indicator produces a single core metric:
RespectRatio = Bounces / (Bounces + Breaks)
Calculated over a rolling historical window.
How to Interpret RespectRatio
• High RespectRatio
The moving average has historically acted as reliable support
→ suitable for accumulation or holding strategies
• Low RespectRatio
The moving average is frequently violated
→ caution when relying on it as support
RespectRatio does not predict future price, but measures structural trustworthiness.
What RespectRatio Is Not
• Not a buy/sell signal generator
• Not a trend-following indicator
• Not a momentum oscillator
It is a contextual filter* that improves decision quality.
Typical Use Cases
• Evaluating whether a stock deserves to be bought near a long-term MA
• Comparing multiple stocks using the same moving average
• Filtering candidates before applying other strategies
• Long-term portfolio decision support
One-Sentence Summary
RespectRatio quantifies how often the market actually respects a moving average — turning a visual assumption into measurable probability.*
Fuerza Relativa vs SPY con TablaRelative Strength vs SPY with Score (0–100)
This indicator measures the relative strength of an asset versus SPY (or any user-defined benchmark), allowing traders to quickly identify whether an asset is outperforming or underperforming the broader market.
Relative strength is calculated as the ratio between the asset’s price and the reference index price, and is accompanied by a smoothed moving average that acts as a baseline to detect changes in relative trend.
🔹 Main Features:
Relative Strength Line:
Green when the asset shows strength versus the market.
Red when it shows relative weakness.
Configurable moving average used as a dynamic reference line.
Colored cloud between the relative strength line and its moving average for quick visual interpretation.
Crossover signals (triangles) when relative strength crosses above its moving average.
🔹 Relative Strength Score (0–100)
Includes an information table displaying a normalized score based on Percent Rank, comparing the current value with its historical behavior:
Current
Previous Day
Previous Week
Previous Month
Score interpretation:
🟢 > 70 → Strong relative performance
🟠 30 – 70 → Neutral zone
🔴 < 30 → Relative weakness
🔹 Recommended Uses:
Identifying market leaders.
Trend confirmation.
Comparative analysis between assets.
Strength-based filters for swing and medium-term trading strategies.
M.T.C. Gold Pocket Break of Structure (BOS)
Swing → impuls
Fib over impuls
Gold Pocket = entry
SL onder OB
TP1 = RR 1:1
TP2 = RR 1:2
FVG BearishThis indicator identified negetive Fair Value Gap based on the following creteria:
1. Gap between the last but 1 candle low and current candle high
2. The width of the gap is at least 0.3% of current close
3. The previous candle is a bearish candle with body at least 0.7% of current close
4. Value of the previous candle is greater tha equal to 30 M
5. The candle is marked with red dot on top
FVG BullishThis indicator marks the formation of Positive fair value gap in 1 min chart based on the following conditions:
1. Low of current candle is higher than last but one candle
2. The gap between the two is atleast 0.3% of current closing
3. The middle candle oftren called as the expansion candle is at least 0.7% of current close
4. Valune of the expansion candle is greater than 30M indicating institutional participation
5. Such candle are indicated by Green curcles at the bottome
FxInside// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © yyy_trade
//@version=6
indicator("FxInside", overlay = true, max_lines_count = 500)
lineColor = input.color(color.new(color.blue, 12), "FxLineColor")
type vaild_struct
float high
float low
int time
type fx
string dir
chart.point point
var array valid_arr = array.new()
var fx lastFx = na
var float motherHigh = na
var float motherLow = na
isInsideBar = high <= high and low >= low
if isInsideBar and na(motherHigh)
motherHigh := high
motherLow := low
isExtendedInsideBar = not na(motherHigh) and high <= motherHigh and low >= motherLow
body_color = input.color(color.new(color.orange, 0), "实体颜色")
wick_color = input.color(color.new(color.orange, 0), "影线颜色")
border_color = input.color(color.new(color.orange, 0), "边框颜色")
plotcandle(open, high, low, close, color=isExtendedInsideBar ? body_color : na, wickcolor=isExtendedInsideBar ? wick_color : na, bordercolor =isExtendedInsideBar ? border_color : na ,editable=false)
if not na(motherHigh) and (high > motherHigh or low < motherLow)
motherHigh := na
motherLow := na
// 以下为分型折线逻辑,如不需要可删除
process_fx(last_fx, now_fx) =>
if not na(last_fx)
line.new(last_fx.point, now_fx.point, color=lineColor, xloc=xloc.bar_time)
now_fx
if not isExtendedInsideBar
array.push(valid_arr, vaild_struct.new(high, low, time))
if array.size(valid_arr) > 17
array.shift(valid_arr)
len = array.size(valid_arr)
if len > 3
k_ago = array.get(valid_arr, len - 2)
k_now = array.get(valid_arr, len - 1)
if k_ago.high > k_now.high
for i = 3 to len
last_k = array.get(valid_arr, len - i)
if last_k.high < k_ago.high
if last_k.low < k_ago.low
lastFx := process_fx(lastFx, fx.new("TOP", chart.point.from_time(k_ago.time, k_ago.high)))
break
else
if not na(lastFx)
if lastFx.dir == "TOP"
lastFx := process_fx(lastFx, fx.new("BOT", chart.point.from_time(last_k.time, last_k.low)))
lastFx := process_fx(lastFx, fx.new("TOP", chart.point.from_time(k_ago.time, k_ago.high)))
break
else if last_k.high > k_ago.high
break
// 底分型判定
if k_ago.low < k_now.low
for i = 3 to len
last_k = array.get(valid_arr, len - i)
if last_k.low > k_ago.low
if last_k.high > k_ago.high
lastFx := process_fx(lastFx, fx.new("BOT", chart.point.from_time(k_ago.time, k_ago.low)))
break
else
if not na(lastFx)
if lastFx.dir == "BOT"
lastFx := process_fx(lastFx, fx.new("TOP", chart.point.from_time(last_k.time, last_k.high)))
lastFx := process_fx(lastFx, fx.new("BOT", chart.point.from_time(k_ago.time, k_ago.low)))
break
else if last_k.low < k_ago.low
break
len = input.int(20, minval=1, title="Length")
src = input(close, title="Source")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500, display = display.data_window)
out = ta.ema(src, len)
plot(out, title="EMA", color=color.blue, offset=offset)
// Smoothing MA inputs
GRP = "Smoothing"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("None", "Type", options = , group = GRP, display = display.data_window)
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window)
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window)
var enableMA = maTypeInput != "None"
var isBB = maTypeInput == "SMA + Bollinger Bands"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(out, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(out, maLengthInput) * bbMultInput : na
plot(smoothingMA, "EMA-based MA", color=color.yellow, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(smoothingMA + smoothingStDev, title = "Upper Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(smoothingMA - smoothingStDev, title = "Lower Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
EMA Multi-Type StrategyThis is a price-action + EMA trend strategy that:
Uses EMA as trend filter
Looks for pullbacks and structure shifts near the EMA
Trades 3 different entry patterns (TYPE 1 / 2 / 3)
Allows:
Fixed SL–TP (RR based)
OR ATR trailing stop
Optionally blocks opposite trades until the current trade exits
Think of it as:
“Trade continuation after pullback in EMA trend, with multiple confirmation strengths.”
FVG & OB [odnac]This indicator is a sophisticated tool designed for Smart Money Concepts (SMC) traders. It automates the detection of two critical institutional footprints: Order Blocks (OB) and Fair Value Gaps (FVG), with a focus on candle momentum and mitigation tracking.
Key Features
1. Advanced Momentum Filtering (3 Versions)
Unlike basic indicators, this script uses three different mathematical approaches to ensure the middle candle represents a "strong" move:
V1 (Body Focus): Compares the bodies of the surrounding candles to the middle candle.
V2 (Hybrid): Uses a mix of candle ranges and bodies to identify expansion.
V3 (Range Focus): The most aggressive filter; it ensures the total range of the middle candle dwarfs the surrounding candles.
2. Automatic Mitigation Tracking
The indicator doesn't just draw static boxes. It tracks price action in real-time:
Dynamic Extension: Boxes extend to the right automatically as long as price has not returned to "test" or "fill" the zone.
Smart Clean-up: Once the price touches the zone (Mitigation), the box stops extending or is removed. This keeps your chart clean and focused only on "fresh" (unmitigated) levels.
3. Smart Money Concept Integration
Order Blocks (White Boxes): Identifies where institutional buying or selling occurred before a strong move.
Fair Value Gaps (Yellow Boxes): Highlights price imbalances where the market moved too fast, leaving a gap that often acts as a magnet for future price action.
Technical Logic Breakdown
Detection Logic
The script looks at a 3-candle sequence:
Candle (The Origin): Defines the boundary of the OB or FVG.
Candle (The Expansion): Must be a "Strong Candle" based on your selected setting (V1, V2, or V3).
Candle (The Confirmation): Ensures that the "Tail Gap" condition is met (the wick of Candle 2 and Candle 0 do not touch).
Box Management
The script uses Pine Script Arrays to manage up to 500 boxes. It constantly loops through active boxes to check:
Time Limit: If a box exceeds the max_bars_extend limit, it is removed to save memory.
Price Touch: If low or high enters the box coordinates, the zone is considered "mitigated" and the extension stops.
Daytrading Suite v6.4: Neon TPO + FVG + IB Lines (Stable)Here is the complete **Trading Manual & Strategy Guide** for the **Master Daytrading Suite (Neon + IB Edition)**.
This guide explains exactly **when** to trade and **how** to execute trades using the tools in the script.
---
# 📘 MASTER TRADING MANUAL (Neon + IB)
### 1. THE BASICS
* **Best Assets:** BTCUSDT & ETHUSDT (Futures).
* **Best Timeframe:** 5 Minutes (Entry) / 15 Minutes (Trend).
* **Key Session:** New York Session (High Volatility).
* **Golden Rule:** Never go **LONG** inside a Red Supply Zone. Never go **SHORT** inside a Green Demand Zone.
---
### 2. THE INDICATORS (Legend)
| Indicator | Color | Function | How to use |
| --- | --- | --- | --- |
| **Supply Zone** | 🟥 **Red Box** | Resistance | Look for Short setups here. |
| **Demand Zone** | 🟩 **Green Box** | Support | Look for Long setups here. |
| **Golden Pocket** | 🟧 **Orange** | Retracement | The "Sweet Spot" for trend entries (Fib 0.618). |
| **VWAP** | 🔵 **Blue Line** | Trend Anchor | Price > VWAP = Bullish. Price < VWAP = Bearish. |
| **Initial Balance (IB)** | 🟨 **Yellow Box** | Opening Range | Breakout above = Bullish. Breakdown below = Bearish. |
| **FVG (Gap)** | 🟩/🟥 **Tiny Box** | Trigger | **Green FVG** = Entry Signal for Longs. **Red FVG** = Entry Signal for Shorts. |
---
### 3. STRATEGY A: The Trend Pullback (High Win Rate)
*Use this when the market is trending smoothly.*
#### ✅ HOW TO ENTER A LONG (BUY) POSITION
1. **Trend Check:** Price is trading **ABOVE** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to drop back down (pullback).
3. **The Zone:** Price touches the **Green Demand Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Green FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Long. Stop Loss below the recent low. Take Profit at the next Red Zone.
#### 🔻 HOW TO ENTER A SHORT (SELL) POSITION
1. **Trend Check:** Price is trading **BELOW** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to rally up (pullback).
3. **The Zone:** Price touches the **Red Supply Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Red FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Short. Stop Loss above the recent high. Take Profit at the next Green Zone.
---
### 4. STRATEGY B: The IB Breakout (Volatility)
*Use this specifically after the first hour of the New York Session (approx. 10:30 NY time).*
* **The Setup:** Look at the **Yellow Box (Initial Balance)** which marks the high/low of the first hour.
* **Bullish Breakout:** If a candle closes **above** the Yellow Box + Price is above VWAP → **Go Long**.
* **Bearish Breakdown:** If a candle closes **below** the Yellow Box + Price is below VWAP → **Go Short**.
* **The Trap (Fakeout):** If price breaks out but immediately falls back inside the Yellow Box, close the trade immediately.
---
### 5. DAILY ROUTINE (Checklist)
1. **Open TradingView:** Switch to the **15m Chart**.
2. **Check Context:** Where are we? Are we near a big Red Box (Supply) or Green Box (Demand)?
3. **Check Trend:** Is price above or below the Blue VWAP line?
4. **Wait for the Open:** Let the first hour of New York pass (to form the Yellow IB Box).
5. **Set Alerts:** Right-click the chart and set alerts for "IB Breakout" or "Golden Pocket".
6. **Execute:** Switch to the **5m Chart** to find your entry trigger (FVG).
---
### 6. RISK MANAGEMENT RULES
* **Stop Loss:** NEVER trade without one. Place it just outside the FVG box or the Zone.
* **Risk per Trade:** 1% to 2% of your account maximum.
* **No Trade Zone:** If the price is "chopping" (moving sideways) inside the Yellow IB Box, **do not trade**. Wait for a breakout.
Liquidity Hunter: Stop Hunts & Volume ClustersStop Hunt Wick Detection
What it catches:
Wicks that are 2x+ larger than the candle body (adjustable)
Minimum wick size to filter out noise
Optional volume confirmation (stops hunts usually have higher volume)
Marks bullish stop hunts (long lower wicks) with 💎 and "BUY LIQ"
Marks bearish stop hunts (long upper wicks) with 💎 and "SELL LIQ"
Extends dashed lines showing where liquidity was grabbed
Volume Cluster Detection
What it tracks:
Bars with volume 1.5x+ above average (adjustable)
Automatically merges nearby clusters within 3 bars
Shows different colors based on volume intensity:
Yellow = 3x+ average volume (extreme)
Orange = 2x+ average volume (strong)
Blue = 1.5x+ average volume (moderate)
Draws horizontal zones showing where volume accumulated
Labels show the volume multiplier (e.g., "VOL: 2.3x")
Adjustable Settings
You can tune:
Wick-to-body ratio threshold
Minimum wick size percentage
Volume confirmation requirements
Cluster sensitivity and merge distance
The theory: Stop hunts grab liquidity above/below key levels, then price reverses. Volume clusters show where institutions accumulated positions. Both mark areas price is likely to revisit.
Try it out and let me know what needs tweaking!
Cody Order Block Finder with RegressionThe Cody Order Block Finder with Regression Channel is a comprehensive trading tool that combines order block identification with linear regression analysis. This dual-approach indicator is designed to help traders identify potential institutional order flow zones within the context of established market trends, providing a structured methodology for trade entry and exit decisions.
Free Telegram Trading Community t.me
Order Block Detection System
Identifies potential institutional buying and selling zones based on specific candle patterns
Configurable detection parameters including required subsequent candles and minimum percentage moves
Three visual color schemes (Dark, Bright, Neon) for different chart backgrounds
Options to display order blocks using wick ranges or body ranges
Advanced filtering capabilities including size-based and ATR-based filters
Historical display controls with options to show all order blocks or only the most recent instances
Linear Regression Channel
Customizable regression length from 1 to 5000 periods
Upper and lower deviation channels with adjustable multipliers
Pearson's R correlation coefficient display for trend strength assessment
Flexible extension options for channel lines (left, right, both, or none)
Visual channel fills between regression lines for clear trend identification
Technical Specifications
Detection Logic
Bullish order blocks: Identified by a bearish candle followed by a specified number of consecutive bullish candles with minimum percentage movement
Bearish order blocks: Identified by a bullish candle followed by a specified number of consecutive bearish candles with minimum percentage movement
Size validation through configurable percentage thresholds
Optional ATR filtering for volatility-adjusted order block identification
Visual Elements
Triangle markers indicating order block locations above or below relevant candles
Extended lines marking order block boundaries with configurable right-side extension
Informative labels displaying order block size percentages
Dynamic trend labels based on regression slope analysis
Adjustable transparency and coloring for all visual elements
Alert System
Context-aware alerts that only trigger in confirmed trends
Buy alerts: Bullish order blocks detected during uptrends (positive regression slope)
Sell alerts: Bearish order blocks detected during downtrends (negative regression slope)
Customizable alert messages with trend context information
Performance Optimization
Maximum 500 lines and 500 labels for system resource management
Efficient array-based line management for historical display controls
Conditional calculations to reduce processing overhead
Application for Traders
This indicator serves multiple trading methodologies:
Trend-following traders can use regression channels for trend identification
Institutional flow traders can identify potential order block zones
Swing traders can locate high-probability reversal areas
Risk management through size and volatility filtering
The combination of order block detection with regression trend analysis provides traders with a comprehensive tool for identifying potential trade setups that align with both institutional activity and broader market trends. The extensive customization options allow adaptation to various trading styles and market conditions.






















