market structure break & order block indicator
The Market Structure Break & Order Block by EmreKb is an AI-based indicator that provides a detailed analysis of the market structure, including break (MSB) and order blocks (OB). It was first introduced on June 19, 2022, and has since been updated to include additional features such as zigzag length, show/hide zigzag lines, and fib factor.
The indicator has been updated with several bug fixes, including a bug that caused an alarm delay and an added alert to MSB. Additionally, the timeframe option has been added, allowing users to select the current or higher timeframe for the zigzag line. The indicator also includes an option to remove the optional time zone selection feature and trigger an alarm when the price touches the box.
On May 7, 2023, the option to remove old/broken boxes was added, and the author is currently working on a more accurate alert system. The open-source script is published in true TradingView spirit, allowing traders to understand and verify it. Users can use the script for free, but reuse of the code in a publication is governed by House Rules.
The information and publications are not meant to be financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. The terms of use for this source code are subject to the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/.
The indicator’s settings include zigzag_len, show_zigzag, fib_factor, text_size, and delete_boxes. The indicator also includes a color scheme for the zigzag lines and a border color for the bob lines. The indicator is also available in the Be-OB and Be-MB display settings.
In summary, the Market Structure Break & Order Block by EmreKb is a valuable tool for traders looking to analyze the market structure and order blocks. It offers a comprehensive analysis of the market structure, allowing users to make informed decisions about their investments and trading strategies.
The code snippet is a simple Python script that uses the ‘be_bb_color’ color, ‘border_color’ color, and ‘text_color’ color to display zigzag lines in a grid. It uses a ‘trend’ variable to represent the trend and a ‘to_up’ variable to represent the ups and downs of the line. The ‘to_down’ variable is used to represent the downs and ups of the line. The ‘to_up’ variable is used to represent the highs and lows of the line. The ‘to_down’ variable is used to represent the lows and highs of the line.
The ‘trend’ variable is used to represent the current trend and the last trend up since it was set. The ‘last_trend_up_since’ variable is used to represent the last trend up since it was set. The ‘low_val’ variable is used to represent the last trend down since it was set. The ‘high_val’ variable is used to represent the last trend up since it was set.
The ‘f_get_high’ function is used to get the high and low values of the ‘trend’ variable. If the ‘trend’ variable is equal to 1, the function returns 0 if the trend is equal to 1, and 0 otherwise. The’show_zigzag’ function is used to show the zigzag lines.
The’market’ variable is used to represent the market value. The ‘bu_ob_index’ variable is used to represent the bar index of the’market’ variable
The ‘be_bb_index’ variable is used to represent the bar index of the’market’ variable
The code then creates a grid with the’market’ variable and the ‘bu_ob_index’ variable. The’market’ variable is used to represent the market value and the ‘bu_bb_index’ variable is used to represent the bar index of the’market’ variable.
Leave a Comment