Wordcloud
Strategy: dca_snippet
Downloaded: 20220216
Stoploss: 0
The provided code represents a trading strategy called "Trailing Buy Strategy." Here's a short description of what the strategy does: The strategy extends the base class IStrategy and implements the populate_indicators and populate_buy_trend methods. In the populate_indicators method: The strategy first calls the parent class's populate_indicators method to calculate the indicators based on the provided dataframe and metadata. It then initiates a trailing buy order by calling the trailing_buy method with the metadata pair.

The resulting modified dataframe is returned.

In the populate_buy_trend method: The strategy first calls the parent class's populate_buy_trend method to calculate the buy trend based on the provided dataframe and metadata.

It renames the "buy" column of the dataframe to "pre_buy" for further processing. If the trailing buy order is enabled and the strategy's run mode is either "live" or "dry_run": It checks the conditions to start or update a trailing buy order. It sets the "buy" column of the dataframe to 0 and initializes variables related to the trailing buy order. If the conditions are met to start a trailing buy order, it sets the relevant variables and logs the start of the order. If the conditions are met to update a trailing buy order, it adjusts the trailing buy order's parameters and logs the update. If the current price is lower than a specified threshold, it executes a buy order and updates the trailing buy order's parameters. If the current price is higher than another specified threshold, it stops the trailing buy order and updates the trailing buy order's parameters. If the price is too high, it logs the situation. If no buy trailing conditions are met, the "buy" column remains unchanged. The modified dataframe is returned. Additionally, there is a class called TrailingBuyStrat2 that extends the YourStrat class and overrides the populate_indicators method. It has similar functionality to the original strategy but includes additional logic for confirming trade entry. Please note that this is a brief explanation of the strategy's functionality based on the provided code snippet. The complete understanding of the strategy may require further analysis and review of the entire codebase.

Unable to parse Traceback (Logfile Exceeded Limit)
stoploss: 0
timeframe: 5m
hash(sha256): 9923088d297cdf1bebbd1ee74eac0896093bdb8e4ddaf334ee1a58a040d9752e
indicators:
high sell close perc perc_norm
offset runmode last low buy
pre_buy buy_tag

No similar strategies found. (based on used indicators)

last change: 2024-07-27 15:31:22