HoanGhetti

Pivot Trendlines with Breaks [HG]

HoanGhetti 已更新   
🧾 Pivot Trendlines and Breaks
A script meant to debut and provide an example usage of the Simple Trendlines library using Pine Script's built-in pivot system.
In under 50 lines of code, with inputs, plots, styling, and alerts included we're able to create trendlines with a breakout system.

▶️ How it works
Calculating pivot points helps traders identify moments at which the market's attitude can shift from bullish to bearish. In the background, the script tracks pivot events for trendlines and uses a system that prevents any leakage between the trendlines before they are drawn.

⚫️ Settings
  • Pivot Length
  • Color Adjustments
⚫️ Alerts
版本注释:
Refactor
  • Runtime performance increase.
版本注释:
Added
  • Repaint options
  • More style options
版本注释:
Update
  • Maximum line display count is now set as default.
  • The indicator now features newly displayed target levels.
版本注释:
Add
  • More Input Options
  • Ability to choose an external source, giving the script a more "universal" feel. Users now have the freedom to choose the way they want their breakouts to be, with the "Use Source for Cross Detection" input.
  • Introducing an optional faster pivot system, the same one used in RSI Trendlines with Breakouts
Here's an example image of the script calculating trendlines with breaks on the TEMA. Now possible with this update.
While the code is no longer around 50 lines as stated in the main description, the indicator is structured and extended to provide developers with examples of how the Simple Trendlines library can be used.
版本注释:
Refactor
  • Removed old pivot system in favor of Pine Script's built-in pivot system. Leading to run-time performance increase and more accurate results.
开源脚本

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

免责声明

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

想在图表上使用此脚本?