TradingView
tradeforopp
4 Ara 2023 19:18

Protected Highs & Lows [TFO] 

E-mini Nasdaq-100 FuturesCME

Açıklama

This indicator presents an alternative approach to identify Market Structure. The logic used is derived from learning material created by @DaveTeaches

When quantifying Market Structure, it is common to use fractal highs and lows to identify "significant" swing pivots. When price closes through these pivots, we may identify a Market Structure Shift (MSS) for reversals or a Break of Structure (BOS) for continuations. The main difference with this "protected" logic is in how we determine the pivots/levels that are utilized to determine a valid MSS or BOS.

Nonetheless, the significance of our swing pivots is still governed by the input Pivot Strength parameter, which requires valid swing pivots to be compared to this many bars to the left and right of them. This is an optional parameter as it is traditionally set to 1 by default.



When identifying a BOS: When price closes below a valid swing low, we look back from the current bar to find the highest high that was made in that range. This becomes our protected high; similarly, when price closes above a valid swing high, we look back from the current bar to find the lowest low that was made in that range, which then becomes our protected low.

Note these valid highs and lows are the first swing pivots created after a MSS/BOS. For example, when price makes a bullish BOS/MSS and then trades away, a swing high is formed. This first swing high is what needs to be traded through to see a valid BOS.



When identifying a MSS: If the current trend is bearish and we're looking for a bullish reversal, we would need price to close above the most recent protected high. When this happens, we still look back to find the lowest low that was created in that range, and make that our new protected low. Likewise when looking for a bearish reversal, price would need to close below the most recent protected low, which would then give us a new protected high as a result (the highest point in that range).



The Trend Candles option allows users to easily visualize the current state of Market Structure with bullish and bearish colors. Users may also show BOS and MSS labels if desired.



Show Protected Highs & Lows will annotate the protected highs and lows, just note that the labels themselves are plotted in the past due to the lookback function required to identify them.



Lastly, the Show Protected Trail option will draw a line to essentially indicate a trailing stop-like line to denote the most recent protected low (if bullish) or protected high (if bearish).



I am simply a student of Dave's concepts, so please feel free to leave feedback if you are familiar with his concepts and have suggestions/improvements.

Sürüm Notları

- Added retracement boxes with 30/50/70% levels, as well as optional pullback logic to help validate protected highs and lows. Use the setting tooltips ⓘ to read more about how they work
Yorumlar
ajprimez
Amazing work!
Thank you so much for sharing it to the community.

One suggestion, if you could add a box from Protected Low / High to BOS / MSS that and divide it into 30%, 50% and 70% that would become the area responsible for the Shift / Break that is later on used for retracements.
Tkysl
Please add signals to entry.
sorinchiruta
@Tkysl, You can easily code alerts with basically 1-2 lines of code.
NitroJam
Top indicator !
In order to be absolutely perfect, the pull back, to be a "validate" pull back, should have a close above / below the candle that put the last low / high (and not just rely on pivot point) : that would make this indicator perfect !
Also, a 50% line for the zones would be perfect but that we can do it manually !

Thanks again for all your work !
teamkamfitness
@tradeforopp, @tradeforopportunity
this is correct about the pullbacks, idk if that's possible to code into an indicator
NitroJam
@teamkamfitness, I would even add, a valid pullback should have a closure below / above the low / the high of the PREVIOUS candle that put the high / low ! With that add-on, if possible, the indicator will not have any issue at detecting real pullback and therefore, real MSS !
NitroJam
@tradeforopp, top udpate with the new logic for the pullbacks. Thanks a lot for that, amazing work ! A suggestion for next update ? make the indicator multi time frame :D with a table summarizing where we are regarding the different timeframes ! Again, thanks a lot for this work !
nauman_shahid
@NitroJam, is the update made regarding the protected highs/lows?
anjois1
Just another pretty indicator in the past tense. Try it real time and it's not so pretty. Signals come way to late. Worthless indicator.
summutummu
@anjois1, how to fix late signal
Daha Fazla