QuantConnect Lean Algorithmic Trading Engine
Properties  Methods 

QuantConnect.Indicators Namespace : RollingWindow<T> Class
RollingWindow<T> Class Members

The following tables list the members exposed by RollingWindow<T>.

Public Constructors
Public Constructor Initializes a new instance of the RollwingWindow class with the specified window size.  
Public Properties
Public Property Gets the current number of elements in this window  
Public Property Gets a value indicating whether or not this window is ready, i.e, it has been filled to its capacity  
Public Property Indexes into this window, where index 0 is the most recently entered value  
Public Property Gets the most recently removed item from the window. This is the piece of data that just 'fell off' as a result of the most recent add. If no items have been removed, this will throw an exception.  
Public Property Gets the number of samples that have been added to this window over its lifetime  
Public Property Gets the size of this window  
Public Methods
Public Method Adds an item to this window and shifts all other elements  
Public Method Returns an enumerator that iterates through the collection.  
Public Method Clears this window of all data  
Extension Methods
Public Extension Method Performs the specified selector before calling DefaultIfEmpty. This is just short hand for Select(selector).DefaultIfEmpty(defaultValue)
Public Extension Method Creates a new enumerable that will be distinct by the specified property selector
Public Extension Method Produces the set difference of two sequences by using the default equality comparer to compare values.
Public Extension Method Groups adjacent elements of the enumerale using the specified grouper function
Public Extension Method Returns true if the specified enumerable is null or has no elements
Public Extension MethodOverloaded.  Gets the median value in the collection
Public Extension Method Wraps the specified enumerable such that it will only be enumerated once
Public Extension MethodOverloaded. Creates a new HashSet from the elements in the specified enumerable
See Also