Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { OriginalCandles []*kline.Item EnhancedCandles []DetailedKline Statistics *statistics.Statistic Config *config.Config TemplatePath string OutputPath string }
Data holds all statistical information required to output detailed backtesting results
func (*Data) AddKlineItem ¶
AddKlineItem appends a SET of candles for the report to enhance upon generation
func (*Data) GenerateReport ¶
GenerateReport sends final data from statistics to a template to create a lovely final report for someone to view
type DetailedCandle ¶
type DetailedCandle struct { Time int64 Open float64 High float64 Low float64 Close float64 Volume float64 VolumeColour string MadeOrder bool OrderDirection order.Side OrderAmount float64 Shape string Text string Position string Colour string PurchasePrice float64 }
DetailedCandle contains extra details to enable rich reporting results
Click to show internal directories.
Click to hide internal directories.