spacetrader

[ST] S/R density study v3

This algorithm draws supports/resistance levels automatically based on historic candle density at each height. The basic idea is the levels where price is rejected quickly is likely to have fewer candles in the past than the levels above and below. This does not take volume into account. The lookback and number of levels has to be kept low to prevent too many calculations. I haven't looked if there's new pinescript features to let me do this more efficiently yet.

It checks for candle density to decrease once or twice and then increase once or twice before it draws a line at that lowest level. There's an option to draw more lines by only checking for a single decrease and increase.

It likely won't catch all the levels but it seems to get a good amount to help me position stops on other side of S/R or exits on the trade side of S/R.

I've been meaning to share more scripts but keep forgetting. Keeping my scripts free but feel free to like or tip haha.


Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?