mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
backtest: fix empty data format
Signed-off-by: c9s <yoanlin93@gmail.com>
This commit is contained in:
parent
f12e173254
commit
c9aed1e21b
|
@ -650,7 +650,7 @@ const createOHLCLegendUpdater = (legend: HTMLDivElement, prefix: string) => {
|
||||||
if (param) {
|
if (param) {
|
||||||
legend.innerHTML = prefix + ` O: ${param.open} H: ${param.high} L: ${param.low} C: ${param.close} T: ${new Date(time * 1000)}`;
|
legend.innerHTML = prefix + ` O: ${param.open} H: ${param.high} L: ${param.low} C: ${param.close} T: ${new Date(time * 1000)}`;
|
||||||
} else {
|
} else {
|
||||||
legend.innerHTML = prefix + ' -';
|
legend.innerHTML = prefix + ' O: - H: - L: - C: - T: -';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user