The ClucHAnix_5m1 strategy is a trading strategy that uses various indicators to make buy and sell decisions. Here is a breakdown of its key components:
Indicators:
Heikin-Ashi candles: The strategy calculates the Heikin-Ashi open, close, high, and low prices. Bollinger Bands: Calculates the middle and lower bands based on the Heikin-Ashi typical price and a specified window size and number of standard deviations.
Price deltas: Calculates the absolute difference between the current and previous Heikin-Ashi close prices.
Tail: Calculates the absolute difference between the close price and the low price.
Exponential Moving Averages (EMA): Calculates fast and slow EMAs of the Heikin-Ashi close prices. Volume mean: Calculates the rolling mean of the volume over a specified window size. Rate of Change Ratio (ROCR): Calculates the ROCR indicator based on the Heikin-Ashi close prices. Relative Strength Index (RSI): Calculates the RSI indicator. Fisher Transform: Calculates the Fisher Transform indicator based on the RSI. Informative Pair Data:
Retrieves data from an informative pair (timeframe: 1 hour) and calculates additional indicators (e.g., Heikin-Ashi close prices, ROCR). Buy Trend:
Determines buy signals based on various conditions:
ROCR of the informative pair is greater than a specified value. Lower Bollinger Band is positive. Bollinger Band delta is greater than a percentage of the Heikin-Ashi close price. Price delta is greater than a percentage of the Heikin-Ashi close price. Tail is less than a percentage of the Bollinger Band delta. Heikin-Ashi close price is less than the previous lower band. Heikin-Ashi close price is less than or equal to the previous close price. Heikin-Ashi close price is less than the slow EMA. Heikin-Ashi close price is less than a specified percentage of the lower Bollinger Band. Sell Trend:
Determines sell signals based on various conditions:
Fisher Transform value is greater than a specified value. Heikin-Ashi high price is less than or equal to the previous high price for two consecutive candles. Heikin-Ashi close price is less than or equal to the previous close price. Fast EMA is greater than the Heikin-Ashi close price. Heikin-Ashi close price multiplied by a specified percentage is greater than the middle Bollinger Band. Volume is greater than zero. Trailing Buy:
Implements trailing buy functionality:
Trailing buy order is initiated when a buy signal is detected for the current candle. Updates the trailing buy order's parameters (e.g., uplimit) based on the current price and trailing buy offset. Trailing buy order is triggered when the current price is lower than the trailing buy order's uplimit. Stops the trailing buy if the current price exceeds a certain threshold or if the trailing buy offset is None. This strategy combines multiple indicators and conditions to generate buy and sell signals, and it includes trailing buy functionality to optimize entry points in a dynamically changing market.