OPEN-SOURCE SCRIPT

Order Blocks

已更新
This script analyses candle stick patterns and draws order blocks in real time, it is designed to be very easy to use and works on all markets.

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.
版本注释
BOS Lines
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.
版本注释
Trend Bar Colours
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.
版本注释
BOS Candle Highlighting
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
版本注释
Bearish BOS Lines
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.
版本注释
Previous Day/Week/Month Levels
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.
版本注释
Visual Adjustments
The labels for HLOC have been moved to the right by 10 more candles so they do not cover live candles
版本注释
This update provides a third candle colour for candles falling outside of the range of a break in structure possibly indicating a reversal or a false break. The script has also been simplified for faster loading times and a cleaner look on the chart.
版本注释
The script has been updated to include the following new features:-
  • 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.
版本注释
The script has been updated top the latest version of pine script and added the following updates:-

  • Selection of bullish break source
  • Selection of bearish break source
版本注释
The script has been updated updated with the following features:-
  • 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
版本注释
This update includes the following features:-

  • You can now change the colour of order blocks that have already been hit/mitigated
版本注释
This update provides the following features:-

  • 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
版本注释
This update includes the following features:-
  • I have added the option to show mitigated order blocks within the configuration
blocksCandlestick Analysisorderblocks

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明