Click or drag to resize

TraderHelperGetFortsJumps Method (ExpirationContinuousSecurity, ISecurityProvider, String, DateTime, DateTime, Boolean)

To get real expiration instruments for the continuous instrument.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static IEnumerable<Security> GetFortsJumps(
	this ExpirationContinuousSecurity continuousSecurity,
	ISecurityProvider provider,
	string baseCode,
	DateTime from,
	DateTime to,
	bool throwIfNotExists = true
)

Parameters

continuousSecurity
Type: StockSharp.AlgoExpirationContinuousSecurity
Continuous security.
provider
Type: StockSharp.BusinessEntitiesISecurityProvider
The provider of information about instruments.
baseCode
Type: SystemString
The base part of the instrument code.
from
Type: SystemDateTime
The start of the expiration range.
to
Type: SystemDateTime
The end of the expiration range.
throwIfNotExists (Optional)
Type: SystemBoolean
To generate exception, if some of instruments for passed continuousSecurity are not available.

Return Value

Type: IEnumerableSecurity
Expiration instruments.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ExpirationContinuousSecurity. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also