TradingView
tradeforopp
16 paź 2023 17:37

Market Structure [TFO] 

E-mini Nasdaq-100 FuturesCME

Opis

The purpose of this indicator is to provide a simple approach to Market Structure. When price is closing over swing highs, we may categorize that as bullish structure; and when price is closing below swing lows, we may categorize that as bearish structure.



We can easily find swing highs and lows via the following built-in Pine Script functions:

ta.pivothigh() ta.pivotlow()


We can pass in our Pivot Strength parameter to determine the size/significance of these pivots. The lowest value of 1 will validate a swing high when a given high is larger than that of 1 bar to the left and right of it. A pivot strength of 3, for example, would validate a swing high only when a high is larger than that of the 3 bars to the left and right of it, making it much more selective.



In any case, we can simply track the most recent swing highs and lows and check for when price through them. Enabling the Show Pivots option will mark all the swing highs and lows that are being considered for future structure breaks.



If the trend is bearish and we begin closing over swing highs, that would mark a Market Structure Shift (MSS). If the trend is already bullish and we are closing over swing highs, that would mark a Break of Structure (BOS), and vice versa for bearish conditions. MSS essentially signifies reversals in Market Structure while BOS signifies continuations.



Users may also create alerts for Any/Bull/Bear BOS or MSS. Simply create a new alert, select this indicator, and select the desired BOS or MSS criteria.
Komentarze
Tkysl
please add order blocks, breaker blocks
xonysanti
@Tkysl, x2
JOKAHTrader
Thanks for this free resource. Just wondering whether you can incorporate a setting where liquidity needs to be swept (PVL or PVH based on pivot strength) before the indicator will indicate a MSS? eg Bullish MSS will only print if a PVL has been swept before the most recent PVH is taken out. I ask as most references i have seen re: MSS (ICT, TTrades etc) indicate liquidity needs to be swept before the MSS can be validated. This would solve this issue but still allow traders that just want to see a short term trend change (1-2-3 pattern) indicate a MSS as well.
godbet
Hello. Very nice indicator. Thank you so much for sharing. Can you say what the ideal pivot setting is or atleast a range? Best regards.
Beskiut_Invest
How do one create an alert for every BOS/MSS formed
lujobo2010
Great indicator, thank you.....
IAMABUNDANCE2021
thank you for this
thehousebuyingdoc
lowkey the base for protected lows/highs. Showing the pivots was a nice touch!
Zillionlyblessed
Thank you very much for sharing with us.
Więcej