TPB Market Indicator v1.0
User Manual – Production Release
Release Date: February 1, 2026
Version: 1.0 (Production)
Category: Trend Pullback Detection
Platform: MetaTrader 5
Developer: GomerAI LLC
Overview
TPB (Trend Pullback) detects entry opportunities when price pulls back within an established trend. Combines EMA crossover + ADX for trend, Bollinger Bands + Stochastic for pullback timing.
Signals: +1 (BUY in uptrend), -1 (SELL in downtrend), 0 (NO SIGNAL)
Visual Display
Separate window histogram showing continuous trend strength (0-100%):
- Gray bars: No clear trend (ranging market)
- Green bars: Uptrend detected (0-100% strength)
- Red bars: Downtrend detected (0-100% strength)
Never empty – always shows current trend state.
How It Works
Trend Detection:
- Fast EMA (default 12) vs Slow EMA (default 26)
- ADX confirmation (default 25 threshold)
- Green = Fast > Slow + ADX > threshold (uptrend)
- Red = Fast < Slow + ADX > threshold (downtrend)
Pullback Detection:
- Bollinger Bands (default 20, 2.0 std dev)
- Stochastic Oscillator (default 14,3,3)
- Signal fires when pullback completes and price resumes trend
Key Parameters
Trend Settings:
InpEMA_Fast: 12 (fast EMA period)InpEMA_Slow: 26 (slow EMA period)InpADX_Period: 14 (ADX calculation)InpADX_Threshold: 25 (min ADX for trend)
Pullback Settings:
InpBB_Period: 20 (Bollinger period)InpBB_Deviation: 2.0 (standard deviations)InpStoch_K: 14 (Stochastic %K)InpStoch_D: 3 (Stochastic %D)InpStoch_Slowing: 3 (Stochastic slowing)
Signal Interpretation
BUY Signal (+1):
- Uptrend confirmed (green bars, ADX > threshold)
- Price pulled back to support
- Stochastic hooked up from oversold
- Resume uptrend entry point
SELL Signal (-1):
- Downtrend confirmed (red bars, ADX > threshold)
- Price pulled back to resistance
- Stochastic hooked down from overbought
- Resume downtrend entry point
NO SIGNAL (0):
- No trend (ADX < threshold)
- Trend present but no pullback yet
- Pullback incomplete
Best Practices
- Wait for trend: Don’t trade pullbacks in ranging markets (gray bars)
- Confirm ADX: Higher ADX = stronger trend = better pullback trades
- Use with structure: Combine with LWSWING for structure confirmation
- Multiple timeframes: Check higher TF trend aligns with signal
- Risk management: Use stops below/above recent swing points
EA Integration
- Buffer 2: PullbackSignal (-1/0/+1) [EA READS]
- Buffer 3: PullbackStrength (0-100) [EA READS]
Quick Reference
| Histogram Color | Meaning | Action |
|---|---|---|
| Gray (low) | No trend / Ranging | Wait / Avoid |
| Green (high) | Strong uptrend | Look for BUY signals |
| Red (high) | Strong downtrend | Look for SELL signals |
Support: https://gomerai.com/support
© 2026 GomerAI LLC. All Rights Reserved.