編輯精選OPEN-SOURCE SCRIPT

Wedge and Flag Finder (Multi - zigzag)

已更新
Here is a small attempt to automatically identify wedges and flags.

Tradingview standard wedge checks for only 4 pivots. In this version, I have considered 5 pivots instead - which can help reduce noise as 4 pivots forming wedge can be quite common. In future, will also try to add more pivots in pattern recognition to make the signal more accurate.

If wedge comes with a tail, then it is marked as flag :)
Settings are quite simple and they are as shown below

https://www.tradingview.com/x/AJraEYii/
發布通知
Few updates

  • You can now select wedge based on 5 or 6 pivots (defined in settings)
  • Theme based colouring option added in the settings. Now users can chose either dark or light theme (Refers to chart background theme).
  • Option added in settings to hide zigzag lines and labels within wedge.
  • Angle based logic are refined as well as the settings. Angle restrictions are by default not selected as they often can be unreliable.


Snapshot of the latest settings screen look like this:
https://www.tradingview.com/x/BK6jtwNW/
發布通知
  • Added alert upon new pattern formation.
  • Added labels for wedge
發布通知
Updated libraries. Removed max_bars_back
發布通知
reverted max_bars_back change as it lead to error.
發布通知
Added option to filter only wedge or flag using input options.
發布通知
Added condition to alert only after bar confirmation. This is done to avoid repaints of alerts.
Chart patternsHarmonic PatternshewhomustnotbenamedtrendoscopeZig Zag Indicator

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明