Trading RSI Crossovers of the Midline
Summary
This script uses the Relative Strength Index crossing its midpoint as a directional signal. An upward cross opens a long position and closes any short position; a downward cross closes the long and opens a short. The RSI period is configurable, while lower and upper thresholds control chart highlighting rather than the stated entry and exit rules. The script therefore treats momentum above or below the midpoint as a simple trend-direction proxy, rather than relying on the usual extreme overbought and oversold levels for trade entries.
The document supplies source code and describes the signals, but includes no market, timeframe, backtest settings, performance results, transaction costs, or risk controls such as stops. Its colored chart states reflect RSI threshold regions and should not be confused with the midpoint crossover trades. The approach is easy to inspect, but the material does not establish whether it performs robustly across assets or market conditions; midpoint crossings may also produce repeated direction changes when RSI fluctuates around that level.
Key ideas
- An RSI cross above 50 triggers a long entry and closes a short position.
- An RSI cross below 50 closes the long and opens a short position.
- The RSI lookback period is configurable, while the upper and lower thresholds affect visual highlighting.
- The document provides code but no backtest evidence, trading costs, or explicit stop-loss rules.
- Frequent RSI crossings around the midpoint may cause repeated position changes.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.