Documentation
¶
Index ¶
- func DrawGraph(gainPts plotter.XYs, capitalPts plotter.XYs, operations plotter.XYs)
- func GenerateHistory()
- func GetTickerFilePath(name string) string
- func ListTickers(root string) []string
- func OpenTicker(name string) *os.File
- func ParseLine(line []byte) *model.DataPoint
- func SaveRun()
- func TrackTicker(ticker string, strategy *model.StrategyInputs, ...)
- func Verify(history []model.PortfolioAction, inputs *model.StrategyInputs) float64
- type EncoderDecoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateHistory ¶
func GenerateHistory()
func GetTickerFilePath ¶
func ListTickers ¶
func OpenTicker ¶
func TrackTicker ¶
func TrackTicker(ticker string, strategy *model.StrategyInputs, input chan *model.SimplifiedDate)
func Verify ¶
func Verify(history []model.PortfolioAction, inputs *model.StrategyInputs) float64
Types ¶
type EncoderDecoder ¶
type EncoderDecoder struct {
// contains filtered or unexported fields
}
func NewEncoderDecoder ¶
func NewEncoderDecoder(writer *bufio.Writer, reader *bufio.Reader) *EncoderDecoder
func (*EncoderDecoder) ReadFromBin ¶
func (ed *EncoderDecoder) ReadFromBin() (*model.DataPoint, error)
func (*EncoderDecoder) WriteToBin ¶
func (ed *EncoderDecoder) WriteToBin(dp *model.DataPoint)
Click to show internal directories.
Click to hide internal directories.