Function candle
pub fn candle(
bar: &Bar,
instrument: &InstrumentId,
tf: Timeframe,
now: Instant,
) -> CandleExpand description
One candle of the timeframe tf. The broker gives the open time; the close is the open plus the length of the
timeframe.