# source: https://raw.githubusercontent.com/HugsTS/ARBI-BOT/31c2ad01ced77a82848794a23cdd26f3696b1c85/user_data/strategies/SignalStrategy.py
from freqtrade.strategy import IStrategy
from pandas import DataFrame

# This is a passive strategy, designed to be controlled exclusively by API calls (e.g., from ArbiWatcher).
# It does not generate any buy or sell signals on its own.
# The 'populate_' methods are placeholders to satisfy the Freqtrade engine requirements.

class Github_HugsTS_ARBI_BOT__SignalStrategy__20250923_030318(IStrategy):
    # Strategy interface version - don't change
    INTERFACE_VERSION = 3

    # Optimal timeframe for the strategy
    timeframe = '5m'

    # Can this strategy go short?
    can_short: bool = False

    # Minimal ROI designed for the strategy
    minimal_roi = {
        "0": 100  # Set a high ROI to prevent premature selling; rely on API/forceexit
    }

    # Optimal stoploss designed for the strategy
    stoploss = -0.99 # Set a high stoploss; rely on API/forceexit

    # Trailing stoploss
    trailing_stop = False

    def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        # No indicators needed as we are not generating signals
        return dataframe

    def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        # No entry signals are generated by the strategy itself
        dataframe.loc[:, 'enter_long'] = 0
        dataframe.loc[:, 'enter_short'] = 0
        return dataframe

    def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        # No exit signals are generated by the strategy itself
        dataframe.loc[:, 'exit_long'] = 0
        dataframe.loc[:, 'exit_short'] = 0
        return dataframe