Skip to main content

candle

Function candle 

Source
pub fn candle(
    bar: &Bar,
    instrument: &InstrumentId,
    tf: Timeframe,
    now: Instant,
) -> Candle
Expand description

One candle of the timeframe tf. The broker gives the open time; the close is the open plus the length of the timeframe.