# source: https://raw.githubusercontent.com/raphant/freqgym/7c3d8146c30a24d8b8e866793a2456b531986de4/user_data/strategies/hodl.py
"""
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

import pandas_ta
from finta import TA as ta
from freqtrade.persistence import Trade
from freqtrade.strategy.interface import IStrategy
from pandas import DataFrame


class github_raphant_freqgym__hodl__20230208_211859(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
