iterativv / NostalgiaForInfinity

Trading strategy for the Freqtrade crypto bot
GNU General Public License v3.0
1.97k stars 488 forks source link

trategy analysis took 98.05s, more than 25% of the timeframe (75.00s) #407

Closed AlexiaChen closed 1 month ago

AlexiaChen commented 1 month ago

my environment:

image image

freqtrade UI logs show the warning:

WARNING freqtrade.freqtradebot - Strategy analysis took 98.05s, more than 25% of the timeframe (75.00s). This can lead to delayed orders and missed signals.Consider either reducing the amount of work your strategy performs or reduce the amount of pairs in the Pairlist.

I already reduced pairs from 100 to 75. but this warning message is always exists, is it my CPU is slow?? it must be joking

{
"pairlists": [
        {
            "method": "VolumePairList",
            "number_assets": 75,
            "sort_key": "quoteVolume",
            "refresh_period": 1800
        },
        { "method": "FullTradesFilter" },
        { "method": "AgeFilter", "min_days_listed": 30 },
        {
            "method": "PriceFilter",
            "low_price_ratio": 0.003
        },
        {
            "method": "SpreadFilter",
            "max_spread_ratio": 0.005
        },
        {
          "method": "VolumePairList",
          "number_assets": 75,
          "sort_key": "quoteVolume"
        }
    ],
}
AlexiaChen commented 1 month ago

continuely reduce to 60 seems not received this warning

tolgakaratas commented 1 month ago

make it 50 or 40, try to reduce step by step. Your processor and network total computing time should be less.