backtest: fix empty data format

Signed-off-by: c9s <yoanlin93@gmail.com>
This commit is contained in:
c9s 2022-06-27 16:40:44 +08:00
parent f12e173254
commit c9aed1e21b
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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: -';
} }
} }
} }