2024-09-09 13:34:33 +00:00
# 2-Period RSI
2024-09-09 13:38:53 +00:00
This strategy was taken from chapter 9 of *[Short Term Trading Strategies That Work](https://moshferatu.dev/moshferatu/short-term-trading-strategies-that-work)* (2008) by Larry Connors.
2024-09-09 13:58:14 +00:00
## Rules
2024-09-09 14:54:49 +00:00
The original long-only rules from the book:
2024-09-09 13:58:14 +00:00
1. The asset (e.g., SPY) is above its 200-day moving average.
2. The 2-period RSI closes below 5.
3. Enter a long position at the close (or the following open in this case).
4. Exit the position when the asset closes above its 5-period moving average.
2024-09-09 14:54:49 +00:00
For taking short positions, invert the above conditions and use a 2-period RSI reading of > 95 as the entry threshold.
2024-09-09 15:46:13 +00:00
## Parameters
**RSI Period**: The period to use in the RSI calculation. (Default: 2)
**RSI Smoothing**: The smoothing period to use in the RSI calculation (Default: 1)
**Long Entry Threshold**: The RSI value below which to allow entering a long position. (Default: 5)
**Short Entry Threshold**: The RSI value above which to allow entering a short position. (Default: 95)
**Long Term Trend Period**: The period to use for the simple moving average used to define the long term trend. (Default: 200)
**Short Term Trend Period**: The period to use for the simple moving average used to define the short term trend. (Default: 5)
2024-09-09 21:14:37 +00:00
**Use Fixed Position Sizing**: Whether to use the same position size for every trade in order to neutralize the effect of lower historical prices. (Default: false)
2024-09-09 15:46:13 +00:00
**Fixed Position Size**: The size of the position when using fixed position sizing. (Default: 10000)
**Long Only**: Whether to only allow long trades as in the original strategy definition. (Default: false)
2024-09-09 15:49:54 +00:00
## Backtest Results
### SPY
2024-09-23 15:18:58 +00:00
![SPY Analysis ](https://static.moshington.com/images/strategies/2-period-rsi/spy-analysis.png )
2024-09-09 15:49:54 +00:00
2024-09-23 15:18:58 +00:00
![SPY Summary ](https://static.moshington.com/images/strategies/2-period-rsi/spy-summary.png )
2024-09-09 15:49:54 +00:00
2024-09-09 15:52:51 +00:00
### QQQ
2024-09-23 15:18:58 +00:00
![QQQ Analysis ](https://static.moshington.com/images/strategies/2-period-rsi/qqq-analysis.png )
2024-09-09 15:52:51 +00:00
2024-09-23 15:18:58 +00:00
![QQQ Summary ](https://static.moshington.com/images/strategies/2-period-rsi/qqq-summary.png )
2024-09-09 15:52:51 +00:00
2024-09-09 13:34:33 +00:00
---