TradingView
Trendoscope
18 мар 2022 г., 16:48

Wedge and Flag Finder (Multi - zigzag) 

US 100Capital.com

Описание

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

Информация о релизе

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:

Информация о релизе

  • 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.
Комментарии
Ether2020
Piece of art this script my friend! The best I have seen sofar! Thanks for this amazing work.
Trendoscope
@Ether2020, cheers mate. Thanks for the support :)
yueqian721314
@HeWhoMustNotBeNamed, 你好想问下这个是如何使用的
yueqian721314
@Ether2020, 您好这个怎么用的能帮忙解释么
yueqian721314
@Ether2020, 这个怎么用
Ether2020
Bro, it would be very nice if you could extend the wedge line to the right with a parameter. This make it more easy to spot a breakout.
Ether2020
@Ether2020, Thanks also for the updates! Awesome!
Trendoscope
@Ether2020, I did think about it. Only issue is, it draws too many lines on the chart. I will see if I can do something like extend only the last pattern. But, that can be a tricky implementation.
OutsourcE
@HeWhoMustNotBeNamed, nah, don't do that
Ether2020
@HeWhoMustNotBeNamed, Yes too long will clutter the chart but I would say an option to extend the trendline by X bars (X to choose the bars to extend) to the right and the extension in the same color but only 30% opacity or even less. That would make the extensions still good but the chart less cluttered. If people do not want to see the extension they could simply set the x bars to zero and it is like it right now.

What would also be great is an alert on a breakout on the (extended) trendline. I know I ask a lot but you are a true master in coding which only very few people can! I am really very impressed with your scripts! I hope you can implement that. It would make such an improvement! Thanks my dear friend!
Ещё