fill uses fuller illiquid bars for visibility
This commit is contained in:
@@ -190,7 +190,8 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
|
|||||||
let price = parseFloat(row[1])
|
let price = parseFloat(row[1])
|
||||||
if (inverted)
|
if (inverted)
|
||||||
price = 1/price
|
price = 1/price
|
||||||
open = high = low = close = price
|
open = latest === null ? price : latest[1]
|
||||||
|
high = low = close = price
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
time = parseInt(row[0])
|
time = parseInt(row[0])
|
||||||
@@ -204,6 +205,8 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
|
|||||||
}
|
}
|
||||||
high = Math.max(open, close)
|
high = Math.max(open, close)
|
||||||
low = Math.min(open,close)
|
low = Math.min(open,close)
|
||||||
|
if (latest!==null)
|
||||||
|
open = latest[1]
|
||||||
break
|
break
|
||||||
case 5:
|
case 5:
|
||||||
time = parseInt(row[0])
|
time = parseInt(row[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user