Introduction
Automation Platform
Botmain DAO
Building Trading Strategies
API References Dev Live Stream
@botmain/common / Class

IntradayBarsProvider

No documentation has been provided.

Properties

NameTypeDescription
count
number

The actual number of intraday bars in the stack

currentBar
Bar

The current intraday bar. If a ticks data subscription exists, this property is updated automatically during the intraday period from trades

stackSize
number

Capacity of historical data stack. The maximum number of intraday bars available to the strategy via lookback

Methods

atTime()

Gets the historical bar on the given date.

Presentation
atTime(date: Date): Bar;
Parameters
NameTypeDescription
date
Date

The date of the bar to retrieve. The date must be within the stack size (if called on the first bar in a run)

Returns

Bar

barsAgo()

The number of bars back to retrieve data. Zero means the current bar.

Presentation
barsAgo(lookback: number): Bar;
Parameters
NameTypeDescription
lookback
number

the number of bars back to retrieve data. This value must not exceed the stack size (if called on the first bar in a run).

Returns

Bar