예제 #1
0
        public static TimeSeries <IchimokuCloud.IndicatorResult> Ichimoku(this Equity equity, int shortPeriodCount, int middlePeriodCount, int longPeriodCount, Country?country = null, DateTime?startTime = null, DateTime?endTime = null)
        {
            var ic = equity.GetOrCreateAnalytic <IchimokuCloud>(shortPeriodCount, middlePeriodCount, longPeriodCount);

            if (country.HasValue)
            {
                ic.InitWithCountry(country.Value);
            }
            return(ic.Compute(startTime, endTime));
        }
예제 #2
0
 public static TimeSeries <AroonOscillator.IndicatorResult> AroonOsc(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <AroonOscillator>(periodCount).Compute(startTime, endTime);
예제 #3
0
 public static TimeSeries <Stochastics.IndicatorResult> SlowSto(this Equity equity, int periodCount, int smaPeriodCountD, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <Stochastics.Slow>(periodCount, smaPeriodCountD).Compute(startTime, endTime);
예제 #4
0
 public static TimeSeries <SimpleMovingAverageOscillator.IndicatorResult> SmaOsc(this Equity equity, int periodCount1, int periodCount2, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <SimpleMovingAverageOscillator>(periodCount1, periodCount2).Compute(startTime, endTime);
예제 #5
0
 public static TimeSeries <RelativeStrengthIndex.IndicatorResult> Rsi(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <RelativeStrengthIndex>(periodCount).Compute(startTime, endTime);
예제 #6
0
 public static TimeSeries <StandardDeviation.IndicatorResult> Sd(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <StandardDeviation>(periodCount).Compute(startTime, endTime);
예제 #7
0
 public static TimeSeries <LowestLow.IndicatorResult> LowestLow(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <LowestLow>(periodCount).Compute(startTime, endTime);
예제 #8
0
 public static TimeSeries <ClosePricePercentageChange.IndicatorResult> ClosePricePercentageChange(this Equity equity, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <ClosePricePercentageChange>().Compute(startTime, endTime);
예제 #9
0
 public static TimeSeries <BollingerBandWidth.IndicatorResult> BbWidth(this Equity equity, int periodCount, int sdCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <BollingerBandWidth>(periodCount, sdCount).Compute(startTime, endTime);
예제 #10
0
 public static TimeSeries <ExponentialMovingAverage.IndicatorResult> Ema(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <ExponentialMovingAverage>(periodCount).Compute(startTime, endTime);
예제 #11
0
 public static TimeSeries <AverageTrueRange.IndicatorResult> Atr(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <AverageTrueRange>(periodCount).Compute(startTime, endTime);
예제 #12
0
 public static TimeSeries <AverageDirectionalMovementIndexRating.IndicatorResult> Adxr(this Equity equity, int periodCount, int adxrPeriodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <AverageDirectionalMovementIndexRating>(periodCount, adxrPeriodCount).Compute(startTime, endTime);
예제 #13
0
 public static TimeSeries <DirectionalMovementIndex.IndicatorResult> Dmi(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <DirectionalMovementIndex>(periodCount).Compute(startTime, endTime);
예제 #14
0
 public static TimeSeries <ChandelierExit.IndicatorResult> Chandlr(this Equity equity, int periodCount, int atrCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <ChandelierExit>(periodCount, atrCount).Compute(startTime, endTime);
예제 #15
0
 public static TimeSeries <MovingAverageConvergenceDivergence.IndicatorResult> Macd(this Equity equity, int emaPeriodCount1, int emaPeriodCount2, int demPeriodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <MovingAverageConvergenceDivergence>(emaPeriodCount1, emaPeriodCount2, demPeriodCount).Compute(startTime, endTime);
예제 #16
0
 public static TimeSeries <AccumulationDistributionLine.IndicatorResult> AccumDist(this Equity equity, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <AccumulationDistributionLine>().Compute(startTime, endTime);
예제 #17
0
 public static TimeSeries <OnBalanceVolume.IndicatorResult> Obv(this Equity equity, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <OnBalanceVolume>().Compute(startTime, endTime);
예제 #18
0
 public static TimeSeries <EfficiencyRatio.IndicatorResult> Er(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <EfficiencyRatio>(periodCount).Compute(startTime, endTime);
예제 #19
0
 public static TimeSeries <RawStochasticsValue.IndicatorResult> Rsv(this Equity equity, int periodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <RawStochasticsValue>(periodCount).Compute(startTime, endTime);
예제 #20
0
 public decimal?PriceChange()
 => _equity.GetOrCreateAnalytic <ClosePriceChange>().ComputeByIndex(_index).Change;
예제 #21
0
 public static TimeSeries <KaufmanAdaptiveMovingAverage.IndicatorResult> Kama(this Equity equity, int periodCount, int emaFastPeriodCount, int emaSlowPeriodCount, DateTime?startTime = null, DateTime?endTime = null)
 => equity.GetOrCreateAnalytic <KaufmanAdaptiveMovingAverage>(periodCount, emaFastPeriodCount, emaSlowPeriodCount).Compute(startTime, endTime);