PROTECTED SOURCE SCRIPT
Aggiornato Valid Highs/Lows [promuckaj]

Idea for this indicator is to mark highs/lows that is "validated" by candle close below their opposite wick (complete body).
For example if candidate candle with a wick as swing high is there then indicator wait some of next candles to close below lower wick to validate that swing as high. Vice versa for swing low.
Note: If you try to use timeframe lower then 1min then consider to change HTFs to lower due to limit in TV regarding candles back history. For example if you are on 15s then consider to use HTF as 1min and HTF2 as 12min.
Sometime, due to limit in history candles of instrument there could be an error regarding to many candles in history so in that case try to avoid to use higher TF for HTF such is 2H or higher.
For example if candidate candle with a wick as swing high is there then indicator wait some of next candles to close below lower wick to validate that swing as high. Vice versa for swing low.
Note: If you try to use timeframe lower then 1min then consider to change HTFs to lower due to limit in TV regarding candles back history. For example if you are on 15s then consider to use HTF as 1min and HTF2 as 12min.
Sometime, due to limit in history candles of instrument there could be an error regarding to many candles in history so in that case try to avoid to use higher TF for HTF such is 2H or higher.
Note di rilascio
Changed logic, fixed couple of issues.Note di rilascio
-Small update, if highs is the same and there is two consecutive highs in a row then skript will take those with lower low that need to be broken. Same but vice versa for lows.Note di rilascio
Small changes in case if there is new highs/lows with equal value, then it will rejected the previous and will be taken new one in case it contain value(low/high) that is harder to be broken for validation.Note di rilascio
-Implemented option to choose higher timeframe for marking valid H/L while you are on LTF.-Added option to show candles from higher timeframe.
-Fixed some small issue in general.
Note di rilascio
Implemented 2x valid H/L for higher timeframes, with all the settings regarding choose of timeframes, colors and styles for swings and waves.Note di rilascio
Fixed issue if candle that validate respective candidate candle for valid high/low contain higher-important value for high/low, in that case script will reject respective one, do not validate it and consider a new candidate candle.Note di rilascio
-Fixed issue when one candle need to validate high and low at the same time.-Markings of highs/lows on HTFs will be not plotted if you are using timeframe that is higher then HTF what you set in settings.
Note di rilascio
Added another type of valid highs/lows determination, so now there is two different approach to choose.1 - Need to close above/below respective swing candles body to form a valid pullback
2 - Need to close below/above last bullish/bearish candle to form a valid pullback of respective swing candle
Note di rilascio
Small update, added protection to do not print anything from HTF if you are using the same or higher timeframe on your chart then what you set for your HTF in the indicator settings.Note di rilascio
v 1.22-Fixed some general issue on HTF 2
-Fixed multiple issues for pullbacks type 2
Note di rilascio
v 1.23Update for style 1/2 pullbacks, fixed some situations when there is a big candle and after that it is formed "valid" pullbacks for high and low at the same time.
Some minor fixes to.
Note di rilascio
v1.24-Fixed some small issue with waves
-Updated pullback style 2, it is not important just the last green/red candle now but candle that close above/below previous one will be considered as starting green/red move that need to be broken to validate High/low.
Note di rilascio
v 1.25-Updated pullback type 2
-Fixed issue to do not gives error if non of option is activated on HTF if you are on very small timeframe, like 5s.
-Implemented experimental feature as optional, only for pullback type 2, to mark high/low on candle that need to be broken for validation, there is this option on all three timeframes separately.
Note di rilascio
v 1.26-Fixed some issues on HTFs valid HL for pullback type 2.
-Added table info, there is option to show you times for HTFs candles, including last printed valid HLs from all three timeframes.
-Implemented alerts, you can activate it separately for H or L to sent you alerts when it is formed on your chart from HTFs.
Note di rilascio
v 1.27-Small update-fix for valid pullback type 2
-Small visual update for HTF candles, added optional custom color for wicks, including custom lines width of borders and wicks line.
-On request implemented alerts for valid HL on charts timeframe.
Note di rilascio
v 1.28Implemented option to countdown LTF candles for HTF.
Note di rilascio
v 1.29-Fixed problem regarding countdown for a HTF candle on LTF chart, it was not working on seconds chart.
-Added option to extend validation line of candidate candle to the right by desired value of bars.
-Implemented data window info, there is now Direction for all three TFs.(1 = VL, -1 = VH, 0 = none)
Note di rilascio
Hello to everyone !This is a huge update, it contain my premium Valid Pullback indicator. This is practically Valid H/L on steroids, that contain a lot of upgrades.
For more details please visit the link:
![Valid Pullbacks Market Structure [promuckaj]](https://s3.tradingview.com/r/rZD36gau_mid.png)
NOTE: It will be free to use for a while. After a while, the free script will be switched to a lite version, while the premium version will only be available with a subscription.
Note di rilascio
-Fixed some issue with marked two HTF/HTF2 OBs in a row in the same direction. Now previous one will be rejected.-Added option to shift to the left "X" label when liquidity from some of HTFs is taken. It could help to avoid overlap with other labels at the same bar.
-Added optional labels for "validation" lines for all three timeframes that is in use. Beside custom color of lines now it could provide the info for what timeframe respective validation line belong. There is option to set custom labels text if needed, by default it will show respective timeframe.
-Changed table info, better info presentation.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.