-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
59 lines (42 loc) · 1.12 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package main
import (
"fmt"
"time"
"v1/pkg/strategey"
)
func main() {
start := time.Now()
// strategey.RunEmaOptimize()
// strategey.RunSTOptimize()
strategey.RunEmaRsiOptimize()
// strategey.RunDonchainOptimize()
// strategey.RunEmaOptimize2()
// strategey.RunSTOptimize2()
// strategey.RunDonchainOptimize2()
// strategey.RunDonchainOptimize()
// strategey.RunBetterRsiOptimize()
// fmt.Println("通常のバックテスト結果")
// strategey.EmaBacktest()
// strategey.SuperTrendBacktest()
// strategey.DonchainBacktest()
// strategey.RSIBetterBacktest()
// strategey.EmaBacktest()
// strategey.RunBacktestST()
// strategey.RunRsi2Optimize()
// strategey.RunBacktestBb()
// strategey.RunBacktestMacd()
// strategey.EmaBacktest()
// assetName := "TIAUSDT"
// duration := "4h"
// df, _ := strategey.GetCandleData(assetName, duration)
// h := df.Highs()
// l := df.Lows()
// c := df.Closes()
// a := risk.ChoppySlice(c, h, l)
// fmt.Println(a)
end := time.Now()
// 処理時間を計算
duration1 := end.Sub(start)
// 処理時間を表示
fmt.Printf("処理時間: %v\n", duration1)
}