17 lines
423 B
Python
17 lines
423 B
Python
from freqtrade.strategy import IStrategy
|
|
from freqtrade.optimize.hyperopt import IntParameter, CategoricalParameter, DecimalParameter
|
|
import talib.abstract as ta
|
|
import numpy as np
|
|
|
|
# 参数设置
|
|
class HyperoptParameters:
|
|
# 旧的参数定义
|
|
some_old_param = IntParameter(1, 10, default=5, optimize=False)
|
|
|
|
# 策略类
|
|
class FreqaiPrimer(IStrategy):
|
|
# 策略配置
|
|
minimal_roi = {
|
|
"0": 0.10
|
|
}
|