HoanGhetti

Support Resistance with Breaks and Retests

HoanGhetti 已更新   
The Break and Retest indicator strives to provide a visual aid for spotting areas of continuation and pullbacks. Support and resistance levels are drawn out automatically and have sequential conditions in place to determine a breakout following an eventual retest. Additionally, there are methods in place that try and detect liquidation events and still output a retest.

Although there are options to adjust repaint settings, "potential labels" are structured in a way to detect live ongoing retest events and therefore will be the only thing in the script that will be forced to repaint.


🔳 Settings
  • Lookback Range: Lookback period to trigger a new support/resistance level when pivot conditions are met.
  • Bars Since Breakout: How many bars since breakout in order to detect a retest.
  • Retest Detection Limiter: Whenever a potential retest is detected, the indicator knows that a retest is about to happen. In that given situation, this input grants the ability to raise the limit on how many bars are allowed to be actively checked while a potential retest event is active. For example, if you see the potential retest label, how many bars do you want that potential retest label to be active for to eventually confirm a retest?

🔳 Repaint Options
By default, the break and retest system uses the current close value to determine a condition. (Repaints by default)
  • On: Allows repainting
  • Off - Bar Confirmation: Prevents repainting and generates alerts when the bar closes. (1 candle later)
  • Off - High & Low: Prevents repainting, but in return utilizes both the high and low values instead of the close which may yield a higher outcome and inaccurate results.

🔳 How it works
In the background, calculations aren't searching for the perfect retest within the zone but instead focuses its attention towards price fluctuation around the zones. This allows the indicator to yield more results than it would otherwise.

The chart below provides an example of how potential retests are established. These are updated constantly until a retest is confirmed, and deleted if not. If a potential retest is active and the next candle drops below the value when the potential retest was detected, a retest is placed..

🔳 Alerts
版本注释:
• Fixed retest alerts not going off under certain circumstances.
版本注释:
• Added styling options
版本注释:
Updated
  • Unlocked max value for the detection limiter.
版本注释:
Added
  • Extend options (Only affects the current levels)
  • Combined all alerts
开源脚本

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

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?