OPEN-SOURCE SCRIPT
RSI Flip

Indicator Description: RSI Flip (30/70 Threshold)
This indicator uses a 7-period Relative Strength Index (RSI) to detect potential market reversals based on classic momentum thresholds:
- RSI < 30 → triggers a Long Deal Signal (1) indicating potential bullish reversal.
- RSI > 70 → triggers a Short Deal Signal (2) indicating potential bearish reversal.
🔧 Features:
- Backtest-compatible output: Hidden plots emit 1 for long and 2 for short, enabling seamless integration with strategy scripts.
- Bias tracking: Internal bias state updates on each trigger, allowing for modular lifecycle logic.
- Background tinting ready: The bias variable can be used to drive visual overlays or downstream automation.
🧩 Integration Notes:
- Designed for symbol-specific use — no external feeds or dependencies.
- Ideal for modular signal stacking, lifecycle-safe deal initiation, or audit-grade strategy mapping.
This indicator uses a 7-period Relative Strength Index (RSI) to detect potential market reversals based on classic momentum thresholds:
- RSI < 30 → triggers a Long Deal Signal (1) indicating potential bullish reversal.
- RSI > 70 → triggers a Short Deal Signal (2) indicating potential bearish reversal.
🔧 Features:
- Backtest-compatible output: Hidden plots emit 1 for long and 2 for short, enabling seamless integration with strategy scripts.
- Bias tracking: Internal bias state updates on each trigger, allowing for modular lifecycle logic.
- Background tinting ready: The bias variable can be used to drive visual overlays or downstream automation.
🧩 Integration Notes:
- Designed for symbol-specific use — no external feeds or dependencies.
- Ideal for modular signal stacking, lifecycle-safe deal initiation, or audit-grade strategy mapping.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.