PROTECTED SOURCE SCRIPT
更新済

Triangles [Bulkowski v6]

24
Title: Ascending & Descending Triangles [Bulkowski] (v6)

Description:

Overview This indicator automates the detection of Ascending and Descending Triangles, two of the most reliable chart patterns documented in Thomas Bulkowski’s Encyclopedia of Chart Patterns. By utilizing Pine Script v6 and an Object-Oriented architecture, this tool scans market structure in real-time to identify valid "Flat Limit" setups that manual charting often misses.

The Theory: How It Works Pattern recognition is often subjective. This script removes the guesswork by applying strict algorithmic rules based on Bulkowski’s statistical findings:

Ascending Triangles (Green): The script looks for a "Flat Top" (Resistance) where price hits a similar level multiple times, coupled with "Rising Bottoms" (Higher Lows). This creates a squeeze indicating potential bullish accumulation.

Descending Triangles (Red): The script looks for a "Flat Bottom" (Support), coupled with "Falling Tops" (Lower Highs). This indicates sellers are becoming more aggressive while buyers are barely holding the floor.

Key Features

Smart "Flatness" Detection: Markets are rarely perfect. The script includes a Tolerance (%) input, allowing you to define how "flat" a resistance or support line must be to qualify.

Strict Trend Validation: It checks for rising or falling pivots specifically within the timeframe of the flat level, ensuring the geometry of the triangle is valid.

Pine Script v6 Architecture: Built using the latest User-Defined Types (UDTs) and Methods for optimized performance and memory management.

Historical Logging: Draws patterns on historical data (within the buffer limit) so you can backtest the visual reliability of the signals.

Settings & How to Use

Pivot Left / Pivot Right: Determines the "size" of the pattern.

Lower values (5-10): Finds smaller, intraday triangles.

Higher values (15-20): Finds macro, swing-trading structures.

Flatness Tolerance (%): The most critical setting.

Default (1.5%): Requires the flat side of the triangle to be very precise.

Increase (2.0% - 3.0%): Allows for "messier" wicks and creates more pattern detections.

Trading Tips (Based on Bulkowski)

Wait for the Breakout: Triangles are coiling mechanisms. While Ascending triangles have a bullish bias, they can break downward (and vice versa). Professional traders often wait for a candle close outside the triangle boundary.

False Breakouts: Be aware of "Premature Breakouts" where price pierces the flat line but retreats.

Volume: Watch for declining volume as the triangle develops and an expansion of volume on the break.

Disclaimer This tool is for educational purposes and chart analysis assistance only. Automated pattern recognition should always be verified by the human eye. Past performance of a pattern does not guarantee future results.
リリースノート
Title: Ascending & Descending Triangles [Bulkowski] (v6)

Description:

Overview This indicator automates the detection of Ascending and Descending Triangles, two of the most reliable chart patterns documented in Thomas Bulkowski’s Encyclopedia of Chart Patterns. By utilizing Pine Script v6 and an Object-Oriented architecture, this tool scans market structure in real-time to identify valid "Flat Limit" setups that manual charting often misses.

The Theory: How It Works Pattern recognition is often subjective. This script removes the guesswork by applying strict algorithmic rules based on Bulkowski’s statistical findings:

Ascending Triangles (Green): The script looks for a "Flat Top" (Resistance) where price hits a similar level multiple times, coupled with "Rising Bottoms" (Higher Lows). This creates a squeeze indicating potential bullish accumulation.

Descending Triangles (Red): The script looks for a "Flat Bottom" (Support), coupled with "Falling Tops" (Lower Highs). This indicates sellers are becoming more aggressive while buyers are barely holding the floor.

Key Features

Smart "Flatness" Detection: Markets are rarely perfect. The script includes a Tolerance (%) input, allowing you to define how "flat" a resistance or support line must be to qualify.

Strict Trend Validation: It checks for rising or falling pivots specifically within the timeframe of the flat level, ensuring the geometry of the triangle is valid.

Pine Script v6 Architecture: Built using the latest User-Defined Types (UDTs) and Methods for optimized performance and memory management.

Historical Logging: Draws patterns on historical data (within the buffer limit) so you can backtest the visual reliability of the signals.

Settings & How to Use

Pivot Left / Pivot Right: Determines the "size" of the pattern.

Lower values (5-10): Finds smaller, intraday triangles.

Higher values (15-20): Finds macro, swing-trading structures.

Flatness Tolerance (%): The most critical setting.

Default (1.5%): Requires the flat side of the triangle to be very precise.

Increase (2.0% - 3.0%): Allows for "messier" wicks and creates more pattern detections.

Trading Tips (Based on Bulkowski)

Wait for the Breakout: Triangles are coiling mechanisms. While Ascending triangles have a bullish bias, they can break downward (and vice versa). Professional traders often wait for a candle close outside the triangle boundary.

False Breakouts: Be aware of "Premature Breakouts" where price pierces the flat line but retreats.

Volume: Watch for declining volume as the triangle develops and an expansion of volume on the break.

Disclaimer This tool is for educational purposes and chart analysis assistance only. Automated pattern recognition should always be verified by the human eye. Past performance of a pattern does not guarantee future results.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。