OPEN-SOURCE SCRIPT

Market Structure (Intrabar) [LuxAlgo]

The Market Structure (Intrabar) indicator is designed to automatically detect and highlight real-time intrabar market structures, a core component of the Smart Money Concepts methodology.

🔶 USAGE

snapshot

The proposed indicator gives a detailed picture of the most recent candle lower timeframe trends, highlighting market structures within them.

This can be particularly useful to assess the price dynamic within the most recent candle. For example, we can see how pronounced a trend is by the number of opposite bullish/bearish market structures formed within the candle.

Users can select the intrabar timeframe of interest from the "Intrabar Timeframe" setting, using a timeframe significantly lower than the chart timeframe will return more intrabar candles and potentially more market structures.

🔹 Dashboard

snapshot

Users have access to a dashboard returning useful statistics such as the number of formed CHoCH's and BOS's from the intrabar prices. These can be indicative of how predominant a trend is within the intrabar data or if there exist multiple trends.

🔶 DETAILS

snapshot

Market structures allow determining trend continuations as well as trend reversals in the market through two distinct structures:

🔹 Change of Character (CHoCH)

A change of character (CHoCH) refers to a shift in the market behavior of a security that is driven by changes in the underlying supply and demand dynamics. CHoCH's are indicative of confirmed reversals.

🔹 Break of Structure (BoS)

The break of structure (BoS) refers to the point at which a key level of support or resistance is broken. BOS's are indicative of confirmed trend continuations.

🔶 SETTINGS

🔹Inside the Bar Market Structure

  • Intrabar Timeframe: Lower timeframe setting option, if set to 'Auto' the script will determine the lower timeframe based on the chart timeframe.
  • Intrabar Market Structure, Length: Toggles the visibility of the break of structures and change of characters. Length defines the detection length of the swing levels.
  • Intrabar Swing Levels: Toggles the visibility of the swing levels, including a color customization option for highs and lows.
  • Intrabar Statistics: Toggles the visibility of the dashboard. Some further statistical details are presented in the tooltips of the table cells


🔹 General

  • Market Structure Colors: Color customization option for the break of structure and change of character lines and labels.
  • Intrabar Candle Colors: Color customization option for intrabar candles.
  • Intrabar Candles Horizontal Offset: Adjusting the intrabar candles horizontal position
  • Dashboard: Dashboard position and size customization option


🔶 LIMITATIONS

Please note that seconds-based intervals are available for premium and professional plan holders, which implies that the seconds-based intervals usage of the indicator may not be available for all users depending on their subscription plan.

🔶 RELATED SCRIPTS

Smart-Money-Concepts
ICT-Concepts
BOSbreakofstructurechangeofcharacterchochictintrabarluxalgomarketstructuresmartmoneyconceptTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Also on:

Disclaimer