All indicators

Three Inside Up/down

By LuxAlgoJun 7, 2026

Three Inside Up/down is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

Three Inside Up/down waits for the harami to prove itself. A long opening body in the trend direction, a smaller counter-colored body contained inside it, then the completion candle: by default a close beyond the first candle's extreme, the strict reading of three inside up/down, here given its first purpose-built detector. Each pattern prints a box, a label and a dashed invalidation level at its far extreme; a later close back through it marks the failed reversal with a cross.

How to Trade the Three Inside Up/down?

  • 3 Inside Up: within a decline, a long dark candle, a contained white body, and a third close clearing the first candle's high, a confirmed bullish claim with invalidation at the pattern low.
  • 3 Inside Down: the mirror within an advance, invalidated at the pattern high.
  • Invalidation cross: a close back through the level negates the confirmed reversal. The cross label and matching alerts make failures as explicit as completions.

Three Inside Up/down Settings

  • Completion Rule (default Strict: Close Beyond First Candle's Extreme): the loose option accepts a close beyond the second candle's close.
  • Second Candle Color (default Opposite To First Candle): Any Contained Body drops the classical color requirement and accepts dojis.
  • Long Body Lookback (default 14) and Long Body Multiplier (default 1.0): the long-first-candle test.
  • Decisive Third Candle (default on) with Min Body/Range % (default 30): screens doji-like completion candles.
  • Trend Detection (default Moving Average; also Net Price Change or None) with Trend Length (default 50).
  • Show Invalidation Level (default on) with Maximum Level Duration (default 50), plus label and box toggles.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.