Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a Python crypto trading bot for strategy development, backtesting, hyperparameter tuning, and dry-run or live trading via CCXT.
59% 82%+23 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 13 of 22 without it.
In the manual RSI calculation on candle close data, what shift step parameter is used for the price diff baseline?
The pandas shift function uses a period parameter of 14.
3 of 3 safety checks passed
Freqtrade is an open-source crypto trading bot written in Python. Supports strategy development, backtesting, hyperparameter optimization, and dry-run or live trading via 100+ exchange backends (CCXT).
git clone https://github.com/freqtrade/freqtrade.git
cd freqtrade
uv pip install -e .
from freqtrade.strategy import IStrategy
class MyStrategy(IStrategy):
timeframe = "1h"
minimal_roi = {"0": 0.01}
stoploss = -0.05
def populate_indicators(self, dataframe, metadata):
dataframe["rsi"] = 100 - (100 / (1 + dataframe["close"] / dataframe["close"].shift(14)))
return dataframe
def populate_buy_trend(self, dataframe, metadata):
dataframe.loc[(dataframe["rsi"] < 30) & (dataframe["volume"] > 0), "buy"] = 1
return dataframe
freqtrade backtesting --strategy MyStrategy --timerange 20240101-20241231
freqtrade trade --strategy MyStrategy --dry-run
Next to this one in the catalogue, plus more from the same author.