Market Structure Breakers indicator

Market Structure Breakers indicator

Introduction

Market structure analysis could be an essential tool for traders looking to identify critical points in price movements. Breakout points, both bullish and bearish, can provide valuable signals for trading decisions. In this article, we will introduce the Market Structure Breakers indicator, designed to detect and visualize these market structure breakouts on price charts.

The Market Structure Breakers indicator helps traders identify changes in market direction by marking key levels of pivots and breakouts. This allows users to anticipate potential future movements and adjust their strategies accordingly.

Description of the Indicator

The Market Structure Breakers is a technical indicator that identifies and marks breakouts in market structure. This indicator is based on the detection of high and low pivots to determine breakout points, thereby helping traders identify potential trend changes.

Objective of the Indicator

The objective of the Market Structure Breakers is to provide clear signals of breakouts in market structure, both bullish and bearish, by using pivots identified over a specific period. This allows traders to visualize critical points where the market might change direction.

Main Features and General Operation

  • Identification of Pivots: The indicator detects high and low pivots based on a user-defined period.
  • Detection of Market Structures: Marks bullish and bearish structure breakouts on the chart.
  • Visualization of Support and Resistance Events: Draws lines and symbols on the chart to indicate these key events.

The indicator uses a simple yet effective logic to determine pivot points and breakouts, providing a visual tool that facilitates the interpretation of price action.

Components of the Code

Explanation of Variables and Input Parameters

  • length: This parameter defines the period used to calculate high and low pivots. By default, it is set to 20.
  • $ph and $pl: Arrays that store detected high and low pivots.
  • $phx and $plx: Arrays that store the bar indices corresponding to the high and low pivots.
  • $lasty and $lastx: Arrays that store the last detected breakouts and their bar indices.
  • os: Variable indicating market status (bullish = 1, bearish = -1).
  • checkup and checkdw: Control variables to avoid duplication of support and resistance events.
  • phcross and plcross: Indicators of high and low pivot crosses.
  • breakdown and breakup: Indicators of bullish and bearish breakouts.

Description of Code Sections

Bullish Breaker Section

Calculation of High Pivots:

  • Detects points where the current price is lower than the highest price of a defined period, and if that high is higher than the previous and subsequent prices.

Testing for Bullish Market Structure:

  • Verifies if the closing price is higher than the last detected high pivot and draws a horizontal line on the chart.
  • Labels the bullish market structure breakouts with “MSB” (Market Structure Breaker) and support points with “MSS” (Market Structure Support).

Iterating Through Existing Bullish Structures:

  • Checks if the closing price falls below the last support level and draws a red dotted line on the chart to indicate a breakout.

Support Events:

  • Draws a black candle to indicate a support event when the price touches but does not break a previous support level.
Bearish Breaker Section

Calculation of Low Pivots:

  • Detects points where the current price is higher than the lowest price of a defined period, and if that low is lower than the previous and subsequent prices.

Testing for Bearish Market Structure:

  • Verifies if the closing price is lower than the last detected low pivot and draws a horizontal line on the chart.
  • Labels the bearish market structure breakouts with “MSB” and resistance points with “MSS”.

Iterating Through Existing Bearish Structures:

  • Checks if the closing price rises above the last resistance level and draws a green dotted line on the chart to indicate a breakout.

Resistance Events:

  • Draws a black candle to indicate a resistance event when the price touches but does not break a previous resistance level.

Configuration and Use

Adjusting Parameters

The Market Structure Breakers indicator has a main parameter that can be adjusted according to the trader’s needs:

  • Length: Defines the period used to calculate high and low pivots. The default value is 20, but it can be adjusted to suit different timeframes and trading styles.
// Example of how to adjust the length parameter
length = 20

Adjusting this parameter allows the trader to calibrate the indicator’s sensitivity to market fluctuations. A lower value will make the indicator more responsive to market movements, while a higher value will make it less sensitive to minor fluctuations.

Interpreting the Results

Bullish Breakout Signals

  • Green Lines: Indicate a bullish market structure breakout. These lines are drawn when the closing price exceeds the last detected high pivot.
  • Label “MSB”: Stands for “Market Structure Breaker” and is placed on the chart to indicate a bullish breakout point.
  • Label “MSS”: Stands for “Market Structure Support” and is placed on the chart to indicate a confirmed support point.

Visual Example of Bullish Signals

In the chart, you can see the green lines and the “MSB” and “MSS” labels clearly showing bullish breakouts and support points.

Bearish Breakout Signals

  • Red Lines: Indicate a bearish market structure breakout. These lines are drawn when the closing price falls below the last detected low pivot.
  • Label “MSB”: Stands for “Market Structure Breaker” and is placed on the chart to indicate a bearish breakout point.
  • Label “MSS”: Stands for “Market Structure Support” and is placed on the chart to indicate a confirmed resistance point.

Visual Example of Bearish Signals

In the chart, the red lines and the “MSB” and “MSS” labels clearly indicate bearish breakouts and resistance points.

Advantages and Limitations

Advantages of the Indicator

  • Visual Clarity: The Market Structure Breakers provides a clear and visual representation of market structure breakouts, making it easier to identify key points for decision-making.
  • Customization: Allows adjusting the length parameter to suit different trading styles and timeframes, enhancing its versatility.
  • Identification of Support and Resistance: Helps identify and mark support and resistance events, crucial for planning market entries and exits.
  • Applicability in Various Markets: Useful in multiple markets and timeframes, including stocks, forex, futures, and cryptocurrencies.

