Wordcloud
Strategy: TrailingBuyStrat_661
Downloaded: 20220115
Stoploss: 0
The strategy is called "YourStrat" and it is implemented as a class that inherits from the "IStrategy" class. Here is a breakdown of what the strategy does: The method "populate_indicators" takes a dataframe and metadata as input and calls the same method from the parent class to populate indicators. Then, it invokes the "trailing_buy" method with the pair information from metadata.

The resulting dataframe is returned.

The method "confirm_trade_exit" is overridden to add trailing buy functionality.

It calls the parent method to confirm trade exit and then calls the "trailing_buy" method with the pair information to update trailing buy data. The value returned by the parent method is returned. The method "confirm_trade_entry" is overridden to add trailing buy functionality. It calls the parent method to confirm trade entry and performs the following actions: Calls the "trailing_buy_info" method with the pair and rate information. Calls the "trailing_buy" method with the pair information to update trailing buy data. Logs a message indicating the stop of trailing buy for the pair if the trade is confirmed. The value returned by the parent method is returned. The method "populate_buy_trend" takes a dataframe and metadata as input and calls the same method from the parent class to populate buy trend. It checks if the trailing buy order is enabled and if the strategy is running in live or dry run mode. If trailing buy is not enabled or the conditions are not met, it directly returns the dataframe. If trailing buy is enabled, it renames the "buy" column in the dataframe to "pre_buy" and retrieves the last candle's data. It initializes the "buy" column to 0 and obtains the trailing buy data using the "trailing_buy" method. If the trailing buy order has not started and the last candle's "pre_buy" value is 1, it performs the following actions: Gets the current price for the pair. Checks if there are any open trades for the pair. If there are no open trades, it sets the trailing buy order data in the "custom_info_trail_buy" dictionary for the pair. Calls the "trailing_buy_info" method with the pair and current price. Logs a message indicating the start of trailing buy for the pair. If the trailing buy order has already started, it performs the following actions: Gets the current price for the pair. Calculates the trailing buy offset using the "trailing_buy_offset" method. If the trailing buy offset is 'forcebuy', it calls the "buy" method with the dataframe, pair, current price, and trailing buy tag. If the trailing buy offset is None, it calls the "trailing_buy" method with the pair to reinitialize trailing buy. If the current price is lower than the trailing buy order uplimit, it updates the trailing buy order uplimit and offset in the "custom_info_trail_buy" dictionary for the pair. It calls the "trailing_buy_info" method with the pair and current price and logs a message indicating the update of trailing buy. If the current price is lower than the trailing buy start price multiplied by the trailing buy max buy factor, it calls the "buy" method with the dataframe, pair, current price, and trailing buy tag. If the current price is higher than the trailing buy start price multiplied by the trailing buy max stop factor, it calls the "trailing_buy" method with the pair to reinitialize trailing buy. It calls the "trailing_buy_info" method with the pair and current price and logs a message indicating the stop of trailing buy due to the price being higher. Otherwise, it calls the "trailing_buy_info" method with the pair and current price and logs a message indicating that the price is too high. Finally, the method checks if the strategy should process only new candles or use the last candle's close price from the dataframe. It returns the current price accordingly. Note: The code provided seems to be incomplete and lacks some necessary parts for a complete understanding of the strategy.

Traceback (most recent call last): File "/freqtrade/freqtrade/main.py", line 42, in main return_code = args['func'](args) ^^^^^^^^^^^^^^^^^^ File "/freqtrade/freqtrade/commands/optimize_commands.py", line 57, in start_backtesting backtesting = Backtesting(config) ^^^^^^^^^^^^^^^^^^^ File "/freqtrade/freqtrade/optimize/backtesting.py", line 113, in __init__ self.strategylist.append(StrategyResolver.load_strategy(self.config)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/freqtrade/freqtrade/resolvers/strategy_resolver.py", line 48, in load_strategy strategy: IStrategy = StrategyResolver._load_strategy( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/freqtrade/freqtrade/resolvers/strategy_resolver.py", line 269, in _load_strategy strategy = StrategyResolver._load_object( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/freqtrade/freqtrade/resolvers/iresolver.py", line 156, in _load_object return module(**kwargs) ^^^^^^^^^^^^^^^^ TypeError: Can't instantiate abstract class TrailingBuyStrat_661 with abstract method populate_indicators
stoploss: 0
timeframe: 5m
hash(sha256): 73e393ea488a347157d59a52f6c2f062b110a6ffb11abe896a7c1d5df4c199df
indicators:
ewo_low close offset runmode last
buy pre_buy buy_tag

No similar strategies found. (based on used indicators)

last change: 2024-07-28 21:10:24