Add 2-Period RSI signal to swing trading dashboard
This commit is contained in:
parent
a2649a5e48
commit
caef1c17ab
@ -12,6 +12,7 @@ from plotting import CandlestickChart, figure_with_subplots
|
|||||||
|
|
||||||
from strategies import end_of_month
|
from strategies import end_of_month
|
||||||
from strategies import internal_bar_strength
|
from strategies import internal_bar_strength
|
||||||
|
from strategies import two_period_rsi
|
||||||
from stylesheets import grid_stylesheet, theme_stylesheet
|
from stylesheets import grid_stylesheet, theme_stylesheet
|
||||||
|
|
||||||
app = Dash(__name__, external_stylesheets = [theme_stylesheet, grid_stylesheet])
|
app = Dash(__name__, external_stylesheets = [theme_stylesheet, grid_stylesheet])
|
||||||
@ -22,6 +23,7 @@ load_figure_template('lux_dark')
|
|||||||
SignalFunction = Callable[[DataFrame], Series]
|
SignalFunction = Callable[[DataFrame], Series]
|
||||||
|
|
||||||
signal_functions: List[Dict[str, SignalFunction]] = [
|
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': 'End of Month', 'function': end_of_month.signals},
|
||||||
{'strategy': 'Internal Bar Strength', 'function': internal_bar_strength.signals}
|
{'strategy': 'Internal Bar Strength', 'function': internal_bar_strength.signals}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user