Order Blocks

With a simple sensitivity configuration to control the range of candles in scope for analysis, the order blocks are automatically drawn and removed in real time if price action closes through an order block.
The script has been updated to display bullish break of structure lines which are used as markers to calculate the order blocks but were not displayed in the previous version.
Added candle colours by trend; this option colours candles in either green or red based on the last break in structure to help in maintaining positions and give a general view of trend.
I have added the ability to highlight the candle that caused a break in structure, if this option is turned on then BOS candles are shown in yellow
I have added the bearish break of structure lines which appear once the structure is broken to the downside based on the defined candle range.
This update allows you to optionally display the open, close, high and low levels of the previous day/week and month regardless of the timeframe you are viewing to help with identifying significate price points.
The labels for HLOC have been moved to the right by 10 more candles so they do not cover live candles
- Bullish BOS Lines
- Bearish BOS Lines
- Previous Daily High/Low Lines
- Trend line and BOS candle colour options
You can enable these features within the configuration section of the script.
- Selection of bullish break source
- Selection of bearish break source
- You can now turn off trend colours
- You can optionally turn off break of structure candle highlighting
- You can add alerts for bullish and bearish break of structure
- You can now change the colour of order blocks that have already been hit/mitigated
- Better detection of the mitigated order blocks by checking that the block hasn't been tested previously and by setting a minimum start point for a re-test candle
- Optional highlighting of re-test candles for both bearish and bullish order block re-tests
- Alerts for bullish and bearish order block re-tests
- I have added the option to show mitigated order blocks within the configuration
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.
Để truy cập nhanh vào biểu đồ, hãy thêm tập lệnh này vào mục yêu thích của bạn — tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
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.
Để truy cập nhanh vào biểu đồ, hãy thêm tập lệnh này vào mục yêu thích của bạn — tìm hiểu thêm tại đây.