Click or drag to resize

MarketRuleTToken, TArg Class

The rule, activating action at market condition occurrence.
Inheritance Hierarchy
SystemObject
  Disposable
    StockSharp.AlgoMarketRuleTToken, TArg

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public abstract class MarketRule<TToken, TArg> : Disposable, 
	IMarketRule, IDisposable

Type Parameters

TToken
The type of token.
TArg
The type of accepted argument.

The MarketRuleTToken, TArg type exposes the following members.

Constructors
  NameDescription
Protected methodMarketRuleTToken, TArg
Initialize MarketRuleTToken, TArg.
Top
Properties
  NameDescription
Public propertyContainer
The rules container.
Public propertyExclusiveRules
Rules, opposite to given rule. They are deleted automatically at activation of this rule.
Public propertyIsActive
Is the rule currently activated.
Public propertyIsDisposed (Inherited from Disposable.)
Public propertyIsReady
Is the rule formed.
Public propertyIsSuspended
Is the rule suspended.
Public propertyLogLevel
The level, at which logging of this rule is performed. The default is Inherit.
Public propertyName
The name of the rule.
Public propertyToken
Token-rules, it is associated with (for example, for rule WhenRegistered(Order, IConnector) the order will be a token). If rule is not associated with anything, will be returned.
Top
Methods
  NameDescription
Protected methodActivate
To activate the rule.
Protected methodActivate(TArg)
To activate the rule.
Public methodActivated(Action)
To add the processor, which will be called at action activation.
Public methodActivatedTResult(ActionTResult)
Protected methodCanFinish
Can the rule be ended.
Public methodDispose (Inherited from Disposable.)
Protected methodDisposeManaged
Release resources.
(Overrides Disposable.DisposeManaged.)
Protected methodDisposeNative (Inherited from Disposable.)
Public methodDo(Action)
To add the action, activated at occurrence of condition.
Public methodDo(ActionTArg)
To add the action, activated at occurrence of condition.
Public methodDo(ActionMarketRuleTToken, TArg, TArg)
To add the action, activated at occurrence of condition.
Public methodDoTResult(FuncTResult)
To add the action, returning result, activated at occurrence of condition.
Public methodDoTResult(FuncTArg, TResult)
To add the action, returning result, activated at occurrence of condition.
Public methodDoTResult(FuncMarketRuleTToken, TArg, TArg, TResult)
To add the action, returning result, activated at occurrence of condition.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from Disposable.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodThrowIfDisposed (Inherited from Disposable.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodUntil
To make the rule periodical (will be called until canFinish returns ).
Top
Extension Methods
  NameDescription
Public Extension MethodAnd
To combine rules by AND condition.
(Defined by MarketRuleHelper.)
Public Extension MethodApplyOverloaded.
To form a rule (include IsReady).
(Defined by MarketRuleHelper.)
Public Extension MethodApply(IMarketRuleContainer)Overloaded.
To form a rule (include IsReady).
(Defined by MarketRuleHelper.)
Public Extension MethodCancel
To create an action, cancelling the order.
(Defined by StrategyHelper.)
Public Extension MethodExclusive
To make rules mutually exclusive.
(Defined by MarketRuleHelper.)
Public Extension MethodOr
To combine rules by OR condition.
(Defined by MarketRuleHelper.)
Public Extension MethodRegister
To create an action, registering the order.
(Defined by StrategyHelper.)
Public Extension MethodReRegister
To create an action, re-registering the order.
(Defined by StrategyHelper.)
Top
See Also