|
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.
Missing bars are counted at the bar size the formula is evaluated at.
The default comparison symbol is the CalendarSym for the current strategy, or the global date list (every date with a bar for any symbol) if no CalendarSym is set.
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.
|