You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
380 B
21 lines
380 B
package backtest |
|
|
|
import ( |
|
"sig-pub/pkg/data/entity" |
|
"sig-pub/pkg/strategy" |
|
) |
|
|
|
// 回测引擎 |
|
// sig strategy |
|
// trade strategy |
|
// close strategy |
|
// 历史k线加载 |
|
type BacktestEngine struct { |
|
start, end int64 |
|
plan entity.TradePlan // 交易计划 |
|
} |
|
|
|
// 多周期策略回测引擎 |
|
type MultiIntervalBacktraceEngine struct { |
|
strategy strategy.IIntervalSigStrategy |
|
}
|
|
|