Click or drag to resize

Historical data

Rithmic provides historical candles.

Work with historical candles

  1. In order to get historic candles, call SubscribeCandles method:

    C#
    var series = new CandleSeries
    {
        CandleType = typeof(TimeFrameCandle),
        Security = SecurityPicker.SelectedSecurity,
        Arg = (TimeSpan)CandlesPeriods.SelectedItem;
    };
    _trader.SubscribeCandles(series, tf.Ticks == 1 ? DateTime.Today : DateTime.Now.Subtract(TimeSpan.FromTicks(tf.Ticks * 100)), DateTime.Now);
  2. Historical candles passed through the CandleSeriesProcessing event:

    C#
    _trader.CandleSeriesProcessing += ProcessCandle;
  3. Appeared candles can be drawn through the graphical control.