The Solipsis_v4 strategy is a trading strategy that uses various indicators to generate buy and sell signals. Here is a short description of what the strategy does:
It populates several indicators such as KAMA, RMI, ROC, RSI, mastreak, and PCC (Pearson's Correlation Coefficient). It calculates streak-related metrics like streak-roc, candle-up, candle-up-trend, rmi-up, rmi-up-trend, rmi-dn, rmi-dn-count, streak-bo, and streak-bo-count.
It uses SSLChannels_ATR and SROC indicators to determine SSL direction.
It incorporates additional information from an informative pair, including high and low prices and ADR (Average Daily Range).
Depending on the stake currency, it calculates RMI for different pairs (coin/fiat and stake/fiat) or for BTC/stake currency. It stores custom trade information for different pairs for backtesting and hyperparameter optimization. It generates buy signals based on various conditions, including price conditions, streak conditions, RMI conditions, and trigger type (PCC or RMI). It generates sell signals to exit long positions. It includes a custom stop loss function that considers trade duration, current profit, and SROC values. It overrides the minimal_roi parameter for dynamic ROI functionality. Please note that this is just a brief overview of the strategy, and the actual implementation may have additional details and considerations.
Traceback (most recent call last):
File "index.pyx", line 598, in pandas._libs.index.DatetimeEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 2606, in pandas._libs.hashtable.Int64HashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 2630, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 1717284660000000000
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 3791, in get_loc
return self._engine.get_loc(casted_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "index.pyx", line 566, in pandas._libs.index.DatetimeEngine.get_loc
File "index.pyx", line 600, in pandas._libs.index.DatetimeEngine.get_loc
KeyError: Timestamp('2024-06-01 23:31:00+0000', tz='UTC')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexes/datetimes.py", line 631, in get_loc
return Index.get_loc(self, key)
^^^^^^^^^^^^^^^^^^^^^^^^
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: Timestamp('2024-06-01 23:31:00+0000', tz='UTC')
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/user_data/strategies/Solipsis_v4_2.py", line 432, in custom_stoploss
sroc = self.custom_trade_info[trade.pair]['sroc'].loc[current_time]['sroc']
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexing.py", line 1153, in __getitem__
return self._getitem_axis(maybe_callable, axis=axis)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexing.py", line 1393, in _getitem_axis
return self._get_label(key, axis=axis)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexing.py", line 1343, in _get_label
return self.obj.xs(label, axis=axis)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/generic.py", line 4236, in xs
loc = index.get_loc(key)
^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/pandas/core/indexes/datetimes.py", line 633, in get_loc
raise KeyError(orig_key) from err
KeyError: datetime.datetime(2024, 6, 1, 23, 31, tzinfo=datetime.timezone.utc)