Timeframe
5m
Direction
Long Only
Stoploss
-20.0%
Trailing Stop
No
ROI
0m: 100.0%, 100m: 200.0%, 200m: 300.0%, 300m: -100.0%
Interface Version
3
Startup Candles
N/A
Indicators
0
freqtrade/freqtrade-strategies
author@: lenik
from freqtrade.strategy.interface import IStrategy
from pandas import DataFrame
class AlwaysBuy(IStrategy):
INTERFACE_VERSION = 3
# ROI table:
# fmt: off
minimal_roi = {
"0": 1,
"100": 2,
"200": 3,
"300": -1
}
# fmt: on
# Stoploss:
stoploss = -0.2
# Trailing stop:
trailing_stop = False
trailing_stop_positive = 0.005
trailing_stop_positive_offset = 0.03
trailing_only_offset_is_reached = True
# Buy hypers
timeframe = "5m"
use_exit_signal = False
# #################### END OF RESULT PLACE ####################
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return dataframe
def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[:, ["enter_long", "enter_tag"]] = (1, "entry_reason")
return dataframe
def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return dataframe