Comparison operators evaluate two sequences element-by-element and return a Boolean result sequence.
The resulting Boolean sequence is typically passed to
Filter,FilterPos, or the logical operators described on the companion page.For an overview see page The C# Sequence Class
Operations
left == rightReturns a Boolean sequence for element-wise equality.left != rightReturns a Boolean sequence for element-wise inequality.left > rightReturnstruewhere the left element is greater.left >= rightReturnstruewhere the left element is greater or equal.left < rightReturnstruewhere the left element is smaller.left <= rightReturnstruewhere the left element is smaller or equal.Example
This example creates a Boolean sequence that marks trading days where the close price is above the open price.
using (Sequence dayRange = quote.Day.Search(20130101u, SelectBoundary.Inclusive, 20130401u, SelectBoundary.Inclusive)) using (Sequence gains = quote.Close[dayRange] > quote.Open[dayRange]) { PrintIntSequence(quote, dayRange.Filter(gains)); }