breakout crossover 4H 1D

May 26, 2021

Static chart image
Support and Resistance
Signals
Candlestick
Moving Averages
Patterns
Volatility

The breakout crossover 4H 1D indicator provides a multi-timeframe strategy designed to identify market breakouts by comparing price action across the 4-hour and Daily timeframes. By combining multi-timeframe analysis with candlestick pattern recognition, the tool aims to filter entries and provide a comprehensive view of support and resistance levels.

Usage

The Usage section describes how the script can be used to identify potential trade opportunities.

  • Multi-Timeframe Breakouts: The script monitors crossovers between the 4-hour and Daily data points. A crossover typically suggests a shift in momentum that may lead to a sustained breakout.
  • Daily Support & Resistance: A red horizontal line is plotted based on Daily timeframe data (open prices), acting as a dynamic baseline for support and resistance.
  • Pattern Filtering: The indicator includes several toggleable candlestick patterns (e.g., Engulfing, Harami, Pin Bars) to confirm breakouts. Trades are ideally opened when a crossover aligns with a bullish or bearish candlestick pattern.
  • Exit Strategy: Users can manage trades by closing positions at the next opposing signal or by targeting previous High/Low levels for profit taking.

Details

This tool utilizes security functions to fetch data from higher timeframes (Daily and 4-hour). It integrates several technical concepts:

  • Volatility Squeeze: Uses Bollinger Bands and Keltner Channels to determine if the market is in a "squeeze" or trending phase.
  • Zero Lag EMA: Employs a custom moving average variant to determine the immediate trend direction with minimal lag.
  • Fractal Levels: Identifies local peaks and valleys to establish horizontal breakout levels.
  • Price Action: Analyzes specific bar ratios and wick sizes to identify Reversal Pin Bars, Shaved Bars, and Inside/Outside bars.

Settings

Timeframe & General

  • tim: Input for the higher timeframe (default '1440' for Daily).
  • sim: Input for the secondary timeframe (default '370' for roughly 6-hour/custom period).

Bollinger Bands & Keltner Channels

  • BB Length/MultFactor: Adjusts the period and standard deviation for Bollinger Bands.
  • KC Length/MultFactor: Adjusts the period and multiplier for Keltner Channels.
  • Use TrueRange (KC): Toggle between True Range and High-Low range for Keltner Channel calculations.

Moving Average

  • Fast MA Type: Choose from various types including HullMA, EMA, ZEMA, and others.
  • Moving Average Length: The period used for the trend-following MA.

Candlestick Patterns

  • Use Dark Cloud/Piercing/Engulfing/Harami: Toggles individual candlestick pattern detection on or off.
  • PinBar Percentages: Defines the minimum wick-to-body ratio required to qualify a candle as a Pin Bar.
  • Alert Only Patterns Following Trend: When enabled, the script only signals patterns that align with the current MA trend.

FAQ

How do I interpret the horizontal lines?

The red horizontal line represents the Daily open price, serving as a primary level for support and resistance. Price crossing above or below this line often signals a change in daily bias.

Can I use this for automated trading?

The script is written as a strategy, meaning it generates "long" and "short" entry signals. You can use these signals to backtest performance or connect to an automated execution engine.

How can I access the breakout crossover 4H 1D?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.