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.


Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?