Wordcloud
Strategy: TrailingBuyStrat
Downloaded: 20220115
Stoploss: 0
The given code represents a trading strategy called "YourStrat" that can be used for backtesting purposes. Here is a short description of what the strategy does: The strategy extends the "IStrategy" class and implements several methods. "populate_indicators" method: It takes a dataframe and metadata as input.

It adds custom information to the metadata dictionary for each trading pair.

It initializes a trailing buy dictionary for the trading pair if it doesn't exist.

It returns the modified dataframe. "confirm_trade_exit" method: It takes various trade-related parameters as input. It confirms the exit of a trade by calling the superclass method and obtaining a boolean value. It resets the trailing buy dictionary for the trading pair to its initial state. It returns the boolean value obtained from the superclass method. "populate_buy_trend" method: It takes a dataframe and metadata as input. It calculates the number of bars since the last buy signal and determines the minimum value within a rolling window. It updates the dataframe with the calculated values. If trailing buy orders are enabled and the strategy is running in live or dry run mode, it performs additional operations. It checks if a trailing buy order has already been started for the trading pair. If not, it starts a trailing buy order by setting the necessary parameters in the trailing buy dictionary. If a trailing buy order has already been started, it updates the trailing buy order uplimit based on the current price. It checks if the current price is below the start trailing price, indicating a buy signal. If so, it sets the 'buy' column value to 1 and calculates the price ratio. It updates the 'buy_tag' column if it exists. It resets the trailing buy dictionary after a buy signal or if the current price exceeds a certain threshold. It logs the relevant information during the process. If trailing buy orders are enabled, it performs additional operations to identify buy signals based on certain conditions. If trailing buy orders are not enabled, it directly identifies buy signals based on a specific condition. It returns the modified dataframe. Other methods: The code includes an additional method to retrieve the current price of a trading pair. Please note that the description provided is based on the code snippet given, and the complete functionality of the strategy may depend on other parts of the code or the context in which it is used.

Unable to parse Traceback (Logfile Exceeded Limit)
stoploss: 0
timeframe: 5m
hash(sha256): 3290f4d72f919da476f24981b55dc5dee6f8e1882914c9fce6109daa76ee3f92
indicators:
close_lower close_lower_offset close_5m_last_buy close runmode
last buy pre_buy_switch pre_buy buy_tag
barssince_last_buy

No similar strategies found. (based on used indicators)

last change: 2024-07-28 02:30:32