2022-05-03 08:14:17 +00:00
|
|
|
from freqtrade.resolvers.freqaimodel_resolver import FreqaiModelResolver
|
|
|
|
|
|
|
|
|
|
|
|
class CustomModel:
|
|
|
|
"""
|
2022-05-04 15:42:34 +00:00
|
|
|
A bridge between the user defined IFreqaiModel class
|
2022-05-03 08:14:17 +00:00
|
|
|
and the strategy.
|
|
|
|
"""
|
|
|
|
|
2022-05-04 15:42:34 +00:00
|
|
|
def __init__(self, config):
|
2022-05-03 08:14:17 +00:00
|
|
|
|
|
|
|
self.bridge = FreqaiModelResolver.load_freqaimodel(config)
|