core

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const INFO = "INFO"
View Source
const TRADE = "TRADE"

Variables

This section is empty.

Functions

func StartPeriodicScan

func StartPeriodicScan(cfg *app.Config) *time.Ticker

Types

type Trade

type Trade struct {
	EntryDate   int
	EntryTime   int64
	EntryPrice  float64
	EntryLabel  string
	ExitDate    int
	ExitTime    int64
	ExitPrice   float64
	ExitLabel   string
	GrossProfit float64
	Contracts   int64
	Position    int64
}

func NewTrade

func NewTrade() *Trade

type TradingSystem

type TradingSystem struct {
	Name       string
	DataSymbol string

	Trades []*Trade
}

func GetTradingSystems

func GetTradingSystems() []*TradingSystem

func NewTradingSystem

func NewTradingSystem() *TradingSystem

type TradingSystemMap

type TradingSystemMap struct {
	TradingSystems map[string]*TradingSystem
}

func NewTradingSystemMap

func NewTradingSystemMap() *TradingSystemMap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL