Class IndicatorsArithmetic
Collection of indicators performing arithmetic on time series.
Inheritance
Inherited Members
Namespace: TuringTrader.Indicators
Assembly: TuringTrader.Simulator.dll
Syntax
public static class IndicatorsArithmetic
Methods
| Improve this Doc View SourceAdd(ITimeSeries<double>, double, CacheId, string, int)
Calculate addition of time series and constant value.
Declaration
public static ITimeSeries<double> Add(this ITimeSeries<double> series, double constValue, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series | time series |
double | constValue | constant value |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series + constant value |
Add(ITimeSeries<double>, ITimeSeries<double>, CacheId, string, int)
Calculate addition of two time series.
Declaration
public static ITimeSeries<double> Add(this ITimeSeries<double> series1, ITimeSeries<double> series2, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series1 | time series #1 |
ITimeSeries<double> | series2 | time series #2 |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series #1 + time series #2 |
Divide(ITimeSeries<double>, double, CacheId, string, int)
Calculate division of time series and constant value.
Declaration
public static ITimeSeries<double> Divide(this ITimeSeries<double> series, double constValue, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series | time series |
double | constValue | constant value |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series / constant value |
Divide(ITimeSeries<double>, ITimeSeries<double>, CacheId, string, int)
Calculate division of two time series.
Declaration
public static ITimeSeries<double> Divide(this ITimeSeries<double> series1, ITimeSeries<double> series2, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series1 | time series #1 |
ITimeSeries<double> | series2 | time series #2 |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series #1 / time series #2 |
Max(ITimeSeries<double>, double, CacheId, string, int)
Calculate maximum of time series and constant value.
Declaration
public static ITimeSeries<double> Max(this ITimeSeries<double> series, double constValue, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series | time series |
double | constValue | constant value |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series + constant value |
Max(ITimeSeries<double>, ITimeSeries<double>, CacheId, string, int)
Calculate maximum of two time series.
Declaration
public static ITimeSeries<double> Max(this ITimeSeries<double> series1, ITimeSeries<double> series2, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series1 | time series #1 |
ITimeSeries<double> | series2 | time series #2 |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series #1 + time series #2 |
Min(ITimeSeries<double>, double, CacheId, string, int)
Calculate minimum of time series and constant value.
Declaration
public static ITimeSeries<double> Min(this ITimeSeries<double> series, double constValue, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series | time series |
double | constValue | constant value |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series + constant value |
Min(ITimeSeries<double>, ITimeSeries<double>, CacheId, string, int)
Calculate minimum of two time series.
Declaration
public static ITimeSeries<double> Min(this ITimeSeries<double> series1, ITimeSeries<double> series2, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series1 | time series #1 |
ITimeSeries<double> | series2 | time series #2 |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series #1 + time series #2 |
Multiply(ITimeSeries<double>, double, CacheId, string, int)
Calculate multiplication of time series and constant value.
Declaration
public static ITimeSeries<double> Multiply(this ITimeSeries<double> series, double constValue, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series | time series |
double | constValue | constant value |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series * constant value |
Multiply(ITimeSeries<double>, ITimeSeries<double>, CacheId, string, int)
Calculate multiplication of two time series.
Declaration
public static ITimeSeries<double> Multiply(this ITimeSeries<double> series1, ITimeSeries<double> series2, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series1 | time series #1 |
ITimeSeries<double> | series2 | time series #2 |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series #1 * time series #2 |
Subtract(ITimeSeries<double>, double, CacheId, string, int)
Calculate subtraction of time series and constant value.
Declaration
public static ITimeSeries<double> Subtract(this ITimeSeries<double> series, double constValue, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series | time series |
double | constValue | constant value |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series - constant value |
Subtract(ITimeSeries<double>, ITimeSeries<double>, CacheId, string, int)
Calculate subtraction of two time series.
Declaration
public static ITimeSeries<double> Subtract(this ITimeSeries<double> series1, ITimeSeries<double> series2, CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
ITimeSeries<double> | series1 | time series #1 |
ITimeSeries<double> | series2 | time series #2 |
CacheId | parentId | caller cache id, optional |
string | memberName | caller's member name, optional |
int | lineNumber | caller line number, optional |
Returns
Type | Description |
---|---|
ITimeSeries<double> | time series #1 - time series #2 |