🪙
 Get student discount & enjoy best sellers ~$7/week

Three Inside Up

The Three Inside Up candlestick pattern is a powerful reversal signal that traders use to identify potential bullish turnarounds in the market. This article explores the Three Inside Up pattern in depth, covering its structure, psychology, practical applications, and more, to help traders master its use across stocks, forex, crypto, and commodities.

Introduction

The Three Inside Up pattern is a multi-candle formation that signals a potential reversal from a downtrend to an uptrend. Originating from Japanese candlestick charting techniques developed centuries ago, this pattern has become a staple in modern technical analysis. Its importance lies in its ability to provide early warning of a shift in market sentiment, making it a valuable tool for traders seeking to capitalize on trend reversals.

Historically, candlestick charting was pioneered by Japanese rice traders in the 18th century. Over time, these techniques spread to Western markets, where analysts recognized the predictive power of patterns like the Three Inside Up. Today, this pattern is widely used by traders across asset classes, from equities to cryptocurrencies, due to its reliability and clear visual cues.

Pattern Structure and Identification

The Three Inside Up pattern consists of three consecutive candles:

  • First Candle: A long bearish (red or black) candle, indicating strong selling pressure.
  • Second Candle: A smaller bullish (green or white) candle that opens and closes within the body of the first candle, signaling a pause or potential reversal in sentiment.
  • Third Candle: A bullish candle that closes above the close of the second candle, confirming the reversal.

The anatomy of each candle is crucial. The open, close, high, and low of each bar must align with the pattern's requirements. While the classic Three Inside Up is a three-candle formation, variations exist, such as the Three Inside Down (bearish counterpart) and patterns with slightly different proportions. The color of the candles is significant: a bullish reversal requires the second and third candles to be green or white, reinforcing the shift in momentum.

Psychology Behind the Pattern

The Three Inside Up pattern reflects a battle between bears and bulls. The first candle shows bears in control, pushing prices lower. The second candle's smaller body suggests that selling pressure is waning, and buyers are beginning to step in. By the third candle, bulls have gained the upper hand, driving prices above the previous close and signaling a potential trend reversal.

Retail traders often see this pattern as an opportunity to enter long positions, anticipating further upside. Institutional traders, on the other hand, may use it to confirm a shift in market structure before deploying larger capital. The emotions at play include fear among bears (who may rush to cover shorts) and growing confidence among bulls. Uncertainty can persist until the third candle confirms the reversal.

Types & Variations

The Three Inside Up belongs to the family of multi-candle reversal patterns. Related formations include the Three Inside Down (bearish reversal), Morning Star, and Bullish Engulfing. Strong signals occur when the pattern forms after a prolonged downtrend and the third candle closes well above the second. Weak signals may arise if the pattern appears in a choppy or sideways market, or if the third candle lacks conviction.

False signals and traps are common, especially in volatile markets. Traders should watch for confirmation from volume, momentum indicators, or subsequent price action to avoid being caught in a failed reversal.

Chart Examples

In an uptrend, the Three Inside Up is less significant, as it does not signal a reversal. In a downtrend, its appearance can mark the beginning of a new bullish phase. On small timeframes (1m, 15m), the pattern may occur frequently but with lower reliability. On daily or weekly charts, it carries more weight and can signal major turning points.

For example, in the forex market, a Three Inside Up on the EUR/USD daily chart after a sustained decline may precede a multi-day rally. In stocks, the pattern on a weekly chart of a blue-chip company can signal the end of a correction and the start of a new uptrend. In crypto, where volatility is high, confirmation from other indicators is essential.

Practical Applications

Traders use the Three Inside Up to time entries and exits. A common strategy is to enter a long position at the close of the third candle, with a stop loss below the low of the first candle. Risk management is crucial, as false signals can occur. Combining the pattern with moving averages, RSI, or MACD can improve reliability.

For example, a trader might wait for a Three Inside Up to form on the 4-hour chart of Bitcoin, then check if the RSI is oversold and the price is above the 50-period moving average before entering a trade. This multi-factor approach reduces the risk of whipsaws.

