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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.