Use these operations when you need to combine two compatible sequences element-by-element and produce a new result sequence.
In the C# API, analytics operate on
Sequencevalues obtained fromOrderedSequence<T>searches, direct ordered-sequence iteration,UnorderedSequence<T>.All, or positional projections such asquote.Close[dayRange].For an overview see page The C# Sequence Class
Operations
left + rightAdds corresponding elements from two sequences.left - rightSubtracts the right-hand sequence from the left-hand sequence.left * rightMultiplies corresponding elements.left / rightDivides corresponding elements.left % rightApplies modulo element-by-element.Sequence.Max(left, right)Returns the greater value from each element pair.Sequence.Min(left, right)Returns the smaller value from each element pair.Example
This example computes the daily spread between the high and low prices for each quote.
using (Sequence spread = quote.High.All - quote.Low.All) { PrintFloatSequence(quote, spread); }