OPEN-SOURCE SCRIPT

Classic Patterns (Template)

Script 3: “Classic Pattern Stubs: Double Tops, Triangles, Wedges, Channels”
Purpose: Provide an indicator that identifies or sketches multiple classical patterns (Double Top/Bottom, Asc/Desc Triangles, Wedges, and Channels). Each pattern can be toggled on or off.


How It’s Organized:
Each pattern has a checkbox: showDoubleTops, showTriangles, showWedge, showChannel.
Each pattern has an int input for the lookback window.
The code draws lines or shapes if the pattern is detected.

Penafian