The "InformativeSample" strategy is a sample trading strategy implemented in the Freqtrade platform. The strategy compares the price of a stake currency (e.g., Bitcoin) with USDT (Tether). It is designed to serve as an example of how to use a referential pair against USDT.
The strategy uses various technical analysis indicators to make trading decisions.
It calculates exponential moving averages (EMAs) with different time periods (20, 50, and 100) on the stake currency's price data.
Additionally, it retrieves price data for an informative pair (BTC/USDT) at a 15-minute interval and calculates a simple moving average (SMA) with a period of 20 on that data. The buy signal is generated when the 20-period EMA crosses above the 50-period EMA and the stake currency's price on the informative pair is above the 20-period SMA. The sell signal is generated when the 20-period EMA crosses below the 50-period EMA and the stake currency's price on the informative pair is below the 20-period SMA. The strategy has predefined values for minimal return on investment (ROI) targets and a stop-loss percentage. It operates on a 5-minute timeframe and does not use a trailing stop-loss. It can be run using the command "python3 freqtrade -s InformativeSample" in the Freqtrade environment. Please note that the strategy is described as not performing very well, but it serves as a demonstration of how to implement and use informative pairs in a trading strategy.