OPEN-SOURCE SCRIPT
Bulkowski Top 5 Patterns (v5)

Top five Bulkowski patterns detected:
Double Top (DT) – two highs at roughly the same level.
Double Bottom (DB) – two lows at roughly the same level.
Rectangle – repeated highs and lows forming a box-shaped consolidation.
Ascending Triangle (AscTri) – flat top with rising lows.
Descending Triangle (DescTri) – flat bottom with falling highs.
Visual Features
Labels for patterns:
Double Tops/Bottoms: red/green labels with text “DT” or “DB.”
Triangles: blue/purple labels with “AscTri” or “DescTri.”
Boxes for rectangles:
Orange semi-transparent boxes highlight rectangle patterns.
Automatic placement:
Labels are placed at the pivot points.
Boxes are drawn using the exact highs and lows from the detected pivots.
Double Top (DT) – two highs at roughly the same level.
Double Bottom (DB) – two lows at roughly the same level.
Rectangle – repeated highs and lows forming a box-shaped consolidation.
Ascending Triangle (AscTri) – flat top with rising lows.
Descending Triangle (DescTri) – flat bottom with falling highs.
Visual Features
Labels for patterns:
Double Tops/Bottoms: red/green labels with text “DT” or “DB.”
Triangles: blue/purple labels with “AscTri” or “DescTri.”
Boxes for rectangles:
Orange semi-transparent boxes highlight rectangle patterns.
Automatic placement:
Labels are placed at the pivot points.
Boxes are drawn using the exact highs and lows from the detected pivots.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.