CandleSeries
Candles series.
Inherits: NotifiableObject
Implements: IPersistable
Constructors
public CandleSeries()
candleSeries = CandleSeries()
Initializes a new instance of the 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
public bool AllowBuildFromSmallerTimeFrame { get; set; }
value = candleSeries.AllowBuildFromSmallerTimeFrame
candleSeries.AllowBuildFromSmallerTimeFrame = value
Allow build candles from smaller timeframe.
public object Arg { get; set; }
value = candleSeries.Arg
candleSeries.Arg = value
The candle formation parameter. For example, for TimeFrameCandle this value is TimeFrame.
public Level1Fields? BuildCandlesField { get; set; }
value = candleSeries.BuildCandlesField
candleSeries.BuildCandlesField = value
Extra info for the BuildCandlesFrom2.
public DataType BuildCandlesFrom2 { get; set; }
value = candleSeries.BuildCandlesFrom2
candleSeries.BuildCandlesFrom2 = value
Which market-data type is used as a source value.
public MarketDataBuildModes BuildCandlesMode { get; set; }
value = candleSeries.BuildCandlesMode
candleSeries.BuildCandlesMode = value
Build mode.
public Type CandleType { get; set; }
value = candleSeries.CandleType
candleSeries.CandleType = value
The candle type.
public long? Count { get; set; }
value = candleSeries.Count
candleSeries.Count = value
Market-data count.
public DateTime? From { get; set; }
value = candleSeries.From
candleSeries.From = value
The initial date from which you need to get data.
public bool IsCalcVolumeProfile { get; set; }
value = candleSeries.IsCalcVolumeProfile
candleSeries.IsCalcVolumeProfile = value
To perform the calculation PriceLevels. By default, it is disabled.
public bool IsFinishedOnly { get; set; }
value = candleSeries.IsFinishedOnly
candleSeries.IsFinishedOnly = value
Request Finished only candles.
public bool? IsRegularTradingHours { get; set; }
value = candleSeries.IsRegularTradingHours
candleSeries.IsRegularTradingHours = value
Use only the regular trading hours for which data will be requested.
public Security Security { get; set; }
value = candleSeries.Security
candleSeries.Security = value
The instrument to be used for candles formation.
public DateTime? To { get; set; }
value = candleSeries.To
candleSeries.To = value
The final date by which you need to get data.
public WorkingTime WorkingTime { get; set; }
value = candleSeries.WorkingTime
candleSeries.WorkingTime = value
The time boundary, within which candles for give series shall be translated.
Methods
public void Load(SettingsStorage storage)
candleSeries.Load(storage)
Load settings.
- storage
- Settings storage.
public void Save(SettingsStorage storage)
candleSeries.Save(storage)
Save settings.
- storage
- Settings storage.
public override string ToString()
result = candleSeries.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.