fill uses fuller illiquid bars for visibility

This commit is contained in:
tim
2024-10-26 20:16:42 -04:00
parent cf7eb637bc
commit dfcadb1ec2

View File

@@ -190,7 +190,8 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
let price = parseFloat(row[1])
if (inverted)
price = 1/price
open = high = low = close = price
open = latest === null ? price : latest[1]
high = low = close = price
break
case 3:
time = parseInt(row[0])
@@ -204,6 +205,8 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
}
high = Math.max(open, close)
low = Math.min(open,close)
if (latest!==null)
open = latest[1]
break
case 5:
time = parseInt(row[0])