Class BaseAnalyticsStrategy
The base analytic strategy.
Inheritance
Implements
Inherited Members
Namespace: StockSharp.Algo.Strategies.Analytics
Assembly: StockSharp.Algo.dll
Syntax
public abstract class BaseAnalyticsStrategy : Strategy, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMarketRuleContainer, ILogReceiver, ILogSource, ICloneable<Strategy>, ICloneable, IMarketDataProvider, ISubscriptionProvider, ISecurityProvider, ICandleManager, ICandleSource<Candle>, IDisposable, ITransactionProvider, IPositionProvider, IPortfolioProvider, IScheduledTask
Constructors
BaseAnalyticsStrategy()
Initialize BaseAnalyticsStrategy.
Declaration
protected BaseAnalyticsStrategy()
Properties
AllowTrading
Allow trading.
Declaration
public override bool AllowTrading { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
CommentMode
Declaration
public override StrategyCommentModes CommentMode { get; set; }
Property Value
Type | Description |
---|---|
StrategyCommentModes |
Overrides
Remarks
By default is Disabled.
From
Start date.
Declaration
public DateTime From { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
MaxOrderRegisterErrorCount
The maximum number of order registration errors above which the algorithm will be stopped.
Declaration
public override int MaxOrderRegisterErrorCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Remarks
The default value is 10.
MaxRegisterCount
The maximum number of orders above which the algorithm will be stopped.
Declaration
public override int MaxRegisterCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Remarks
The default value is MaxValue.
Panel
Result panel.
Declaration
protected IAnalyticsPanel Panel { get; }
Property Value
Type | Description |
---|---|
IAnalyticsPanel |
Portfolio
Portfolio.
Declaration
public override Portfolio Portfolio { get; set; }
Property Value
Type | Description |
---|---|
Portfolio |
Overrides
RegisterInterval
The order registration interval above which the new order would not be registered.
Declaration
public override TimeSpan RegisterInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Overrides
Remarks
By default, the interval is disabled and it is equal to Zero.
ResultType
Result type.
Declaration
public AnalyticsResultTypes ResultType { get; set; }
Property Value
Type | Description |
---|---|
AnalyticsResultTypes |
StorageFormat
Data format.
Declaration
protected StorageFormats StorageFormat { get; }
Property Value
Type | Description |
---|---|
StorageFormats |
StorateRegistry
Market-data storage.
Declaration
public IStorageRegistry StorateRegistry { get; set; }
Property Value
Type | Description |
---|---|
IStorageRegistry |
To
End date.
Declaration
public DateTime To { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
UnsubscribeOnStop
Unsubscribe all active subscription while strategy become stopping.
Declaration
public override bool UnsubscribeOnStop { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Volume
Operational volume.
Declaration
public override Decimal Volume { get; set; }
Property Value
Type | Description |
---|---|
Decimal |
Overrides
Remarks
If the value is set 0, the parameter is ignored.
WaitRulesOnStop
Declaration
public override bool WaitRulesOnStop { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
OnAnalyze()
To analyze.
Declaration
protected abstract void OnAnalyze()
OnStarted()
The method is called when the Start() method has been called and the ProcessState state has been taken the Started value.
Declaration
protected override void OnStarted()
Overrides
ProcessCancelActiveOrders()
To cancel all active orders (to stop and regular).
Declaration
protected override void ProcessCancelActiveOrders()