This commit is contained in:
2026-08-24 20:53:21 +08:00
commit 6e78bba16a
287 changed files with 32443 additions and 0 deletions

27
old/t01/v1.go Normal file
View 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,
}
}