fix: Add datetime conversion for start and end dates in backtesting page
This commit is contained in:
parent
a4e828da8c
commit
32bade726d
@ -293,6 +293,10 @@ def backtesting_page():
|
|||||||
value=datetime.now() - timedelta(days=365))
|
value=datetime.now() - timedelta(days=365))
|
||||||
with col2:
|
with col2:
|
||||||
end_date = st.date_input("End Date")
|
end_date = st.date_input("End Date")
|
||||||
|
|
||||||
|
# Convert dates to datetime objects
|
||||||
|
start_datetime = datetime.combine(start_date, datetime.min.time())
|
||||||
|
end_datetime = datetime.combine(end_date, datetime.min.time())
|
||||||
|
|
||||||
# Indicator selection
|
# Indicator selection
|
||||||
available_indicators = get_available_indicators()
|
available_indicators = get_available_indicators()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user