From 1f1d6b2e8560bb517e500c752b53190777c33ca1 Mon Sep 17 00:00:00 2001 From: teh_coderer Date: Fri, 17 Mar 2023 18:50:01 -0400 Subject: [PATCH] Update forex_helper.py --- openbb_terminal/forex/forex_helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbb_terminal/forex/forex_helper.py b/openbb_terminal/forex/forex_helper.py index 778386098ab..6eb23961c39 100644 --- a/openbb_terminal/forex/forex_helper.py +++ b/openbb_terminal/forex/forex_helper.py @@ -262,6 +262,8 @@ def display_candle( has_volume = bool(data["Volume"].sum() > 0) if add_trend and (data.index[1] - data.index[0]).total_seconds() >= 86400: + if "date_id" not in data.columns: + data = stocks_helper.process_candle(data) data = stocks_helper.find_trendline(data, "OC_High", "high") data = stocks_helper.find_trendline(data, "OC_Low", "low")