OPEN-SOURCE SCRIPT
Barbwire [yohtza]

This is an indicator that helps price action traders in determining when the market is in tight trading range.
Barbwire rules
The conditions for tight trading range are very simple. There has to be at least one doji (body is less than half size of the bars range from high to low) bar in the last three bars and there has to be lots of overlap between those bars. To quantify overlap indicator looks for bars that pull back 50% or more of the previous bars range and current bars that have 50% level touching the previous bar.
How to use this indicator?
For most traders it is best to avoid barbwire, only skilled and experienced traders who understand limit order trading can keep trading in these market conditions and still make money. So in simple terms it is a no trade zone and waiting for market to start trending again is most beneficial and greatly improves odds of achieving profitability and better trading results.
The term barbwire can be found in the books of Dr. Al Brooks which were the inspiration for creation of this indicator and are a great read for aspiring price action traders.
Barbwire rules
The conditions for tight trading range are very simple. There has to be at least one doji (body is less than half size of the bars range from high to low) bar in the last three bars and there has to be lots of overlap between those bars. To quantify overlap indicator looks for bars that pull back 50% or more of the previous bars range and current bars that have 50% level touching the previous bar.
How to use this indicator?
For most traders it is best to avoid barbwire, only skilled and experienced traders who understand limit order trading can keep trading in these market conditions and still make money. So in simple terms it is a no trade zone and waiting for market to start trending again is most beneficial and greatly improves odds of achieving profitability and better trading results.
The term barbwire can be found in the books of Dr. Al Brooks which were the inspiration for creation of this indicator and are a great read for aspiring price action traders.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.