The "InformativeSample" strategy is a sample implementation that compares a specified stake currency with USDT (Tether). It is not a high-performing strategy but serves as an example of how to use a referential pair against USDT. Key Features:
The strategy defines a minimal return on investment (ROI) target and a stop loss value.
The optimal timeframe for this strategy is set to 5 minutes.
It does not use trailing stop loss.
Technical analysis indicators such as Exponential Moving Average (EMA) are calculated and added to the DataFrame. The strategy generates a buy signal when the 20-period EMA is above the 50-period EMA and the stake currency/USDT price is above the 20-period Simple Moving Average (SMA). It generates a sell signal when the 20-period EMA is below the 50-period EMA and the stake currency/USDT price is below the 20-period SMA. Additional Information:
The strategy supports the use of informative pairs, which are non-tradeable pairs used for analysis purposes. The "populate_indicators" function calculates additional indicators and merges data from the informative pair with the main DataFrame. The "populate_buy_trend" function generates the buy signal based on the defined conditions. The "populate_sell_trend" function generates the sell signal based on the defined conditions. To use this strategy, you can execute the following command:
python3 freqtrade -s InformativeSample
For more details and the complete source code, you can visit the GitHub repository: https://github.com/freqtrade/freqtrade-strategies (author: xmatthias)