Class Arithmetic
Collection of indicators performing arithmetic on time series.
Inheritance
object
Arithmetic
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.SimulatorV2.Indicators
Assembly: TuringTrader.Simulator.dll
Syntax
public static class Arithmetic
Methods
| Improve this Doc View SourceAdd(TimeSeriesFloat, double)
Add constant value to time series.
Declaration
public static TimeSeriesFloat Add(this TimeSeriesFloat summand1, double summand2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | summand1 | |
double | summand2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Add(TimeSeriesFloat, TimeSeriesFloat)
Add two time series
Declaration
public static TimeSeriesFloat Add(this TimeSeriesFloat summand1, TimeSeriesFloat summand2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | summand1 | |
TimeSeriesFloat | summand2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat | sum of time series |
Div(TimeSeriesFloat, double)
Divide time series by constant value.
Declaration
public static TimeSeriesFloat Div(this TimeSeriesFloat dividend, double divisor)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | dividend | input series |
double | divisor | series by which to divide |
Returns
Type | Description |
---|---|
TimeSeriesFloat | Div series |
Div(TimeSeriesFloat, TimeSeriesFloat)
Divide one time series by another.
Declaration
public static TimeSeriesFloat Div(this TimeSeriesFloat dividend, TimeSeriesFloat divisor)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | dividend | input series |
TimeSeriesFloat | divisor | series by which to divide |
Returns
Type | Description |
---|---|
TimeSeriesFloat | Div series |
Max(TimeSeriesFloat, double)
Create new time series w/ maximum of input time series and input value.
Declaration
public static TimeSeriesFloat Max(this TimeSeriesFloat max1, double max2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | max1 | |
double | max2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Max(TimeSeriesFloat, TimeSeriesFloat)
Create new time series w/ maximum values of two series.
Declaration
public static TimeSeriesFloat Max(this TimeSeriesFloat max1, TimeSeriesFloat max2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | max1 | |
TimeSeriesFloat | max2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Min(TimeSeriesFloat, double)
Calculate minimum of time series and constant value.
Declaration
public static TimeSeriesFloat Min(this TimeSeriesFloat min1, double min2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | min1 | |
double | min2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Min(TimeSeriesFloat, TimeSeriesFloat)
Create new time series with minimum values of two series.
Declaration
public static TimeSeriesFloat Min(this TimeSeriesFloat min1, TimeSeriesFloat min2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | min1 | |
TimeSeriesFloat | min2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Mul(TimeSeriesFloat, double)
Multiply time series with constant value.
Declaration
public static TimeSeriesFloat Mul(this TimeSeriesFloat multiplicand1, double multiplicand2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | multiplicand1 | |
double | multiplicand2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Mul(TimeSeriesFloat, TimeSeriesFloat)
Multiply two time series.
Declaration
public static TimeSeriesFloat Mul(this TimeSeriesFloat multiplicand1, TimeSeriesFloat multiplicand2)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | multiplicand1 | |
TimeSeriesFloat | multiplicand2 |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Sub(TimeSeriesFloat, double)
Add constant value to time series.
Declaration
public static TimeSeriesFloat Sub(this TimeSeriesFloat minuend, double subtrahend)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | minuend | |
double | subtrahend |
Returns
Type | Description |
---|---|
TimeSeriesFloat |
Sub(TimeSeriesFloat, TimeSeriesFloat)
Subtract two time series
Declaration
public static TimeSeriesFloat Sub(this TimeSeriesFloat minuend, TimeSeriesFloat subtrahend)
Parameters
Type | Name | Description |
---|---|---|
TimeSeriesFloat | minuend | |
TimeSeriesFloat | subtrahend |
Returns
Type | Description |
---|---|
TimeSeriesFloat |