)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "index.pyx", line 152, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 176, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 219, in pandas._libs.index.IndexEngine._get_loc_duplicates
File "index.pyx", line 227, in pandas._libs.index.IndexEngine._maybe_get_bool_indexer
File "index.pyx", line 119, in pandas._libs.index._unpack_bool_indexer
KeyError: 'buy_tag'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/freqtrade/freqtrade/strategy/strategy_wrapper.py", line 27, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/freqtrade/freqtrade/strategy/interface.py", line 487, in custom_exit
return self.custom_sell(pair, trade, current_time, current_rate, current_profit, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/freqtrade/user_data/strategies/Synthesis_v5.py", line 567, in custom_sell
buy_tag = trade_candle['buy_tag']
~~~~~~~~~~~~^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/series.py", line 1040, in __getitem__
return self._get_value(key)
^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/series.py", line 1156, in _get_value
loc = self.index.get_loc(label)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 3798, in get_loc
raise KeyError(key) from err
KeyError: 'buy_tag'