CandleSeries

StockSharp.Algo.Candles

Candles series.

Inherits: NotifiableObject

Implements: IPersistable

Constructors

CandleSeries
public CandleSeries()
candleSeries = CandleSeries()

Initializes a new instance of the CandleSeries.

CandleSeries
public CandleSeries(Type candleType, Security security, object arg)
candleSeries = CandleSeries(candleType, security, arg)

Initializes a new instance of the CandleSeries.

candleType
The candle type.
security
The instrument to be used for candles formation.
arg
The candle formation parameter. For example, for TimeFrameCandle this value is TimeFrame.

Properties

AllowBuildFromSmallerTimeFrame
public bool AllowBuildFromSmallerTimeFrame { get; set; }
value = candleSeries.AllowBuildFromSmallerTimeFrame
candleSeries.AllowBuildFromSmallerTimeFrame = value

Allow build candles from smaller timeframe.

Arg
public object Arg { get; set; }
value = candleSeries.Arg
candleSeries.Arg = value

The candle formation parameter. For example, for TimeFrameCandle this value is TimeFrame.

BuildCandlesField
public Level1Fields? BuildCandlesField { get; set; }
value = candleSeries.BuildCandlesField
candleSeries.BuildCandlesField = value

Extra info for the BuildCandlesFrom2.

BuildCandlesFrom2
public DataType BuildCandlesFrom2 { get; set; }
value = candleSeries.BuildCandlesFrom2
candleSeries.BuildCandlesFrom2 = value

Which market-data type is used as a source value.

BuildCandlesMode
public MarketDataBuildModes BuildCandlesMode { get; set; }
value = candleSeries.BuildCandlesMode
candleSeries.BuildCandlesMode = value

Build mode.

CandleType
public Type CandleType { get; set; }
value = candleSeries.CandleType
candleSeries.CandleType = value

The candle type.

Count
public long? Count { get; set; }
value = candleSeries.Count
candleSeries.Count = value

Market-data count.

From
public DateTime? From { get; set; }
value = candleSeries.From
candleSeries.From = value

The initial date from which you need to get data.

IsCalcVolumeProfile
public bool IsCalcVolumeProfile { get; set; }
value = candleSeries.IsCalcVolumeProfile
candleSeries.IsCalcVolumeProfile = value

To perform the calculation PriceLevels. By default, it is disabled.

IsFinishedOnly
public bool IsFinishedOnly { get; set; }
value = candleSeries.IsFinishedOnly
candleSeries.IsFinishedOnly = value

Request Finished only candles.

IsRegularTradingHours
public bool? IsRegularTradingHours { get; set; }
value = candleSeries.IsRegularTradingHours
candleSeries.IsRegularTradingHours = value

Use only the regular trading hours for which data will be requested.

Security
public Security Security { get; set; }
value = candleSeries.Security
candleSeries.Security = value

The instrument to be used for candles formation.

To
public DateTime? To { get; set; }
value = candleSeries.To
candleSeries.To = value

The final date by which you need to get data.

WorkingTime
public WorkingTime WorkingTime { get; set; }
value = candleSeries.WorkingTime
candleSeries.WorkingTime = value

The time boundary, within which candles for give series shall be translated.

Methods

Load
public void Load(SettingsStorage storage)
candleSeries.Load(storage)

Load settings.

storage
Settings storage.
Save
public void Save(SettingsStorage storage)
candleSeries.Save(storage)

Save settings.

storage
Settings storage.
ToString
public override string ToString()
result = candleSeries.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.