Backtesting & Reliability

Backtesting shows that the Three Inside Up has a higher success rate in trending markets, especially in stocks and commodities. In forex and crypto, where noise is higher, the pattern's reliability decreases unless combined with other filters. Institutions may use the pattern as part of larger algorithms, looking for clusters of reversal signals before acting.

Common pitfalls in backtesting include overfitting (optimizing for past data) and ignoring transaction costs. Traders should test the pattern across multiple assets and timeframes to gauge its true effectiveness.

Advanced Insights

Algorithmic traders incorporate the Three Inside Up into quant systems by coding rules for pattern recognition. Machine learning models can be trained to identify the pattern and predict its outcome based on historical data. In the context of Wyckoff or Smart Money Concepts, the pattern may signal the end of an accumulation phase and the start of a markup.

For example, a hedge fund might use a neural network to scan thousands of charts for Three Inside Up formations, then cross-reference with volume and order flow data to identify high-probability trades.

Case Studies

One famous example occurred in 2009, when several major stocks formed Three Inside Up patterns at the bottom of the financial crisis, preceding a multi-year bull market. In commodities, gold futures displayed the pattern in 2018 before a significant rally. In crypto, Ethereum's daily chart showed a textbook Three Inside Up in early 2020, leading to a sustained uptrend.

Recent case: In 2023, Tesla's stock formed a Three Inside Up on the weekly chart after a sharp decline, followed by a 30% rally over the next two months. This demonstrates the pattern's power when combined with broader market context.

Comparison Table

PatternSignalStrengthReliability
Three Inside UpBullish ReversalModerate-StrongHigh (in trends)
Bullish EngulfingBullish ReversalStrongModerate
Morning StarBullish ReversalVery StrongHigh

Practical Guide for Traders

  • Step 1: Identify a downtrend.
  • Step 2: Look for the Three Inside Up pattern (long bearish candle, small bullish candle inside, third bullish candle closing above second).
  • Step 3: Confirm with volume or indicators.
  • Step 4: Enter long at the close of the third candle.
  • Step 5: Place stop loss below the low of the first candle.
  • Step 6: Set target based on risk/reward ratio (e.g., 2:1).

Common mistakes include trading the pattern in sideways markets, ignoring confirmation, or risking too much on a single trade. Always use proper risk management and backtest your strategy.

Code Example

Below are code snippets for detecting the Three Inside Up pattern in various programming languages and trading platforms. Use these as a foundation for your own trading systems.

// C++ Example: Detect Three Inside Up
#include <vector>
bool isThreeInsideUp(const std::vector<double>& open, const std::vector<double>& close) {
    int n = open.size();
    if (n < 3) return false;
    bool bearish1 = close[n-3] < open[n-3];
    bool bullish2 = close[n-2] > open[n-2];
    bool bullish3 = close[n-1] > open[n-1];
    bool inside2 = open[n-2] > close[n-3] && close[n-2] < open[n-3];
    bool confirm3 = close[n-1] > close[n-2];
    return bearish1 && bullish2 && bullish3 && inside2 && confirm3;
}
# Python Example: Detect Three Inside Up
def is_three_inside_up(open_, close_):
    if len(open_) < 3:
        return False
    bearish1 = close_[-3] < open_[-3]
    bullish2 = close_[-2] > open_[-2]
    bullish3 = close_[-1] > open_[-1]
    inside2 = open_[-2] > close_[-3] and close_[-2] < open_[-3]
    confirm3 = close_[-1] > close_[-2]
    return bearish1 and bullish2 and bullish3 and inside2 and confirm3
