updated SwapOrderStatus with Andrew's changes

This commit is contained in:
tim
2024-08-26 17:27:58 -04:00
parent e0f42f80e7
commit 55397c2b1c
5 changed files with 15 additions and 12 deletions

View File

@@ -387,7 +387,7 @@ function chartMeanRange() {
for (let barIndex = bars.size() - 1; barIndex >= final; barIndex--) {
count++
const [_time, _open, high, low, _close, _volume, _ms] = bars.valueAt(barIndex)
range += (high - low)
range += Math.abs(high - low)
}
if (count > 0)
range /= count