NumBars

Total number of bars in the simulation, determined from Lookback, StartDate and EndDate and from the available data in the price history files. Is 0 in the initial run before the first asset call.

Bar

Current bar number including the lookback period, from 0 to NumBars-1.

StartBar

Number of the first bar after the lookback period.

Day

Current trading day number of the simulation, starting with the end of the lookback period. Weekends are skipped.

Type:

int, read/only

Remarks:

Example:

printf("\nBar %i of %i",Bar,NumBars);

See also:

Bars, BarPeriod, BarOffset, LookBack, StartDate, run

 

► latest version online