The ClucHAnix strategy is a trading strategy implemented as a class that inherits from the IStrategy class. It involves several steps and indicators to make trading decisions. In the populate_indicators method, the strategy calculates and adds various indicators to the input dataframe.
These indicators include Heikin-Ashi candles (open, close, high, low), Bollinger Bands, exponential moving averages (EMA), volume mean, rate of change ratio (ROCR), relative strength index (RSI), and Fisher transform.
Additionally, it retrieves informative data on a higher timeframe and merges it with the current dataframe.
The populate_buy_trend method populates the buy trend based on specific conditions. It uses parameters and conditions involving the rate of change, Bollinger Bands, candlestick patterns, and exponential moving averages to determine buy signals. If the conditions are met, the corresponding row in the dataframe is marked with a 'buy' value of 1. The populate_sell_trend method populates the sell trend based on certain parameters and conditions. It checks for the Fisher transform value, candlestick patterns, exponential moving averages, and volume to identify sell signals. If the conditions are satisfied, the corresponding row in the dataframe is marked with a 'sell' value of 1. The ClucHAnix_ETH class is a subclass of the ClucHAnix strategy specifically designed for Ethereum (ETH) trading. It inherits the populate_indicators method from its parent class and adds additional functionality related to trailing buy orders. It provides methods to confirm trade entry, calculate trailing buy offsets, and handle trailing buy logic based on price movements. Overall, the ClucHAnix strategy aims to generate buy and sell signals based on a combination of technical indicators and conditions. It utilizes indicators such as Bollinger Bands, moving averages, RSI, and candlestick patterns to identify potential trading opportunities.