Add 2-Period RSI signal to swing trading dashboard

This commit is contained in:
moshferatu 2024-10-28 11:34:08 -07:00
parent a2649a5e48
commit caef1c17ab

View File

@ -12,6 +12,7 @@ from plotting import CandlestickChart, figure_with_subplots
from strategies import end_of_month
from strategies import internal_bar_strength
from strategies import two_period_rsi
from stylesheets import grid_stylesheet, theme_stylesheet
app = Dash(__name__, external_stylesheets = [theme_stylesheet, grid_stylesheet])
@ -22,6 +23,7 @@ load_figure_template('lux_dark')
SignalFunction = Callable[[DataFrame], Series]
signal_functions: List[Dict[str, SignalFunction]] = [
{'strategy': '2-Period RSI', 'function': two_period_rsi.signals},
{'strategy': 'End of Month', 'function': end_of_month.signals},
{'strategy': 'Internal Bar Strength', 'function': internal_bar_strength.signals}
]