Use a page to display multiple charts

This commit is contained in:
Luke I. Wilson
2023-05-16 21:16:40 -05:00
parent a9df8cd8e3
commit 8fcd7f5cc9
3 changed files with 12 additions and 10 deletions

View File

@@ -99,7 +99,7 @@ func (t *Trader) Tick() {
"Drawdown": func() float64 {
var bal float64
if t.stats.Len() > 0 {
bal = t.stats.Value("Equity", 0).(float64) // Take starting balance
bal = t.stats.Float("Equity", 0) // Take starting balance
} else {
bal = t.Broker.NAV()
}