Rsi Trendline Breakout
- 指标
- Tien Dat Vu
- 版本: 1.0
Rsi Trendline Breakout is a non-repaint indicator that automatically draws dynamic support and resistance trendlines directly on the RSI oscillator and generates an alert when price momentum breaks the line.
It helps traders spot early momentum shifts without manually drawing lines on every timeframe.
KEY FEATURES
- Auto-detection of RSI pivot highs and lows using left/right confirmation
- Dynamic trendline drawing with right-ray extension
- Breakout signals confirmed on closed bar (bar 1), not the current tick
- Optional trend filter with SMA to avoid counter-trend signals
- Built-in Alert and Push notification with customizable prefix
- Clean separate-window display with Buy/Sell arrows
HOW IT WORKS
1. The indicator finds the last two valid RSI pivot lows (for support) and pivot highs (for resistance).
2. It connects them to form a trendline on the RSI window.
3. A BUY signal occurs when RSI closes above the descending support line (bullish momentum breakout).
4. A SELL signal occurs when RSI closes below the ascending resistance line (bearish momentum breakdown).
5. If MA filter is enabled, signals are allowed only when price is above MA200 for buys or below MA200 for sells.
INPUT PARAMETERS
- InpRSIPeriod (14) – Period for RSI calculation
- InpPivotLeft (5) – Bars to the left for pivot confirmation
- InpPivotRight (2) – Bars to the right for pivot confirmation
- InpMaxBars (150) – Maximum bars to scan for pivots
- InpUseMATrend (true) – Enable/disable MA trend filter
- InpMAPeriod (200) – Period for the trend moving average
- EnableAlert (true) – Enable terminal alert on signal
- EnablePush (false) – Enable push notification to mobile
- InpAlertPrefix ("RSI TL Break") – Custom text added to alert message
RECOMMENDED USE
- Works on any symbol and timeframe, best on M15 to H4
- Use with price action confirmation or other confluence tools
- Not a standalone trading system; use proper risk management
NOTES
- Signals are generated on bar close to prevent repainting
- Trendlines are redrawn automatically as new pivots form
- No DLL calls, no external dependencies
