52 lines
1.2 KiB
Markdown
52 lines
1.2 KiB
Markdown
# RSI Divergence Bot
|
|
|
|
This strategy was inspired by the following post on X:
|
|
|
|

|
|
|
|
## Rules
|
|
|
|
1. On the hourly SPY chart, enter a long when the RSI is > than it was 5 bars ago but price is lower.
|
|
2. Exit the position when the RSI is > 70.
|
|
|
|
## Parameters
|
|
|
|
**RSI Period**: The period to use in the RSI calculation. (Default: 14)
|
|
|
|
**RSI Smoothing**: The smoothing period to use in the RSI calculation. (Default: 3)
|
|
|
|
**Divergence Period**: The number of bars over which to check for divergence in the price and RSI value. (Default: 5)
|
|
|
|
**Exit Threshold**: The RSI value over which to exit the position. (Default: 70)
|
|
|
|
## Backtest Results
|
|
|
|
### ETFs
|
|
|
|
#### SPY
|
|
|
|

|
|
|
|

|
|
|
|
#### QQQ
|
|
|
|

|
|
|
|

|
|
|
|
### Futures
|
|
|
|
#### /ES
|
|
|
|

|
|
|
|

|
|
|
|
#### /NQ
|
|
|
|

|
|
|
|

|
|
|
|
--- |