Unary operators and helper methods transform one input sequence into another 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
-sourceNegates numeric sequence values.!sourceInverts a Boolean sequence.source.Abs()Returns absolute values.source.Match(string pattern)Returns a Boolean sequence indicating which string elements match the pattern.Example
This example calculates the absolute difference between close and open prices.
using (Sequence delta = quote.Close.All - quote.Open.All) using (Sequence absDelta = delta.Abs()) { PrintFloatSequence(quote, absDelta); }