TSLab API Docs  1
TSLab.Script.Helpers.Series Class Reference

Double values list functions More...

Static Public Member Functions

static IList< double > Highest (IList< double > candles, int period)
 Calculate highest double value calculate period latest calculation bar highest double value
 
static IList< double > Highest (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > Lowest (IList< double > candles, int period)
 Calculate lowest double value calculate period latest calculation bar Lowest double value
 
static IList< double > Lowest (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > Min (IList< double > src1, IList< double > src2)
 Calculate new double values list with minimums of source lists the first source list the second source list list with minimum values
 
static IList< double > Min (IList< double > src1, IList< double > src2, IMemoryContext context)
 
static IList< double > Max (IList< double > src1, IList< double > src2)
 Calculate new double values list with maximums of source lists the first source list the second source list list with maximum values
 
static IList< double > Max (IList< double > src1, IList< double > src2, IMemoryContext context)
 
static IList< double > Add (IList< double > src1, IList< double > src2)
 Calculate new double values list with summ of source lists the first source list the second source list list with minimum values
 
static IList< double > Add (IList< double > src1, IList< double > src2, IMemoryContext context)
 
static IList< double > Sub (IList< double > src1, IList< double > src2)
 Calculate new double values list with subtraction of source lists the first source list the second source list list with minimum values
 
static IList< double > Sub (IList< double > src1, IList< double > src2, IMemoryContext context)
 
static IList< int > Add (IList< int > src1, IList< int > src2)
 Calculate new int values list with summ of source lists the first source list the second source list list with minimum values
 
static IList< int > Add (IList< int > src1, IList< int > src2, IMemoryContext context)
 
static IList< bool > And (IList< bool > src1, IList< bool > src2)
 Calculate boolean AND of source lists the first source list the second source list list with result values
 
static IList< bool > And (IList< bool > src1, IList< bool > src2, IMemoryContext context)
 
static IList< bool > Or (IList< bool > src1, IList< bool > src2)
 Calculate boolean OR of source lists the first source list the second source list list with result values
 
static IList< bool > Or (IList< bool > src1, IList< bool > src2, IMemoryContext context)
 
static IList< double > MedianPrice (IReadOnlyList< IDataBar > candles)
 Calculate the list of the Median prices The source candles list Median prices list
 
static IList< double > MedianPrice (IReadOnlyList< IDataBar > candles, IMemoryContext context)
 
static IList< double > TrueRange (IReadOnlyList< IDataBar > candles)
 Calculate True Range for the all candles source candles list true ranges list
 
static IList< double > TrueRange (IReadOnlyList< IDataBar > candles, IMemoryContext context)
 
static double AverageTrueRange (IReadOnlyList< IDataBar > candles, int start, int period, double prevAtr)
 ATR helper
 
static IList< double > AverageTrueRange (IReadOnlyList< IDataBar > candles, int period)
 Calculate Average True Range for the all candles source candles list ATR period ATRs list
 
static IList< double > AverageTrueRange (IReadOnlyList< IDataBar > candles, int period, IMemoryContext context)
 
static IList< double > SMA (IList< double > candles, int period)
 Calculate SMA for source list SMA period source candles list SMAs list
 
static IList< double > SMA (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > SummFor (IList< double > candles, int period)
 Calculate Summ for same values the period source candles list Summs list
 
static IList< double > SummFor (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > StDev (IList< double > candles, int period)
 Calculate StDev for source list StDev period source candles list StDev list
 
static IList< double > StDev (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > Volatility (IList< double > candles, int period)
 Calculate Standart Historic Volatility for source list Standart Historic Volatility period source candles list Standart Historic Volatility list
 
static IList< double > Volatility (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > SMMA (IList< double > candles, int period, int shift)
 Calculate moved SMA for source list source candles list SMA period SMA shift moved SMAs list
 
static IList< double > SMMA (IList< double > candles, int period, int shift, IMemoryContext context)
 
static IList< double > Shift (IEnumerable< double > input, int shift)
 Shift source list to future More...
 
static IList< double > Shift (IEnumerable< double > input, int shift, IMemoryContext context)
 
static IList< double > EMA (IList< double > candles, int period)
 Calculate EMA for source list EMA period source candles list EMAs list
 
static IList< double > EMA (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > RSI (IList< double > candles, int period)
 Calculate RSI for source list RSI period source candles list RSI list
 
static IList< double > RSI (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > CuttlerRSI (IList< double > candles, int period)
 Calculate Cuttler RSI for source list RSI period source candles list RSI list
 
static IList< double > CuttlerRSI (IList< double > candles, int period, IMemoryContext context)
 
static IList< double > TypicalPrice (IReadOnlyList< IDataBar > candles)
 Calculate the "Typical Price" indicator source candles list calculated values
 
static IList< double > TypicalPrice (IReadOnlyList< IDataBar > candles, IMemoryContext context)
 
static IList< double > CCI (IReadOnlyList< IDataBar > candles, int period)
 Calculate CCI indicator source candles list period of MA calculated values
 
static IList< double > CCI (IReadOnlyList< IDataBar > candles, int period, IMemoryContext context)
 
static IList< double > BollingerBands (IList< double > closes, int period, double coef, bool isTopLine)
 Calculate the Bollinger Bands the list with the source data (Close values, for example) SMA period BB coef BB+ if true calculated values
 
static IList< double > BollingerBands (IList< double > closes, int period, double coef, bool isTopLine, IMemoryContext context)
 
static IList< double > BollingerBands (IList< double > closes, IList< double > sma, int period, double coef, bool isTopLine)
 Advanced of Bollinger Bands the list with the source data (Close values, for example) the list with calculated base (for example, SMA or EMA) second SMA period BB coef BB+ if true calculated values
 
static IList< double > BollingerBands (IList< double > closes, IList< double > sma, int period, double coef, bool isTopLine, IMemoryContext context)
 

Detailed Description

Double values list functions

Member Function Documentation

static IList<double> TSLab.Script.Helpers.Series.Shift ( IEnumerable< double >  input,
int  shift 
)
static

Shift source list to future

Parameters
inputthe source list
shiftthe shifting period
Returns
the shifted list