Documentation
¶
Index ¶
- Constants
- func CollectOptLog(args *config.CmdArgs) *errs.Error
- func CompareExgBTOrders(args []string)
- func RunBTOverOpt(args *config.CmdArgs) *errs.Error
- func RunOptimize(args *config.CmdArgs) *errs.Error
- type BTResult
- type BackTest
- type FuncOptTask
- type GroupScore
- type OptGroup
- type OptInfo
- type PlotData
- type RowItem
- type RowPart
Constants ¶
View Source
const (
ShowNum = 600
)
Variables ¶
This section is empty.
Functions ¶
func CollectOptLog ¶
CollectOptLog Collect and analyze the logs generated by RunOptimize Sorts all policy tasks in reverse score order of output. 收集分析RunOptimize生成的日志 将所有策略任务按分数倒序排列输出。
func CompareExgBTOrders ¶
func CompareExgBTOrders(args []string)
CompareExgBTOrders Compare the exchange export order records with the backtest order records. 对比交易所导出订单记录和回测订单记录。
func RunBTOverOpt ¶
RunBTOverOpt Backtesting mode based on continuous parameter tuning. Approach the real situation and avoid using future information to adjust parameters for backtesting. 基于持续调参的回测模式。接近实盘情况,避免使用未来信息调参回测。
Types ¶
type BTResult ¶
type BTResult struct {
MaxOpenOrders int
MinReal float64
MaxReal float64 // Maximum Assets 最大资产
MaxDrawDownPct float64 // Maximum drawdown percentage 最大回撤百分比
ShowDrawDownPct float64 // Displays the maximum drawdown percentage 显示最大回撤百分比
BarNum int
TimeNum int
OrderNum int
Plots *PlotData
StartMS int64
EndMS int64
PlotEvery int
TotalInvest float64
OutDir string
PairGrps []*RowItem
TotProfitPct float64
SharpeRatio float64
SortinoRatio float64
// contains filtered or unexported fields
}
func NewBTResult ¶
func NewBTResult() *BTResult
type BackTest ¶
func NewBackTest ¶
func NewBackTest() *BackTest
type GroupScore ¶
type GroupScore struct {
Items []*config.RunPolicyConfig
Score float64
}
Click to show internal directories.
Click to hide internal directories.