Class CandleSeries
- Namespace
- StockSharp.Algo.Candles
- Assembly
- StockSharp.BusinessEntities.dll
Candles series.
public class CandleSeries : NotifiableObject, IPersistable
- Inheritance
-
CandleSeries
- Implements
-
IPersistable
- Extension Methods
Constructors
CandleSeries()
Initializes a new instance of the CandleSeries.
public CandleSeries()
CandleSeries(Type, Security, object)
Initializes a new instance of the CandleSeries.
public CandleSeries(Type candleType, Security security, object arg)
Parameters
candleType
TypeThe candle type.
security
SecurityThe instrument to be used for candles formation.
arg
objectThe candle formation parameter. For example, for TimeFrameCandle this value is TimeFrame.
Properties
AllowBuildFromSmallerTimeFrame
Allow build candles from smaller timeframe.
[Display(ResourceType = typeof(LocalizedStrings), Name = "SmallerTimeFrame", Description = "SmallerTimeFrameDesc", GroupName = "General", Order = 5)]
public bool AllowBuildFromSmallerTimeFrame { get; set; }
Property Value
Remarks
Available only for TimeFrameCandle.
Arg
The candle formation parameter. For example, for TimeFrameCandle this value is TimeFrame.
[Browsable(false)]
public object Arg { get; set; }
Property Value
BuildCandlesField
Extra info for the BuildCandlesFrom.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Field", Description = "Level1Field", GroupName = "Build", Order = 22)]
public Level1Fields? BuildCandlesField { get; set; }
Property Value
BuildCandlesFrom
Which market-data type is used as a source value.
[Browsable(false)]
[Obsolete("Use BuildCandlesFrom2 property.")]
public MarketDataTypes? BuildCandlesFrom { get; set; }
Property Value
BuildCandlesFrom2
Which market-data type is used as a source value.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Source", Description = "CandlesBuildSource", GroupName = "Build", Order = 21)]
public DataType BuildCandlesFrom2 { get; set; }
Property Value
BuildCandlesMode
Build mode.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Mode", Description = "BuildMode", GroupName = "Build", Order = 20)]
public MarketDataBuildModes BuildCandlesMode { get; set; }
Property Value
CandleType
The candle type.
[Browsable(false)]
public Type CandleType { get; set; }
Property Value
Count
Market-data count.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Count", Description = "CandlesCount", GroupName = "General", Order = 7)]
public long? Count { get; set; }
Property Value
- long?
FillGaps
Try fill gaps.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Gaps", Description = "FillGaps", GroupName = "Build", Order = 24)]
[Obsolete("Use separate subscriptions.")]
public bool FillGaps { get; set; }
Property Value
From
The initial date from which you need to get data.
[Display(ResourceType = typeof(LocalizedStrings), Name = "From", Description = "StartDateDesc", GroupName = "General", Order = 3)]
public DateTimeOffset? From { get; set; }
Property Value
IsCalcVolumeProfile
To perform the calculation PriceLevels. By default, it is disabled.
[Display(ResourceType = typeof(LocalizedStrings), Name = "VolumeProfile", Description = "VolumeProfileCalc", GroupName = "General", Order = 2)]
public bool IsCalcVolumeProfile { get; set; }
Property Value
IsFinishedOnly
Request Finished only candles.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Finished", Description = "Finished", GroupName = "Build", Order = 23)]
public bool IsFinishedOnly { get; set; }
Property Value
IsRegularTradingHours
Use only the regular trading hours for which data will be requested.
[Display(ResourceType = typeof(LocalizedStrings), Name = "RegularHours", Description = "RegularTradingHours", GroupName = "General", Order = 6)]
public bool? IsRegularTradingHours { get; set; }
Property Value
- bool?
Security
The instrument to be used for candles formation.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Security", Description = "SecurityDot", GroupName = "General", Order = 0)]
public Security Security { get; set; }
Property Value
To
The final date by which you need to get data.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Until", Description = "ToDateDesc", GroupName = "General", Order = 4)]
public DateTimeOffset? To { get; set; }
Property Value
WorkingTime
The time boundary, within which candles for give series shall be translated.
[Browsable(false)]
public WorkingTime WorkingTime { get; set; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()