Timeframe
N/A
Direction
Long Only
Stoploss
-100.0%
Trailing Stop
No
ROI
0m: 100000.0%
Interface Version
N/A
Startup Candles
N/A
Indicators
0
freqtrade/freqtrade-strategies
Strategy 003 author@: Gerald Lonlas github@: https://github.com/freqtrade/freqtrade-strategies
"""
78/100: 245 trades. Avg profit 1.40%. Total profit 0.03034187 BTC ( 342.11Σ%). Avg duration 301.9 min. Objective: -154.45381
"""
# --- Do not remove these libs ---
from datetime import datetime
from freqtrade.persistence import Trade
from freqtrade.strategy.interface import IStrategy
from pandas import DataFrame
from finta import TA as ta
import pandas_ta
class Hodl(IStrategy):
# Stoploss:
stoploss = -1
# ROI table:
minimal_roi = {"0": 1000}
# endregion
ticker_interval = '5m'
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return dataframe
def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe['buy'] = 1
return dataframe
def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe['sell'] = 0
return dataframe