Wordcloud
Strategy: Heracles_83
Downloaded: 20220415
Stoploss: -0.046
The Heracles Strategy is a trading strategy implemented in Python for backtesting purposes. It is designed to analyze and generate buy and sell signals based on various technical indicators. Here's a breakdown of its important components: Description: The Heracles Strategy is named after the mythical Greek hero, symbolizing strength and power.

It uses a combination of indicators to identify potential buying and selling opportunities in the market.

Author: The strategy was developed by Masoud Azizi (@Mablue), and the source code can be found on GitHub at https://github.com/mablue/.

Dependencies: Before running the strategy, it requires the installation of the TA library (Technical Analysis library) using the command "pip install ta." Configuration: Inside the configuration file (config.json), you need to add the strategy to your pairlists under "StaticPairList" by specifying the minimum number of days a pair should be listed using the "AgeFilter" method. Buy Signals: The strategy uses two indicators, "volatility_kcw" and "volatility_dcp," to generate buy signals. It checks if the value of "volatility_kcw" is less than the value of "volatility_dcp." If this condition is met, a buy signal is generated. Sell Signals: The strategy uses the "trend_macd_signal" and "trend_ema_fast" indicators to generate sell signals. It checks if the value of "trend_macd_signal" is equal to the value of "trend_ema_fast." If this condition is met, a sell signal is generated. ROI (Return on Investment) Table: The strategy provides a predefined table that specifies the expected returns at different stages of the trade. The table includes timestamps and corresponding ROI values. Stop Loss and Trailing Stop: The strategy implements a stop loss mechanism to limit potential losses. It sets a predefined stop loss value (-0.04655). Additionally, it incorporates a trailing stop feature, which adjusts the stop loss level as the trade progresses positively. The trailing stop parameters are defined as trailing_stop_positive (0.02444) and trailing_stop_positive_offset (0.04406). Timeframe: The strategy operates on a 12-hour timeframe, meaning it analyzes and generates signals based on price data from the last 12 hours. Indicator Calculation: The strategy calculates various technical indicators, including "volatility_kcw," "volatility_dcp," "trend_macd_signal," and "trend_ema_fast," using the TA library. Populate Functions: The strategy defines three populate functions: populate_indicators, populate_buy_trend, and populate_sell_trend. These functions are responsible for calculating indicators, generating buy signals, and generating sell signals, respectively. Overall, the Heracles Strategy aims to identify profitable trading opportunities based on the selected technical indicators and predefined buy/sell conditions.

Traceback (most recent call last): File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 467, in _make_request self._validate_conn(conn) File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn conn.connect() File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connection.py", line 653, in connect sock_and_verified = _ssl_wrap_socket_and_match_hostname( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connection.py", line 806, in _ssl_wrap_socket_and_match_hostname ssl_sock = ssl_wrap_socket( ^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 465, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 509, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 517, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 1104, in _create self.do_handshake() File "/usr/local/lib/python3.11/ssl.py", line 1382, in do_handshake self._sslobj.do_handshake() TimeoutError: _ssl.c:989: The handshake operation timed out 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/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/util/retry.py", line 470, in increment raise reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/util/util.py", line 39, in reraise raise value File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 793, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 491, in _make_request raise new_e File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 469, in _make_request self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) File "/home/ftuser/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 370, in _raise_timeout raise ReadTimeoutError( urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='dapi.binance.com', port=443): Read timed out. (read timeout=10.0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ftuser/.local/lib/python3.11/site-packages/ccxt/base/exchange.py", line 598, in fetch response = self.session.request( ^^^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ftuser/.local/lib/python3.11/site-packages/requests/adapters.py", line 532, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='dapi.binance.com', port=443): Read timed out. (read timeout=10.0) The above exception was the direct cause of the following exception: 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 2738, in fetch_markets promisesRaw.append(self.dapiPublicGetExchangeInfo(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 628, in fetch raise RequestTimeout(details) from e ccxt.base.errors.RequestTimeout: binance GET https://dapi.binance.com/dapi/v1/exchangeInfo

stoploss: -0.046
timeframe: 12h
hash(sha256): 2a03aa2ccbe009b32d6e0110c28d1a214412ee3142e534e5a0af377d50a997a2
indicators:
high buyindicator0 trend_macd_signal close volatility_kcw
volatility_dcp sellindicator0 low trend_ema_fast buycross0
sellcross0

No similar strategies found. (based on used indicators)

last change: 2025-01-13 04:43:25