OPEN-SOURCE SCRIPT

MTF Break of Structure(BOS) & Market Structure Shift(MSS)

Mis à jour
Brief Introduction
Hello fellow traders and coders, let me introduce to you the ultimate multi time-frame market structure indicator to cater to all your market structure needs. The script is extremely customizable with a maximum of 3 time-frames since I love top down analysis as I’m sure you do to, so without wasting any more time here are the available features.

List of Features
  • A maximum of 3 time-frames that can all be customized independently.
  • The ability to change individual swing lengths that create the market structure plots, all time-frames will come set at 7, you can however set this to whatever you are comfortable with.
  • BOS (Break of Structure) and MSS (Market Structure Shift) functionality fo all the individual time-frames.
  • The option to show market structure in the form of HH (Higher highs), HL (Higher Lows), LL (Lower Lows) and LH(Lower Highs).
  • The ability to either use (highs and lows) or closes for breaks of structure and market structure shifts, meaning a break of structure will only be valid if either a high or close (depending on your chosen input) crosses above the previous high for a bullish structural break.
  • The ability to change lines types for BOS and MSS.
  • The ability to change text sizes for the all the plots.
  • The ability to change the colors for nearly anything on the chart independently of any other line or plot.
  • The ability to change any time-frame to the chart’s time-frame.
  • The ability to prevent lower time frame structure from showing on higher time frames which I don’t advice as it will provide you with an inaccurate perception of the lower time frame structure hence I’ve made the feature available but set it to false.
  • The script also has a section called general settings that will allow you to hide all the market structure plots as well as all the lines on the chart and on all time-frames using just one input.


General Settings Functionality.
  • Input 1 if true will hide all market structure if true
  • Input 2 if true will hide all structural breaks (BOS and MSS)
  • Input 3 if false will show lower time frame structure on a higher time frame. High advice using it while its true as I work on this feature as it provide an innacurate depiction of structure.



Notes de version
Fixing a request security bug and updating an already existing function.
Notes de version

  • Fixing a bug in the month's multi time-frame code.
Notes de version
Hello traders so the latest update is the ability to set alerts either BOS or MSS on any timeframe.
The user has the ability to choose what alert to use by setting them in the scripts user inputs as boolean inputs, then proceed to activating the any alert function in the dialog box make sure to activate the alerts you want before activating the any alert function.
All the alerts come set as true allowing the user to just choose their timeframes and use the any alert function.

Important details to notes
  1. The alerts can be set as user inputs in the scripts input settings.
  2. The alerts are then activated using the any alert function in the alert dialog box.
  3. You should set your needed alerts in the script before using the any alert function.
  4. All alerts come set as true
Notes de version

  1. Changed the User Interface to improve readability.
  2. Added inputs to hide BOS or MSS on any time-frame.
Candlestick analysisChart patternsPivot Points

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


Aussi sur:

Clause de non-responsabilité