Fix candle not working with symbol via the sdk

This commit is contained in:
Theodore Aptekarev
2023-02-23 16:53:27 +01:00
parent 8a5e79d287
commit ab339f36f1

View File

@@ -545,18 +545,17 @@ def display_candle(
start_date = check_datetime(start_date)
end_date = check_datetime(end_date, start=False)
if data is None:
data = load(
symbol,
start_date,
interval,
end_date,
prepost,
source,
weekly,
monthly,
)
data = process_candle(data)
data = load(
symbol,
start_date,
interval,
end_date,
prepost,
source,
weekly,
monthly,
)
data = process_candle(data)
if add_trend and (data.index[1] - data.index[0]).total_seconds() >= 86400:
data = find_trendline(data, "OC_High", "high")