ADD: added first version

This commit is contained in:
hwinkel
2026-01-14 22:44:12 +01:00
commit 2b892123e1
18 changed files with 580 additions and 0 deletions

13
internal/model/bar.go Normal file
View File

@@ -0,0 +1,13 @@
package model
import "time"
type Bar struct {
Symbol string
Time time.Time
Open float64
High float64
Low float64
Close float64
Volume int64
}

14
internal/model/trade.go Normal file
View File

@@ -0,0 +1,14 @@
package model
import "time"
type Trade struct {
Time time.Time
Symbol string
Side string
Price float64
Qty int
Cash float64
StopPrice float64 // ATR-based stop
TakeProfit float64 // ATR-based take profit
}

10
internal/model/types.go Normal file
View File

@@ -0,0 +1,10 @@
package model
type Signal int
const (
Hold Signal = iota
Buy
Sell
)