OPEN-SOURCE SCRIPT
Wedge Chart Patterns [SSFX]

Wedge Chart Patterns [SSFX]
Wedge Chart Patterns [SSFX] is a pattern-based breakout indicator designed to detect rising wedge and falling wedge formations, then transform valid breakouts into structured trade setups with predefined entry, stop loss, and take profit levels.
The script is built for traders who want more than simple visual pattern recognition. Instead of only drawing wedge structures, it filters breakouts using candle body strength, then projects a complete risk framework directly on the chart. This makes the tool suitable for both discretionary chart reading and systematic trade planning.
What this indicator does ?
This indicator continuously scans price action using pivot-based structure detection to identify wedge formations. Once a valid wedge is found, it tracks the upper and lower converging trendlines in real time and waits for a breakout in the expected direction.
A breakout is only considered tradable when the breakout candle shows enough conviction. The script measures the candle body as a percentage of the entire candle range and only allows entries when that body percentage is above a user-defined threshold. This helps filter out weak breakouts and reduce low-quality signals caused by indecision candles or excessive wicks.
After a valid breakout is confirmed, the indicator automatically builds a complete trade map:
✅ Entry level
✅ Stop loss
✅ Take profit
✅ Risk zone fill
✅ Reward zone fill
These levels are displayed directly on the chart and can be retained for the most recent trades for review and post-analysis.
Main features
✅ Detects rising wedges and falling wedges
✅ Uses pivot-based structure logic to form converging trendlines
✅ Validates wedge integrity before breakout
✅ Filters breakouts using minimum candle body percentage
✅ Generates long and short entry signals
✅ Supports multiple stop loss methods
✅ Supports risk-reward or fixed-point take profit
✅ Draws entry, SL, TP directly on the chart
✅ Adds filled SL/TP zones for fast visual trade reading
✅ Keeps the last several trade setups on screen
Best use cases
It can be used on multiple asset classes, including forex, gold, indices, crypto, and stocks, though results will depend on symbol behavior, timeframe, volatility conditions, and user settings.
Notes
This script is designed as a charting and trade-planning tool, not a guarantee of performance. Wedge patterns can fail, and breakout confirmation does not eliminate market risk. Users should always forward-test and adapt settings to the instrument and timeframe they trade.
Wedge Chart Patterns [SSFX] is a pattern-based breakout indicator designed to detect rising wedge and falling wedge formations, then transform valid breakouts into structured trade setups with predefined entry, stop loss, and take profit levels.
The script is built for traders who want more than simple visual pattern recognition. Instead of only drawing wedge structures, it filters breakouts using candle body strength, then projects a complete risk framework directly on the chart. This makes the tool suitable for both discretionary chart reading and systematic trade planning.
What this indicator does ?
This indicator continuously scans price action using pivot-based structure detection to identify wedge formations. Once a valid wedge is found, it tracks the upper and lower converging trendlines in real time and waits for a breakout in the expected direction.
A breakout is only considered tradable when the breakout candle shows enough conviction. The script measures the candle body as a percentage of the entire candle range and only allows entries when that body percentage is above a user-defined threshold. This helps filter out weak breakouts and reduce low-quality signals caused by indecision candles or excessive wicks.
After a valid breakout is confirmed, the indicator automatically builds a complete trade map:
✅ Entry level
✅ Stop loss
✅ Take profit
✅ Risk zone fill
✅ Reward zone fill
These levels are displayed directly on the chart and can be retained for the most recent trades for review and post-analysis.
Main features
✅ Detects rising wedges and falling wedges
✅ Uses pivot-based structure logic to form converging trendlines
✅ Validates wedge integrity before breakout
✅ Filters breakouts using minimum candle body percentage
✅ Generates long and short entry signals
✅ Supports multiple stop loss methods
✅ Supports risk-reward or fixed-point take profit
✅ Draws entry, SL, TP directly on the chart
✅ Adds filled SL/TP zones for fast visual trade reading
✅ Keeps the last several trade setups on screen
Best use cases
It can be used on multiple asset classes, including forex, gold, indices, crypto, and stocks, though results will depend on symbol behavior, timeframe, volatility conditions, and user settings.
Notes
This script is designed as a charting and trade-planning tool, not a guarantee of performance. Wedge patterns can fail, and breakout confirmation does not eliminate market risk. Users should always forward-test and adapt settings to the instrument and timeframe they trade.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。