Tradehook — Trading Automation Service
lowTechnical Indicator

IBOBAlgo

The IBOB Algorithm identifies two powerful candlestick patterns: Inside Bars (compression) and Outside Bars (expansion). These patterns represent fundamentally different market states and require different trading approaches.

TradingView Preview
See this algorithm in action on real charts
IBOBAlgo TradingView chart
Performance Metrics
Historical backtesting results
53.9%
Win Rate
1.27
Profit Factor
7.3%
Max Drawdown
$115
Avg Trade
Based on 293 trades

About This Algorithm

INSIDE/OUTSIDE BAR STRATEGY

Quick Facts:

  • Category: Candlestick Patterns / Breakout
  • Markets: All liquid markets
  • Timeframes: 15min, 1H, 4H, Daily

Overview

The IBOB Algorithm identifies two powerful candlestick patterns: Inside Bars (compression) and Outside Bars (expansion). These patterns represent fundamentally different market states and require different trading approaches.

Inside Bars signal consolidation and pending breakouts. Outside Bars signal volatility expansion and momentum. The algorithm trades both patterns with pattern-specific entry and exit logic.


How It Works

INSIDE BAR DETECTION An inside bar is completely contained within the previous bar:

  • High < High[1] AND Low > Low[1]
    • Signals market indecision and compression
    • Trade the breakout of the "mother bar" range

OUTSIDE BAR DETECTION An outside bar completely engulfs the previous bar:

  • High > High[1] AND Low < Low[1]
    • Signals volatility expansion and control change
    • Direction determined by close position

ENTRY LOGIC Inside Bar:

  • Wait for breakout of mother bar high/low
    • Direction determined by breakout direction

Outside Bar:

  • Enter immediately based on close direction
    • Bullish: Close in upper half of range
    • Bearish: Close in lower half of range

MULTI-BAR PATTERNS Track consecutive inside bars for tighter compression:

  • 2-3 consecutive inside bars = extreme compression
    • Larger expected move on breakout

Key Parameters

PATTERN SELECTION:

  • tradeInsideBars (true): Enable inside bar trading
    • tradeOutsideBars (true): Enable outside bar trading
    • minMotherBarATR (0.8): Minimum mother bar size

INSIDE BAR BREAKOUT:

  • breakoutBuffer (0.1): ATR multiple for breakout confirmation
    • maxBarsForBreakout (5): Expiration for inside bar setups

OUTSIDE BAR:

  • closePositionPct (50): Close must be in this % of range for direction
    • minOutsideBarATR (1.5): Minimum outside bar size

Best Use Cases

✅ DAILY INSIDE BARS for swing trade setups ✅ INTRADAY COMPRESSION before session opens ✅ OUTSIDE BARS for momentum continuation ✅ VOLATILITY REGIME detection

Customer Reviews

No reviews yet. Be the first to review this algorithm!
Technical Indicator
Requires Technical Indicator Plan

Subscribe to Technical Indicator or higher to access

Subscription Access

Get access to this indicator/strategy on TradingView through our invite-only system. Your TradingView account will be granted access.

One-Time Purchase

Own the complete Pine Script source code forever. Modify, customize, and use it on your own TradingView account.

$1,500
Subscribe to any tier to unlock one-time purchases

What you get with source code:

  • Complete Pine Script v5 source code
  • Lifetime ownership - no recurring fees
  • Full customization rights
  • Use on your own TradingView account
PlatformTradingView
Subscription AccessTradingView Invite
One-Time PurchaseSource Code
LicensePersonal Use

We Value Your Privacy

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Read our Privacy Policy for more information.