The NostalgiaForInfinityV7 strategy is a trading strategy implemented as a class in Python. It inherits from the IStrategy class. Here is a brief description of what the strategy does:
The populate_indicators method takes a DataFrame and metadata as input and populates indicators for the strategy.
It merges informative 1-hour indicators with the current timeframe indicators and returns the updated DataFrame.
The populate_buy_trend method populates buy conditions for the strategy based on various protection and logic criteria.
It appends buy conditions to a list called conditions. a. For buy condition 1, it checks for multiple protections such as exponential moving averages (EMA) being above the 200-day EMA, close price being above certain EMAs, rising moving averages, safe dips, and safe pumps. It also includes logic checks based on close price, relative strength index (RSI), and money flow index (MFI). b. For buy condition 2, it checks for similar protections as in buy condition 1, but with additional logic checks based on RSI difference, MFI, close price relative to Bollinger Bands, and volume. c. For buy condition 3, it again checks for protections and includes logic checks based on Bollinger Bands, close price, and tail. The resulting buy triggers are stored in the DataFrame under the columns 'buy_01_trigger', 'buy_02_trigger', 'buy_03_trigger', etc., depending on the number of buy conditions enabled. Note: The provided code snippet is incomplete and lacks important details about the strategy's sell conditions and execution logic.
Traceback (most recent call last):
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/base/exchange.py", line 624, in fetch
response.raise_for_status()
File "/home/ftuser/.local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api.binance.com/api/v3/exchangeInfo
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/freqtrade/freqtrade/exchange/exchange.py", line 486, in _load_markets
self._markets = self._api.load_markets(params={})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/base/exchange.py", line 1474, in load_markets
markets = self.fetch_markets(params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/binance.py", line 2734, in fetch_markets
promisesRaw.append(self.publicGetExchangeInfo(params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/base/types.py", line 34, in unbound_method
return _self.request(self.path, self.api, self.method, params, config=self.config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/binance.py", line 10089, in request
response = self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/base/exchange.py", line 3523, in fetch2
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/base/exchange.py", line 640, in fetch
skip_further_error_handling = self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/binance.py", line 10004, in handle_errors
raise DDoSProtection(self.id + ' ' + str(code) + ' ' + reason + ' ' + body)
ccxt.base.errors.DDoSProtection: binance 429 Too Many Requests {"code":-1003,"msg":"Too much request weight used; current limit is 6000 request weight per 1 MINUTE. Please use WebSocket Streams for live updates to avoid polling the API."}