Class DiagramStrategy
Стратегия, алгоритм которой представлен в виде схемы.
Implements
Inherited Members
Namespace: StockSharp.Xaml.Diagram
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public class DiagramStrategy : Strategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ICandleManager, ICandleSource<Candle>, IDisposable, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask, ICustomTypeDescriptor, INotifyPropertiesChanged
Constructors
DiagramStrategy()
Создать DiagramStrategy.
Declaration
public DiagramStrategy()
Properties
Composition
Схема стратегии.
Declaration
public CompositionDiagramElement Composition { get; set; }
Property Value
Type | Description |
---|---|
CompositionDiagramElement |
OverflowLimit
Max allowed elements per iteration to prevent stack overflow.
Declaration
public int OverflowLimit { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
RiskRules
Риск правила.
Declaration
public IEnumerable<IRiskRule> RiskRules { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<IRiskRule> |
UseStrategyParameterValues
Использовать параметры стратегии для сложного элемента.
Declaration
public bool UseStrategyParameterValues { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Clone()
Создать копию DiagramStrategy.
Declaration
public override Strategy Clone()
Returns
Type | Description |
---|---|
Strategy | Копия объекта. |
Overrides
Flush()
Сбросить не триггерные (корневые) элементы.
Declaration
public void Flush()
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
NeedShowProperty(PropertyDescriptor)
Возвращает true, если свойство необходимо отображать в настройках.
Declaration
protected virtual bool NeedShowProperty(PropertyDescriptor propertyDescriptor)
Parameters
Type | Name | Description |
---|---|---|
PropertyDescriptor | propertyDescriptor | Описание свойства. |
Returns
Type | Description |
---|---|
Boolean | true, если необходимо показывать свойство, иначе false. |
OnReseted()
Вызывается из метода Reset().
Declaration
protected override void OnReseted()
Overrides
OnStarted()
Метод вызывается тогда, когда вызвался метод Start(), и состояние ProcessState перешло в значение Started.
Declaration
protected override void OnStarted()
Overrides
OnStopped()
Метод вызывается тогда, когда состояние процесса ProcessState перешло в значение Stopped.
Declaration
protected override void OnStopped()
Overrides
RaisePropertiesChanged()
Вызвать событие изменения доступных свойств.
Declaration
protected virtual void RaisePropertiesChanged()
Save(SettingsStorage)
Сохранить настройки.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
Events
CompositionChanged
Событие изменения схемы стратегии.
Declaration
public event Action<CompositionDiagramElement> CompositionChanged
Event Type
Type | Description |
---|---|
Action<CompositionDiagramElement> |
PropertiesChanged
Событие изменения доступных свойств.
Declaration
public event Action PropertiesChanged
Event Type
Type | Description |
---|---|
Action |