init
This commit is contained in:
27
old/t01/v1.go
Normal file
27
old/t01/v1.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package t01
|
||||
|
||||
import (
|
||||
"github.com/banbox/banbot/config"
|
||||
"github.com/banbox/banbot/strat"
|
||||
"github.com/banbox/banstagy/com"
|
||||
)
|
||||
|
||||
func MainV1(pol *config.RunPolicyConfig) *strat.TradeStrat {
|
||||
// 最适合5m的参数,测试20240322-20240324,50币,无需大周期趋势
|
||||
maSml = 10
|
||||
maBig = 50
|
||||
maParent = 30
|
||||
openOffRate = 0.5
|
||||
badRate = 3
|
||||
goodRate = 3
|
||||
return &strat.TradeStrat{
|
||||
Version: 1,
|
||||
WarmupNum: 300,
|
||||
MinTfScore: 0.75,
|
||||
//DrawDownExit: true,
|
||||
OnStartUp: onStartUp,
|
||||
OnBar: onBar,
|
||||
OnPairInfos: com.MakePairInfos(sampleNum*sampleStep + maParent),
|
||||
OnInfoBar: onInfoBar,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user