RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

MissingBars

 

 

 

 

Category

General-Purpose Functions

Description

Number of bars missing before the current bar in this symbol

Syntax

MissingBars(symbol {$CalSym})

Parameters

symbol - the calendar symbol to use for comparison (optional)

Notes

A "missing bar" is a bar that is absent in this stock while being present in most other stocks from the same exchange.

This function returns a count of missing bars preceding the current bar. (By definition the current bar must be present.)

For most symbols on most dates, MissingBars() will return 0.

A missing bar is detected when the comparison symbol has a bar for that date but the current symbol does not.

The default comparison symbol is the CalendarSym for the current strategy.

The optional argument can be used to specify a different comparison symbol if desired.

See also the AllowMissingBar strategy setting, which determines whether trades can occur on a bar for which MissingBars() returns > 0.

 

 

 

 

Copyright © 2020-2025 Systematic Solutions, LLC