This commit is contained in:
zhangkun9038@dingtalk.com 2025-08-30 21:34:25 +08:00
parent 619cf7b89a
commit 199af44df5

View File

@ -4,6 +4,7 @@ warnings.filterwarnings("ignore", category=UserWarning, module="pandas_ta")
import logging
from freqtrade.strategy import IStrategy
from pandas import DataFrame
from typing import Union
import pandas_ta as ta
from freqtrade.persistence import Trade
import numpy as np
@ -827,10 +828,10 @@ class FreqaiPrimer(IStrategy):
def custom_entry_price(
self,
pair: str,
trade: 'Trade' | None,
trade: Union['Trade', None],
current_time: datetime,
proposed_rate: float,
entry_tag: str | None,
entry_tag: Union[str, None],
side: str,
**kwargs,
) -> float: