ivanproskuryakov / ta-search

Trade entry indicator detection library
27 stars 10 forks source link

cannot import name 'LocalTrade' #1

Open mac-88 opened 2 years ago

mac-88 commented 2 years ago

Hey, i want to test this but i have following error:

ImportError: cannot import name 'LocalTrade' from 'freqtrade.persistence.trade_model' (/root/freqtrade/freqtrade/persistence/trade_model.py)

maybe miss some requierements?

thanks a lot

ivanproskuryakov commented 2 years ago

@mac-88 hi, how are you testing it? For installation of the strategies just copy to freqtrade/user_data/strategies directory.

There could be a problem with python imports on this line, https://github.com/ivanproskuryakov/ta-search/blob/master/user_data/strategies/TaSearch5m.py#L4 If so, make the change: from from .taSearch import TaSearch to from taSearch import TaSearch