Money Flow Index SignalsThis indicator in daily, weekly and monthly charts can be used to find strong Support, Resistance levels and reversal points. It can be used in lower time frame to find reversal points. When MFI reached 100 either in downside or upside in a candle, if the high is broken take it as a bullish breakout. If MFI is 0 or -0 and the low of the candle is broken take it as a downside breakout.
Indicators and strategies
Wave Surge [sma]Overview
Wave Surge is indicator that visualizes market waves through dynamic price oscillations around a moving average baseline. It combines wave analysis with RSI filtering to identify trend strength and potential reversals.
How It Works
Core Calculation
The indicator calculates a wave pattern by:
1. Computing a baseline using the average of highest/lowest prices over the specified period
2. Determining a keltner-style center point between this baseline and price SMA
3. Creating a linear regression of the price deviation from this center
4. Generating an adaptive signal line that responds to crossover events
Visual Components
- **Base MA Line**: A moving average (SMA or EMA) that changes color based on RSI zones
- Cyan overlay: RSI is overbought (default >70)
- Yellow overlay: RSI is oversold (default <30)
- Gray: Neutral RSI zone
- Wave Fill: The dynamic area between the MA and wave level
- Green shades: Bullish momentum (wave > 0)
- Red/Orange shades: Bearish momentum (wave < 0)
- Color intensity indicates wave strength (accelerating vs decelerating)
Key Features
- Wave Intensity Control: Adjustable parameter (0.1-2.0) to control wave amplitude
- MA Type Selection: Choose between SMA or EMA for the baseline
- RSI Integration: Hidden RSI filter adds context to the moving average color
- Adaptive Signal: The signal line dynamically adjusts to crossover events
- Fully Customizable Colors: All visual elements can be customized
Originality Statement
This indicator uses a unique combination of:
- Custom wave calculation based on price deviation from keltner-style center
- Linear regression applied to normalized price distance
- Adaptive signal line that recalculates on wave direction changes
- Multi-layered RSI integration for contextual MA coloring
The wave fill visualization creates a dynamic oscillating band that responds to both momentum strength and direction changes.
For educational purposes only. Not financial advice.
VWAP Trio: Continuous + London-anchored + NY-anchoredThis indicator plots three different VWAPs at once so you can see how price behaves against:
Continuous VWAP
Starts from the beginning of the whole chart / instrument history and keeps going.
Acts like a long-term “fair value” line.
London-anchored VWAP
Resets (anchors) at the London session open (usually 08:00 London).
Shows the average price paid during the current London session.
Day traders use it to see if price is trending or mean-reverting during the EU morning.
NY-anchored VWAP
Resets at the New York session open (usually 08:00 NY / 13:00–14:30 London depending on DST).
Shows the average price for the U.S. session.
Exact EqH/EqL Arrows (Consecutive)Exact EqH/EqL Arrows (Consecutive). To identify buying or selling pressure.
SRI- CCI and Daily Candle MiniChartIndicator Description
Name: SRI – CCI and Daily Candle MiniChart
Shorttitle: Sri-Minicharts
Type: Overlay Indicator
Purpose:
This indicator is designed to provide a compact visual snapshot of momentum and trend using CCI (Commodity Channel Index) with EMA smoothing and a mini daily (or monthly) candle display. It allows traders to monitor momentum shifts, overbought/oversold conditions, and higher timeframe candle trends without cluttering the main chart.
Key Features:
CCI Mini-Chart
Plots CCI values scaled to the chart price for easy visualization.
Adds a long EMA of CCI for smoothing and trend recognition.
Includes reference lines at ±100, ±80, and 0 for overbought/oversold/neutral levels.
Adjustable sensitivity, length, and scaling for custom responsiveness.
Shows only the most recent bars for clarity.
Daily/Monthly Candle Mini-View
Plots 4 recent candles (Normal or Heikin Ashi) on the chart with configurable offset and thickness.
Allows traders to see higher timeframe trend without switching charts.
Customizable candle colors for bullish and bearish bars.
Custom Timeframe Support
Mini CCI chart can use any custom timeframe, independent of chart timeframe.
Visual Enhancements
Color-coded CCI: green when positive, red when negative.
EMA overlay in blue for trend direction of CCI.
Daily candle mini-chart positioned horizontally for easy reference.
Pros
Compact & Informative:
Combines momentum (CCI) and trend (daily candles) in a single overlay, helping traders make faster decisions.
Multi-Timeframe Awareness:
Mini daily/monthly candles provide context of higher timeframe trends alongside short-term CCI analysis.
Customizable:
Users can adjust CCI length, EMA, sensitivity, scaling, offset, and colors to suit any trading style.
Trend Clarity:
EMA overlay smooths CCI, reducing noise from volatile price movements.
Reference Levels:
Overbought/oversold lines help traders spot potential reversals or continuation zones.
Non-Intrusive:
Mini chart and candles do not clutter main chart; only draw latest bars for visual clarity.
Suggestions to Enhance Potential Winning
Add Trend Strength Indicator:
Integrate ADX + DI mini-bars or lines to confirm if the CCI trend is supported by strong trend conditions.
Include Volume or OBV:
Adding volume mini-bars or OBV trend helps validate moves supported by trading activity.
Add Confirmation Oscillator:
Include RSI or Stochastic mini-chart for additional momentum confirmation before taking trades.
Signal Markers & Alerts:
Add arrows or dots when CCI crosses EMA or key levels.
Enable alerts for public users on CCI signals or daily candle breakouts.
Multi-Timeframe Integration:
Show weekly or monthly candle trends alongside daily candles for stronger context.
Dynamic Scaling & Auto-Offset:
Improve auto-scaling logic for highly volatile instruments to prevent mini-chart distortion.
Backtesting Overlay (Optional):
Highlight historical trade signals on mini-charts to visualize potential past performance.
Summary
This script is a highly visual and multi-timeframe mini-chart indicator that is perfect for public use on TradingView. It gives quick insight into momentum and trend using CCI + EMA and shows recent higher timeframe candle trends, making it ideal for traders who want fast decision support without switching timeframes.
By adding ADX, RSI/Stochastic, volume confirmation, and alerts, it can become a full-fledged trade confirmation tool, increasing its practical value for both intraday and swing traders.
Sri_Heikinashi T3 Candle line for long entry📌 Script Name:
Sri_Heikinashi T3 line for long entry (SRi-T3)
🔎 What this script does:
This indicator is a custom Heikin Ashi + T3 smoothed candle plotting tool.
Instead of showing raw candles or raw Heikin Ashi, it applies a double stage of T3 smoothing to Heikin Ashi values, giving a cleaner trend-following visual without market noise.
It doesn’t replace the original chart candles — it overlays smoothed, wick-less “trend candles” on top of your chart to highlight trend direction clearly.
🧩 Key Components:
1. Custom Timeframe Input
customTF = input.timeframe("120", "Custom Timeframe")
👉 You can choose any timeframe (5m, 15m, 1h, Daily, etc.), regardless of your chart timeframe.
This allows multi-timeframe analysis (e.g., plotting 2-hour smoothed candles on a 5-minute chart).
2. T3 Smoother Function
A custom function t3(src, length, v) is used.
T3 is a triple exponential moving average (EMA) smoother with a “volume factor” v.
Advantage: less lag than normal EMA/SMA, but smoother and cleaner trend lines.
3. Heikin Ashi Logic (inside calcHaT3)
Stage 1: Apply T3 smoothing to Heikin Ashi open, high, low, close.
Stage 2: Recalculate Heikin Ashi formula (open/close averaging, high/low logic).
Stage 3: Apply another round of T3 smoothing.
Final Output: Super-smooth OHLC values.
4. Plotting
Candles are plotted with:
No wicks (only body high/low).
Colors:
Green (lime) if close > open.
Red/Orange if close < open.
Slight transparency (95) so they don’t overpower chart candles.
👉 This way you get a visual overlay of the smoothed Heikin Ashi trend.
5. Alerts
Alerts are triggered when trend color changes:
From red → green (potential long entry).
From green → red (potential exit/short).
✅ Pros (Advantages)
Noise Reduction
Double T3 + Heikin Ashi makes signals smoother than raw price or single MA.
Clear Trend Identification
Candles change color only when trend is strong enough, filtering false moves.
Multi-Timeframe Support
You can plot higher timeframe trends (e.g., daily smoothed trend) on lower charts.
No Wick Confusion
Removes wicks to simplify visuals, focusing purely on direction.
Alerts for Trend Shifts
Automatic alert conditions for quick reaction.
Perfect for Long Entries
Since it’s designed for “long entry” confirmation, it’s especially helpful to avoid early entries.
⚡ How to Use This Script
Add to Chart
Copy → Paste into TradingView Pine Editor → Save & Add to Chart.
Select Custom Timeframe
Default is 120m (2 hours) but you can change to 15m, 60m, Daily, etc.
Example: On a 5m chart, load a 1h or 4h SRi-T3 to align with bigger trend.
Look for Color Changes
Green = bullish trend (favorable for long entries).
Orange/Red = bearish trend (avoid longs or look for short setup).
Use Alerts
Set alerts for "Heikin-Ashi Smoothed from red to green" = Long Signal.
"Heikin-Ashi Smoothed from green to red" = Exit/Short Signal.
Combine with Other Tools
Works best if combined with pivots, support/resistance, or momentum oscillators (RSI, CCI, etc.).
Use SRi-T3 as trend filter, enter trades only in its direction.
📊 Example Trading Setup
On a 15m chart:
Plot SRi-T3 with 60m timeframe → this gives you higher timeframe trend.
Enter long trades only if SRi-T3 is green.
Add RSI/MACD for entry confirmation.
Laguerre Filter Trend Navigator [QuantAlgo]🟢 Overview
The Laguerre Filter Trend Navigator employs advanced polynomial filtering mathematics to smooth price data while minimizing lag, creating a responsive yet stable trend-following system. Unlike simple moving averages that apply equal weight to historical data, the Laguerre filter uses recursive calculations with exponentially weighted polynomials to extract meaningful directional signals from noisy market conditions. Combined with dynamic volatility-adjusted boundaries, this creates an adaptive framework for identifying high-probability trend reversals and continuations across all tradable instruments and timeframes.
🟢 How It Works
The indicator leverages Laguerre polynomial filtering, a mathematical technique originally developed for digital signal processing applications. The core mechanism processes price data through four cascaded filter stages (L0, L1, L2, L3), each applying the gamma coefficient to recursively smooth incoming information while preserving phase relationships. This multi-stage architecture eliminates random fluctuations more effectively than traditional moving averages while responding quickly to genuine directional shifts.
The gamma coefficient serves as the primary smoothing control, determining how aggressively the filter dampens noise versus tracking price movements. Lower gamma values reduce smoothing and increase filter responsiveness, while higher values prioritize stability over reaction speed. Each filter stage compounds this effect, creating progressively smoother output that converges toward true underlying trend direction.
Surrounding the filtered price line, the algorithm constructs adaptive boundaries using dynamic volatility regime measurements. These calculations quantify current market turbulence independently of direction, expanding during active trading periods and contracting during quiet phases. By multiplying this volatility assessment by a user-defined scaling factor, the system creates self-adjusting bands that automatically conform to changing market conditions without manual intervention.
The trend-following engine monitors price position relative to these volatility-adjusted boundaries. When the upper band falls below the current trend line, the system shifts downward to track bearish momentum. Conversely, when the lower band rises above the trend line, it elevates to follow bullish movement. These crossover events trigger color transitions between bullish (green) and bearish (red) states, providing clear visual confirmation of directional changes validated by volatility-normalized thresholds.
🟢 How to Use
Green/Bullish Trend Line: Laguerre filter positioned in upward trajectory, indicating momentum-confirmed conditions favorable for establishing or maintaining long positions (buy)
Red/Bearish Trend Line: Laguerre filter trending downward, signaling regime-validated environment suitable for initiating or holding short positions (sell)
Rising Green Line: Accelerating bullish filter with expanding separation from price lows, demonstrating strengthening upward momentum and increasing confidence in trend persistence with optimal long entry timing
Declining Red Line: Steepening bearish filter creating growing distance from price highs, revealing intensifying downside pressure and enhanced probability of continued decline with favorable short positioning opportunities
Flattening Trends: Horizontal or oscillating filter movement regardless of color suggests directional uncertainty where price action contradicts filter positioning, potentially indicating consolidation phases or impending volatility expansion requiring cautious trade management
🟢 Pro Tips for Trading and Investing
→ Preset Selection Framework: Match presets to your trading style - Scalping preset employs aggressive gamma (0.4) with tight volatility bands (1.0x) for rapid signal generation on sub-15-minute charts, Day Trading preset balances responsiveness and stability for hourly timeframes, while Swing Trading preset maximizes smoothing (0.8 gamma) with wide bands (2.5x) to filter intraday noise on daily and weekly charts.
→ Gamma Coefficient Calibration: Adjust gamma based on market personality - reduce values (0.3-0.5) for highly liquid, fast-moving assets like major currency pairs and tech stocks where quick filter adaptation prevents lag-induced losses, increase values (0.7-0.9) for slower instruments or trending markets where excessive sensitivity generates false reversals and whipsaw trades.
→ Volatility Period Optimization: Tailor the volatility measurement window to information cycles. Deploy shorter lookback periods (7-10) for instruments with rapid regime changes like individual equities during earnings seasons, standard periods (14-20) for balanced assessment across general market conditions, and extended periods (21-30) for commodities and indices exhibiting persistent volatility characteristics.
→ Band Width Multiplier Adaptation: Scale boundary distance to current market phase. Contract multipliers (1.0-1.5) during range-bound consolidations to capture early breakout signals as soon as genuine momentum emerges, expand multipliers (2.0-3.0) during trending markets or high-volatility events to avoid premature exits caused by normal retracement activity rather than authentic reversals.
→ Multi-Timeframe Filter Alignment: Implement the indicator across multiple timeframes, using higher intervals (4H/Daily) to identify primary trend direction via filter slope and lower intervals (15min/1H) for precision entry timing when filter colors align, ensuring trades flow with dominant momentum while optimizing execution at favorable price levels.
→ Alert-Driven Systematic Execution: Configure trend change alerts to capture every filter-validated directional shift from bullish to bearish conditions or vice versa, enabling consistent signal response without continuous chart monitoring and eliminating emotional decision-making during critical transition moments.
Candle Density Indicator_SH_v1This indicator visually highlights the price zones where candlesticks have most frequently passed, using box shapes.
Unlike a standard volume profile, it focuses soley on the areas most visited by candlestick bodies, displayed as gray boxes, and marks the highest and lowest prices within each zone. Additionally, it features a highlight function:
The number displayed inside the gray box represents the average trading volume of the most recent supply zone.
candlestick bodies that exceed the zone's average trading volume are emphasized in yellow.
ZTCRYPTOLAB - HAMMER TIME (FREE)ZTCRYPTOLAB — HAMMER TIME
3× EMA Alignment • MTF Trend Table • HTF FVGs • Session Windows
What this tool does
HAMMER TIME blends classic trend structure (EMAs) with a fast multi-timeframe read and high-probability HTF fair-value gaps. Optional session windows (NYSE, London, Asia) highlight “caution” periods around cash opens and plot clean dashed open/start/end markers.
1) 3×EMA Alignment (20/50/200)
What it shows: Three EMAs (default 20, 50, 200) plus optional dynamic coloring when price is above/below each EMA.
How to use it
Bullish structure: EMA20 > EMA50 > EMA200.
Bearish structure: EMA20 < EMA50 < EMA200.
Turn on “Line Color by Price vs EMA” to see each EMA flip red/green as price crosses.
Optional candle coloring highlights when price is above/below all three while the EMAs are aligned—useful for quick “go/no-go” context.
Inputs
EMA lengths and colors
Toggle dynamic EMA colors and candle coloring
snapshot
2) Background Heat (EMA Alignment)
What it shows: A subtle background when the three EMAs are cleanly aligned.
How to use it
Green tint when stacked bullish, maroon when stacked bearish.
Great for scanning or keeping bias in peripheral vision.
Inputs
Enable/disable background
Custom bull/bear background colors (with transparency)
snapshot
3) Multi-Timeframe Trend Table (MTF)
What it shows: A compact table with the EMA-based bias on four timeframes (defaults: 5m, 15m, 1h, 4h). Each row says BULLISH / BEARISH / NEUTRAL based on source > EMA(length) at that TF.
How to use it
Look for stacked agreement across intraday + swing TFs.
Turn on the optional Confluence Score (0–4) to quantify alignment at a glance.
Place the table anywhere (Top-Right by default) and adjust text size.
Inputs
4 timeframes, EMA length used for MTF test (default 200)
Table position, size, colors, and optional score
4) Sessions: NYSE, London, Asia
What it shows: For each session you enable:
A shaded warning window centered on the cash open (configured in inputs).
Three dashed vertical markers: Start (orange), Open (solid session color), End (lime).
How the NYSE Open line is detected
Dual method for robustness:
First bar inside 09:30–16:00 New York (chart TF).
A 1-minute ping window (default 09:30–09:31 NY) to catch precise opens on higher TFs.
If either hits, the red dashed Open line prints once.
How to use it
Expect volatility spikes near the dashed Open line; the warning shade helps you manage pre/post-open noise.
Use with your EMA/MTF bias: e.g., trade in direction of higher-TF alignment but wait for post-open structure.
Inputs
Per-session toggle
Session warning window times (per time zone):
NYSE – America/New_York
London – Europe/London
Asia – Asia/Tokyo
Dashed Start/Open/End color toggles
NYSE: editable 1-minute open ping window
Note: Time zones include DST behavior. Crypto trades 24/7, so sessions are for context rather than market hours.
snapshot
5) HTF FVG (Fair-Value Gaps)
What it shows: HTF ICT 3-bar FVGs brought down to your chart TF as shaded boxes with optional “FVG” label.
Detection
Bullish gap: low > high (gap below current bar).
Bearish gap: high < low (gap above current bar).
You choose the detection timeframe (default 1H) via input.
Mitigation Modes (how gaps invalidate)
Touch: any touch mitigates.
Close: a close back into the gap mitigates.
Full Bar (Wick spans gap): a single candle wicks across top/bottom.
Full Bar Close (Close beyond): body closes beyond the far edge.
Box Management
Extend options: Extend right, Cap N Bars, or None.
Keep Most-Recent: caps total boxes for a clean chart.
Optional border; separate bull/bear box colors & transparency; optional center label.
How to use it
Combine HTF FVG zones with your EMA/MTF bias for pullback entries.
Prefer confluence with session timing (e.g., NYSE open sweeps into HTF FVG + trend alignment).
6) Alerts (built-in)
EMA Alignment: Bullish/Bearish – fires when the 20/50/200 stack flips.
Price Above/Below All (Aligned) – fires when price crosses all three while aligned.
SMART Trigger – a single alert that covers any of the above flips.
How to use it
Set SMART on your watchlist symbols; open the chart when it pings.
Use session windows and HTF FVGs to refine timing.
snapshot
Tips & Best Practices
Timeframes: scalp on 1–15m with 1H FVGs, or swing on 1H–4H with 4H/D FVGs.
Performance: If charts feel heavy, disable borders/labels or lower Keep Most-Recent.
Colors: Adjust EMA/box background transparency to match your theme.
Reading the table: Aim for 3–4/4 confluence; fade signals when it’s 1/4 or mixed.
Disclaimers
This is educational tooling, not financial advice. Past performance ≠ future results. Always validate on a demo account and manage risk.
Trade PullBack - EMA Pullback System with Auto Risk-Reward# Trade Pull Back - Professional Pullback Trading System
## 📊 Overview
**Trade Pull Back** is a comprehensive pullback trading system that combines trend-following principles with precise entry timing using candlestick pattern confirmation. This indicator is designed for traders who want to enter trending markets at optimal retracement levels with pre-calculated risk-reward ratios.
---
## 🎯 Core Methodology
### Why This System Works
Most traders struggle with two key challenges:
1. **Entering too early** - jumping into trades before the pullback completes
2. **Entering too late** - missing the momentum after the pullback reverses
This system solves both problems by using a **3-Phase Confirmation Process**:
**Phase 1: Trend Identification** → **Phase 2: Pullback Detection** → **Phase 3: Reversal Confirmation**
---
## 🔧 How It Works
### 1. Triple EMA Framework (The Foundation)
Unlike traditional single EMA systems, this indicator uses **3 separate EMAs** with different purposes:
- **EMA Trend (default: 50)** - Determines the overall market direction
- Source: HL/2 for balanced trend reading
- Acts as the primary filter - we only trade in its direction
- **EMA High (default: 20)** - Dynamic resistance in uptrends
- Source: High prices for accurate resistance mapping
- Entry trigger for bullish setups when price closes above it
- **EMA Low (default: 20)** - Dynamic support in downtrends
- Source: Low prices for accurate support mapping
- Entry trigger for bearish setups when price closes below it
**Why 3 EMAs?**
- Single EMA can't distinguish between trend and pullback zones
- Two EMAs (like MACD) don't provide clear entry/exit levels
- Three EMAs create a **channel system** that identifies both trend direction AND optimal entry zones
### 2. Pattern Recognition Engine
The system detects two high-probability reversal patterns:
#### Engulfing Patterns
- **Bullish Engulfing**: Previous bearish candle completely engulfed by bullish candle
- **Bearish Engulfing**: Previous bullish candle completely engulfed by bearish candle
- Validates: Strong momentum reversal with volume confirmation
#### Pin Bar Patterns
- **Bullish Pin Bar (Hammer)**: Long lower wick (60%+ of total range) rejecting lower prices
- **Bearish Pin Bar (Inverted Hammer)**: Long upper wick (60%+ of total range) rejecting higher prices
- Validates: Institutional rejection at support/resistance levels
**Pattern Quality Filter:**
- Body-to-wick ratio must meet minimum standards
- Checks previous candle momentum
- Requires trend alignment before signaling
### 3. Pullback Confirmation System
The system includes **5 mandatory conditions** before generating a signal:
#### For Bullish Signals (BUY):
1. ✅ Close > EMA Trend (uptrend confirmed)
2. ✅ EMA High > EMA Trend AND EMA Low > EMA Trend (healthy trend structure)
3. ✅ Bullish Engulfing OR Bullish Pin Bar (pattern detected)
4. ✅ Close > EMA High (breakout confirmation)
5. ✅ Optional: Low < EMA High (pullback occurred)
#### For Bearish Signals (SELL):
1. ✅ Close < EMA Trend (downtrend confirmed)
2. ✅ EMA High < EMA Trend AND EMA Low < EMA Trend (healthy trend structure)
3. ✅ Bearish Engulfing OR Bearish Pin Bar (pattern detected)
4. ✅ Close < EMA Low (breakdown confirmation)
5. ✅ Optional: High > EMA Low (pullback occurred)
**Additional Filters:**
- **Consecutive Bars Check**: Ensures pullback had momentum (1-5 bearish/bullish bars)
- **Signal Spacing**: Minimum 4 bars between signals to avoid noise
- **Confirmation Delay**: Signal appears only AFTER bar closes (no repainting)
---
## 💰 Automatic Risk-Reward Calculator
### Smart Position Sizing
When a signal triggers, the system automatically calculates:
**For Long Positions:**
- **Entry**: High of signal candle
- **Stop Loss**: Lower of last 2 candle lows (protects against false breakouts)
- **Target 1 (1R)**: Entry + 1x Risk
- **Target 2 (2R)**: Entry + 2x Risk
- **Target 3 (3R)**: Entry + 3x Risk
**For Short Positions:**
- **Entry**: Low of signal candle
- **Stop Loss**: Higher of last 2 candle highs
- **Targets**: Calculated based on risk multiple
### Auto-Remove Feature
Lines and labels automatically disappear when:
- Price hits Stop Loss (trade invalidated)
- Price reaches 3R target (trade complete)
This keeps your chart clean and focuses only on active trades.
---
## 📈 Multi-Timeframe Trend Analysis
### Confluence Trading
The built-in MTF trend box shows trend status across 7 timeframes simultaneously:
- M1, M5, M15, M30, H1, H4, D1
**Color Coding:**
- 🟢 **Green**: Uptrend (Price > EMA Trend AND EMAs aligned bullish)
- 🔴 **Red**: Downtrend (Price < EMA Trend AND EMAs aligned bearish)
- ⚪ **Gray**: No clear trend
**Why This Matters:**
- Trade with higher timeframe trends for better win rate
- Avoid counter-trend trades when all timeframes show same direction
- Identify divergences between timeframes for reversal opportunities
---
## 🎨 Customization Options
### EMA Settings
- Adjust periods for different trading styles (scalping vs swing trading)
- Choose price sources (HL/2, Close, HLC/3) for sensitivity tuning
### Pattern Selection
- Enable/disable Engulfing patterns
- Enable/disable Pin Bar patterns
- Trade only your preferred pattern type
### Signal Filters
- **Require Pullback**: Force pullback condition (stricter entries)
- **Consecutive Bars**: Set momentum requirement (1-5 bars)
### Display Options
- Show/hide EMA lines
- Show/hide signals
- Enable/disable alerts
- Customize Risk-Reward line styles and extensions
---
## 📋 How to Use This Indicator
### Step 1: Identify the Trend
- Wait for price to establish clear direction relative to EMA Trend (50)
- Check MTF box to confirm higher timeframe alignment
### Step 2: Wait for Pullback
- In uptrend: Watch for price to pull back toward EMA High
- In downtrend: Watch for price to pull back toward EMA Low
### Step 3: Pattern Confirmation
- Look for Engulfing or Pin Bar pattern (triangle/diamond markers)
- Ensure pattern forms at or near the EMA High/Low zone
### Step 4: Entry & Risk Management
- Enter when signal appears (after bar closes)
- Use displayed Stop Loss and Take Profit levels
- Consider partial profits at 1R and 2R, let remainder run to 3R
### Step 5: Trade Management
- If price hits SL, lines disappear automatically (trade invalidated)
- If price reaches 3R, lines disappear (trade complete)
- Consider trailing stop after 1R is reached
---
## ⚙️ Recommended Settings
### For Scalping (M1-M5)
- EMA Trend: 20-30
- EMA High/Low: 10-15
- Require Pullback: OFF
- Consecutive Bars: 1
### For Day Trading (M15-H1)
- EMA Trend: 50 (default)
- EMA High/Low: 20 (default)
- Require Pullback: ON
- Consecutive Bars: 2-3
### For Swing Trading (H4-D1)
- EMA Trend: 100-200
- EMA High/Low: 50
- Require Pullback: ON
- Consecutive Bars: 3-5
---
## ✅ What Makes This Script Original
### 1. Systematic Approach
This isn't just a collection of indicators. It's a **complete trading system** with:
- Defined entry rules (5-point confirmation checklist)
- Automatic risk management (SL/TP calculation)
- Trade validation (consecutive bars, signal spacing)
### 2. Smart EMA Framework
The 3-EMA system creates a **dynamic channel** that adapts to market conditions:
- Trend EMA = Direction filter
- High/Low EMAs = Entry/Exit zones
- Together they form a "trade zone" that standard EMAs can't provide
### 3. Pattern Quality Control
Not all Engulfing or Pin Bar patterns are equal. This system:
- Validates body-to-wick ratios
- Checks previous candle momentum
- Requires trend alignment before signaling
### 4. Auto Risk-Reward Management
Most indicators just show signals. This one:
- Calculates exact entry prices
- Places stop loss at optimal location (lower of 2 lows)
- Projects 3 profit targets based on risk
- Auto-removes when trade is complete/invalidated
### 5. No Repainting
- All signals appear AFTER bar closes
- No future data leaking
- What you see in backtest = what you get in real-time
---
## 🚨 Alerts
Built-in alerts notify you when:
- Bullish signal confirmed
- Bearish signal confirmed
Alerts fire once per bar (no spam) and only after bar closes (no false alerts).
---
## 📊 Best Practices
### ✅ DO:
- Trade in direction of higher timeframe trends
- Wait for full confirmation (all 5 conditions met)
- Use proper position sizing (1-2% risk per trade)
- Let winners run to at least 2R
### ❌ DON'T:
- Trade against major trend on MTF box
- Enter before signal bar closes
- Ignore the Stop Loss level
- Overtrade - respect the 4-bar minimum spacing
---
## 🔍 Limitations
This indicator is a **tool**, not a crystal ball:
- No indicator wins 100% of the time
- False signals occur in choppy/ranging markets
- Best results in trending conditions
- Requires proper risk management
- Should be combined with fundamental analysis and market context
---
## 📚 Educational Value
This script teaches:
- How to combine trend following with mean reversion
- Pattern recognition and validation
- Risk-reward ratio calculation
- Multi-timeframe analysis
- Proper trade entry timing
---
## 🎓 Credits & Disclaimer
**Original Work**: All code written from scratch
**Methodology**: Based on classical technical analysis principles (EMA crossovers, candlestick patterns, support/resistance)
**Disclaimer**: This indicator is for educational purposes. Past performance does not guarantee future results. Always practice proper risk management.
---
## 📞 Support
If you find this indicator helpful:
- Leave a review
- Share with fellow traders
- Provide feedback for improvements
**Note**: This is a closed-source script to protect the proprietary signal logic and filtering algorithms. The description above provides comprehensive understanding of the methodology without revealing exact implementation details.
---
**Version**: 1.0
**Pine Script Version**: 5
**Type**: Indicator (Overlay)
**Category**: Trend Following + Pattern Recognition
---
*Happy Trading! 🚀*
# 🇹🇭 คู่มือภาษาไทย / Thai Guide
# Trade Pull Back - คู่มือภาษาไทย
## 📊 ภาพรวม
**Trade Pull Back** เป็นระบบเทรด Pullback ที่ผสมผสานการเทรดตามเทรนด์กับการจับจังหวะเข้าออเดอร์ด้วย Candlestick Pattern พร้อมคำนวณ Risk-Reward อัตโนมัติ
---
## 🎯 หลักการทำงาน
### ทำไมระบบนี้ได้ผล?
แก้ปัญหา 2 ข้อหลักของเทรดเดอร์:
1. **เข้าเร็วเกินไป** - เข้าก่อน Pullback เสร็จ
2. **เข้าช้าเกินไป** - พลาดโมเมนตัมหลังกลับตัว
**วิธีแก้**: ใช้กระบวนการยืนยัน 3 ขั้นตอน
- **ขั้น 1**: ระบุเทรนด์ → **ขั้น 2**: ตรวจจับ Pullback → **ขั้น 3**: ยืนยันการกลับตัว
---
## 🔧 ส่วนประกอบหลัก
### 1. ระบบ EMA 3 เส้น
ต่างจาก EMA ทั่วไป ระบบนี้ใช้ 3 เส้นที่มีหน้าที่แยกกัน:
- **EMA Trend (50)** - กำหนดทิศทางเทรนด์หลัก
- **EMA High (20)** - แนวต้านไดนามิก (สำหรับ Buy)
- **EMA Low (20)** - แนวรับไดนามิก (สำหรับ Sell)
**ทำไมต้อง 3 เส้น?**
- 1 เส้น = แยกเทรนด์กับ Pullback ไม่ได้
- 2 เส้น = ไม่มีจุด Entry/Exit ชัดเจน
- 3 เส้น = สร้าง Channel ที่บอกทั้งเทรนด์และโซนเข้าออเดอร์
### 2. ตรวจจับ Pattern
ระบบตรวจจับ 2 Pattern หลัก:
**Engulfing (แท่งกลืน)**
- Bullish: แท่งเขียวกลืนแท่งแดงทั้งหมด
- Bearish: แท่งแดงกลืนแท่งเขียวทั้งหมด
**Pin Bar (แท่งหาง)**
- Bullish: หางล่างยาว 60%+ ของช่วงทั้งหมด
- Bearish: หางบนยาว 60%+ ของช่วงทั้งหมด
### 3. เงื่อนไขยืนยันสัญญาณ (5 ข้อ)
**สัญญาณ Buy:**
1. ✅ ราคาปิด > EMA Trend (เทรนด์ขาขึ้น)
2. ✅ EMA High และ Low เหนือ EMA Trend (โครงสร้างดี)
3. ✅ เกิด Bullish Engulfing หรือ Pin Bar
4. ✅ ราคาปิด > EMA High (ยืนยัน Breakout)
5. ✅ ตัวเลือก: มี Pullback มาแตะ EMA High
**สัญญาณ Sell:**
1. ✅ ราคาปิด < EMA Trend (เทรนด์ขาลง)
2. ✅ EMA High และ Low ใต้ EMA Trend (โครงสร้างดี)
3. ✅ เกิด Bearish Engulfing หรือ Pin Bar
4. ✅ ราคาปิด < EMA Low (ยืนยัน Breakdown)
5. ✅ ตัวเลือก: มี Pullback มาแตะ EMA Low
**ตัวกรองเพิ่มเติม:**
- ต้องมีแท่งติดกัน 1-5 แท่ง (กำหนดได้)
- ห่างสัญญาณก่อนหน้าอย่างน้อย 4 แท่ง
- สัญญาณปรากฏหลังแท่งปิดเท่านั้น (ไม่ Repaint)
---
## 💰 คำนวณ Risk-Reward อัตโนมัติ
เมื่อสัญญาณเกิด ระบบคำนวณให้อัตโนมัติ:
**Long Position:**
- Entry = High ของแท่งสัญญาณ
- Stop Loss = Low ที่ต่ำกว่าของ 2 แท่งล่าสุด
- Target = 1R, 2R, 3R
**Short Position:**
- Entry = Low ของแท่งสัญญาณ
- Stop Loss = High ที่สูงกว่าของ 2 แท่งล่าสุด
- Target = 1R, 2R, 3R
**ลบอัตโนมัติ:** เส้นหายเมื่อราคาชน SL หรือถึง 3R
---
## 📈 กล่องเทรนด์หลาย Timeframe
แสดงเทรนด์พร้อมกัน 7 Timeframe:
- M1, M5, M15, M30, H1, H4, D1
**สีแสดงผล:**
- 🟢 เขียว = Uptrend
- 🔴 แดง = Downtrend
- ⚪ เทา = ไม่มีเทรนด์
**ประโยชน์:** เทรดตาม Timeframe ใหญ่เพื่อเพิ่ม Win Rate
---
## 📋 วิธีใช้งาน (5 ขั้นตอน)
1. **ระบุเทรนด์** - เช็คราคาเทียบกับ EMA Trend และกล่อง MTF
2. **รอ Pullback** - เฝ้าราคา Pullback มาที่ EMA High/Low
3. **เช็ค Pattern** - มองหาลูกศรสามเหลี่ยม (Engulfing) หรือเพชร (Pin Bar)
4. **เข้าออเดอร์** - เข้าเมื่อสัญญาณปรากฏ ใช้ SL/TP ที่แสดง
5. **จัดการเทรด** - เส้นจะหายเองเมื่อชน SL หรือถึง 3R
---
## ⚙️ การตั้งค่าแนะนำ
**Scalping (M1-M5)**
- EMA Trend: 20-30
- EMA High/Low: 10-15
- Require Pullback: ปิด
**Day Trading (M15-H1)**
- EMA Trend: 50 (ค่าเริ่มต้น)
- EMA High/Low: 20 (ค่าเริ่มต้น)
- Require Pullback: เปิด
**Swing Trading (H4-D1)**
- EMA Trend: 100-200
- EMA High/Low: 50
- Require Pullback: เปิด
---
## ✅ จุดเด่นที่แตกต่าง
1. **เป็นระบบสมบูรณ์** - ไม่ใช่แค่รวม Indicator
2. **EMA 3 เส้นสร้าง Channel** - บอกทั้งเทรนด์และโซนเข้า
3. **ตรวจสอบคุณภาพ Pattern** - ไม่ใช่ทุก Pattern ที่ให้สัญญาณ
4. **คำนวณ RR อัตโนมัติ** - วาง SL/TP ให้เลย
5. **ไม่ Repaint** - สัญญาณปรากฏหลังแท่งปิดเท่านั้น
---
## 📊 ควรทำ / ไม่ควรทำ
### ✅ ควรทำ:
- เทรดตามเทรนด์ Timeframe ใหญ่
- รอยืนยันครบ 5 เงื่อนไข
- เสี่ยง 1-2% ต่อเทรด
- ปล่อยกำไรไปอย่างน้อย 2R
### ❌ ไม่ควรทำ:
- เทรดทวนเทรนด์ในกล่อง MTF
- เข้าก่อนแท่งปิด
- ละเลย Stop Loss
- เทรดบ่อยเกินไป
---
## 🔍 ข้อจำกัด
- ไม่มี Indicator ไหนชนะ 100%
- สัญญาณผิดพลาดเกิดในตลาด Sideways
- ผลดีสุดในตลาดที่มีเทรนด์ชัด
- ต้องใช้ Money Management
- ควรดูปัจจัยพื้นฐานประกอบ
---
## 🎓 คำเตือน
**Disclaimer**: อินดิเคเตอร์นี้สำหรับการศึกษา ผลในอดีตไม่รับประกันอนาคต ใช้ Risk Management ที่เหมาะสมเสมอ
---
**เวอร์ชั่น**: 1.0
**Pine Script**: v5
**ประเภท**: Indicator (Overlay)
*Happy Trading! 🚀*
## Screenshots
**Bearish Signals with Risk-Reward:**
! (drive.google.com)
**Bullish Signal with Risk-Reward:**
! (drive.google.com)
**Multi-Timeframe Trend Box:**
! (drive.google.com)
**Settings Panel:**
! (drive.google.com)
Liquidity Sweep ReversalThe Liquidity Sweep Reversal indicator is a sophisticated price-action-based tool designed for TradingView that identifies high-probability reversal setups by combining institutional liquidity concepts with session-based market structure. It detects potential reversals after price "sweeps" key support/resistance levels—such as prior day/week highs and lows or session extremes (Asian, London, New York)—followed by a rejection pattern.
The core logic revolves around two main signal types:
CISD (Close Inside, Sweep, Divergence) patterns that confirm liquidity grabs on higher timeframes.
Engulfing candlestick reversals occurring shortly after a touch of a key level within a defined lookback window.
To enhance relevance and reduce noise, the indicator optionally restricts signals to high-volatility “Killzone” sessions—including Asian, London, and New York AM/PM overlap periods—where institutional activity is typically concentrated.
Users can fully customize:
Timezone and higher timeframe (HTF) settings
Which key levels to monitor (PDH, PDL, PWH, PWL, session highs/lows)
Visual styling (line types, colors, labels)
Signal sensitivity (max bars after touch, signal size)
Display options (background highlights, level visibility, historical signal filtering)
Additionally, the script draws vertical lines for today’s and tomorrow’s London (08:00 CET) and New York (09:30 EST) market opens to provide contextual reference.
This tool is ideal for traders using auction market theory, order flow, or institutional footprint strategies who seek confluence between liquidity pools, session structure, and price rejection.
kiss and flay strategyfor more details contact us on telegram , this is trend following strategy , you can trade in 3&5 min time frame in all segments
Smart CRT Indicator📌 Smart CRT Indicator – Spot Trend Reversals and Continuations with Precision
The Smart CRT Indicator is a versatile price action tool that identifies Candle Range Trap (CRT) patterns—powerful setups that often precede either trend reversals or breakout continuations.
It detects and visualizes market conditions where price gets "trapped" within a prior range or breaks out deceptively, giving traders early insight into potential directional moves.
🔍 Key Features:
✅ Bullish & Bearish CRT Signals
Accurately spots both reversal and continuation setups using CRT logic across three core patterns.
✅ Flexible Range Close Filter
Customize how deeply the second candle closes within the first candle's range to fine-tune signal quality.
✅ Trend Filter (Optional)
Choose whether to only show signals aligned with the dominant trend, using a customizable SMA filter.
✅ Visual Range Mapping
Automatically draws range lines to mark key price zones for CRT patterns. Adjustable style, color, and width.
✅ Real-Time Alerts
Get notified instantly when a new CRT pattern appears on your chart.
🧠 CRT Pattern Types Detected:
Inside Bar CRT: A compression pattern inside a larger range that signals potential breakout or reversal.
Multi-Candle CRT: A group of smaller candles shrinking inside an anchor candle—often a sign of building momentum.
Purge CRT: A deceptive breakout beyond the previous candle’s range, followed by an immediate reversal.
⚙️ Best For:
Traders seeking trend continuation breakout setups
Traders looking to fade false moves or catch reversals
Price action traders who rely on candle structure and traps
Swing, intraday, or even scalping strategies
🧩 Tip:
Combine CRT signals with Key Levels, FVG, support/resistance or order block zones for high-probability confluence entries.
IBOV VTThe IBOV VT is a market “internal strength detector” that reveals:
What it measures:
How many stocks are actually participating in the movement
Whether the rise/fall is “real” or “artificial”
Strength of consensus among leading stocks
Ideal time to enter/exit positions
🔍 Why it’s important:
IBOVESPA may rise, but only 2-3 stocks “carrying” = DANGEROUS
IBOVESPA may fall, but most stocks remain persistent = OPPORTUNITY
📈 HOW TO ANALYZE THE INDICATOR
🟢 HIGH WIDTH (60-100%)
Meaning: 7-12 stocks rising out of the 12 monitored
✅ What it indicates:
Healthy market with broad participation
Sustainable uptrend
Low risk of sudden reversal
Favorable time for long positions
📊 Visual signals:
Blue line above 60%
Light green background without chart
Signal: 🟢 MAY BUY
🔴 LOW WIDTH (0-40%)
Meaning: 0-5 rising stocks out of 12 monitored
⚠️ What it indicates:
Weak market with seller pressure
Downtrend or correction
High risk for long positions
Time for protection or selling
📊 Visual signals:
Red line below 40%
Light red background on the chart
Signal: 🔴 MAY SELL
⚪ NEUTRAL WIDTH (40-60%)
Meaning: 5-7 rising stocks out of 12 monitored
What it indicates:
Undefined market without consensus
Moment of consolidation
Wait for direction to be defined
Avoid risky trades
📊 Visual signals:
Line between buy/sell zones
No colored background
Signal: ⚪ WAIT
SANGAM ENTRYThis setup is highly effective in helping traders catch entries before a major move begins. When all the LINES converge and merge together, it signals an opportunity to take buy or sell entries with low risk and high reward. It serves as one of the best confirmations for both trend continuation and breakout trades. Many traders can benefit from this approach, as it is absolutely simple, practical, and easy to manage when planning their entries.
OHLC Session ProjectorOHLC Session Projector
Clean, session-aware OHLC levels — projected to a right-side rail for instant context.
Define up to four intraday sessions (chart timezone). While a session is live, the indicator draws a right-offset rail with O/H/L/C ticks and tiny labels, keeping price candles uncluttered. When the session closes, values freeze and the entire block (rail + ticks + labels, and optionally the box) is projected to the right by a user-set distance for crystal-clear levels.
Why traders use it
Fast read of intraday structure. See each session’s opening print, the true extremes, and settlement at a glance.
Clarity during the session. Live rail shifts to the right so bars stay clean.
Consistent post-session levels. Projected rails mark where reactions tend to happen next session.
Key features
Sessions: Up to 4 custom time ranges (uses chart timezone).
Right-rail projector:
Vertical rail spanning session H↔L
Ticks: O/C (solid), H/L (dashed)
Labels: O/H/L/C with optional price, offset to the right
Live Clean Mode: Shift the live rail by N bars to the right (configurable).
Session Box (optional): With separate live vs final styling (fade while live, solid when closed).
Projection: After session close, freeze values and project rail + ticks + labels + box to the right by extendBars.
Styling controls: Colors, widths, tick lengths, label offset.
No repainting of closed values: H/L/O/C are finalized at session end. (During the session, H/L/C update in real time—as expected.)
How it works
While in session, the script tracks O/H/L/C, draws a right-offset rail and ticks, and updates labels live.
On session close, values are frozen and the whole rail block is repositioned to the projected location.
Accumulation → Manipulation → Distribution (AMD
The graphic shows a common intraday sequence across sessions:
Accumulation blue : price ranges and builds liquidity.
Manipulation red : a quick sweep/false break as sessions hand off.
Distribution green : the real directional move that follows.
How the OHLC Session Projector helps
Projects each session’s Open/High/Low/Close to a clean right-side rail, so you can see when manipulation sweeps prior O/H/L and where distribution is likely to run.
Freezes levels at session close and carries them forward as targets (retests of Open, runs to High/Low).
“Live Clean” keeps rails offset during the session, letting you track AMD without clutter while price is developing.
Credits & disclaimer
Built for educational purposes. Not financial advice. Trade responsibly.
Supply Zone & Demand M15Supply Zone & Demand M15
This indicator automatically detects and plots supply and demand zones based on 15-minute pivots and impulse strength.
🔎 Features
Multi-timeframe visibility: Zones are detected on M15 pivots but can be viewed on any lower timeframe (M1, M5, etc.).
Zone validation: Zones appear only after a strong impulsive move, measured against ATR.
Retest counting: Each time price retests a zone, a counter is displayed.
Retests can be merged by time window (No merge, 30 minutes, or 1 hour).
Zone merging: Nearby overlapping zones are automatically combined with a tolerance setting.
Configurable display: Choose between immediate display of zones or only after N retests.
Customizable style: Full control over colors, extension to the left, and max number of zones kept.
⚙️ Settings
Pivot strength: Minimum bars for swing highs/lows.
Impulse filter: Require ATR-based momentum before validating a zone.
Zone width: Defined as a multiple of ATR.
Retest merge: Select None, 30 minutes, or 1 hour.
Invalidation: Option to remove zones once broken.
Display mode: Show zones immediately or only after the required number of retests.
✅ Use Cases
Identify high-probability reversal areas.
Track how many times a zone has been retested.
Spot confluence when historical zones align with current price action.
⚠️ Disclaimer: This indicator is a technical tool, not financial advice. Always combine with proper risk management.
Harry Dunn Volatility BandsEnter strike price and 2 percentage numbers to automatically calculate and draw volatility bands on chart.
Level Founder indicatorQuesto strumento, ideato per l'individuazione dei livelli orizzontali sensibili si prepone l'obiettivo di semplificare la lettura tecnica dei grafici. Alla base di questo indicatore c'è il concetto di volatilità, inteso come scontro tra domanda ed offerta, come escursione delle forze nel campo di battaglia fino alla determinazione del prezzo finale di ogni candela. Di fatto, andando a cogliere quella che è la volatilità candela per candela, l'indicatore la calcola in termini assoluti rendendola un numericamente comparabile, in un range tra 0 e 100. Quando questo valore tocca i 100 si genera un picco di volatilità, il quale va ad identificare un punto di attenzione sul grafico di uno strumento. In corrispondenza di questi picchi si osserva dove la battaglia tra compratori e venditori si è conclusa, ovvero dove domanda ed offerta si sono incontrati per definire un prezzo: la chiusura di candela. In corrispondenza di tale prezzo si ha, quindi, un accordo certo tra domanda ed offerta dopo un periodo di contrattazione volatile, andando a certificare quello che è un livello di prezzo "sudato" per un determinato sottostante. Tale soglia si traduce in un livello orizzontale sensibile, che in futuro (avendo il mercato memoria degli scontri passati) potrà comportarsi da supporto o da resistenza, a seconda della situazione. In breve quindi, si traccia una linea orizzontale in corrispondenza delle chiusure di candela che condividono un picco sull'indicatore "Level Founder Indicator". Funziona su ogni time-frame e sottostante.
N.B. A ridosso di questi livelli si possono cercare pattern per l'operatività oppure cercare delle rotture di questi livelli per delle conferme/inversioni, spaziando dal trading intraday all'investimento di lungo periodo.
ENGLISH VERSION:
This tool, designed to identify sensitive horizontal levels, aims to simplify the technical reading of charts. This indicator is based on the concept of volatility, understood as the clash between supply and demand, the oscillation of forces on the battlefield until the final price of each candlestick is determined. By capturing the volatility candlestick by candlestick, the indicator calculates it in absolute terms, making it numerically comparable, within a range between 0 and 100. When this value reaches 100, a volatility spike is generated, which identifies a point of focus on an instrument's chart. At these peaks, we observe where the battle between buyers and sellers has concluded, that is, where supply and demand have met to define a price: the candlestick's close. At this price, therefore, a definite agreement between supply and demand occurs after a period of volatile trading, certifying what is a "hard-earned" price level for a given underlying asset. This threshold translates into a sensitive horizontal level, which in the future (given the market's memory of past clashes) could act as support or resistance, depending on the situation. In short, a horizontal line is drawn at the candlestick closes that share a peak on the "Level Founder Indicator." It works on any timeframe and underlying asset.
N.B.: Near these levels, you can look for trading patterns or look for breakouts of these levels for confirmations/reversals, ranging from intraday trading to long-term investing.
Quarter Strength Table (3M) [CHE] Quarter Strength Table (3M) — quarterly seasonality overview for the current symbol
Is there seasonality in certain assets? Some YouTubers claim there is—can you test it yourself?
Summary
This indicator builds a compact table that summarizes quarterly seasonality from three-month bars. It aggregates the simple return of each historical quarter, counts observations, computes the average return and the win rate for each quarter, and flags the historically strongest quarter. The output is a five-column table rendered on the chart, designed for quick comparison rather than signal generation. Because it processes only confirmed higher-timeframe bars, results are stable once a quarter has closed.
Motivation: Why this design?
Seasonality tools often mix intraperiod estimates with live bars, which can lead to misleading flips and inconsistent statistics. The core idea here is to restrict aggregation to completed three-month bars only and to deduplicate events by timestamp. This avoids partial information and double counting, so the table reflects a consistent, closed-bar history.
What’s different vs. standard approaches?
Baseline: Typical seasonality studies that compute monthly or quarterly stats directly on the chart timeframe or update on live higher-timeframe bars.
Architecture differences:
Uses explicit higher-timeframe requests for open, close, time, and calendar month from three-month bars.
Confirms the higher-timeframe bar before recording a sample; deduplicates by the higher-timeframe timestamp.
Keeps fixed arrays of length four for the four quarters; renders a fixed five-by-five table with zebra rows.
Practical effect: Once a quarter closes, counts and averages are stable. The “Best” column marks the highest average quarter so you can quickly identify the historically strongest period.
How it works (technical)
On every chart bar, the script requests three-month open, close, time, and the calendar month derived from that bar’s time. When the three-month bar is confirmed, it computes the simple return for that bar and maps the month to a quarter index between zero and three. A guard stores the last seen three-month timestamp to avoid duplicate writes. Per quarter, it accumulates the sum of returns, the number of samples, and the number of positive samples. From these, it derives average return and win rate. The table header is created once on the first bar; content updates only on the last visible chart bar for efficiency. No forward references are used, and lookahead is disabled in all higher-timeframe requests to avoid peeking.
Parameter Guide
Percent — Formats values as percentages. Default: true. Trade-off: Easier visual comparison; disable if you prefer raw unit returns.
Decimals — Number of digits shown. Default: two. Bounds: zero to six. Trade-off: More digits improve precision but reduce readability.
Show table — Toggles table rendering. Default: true. Trade-off: Disable when space is limited or for batch testing.
Reading & Interpretation
The table shows rows for Q1 through Q4 and columns for Count, Avg Ret, P(win), and Best.
Count: Number of completed three-month bars observed for that quarter.
Avg Ret: Average simple return across all samples in that quarter.
P(win): Share of samples with a positive return.
Best: An asterisk marks the quarter with the highest average return among those with at least one sample.
Use the combination of average and win rate to judge both magnitude and consistency. Low counts signal limited evidence.
Practical Workflows & Combinations
Trend following filter: Favor setups when the upcoming or active quarter historically shows a positive average and a stable win rate. Combine with structure analysis such as higher highs and higher lows to avoid fighting dominant trends.
Exits and risk: When entering during a historically weak quarter, consider tighter risk controls and quicker profit taking.
Multi-asset and multi-timeframe: The default settings work across most liquid symbols. For assets with sparse history, treat results as low confidence due to small sample sizes.
Behavior, Constraints & Performance
Repaint and confirmation: Aggregation occurs only when the three-month bar is confirmed; values do not change afterward for that bar. During an open quarter, no new sample is added.
Higher-timeframe usage: All higher-timeframe requests disable lookahead and rely on confirmation to mitigate repaint.
Resources: Declared `max_bars_back` is two thousand. Arrays are fixed at length four. The script updates the table only on the last visible bar to reduce work.
Known limits: Averages can be affected by outliers and structural market changes. Limited history reduces reliability. Corporate actions and contract rolls may influence returns depending on the symbol’s data source. This is a visualization and not a trading system.
Sensible Defaults & Quick Tuning
Starting values: Percent true; Decimals two; Show table true.
If numbers feel noisy: Decrease decimals to one to reduce visual clutter.
If you need raw values: Turn off Percent to display unit returns.
If the table overlaps price: Toggle Show table off when annotating, or reposition via your chart’s table controls.
What this indicator is—and isn’t
This is a historical summary of quarterly behavior. It visualizes evidence and helps frame expectations. It is not predictive, does not generate trade signals, and does not manage positions or risk. Always combine with market structure, liquidity considerations, and independent risk controls.
Inputs with defaults
Percent: true, boolean.
Decimals: two, integer between zero and six.
Show table: true, boolean.
Pine version: v6
Overlay: true
Primary outputs: Table with five columns and five rows.
Metrics/functions used: Higher-timeframe data requests, table rendering, arrays, bar state checks, month mapping.
Special techniques: Closed-bar aggregation, deduplication by higher-timeframe timestamp, zebra row styling.
Performance/constraints: Two thousand bars back, small fixed loops, higher-timeframe requests without lookahead.
Compatibility/assets/timeframes: Works on time-based charts across most assets with sufficient history.
Limitations/risks: Sample size sensitivity, regime shifts, data differences across venues.
Debug/diagnostics: (Unknown/Optional)
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
fartbombLinReg fit (history): solid line showing the best-fit linear trend over the last len bars.
Projected offset (visual): same line shifted h bars right so you can see direction.
Future projection (segments): the actual next-h forecast, drawn from the last bar.
Forecast made h bars ago: circle at each bar’s target showing what was predicted h bars earlier.
H / X markers: a hit if that earlier forecast fell inside the bar’s high–low range.