0

The fetched OHLC is on the daily candle or TF and we are using the previous day candle to fetch levels for trading today. Today's trades will obviously have to fetch the signals on a lower time frame (say 15 minutes) based on the daily candle of yesterday.

It's important to note that the signals generated on the previous day's candle are valid for the whole of today. Also, we can see multiple buy and hens sell or else, sell and then buy in the same day.

    # Optimal timeframe for the strategy.
    timeframe = '1h'


def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        .
        .
        pass        
     
def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        .
        .
        pass

def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        .
        .
        pass

so this code will use a 1-hour timeframe for this current strategy in defining every single function

def populate_indicators,def populate_entry_trend,def populate_exit_trend

as defined timeframe =1h is the current time frame in this strategy and then freqtrade download OHLC value in the data frame for every 1 hour for the given time period using that data frame I need to perform some mathematical operations and use that previous day data frame in my current data frame and current strategy

so basically this question is related to freqtrade and trading using python

0 Answers0