Skip to content

Commit 239fde0

Browse files
committed
Fix real-time calc for symbols, e.g. close1D
1 parent ec4a925 commit 239fde0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/script_engine.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ class ScriptEngine {
352352
this.close[0] = data[4]
353353
this.vol[0] = data[5]
354354
for (var id in this.tss) {
355-
this.tss[id] = this.tss[id].__fn__()
355+
if (this.tss[id].__tf__) this.tss[id].__fn__()
356+
else this.tss[id][0] = this.tss[id].__fn__()
356357
}
357358
}
358359
}

0 commit comments

Comments
 (0)