|
1 | 1 | import streamlit as st |
2 | | -import pandas as pd |
3 | | -import plotly.graph_objects as go |
4 | | -import yaml |
5 | 2 | from plotly.subplots import make_subplots |
6 | 3 |
|
7 | | -from CONFIG import BACKEND_API_HOST, BACKEND_API_PORT |
8 | | -from backend.services.backend_api_client import BackendAPIClient |
9 | 4 | from frontend.components.backtesting import backtesting_section |
10 | 5 | from frontend.components.config_loader import get_default_config_loader |
11 | 6 | from frontend.components.save_config import render_save_config |
12 | 7 | from frontend.pages.config.macd_bb_v1.user_inputs import user_inputs |
13 | | -from frontend.pages.config.utils import get_candles, get_max_records |
| 8 | +from frontend.pages.config.utils import get_candles |
14 | 9 | from frontend.st_utils import initialize_st_page, get_backend_api_client |
15 | 10 | from frontend.visualization import theme |
16 | 11 | from frontend.visualization.backtesting import create_backtesting_figure |
17 | 12 | from frontend.visualization.backtesting_metrics import render_backtesting_metrics, render_accuracy_metrics, \ |
18 | 13 | render_close_types |
19 | 14 | from frontend.visualization.candles import get_candlestick_trace |
20 | | -from frontend.visualization.indicators import get_bbands_traces, get_volume_trace, get_macd_traces |
| 15 | +from frontend.visualization.indicators import get_bbands_traces, get_macd_traces |
21 | 16 | from frontend.visualization.signals import get_macdbb_v1_signal_traces |
22 | 17 | from frontend.visualization.utils import add_traces_to_fig |
23 | 18 |
|
|
32 | 27 |
|
33 | 28 |
|
34 | 29 | st.write("### Visualizing MACD Bollinger Trading Signals") |
35 | | -days_to_visualize = st.number_input("Days to Visualize", min_value=1, max_value=365, value=3) |
| 30 | +days_to_visualize = st.number_input("Days to Visualize", min_value=1, max_value=365, value=7) |
36 | 31 | # Load candle data |
37 | 32 | candles = get_candles(connector_name=inputs["candles_connector"], trading_pair=inputs["candles_trading_pair"], interval=inputs["interval"], days=days_to_visualize) |
38 | 33 |
|
|
0 commit comments