The CrossEMA strategy is a trading strategy that uses two Exponential Moving Averages (EMA) to generate buy and sell signals. Here's a short description of how the strategy works:
The strategy calculates two EMAs with different time periods (28 and 48) using the close prices of the asset. When the shorter EMA (ema1) crosses above the longer EMA (ema2) and the value of ema1 is below 0.019, a buy signal is generated.
When the shorter EMA (ema1) crosses below the longer EMA (ema2), a sell signal is generated.
The strategy uses a 1-hour timeframe and requires at least 202 candles of data before producing valid signals.
It can be customized through parameters in the configuration file, such as the minimal ROI and stoploss values. The strategy also supports a trailing stoploss feature. Note: The code provided is a Python implementation of the strategy using the Freqtrade library. It includes functions to populate indicators, generate buy signals, and generate sell signals for a given dataframe of price data.