// Node.js Example: Detect Three Inside Up
function isThreeInsideUp(open, close) {
  if (open.length < 3) return false;
  const n = open.length;
  const bearish1 = close[n-3] < open[n-3];
  const bullish2 = close[n-2] > open[n-2];
  const bullish3 = close[n-1] > open[n-1];
  const inside2 = open[n-2] > close[n-3] && close[n-2] < open[n-3];
  const confirm3 = close[n-1] > close[n-2];
  return bearish1 && bullish2 && bullish3 && inside2 && confirm3;
}
// Three Inside Up Pattern Detection
// This script highlights the Three Inside Up pattern on the chart
//@version=6
indicator("Three Inside Up Detector", overlay=true)
// Identify the three candles
bearish1 = close[2] < open[2]
bullish2 = close[1] > open[1]
bullish3 = close > open
// Second candle inside first
inside2 = open[1] > close[2] and close[1] < open[2]
// Third candle closes above second
confirm3 = close > close[1]
// Pattern condition
threeInsideUp = bearish1 and bullish2 and bullish3 and inside2 and confirm3
// Plot shape on chart
plotshape(threeInsideUp, title="Three Inside Up", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="3IU")
// MetaTrader 5 Example: Detect Three Inside Up
bool isThreeInsideUp(double &open[], double &close[], int i) {
    if (i < 2) return false;
    bool bearish1 = close[i-2] < open[i-2];
    bool bullish2 = close[i-1] > open[i-1];
    bool bullish3 = close[i] > open[i];
    bool inside2 = open[i-1] > close[i-2] && close[i-1] < open[i-2];
    bool confirm3 = close[i] > close[i-1];
    return bearish1 && bullish2 && bullish3 && inside2 && confirm3;
}

Conclusion

The Three Inside Up is a reliable reversal pattern when used in the right context. Trust it in trending markets with confirmation, but be cautious in choppy conditions. Combine it with other tools for best results, and always manage risk. Mastery of this pattern can give traders an edge in spotting early trend reversals.

Code implementations in C++, Python, Node.js, Pine Script, and MetaTrader 5 allow traders and developers to automate detection and integrate this pattern into their trading systems. Always backtest and validate before live trading.

Frequently Asked Questions about Three Inside Up

What is the Three Inside Up strategy in Pine Script?

The Three Inside Up strategy is a technical analysis technique used to identify potential buy signals in the financial markets.

It involves identifying three consecutive up candlesticks with increasing highs, indicating a strong upward trend.

How does the Three Inside Up strategy work?

The strategy works by looking for three consecutive days where the high of each day is higher than the previous day's high.

  • This indicates that the price has been making new highs, suggesting a strong upward trend.
  • By continuing to look for this pattern, traders can identify potential buy signals and enter long positions.

What are the benefits of using the Three Inside Up strategy?

The benefits of using the Three Inside Up strategy include:

  • Identifying strong upward trends early on
  • Reducing false signals from other technical indicators
  • Providing a clear and simple way to enter long positions

Is the Three Inside Up strategy suitable for all traders?

The Three Inside Up strategy is not suitable for all traders.

It requires a basic understanding of technical analysis and candlestick patterns.

Traders who are new to technical analysis may find it challenging to implement this strategy effectively.

Can the Three Inside Up strategy be used in combination with other strategies?

The Three Inside Up strategy can be used in combination with other strategies to enhance its performance.

For example, traders can use it in conjunction with a moving average crossover strategy to confirm buy signals.

This allows traders to combine the strengths of multiple strategies and increase their overall trading performance.



How to post a request?

Posting a request is easy. Get Matched with experts within 5 minutes

  • 1:1 Live Session: $60/hour
  • MVP Development / Code Reviews: $200 budget
  • Bot Development: $400 per bot
  • Portfolio Optimization: $300 per portfolio
  • Custom Trading Strategy: $99 per strategy
  • Custom AI Agents: Starting at $100 per agent
Professional Services: Trading Debugging $60/hr, MVP Development $200, AI Trading Bot $400, Portfolio Optimization $300, Trading Strategy $99, Custom AI Agent $100. Contact for expert help.
⭐⭐⭐ 500+ Clients Helped | 💯 100% Satisfaction Rate


Was this content helpful?

Help us improve this article