Limitations of the Indicator

  • Signal Lag: Like many technical indicators, it can experience some lag in signals, especially in volatile markets where prices change rapidly.
  • Parameter Dependence: The effectiveness of the indicator greatly depends on the length parameter setting. Inappropriate adjustments can lead to false or delayed signals.
  • Support and Resistance Events: Sometimes, support and resistance events can be less accurate in extremely volatile markets or with high price fluctuations.

Conclusion

The Market Structure Breakers is a powerful tool for any trader looking for a clear and effective way to identify breakouts in market structure. Its ability to mark key levels and provide visual signals helps traders make informed decisions and better plan their trading strategies.

Despite some limitations, the advantages of using this indicator, such as visual clarity and customization, make it a valuable addition to any trader’s toolkit. Properly adjusting the parameters and understanding its signals can significantly enhance a trader’s ability to identify and act on changes in market direction.

Complete Code

Below is the complete code for the Market Structure Breakers indicator in ProBuilder for ProRealTime:

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. KimmyMac • 210 days ago #

    Great work !! Thank you

  2. Razz • 203 days ago #

    Hello, thank you for your indicator.
    Can you please tell me how I can change the text size, it’s a bit too small for me.
    Thank you in advance

    • Iván • 201 days ago #

      Hi! you have all information about it here (https://www.prorealcode.com/documentation/drawtext/)

  3. Miro • 183 days ago #

    Mis felicitaciones por este indicador. Funciona muy bien en el corto plazo. Gracias gracias gracias

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Iván
1 month ago
Madrosat Bonjour Ivan je ne sais pas si je dois écrire en Français ,anglais ,espagnol ,il y a les 3 ...
Iván Bonjour, la vérité est que ce n'est pas aussi facile qu'il n'y paraît.... Un indicateur peut...
Madrosat Merci Ivan j'espère que ce jour viendra bientôt , je sais que ce n'est pas facile car les in...
Regisnew finaly the screener could be something like this for green blocks but it probably could be b...
efahmy the support and resistance colors become darker and darker with the time, could you please c...
Iván Hi. You can change colors in lines 75,76,91,92
Iván
8 months ago
Iván Hi, Sorry, but what do you mean?
luiskohnen Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias...
Diamant Bonsoir, L'un d'entre vous peut-il me donner les définissions de LL-HH-LH et HL. Merci d'av...
MrMagic This is amazing work. Well done, Ivan!
Regisnew Bonjour Ivan serait il possible de proposer un screener pour détecter les zones de support v...
lee Thank you!
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
ar Bonjour Ivan et merci pour ton partage, Est-il possible d'avoir ce code en ITF
YvesRobert Hi smp, how should I configure this indicator because everything is at zero -> High, Clos...
smp Hi, this is an end of day pivots indicator, so you need to find the end of day pivot info; t...
YvesRobert Thank you smp.
smp I also have an End Of Day (EOD) cash pivot indicator for use on cash markets; this indicator...
cdc.andersson Hej! Jag försöker lära mig att koda PRT. Jag vill testa en strategi med RSI-värde, ATR-värde...
Swingforfortune Du kan väl jämföra om open > close (röd) eller open < close (grön)
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.
Noobywan (My apologies for unformatted code, the formatting only works in forum or library posts not ...
Noobywan Hi FXTT, no problem for requests (as long as no one requests me singing), just usually it’s ...
JC_Bywan Bug fix at line 38, should be: if changebarre or (opentime[1]=start) then (same as in ...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
Bard Hi @Vonasi, this is an excellent tool! I noticed you times by 180 and was wondering why? W...
Bard I have no idea what is wrong with the posting on this website. I have problems editing posts...
Bard And now my first post displays okay? It literally had copies of my orig post all added toget...
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Vinks_o_7 Thanks again Vonasi !
Bard Thank you, this is a great tool @Vonasi, especially for those that used to like shorting Ind...
Aragorna Hi Vonasi, is there a reason why it does not work anymore in new version ePRT Platform? tha...
Juanjo Hola?. Exactamente cuál es su utilización?.
bolsatrilera Hola Juanjo, su principio esparecido a las bandas de Bollinguer.Las lineas de las bandas son...
Vonasi The indicator code can easily be adapted for use as a filter in strategies as well. For exam...
AVT Tested today in manual DAX trading (transcripted to MT and changed look into aka oszillator)...
Vonasi I think that short time frame charts will be too noisy for this indicator. One blue bar real...
Vonasi I forgot to mention in the description that Sunday pivot lines are ignored and Monday's pivo...
AVT Like that, simple and clear!
Vonasi Thanks AVT. I like simple - some people would say that I do simple very well! Sometimes you ...
Nicolas Please open a new forum topic, and respect the posting rules. Add a precise description of w...
FXTT ok will do, apologies, as I said I am new here. many thanks
Noobywan Version v2 including requested additions: https://www.prorealcode.com/prorealtime-indicators...
Trading_En_El_Ibex35 Para calcular el punto pivote y los niveles de soporte y resistencia para operar durante la ...
supertiti Hola mis disculpas, creia que tu eres Jose Antonio Madrigal ! gracias por las explicaci...
Trading_En_El_Ibex35 espero que las explicaciones te hayan sido de ayuda saludos

Top