OPEN-SOURCE SCRIPT

Price breakout and reversal [TCS] | PA

Updated
This indicator is designed to identify potential breaks and reversals in price movements for a financial instrument.

The indicator displays several elements to assist users in spotting specific market conditions:
1. High and Low Pivots: The indicator marks the highest and lowest points on the price chart within a customizable lookback period. These pivots represent important turning points in the price movement and serve as reference levels for potential breakouts and reversals.
2. Fair Value Line: A horizontal line is drawn at the midpoint between the high and low pivots. This line represents the "fair value" based on the recent price action. Traders may consider this level as a reference for evaluating the price's deviation from its average value.
3. Bullish Breakouts: When the closing price of the financial instrument crosses above the high pivot the indicator identifies a potential bullish breakout. This suggests a possible buying opportunity.
4. Bearish Breakouts: Conversely, a bearish breakout is identified when the closing price crosses below the low pivot. This may indicate a selling opportunity.
5. Fair Value Breakouts: In addition to regular breakouts, the indicator can detect breakouts based on the fair value line. If the closing price crosses above or below the fair value line, it may signal a fair value breakout, indicating the price's potential return to its average level.
6. Reversals: Reversal patterns are essential in technical analysis. The indicator identifies potential bullish and bearish reversals .

snapshot

The indicator enhances its visual signals with geometric shapes (triangles and diamonds) placed above or below the price bars to represent different types of breakouts and reversals.
Moreover, the indicator can be configured to send alerts to the user when any of these specific events occur, helping traders stay informed and respond promptly to potential trading opportunities.

Please note that this code is for educational purposes only and should not be used for trading without further testing and analysis.
Release Notes
Improved reversals calculation
Release Notes
• Added the account size risk calculator (%)
breakoutChart patternsPivot PointsresistencereversalreversalpatternsupportSupport and Resistance

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


For the access to premium indicators please contact me on tradingview

Disclaimer