Читаем документацию к велзу:
6.3 Features of Real-time ChartScripts
Ghost Bar
For real-time providers that support this feature (most do), the ghost bar is the last
bar at the far right edge of a real-time chart. As new data comes in the ghost
bar updates dynamically giving you a visual indication of the open, high, low,
close, and volume of the incomplete bar in formation. Trading system rules
and indicators are not updated as the ghost bar value changes. Instead,
indicators are updated, and the ChartScript is automatically executed only
when a new bar has been completed.
Иными словами ни о каких незакрытых барах ChartScript не знает, что собственно логично. Пересчет идет по закрытию бара.
ShortAtStop(i, Open[i], "SE");
такая конструкция в велзе работает только в лаборатории и она заглядывает в будущее на 1 бар.
Never Look Ahead!
Be sure that your trading system doesn't take advantage of information that it would
have no way of accessing in the real world! For example, don't look ahead at Price Series
or indicator values. Also, be sure to execute your entry and exit orders at the following
bar (typically Bar + 1) to avoid using information from the current bar that you'd have no
way of knowing at market open. In system testing these types of errors are termed
peeking or postdictive errors.
В TSLab через API в лаборатории это тоже можно сделать, только торговать такой скрипт не будет, так как хотелось бы.
Хотите мгновенно реагировать на гепы, работайте в секундных таймфреймах.
Индикаторы можно продолжать считать хоть в минутах, хоть в час. Сжатие никто не отменял.