コード例 #1
0
 public static bool IsRsiOverbought(this IIndexedOhlcv ic, int periodCount = 14)
 => ic.Get <RelativeStrengthIndex>(periodCount)[ic.Index].Tick.IsTrue(t => t >= 70);
コード例 #2
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsFullStoOverbought(this IIndexedOhlcv ic, int periodCount, int smaPeriodCountK, int smaPeriodCountD)
 => ic.Get <Stochastics.Full>(periodCount, smaPeriodCountK, smaPeriodCountD)[ic.Index].Tick.IsTrue((k, d, j) => k >= 80);
コード例 #3
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsAboveEma(this IIndexedOhlcv ic, int periodCount)
 => ic.Get <ExponentialMovingAverage>(periodCount)[ic.Index].Tick.IsTrue(t => ic.Close > t);
コード例 #4
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsInBbRange(this IIndexedOhlcv ic, int periodCount, int sdCount)
 => ic.Get <BollingerBands>(periodCount, sdCount)[ic.Index].Tick.IsTrue((low, mid, up) => ic.Close >= low && ic.Close <= up);
コード例 #5
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBelowBbLow(this IIndexedOhlcv ic, int periodCount, int sdCount)
 => ic.Get <BollingerBands>(periodCount, sdCount)[ic.Index].Tick.IsTrue((low, mid, up) => ic.Close < low);
コード例 #6
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBreakingHighestClose(this IIndexedOhlcv ic, int periodCount)
 => ic.Get <HighestClose>(periodCount).Diff(ic.Index).Tick.IsPositive();
コード例 #7
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsAccumDistBearish(this IIndexedOhlcv ic)
 => ic.Get <AccumulationDistributionLine>().Diff(ic.Index).Tick.IsNegative();
コード例 #8
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static decimal?ClosePricePercentageChange(this IIndexedOhlcv ic)
 => ic.Get <RateOfChange>(1)[ic.Index].Tick;
コード例 #9
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsMacdOscBearish(this IIndexedOhlcv ic, int emaPeriodCount1, int emaPeriodCount2, int demPeriodCount)
 => ic.Get <MovingAverageConvergenceDivergenceHistogram>(emaPeriodCount1, emaPeriodCount2, demPeriodCount).Diff(ic.Index).Tick.IsNegative();
コード例 #10
0
 public static bool IsEmaBearish(this IIndexedOhlcv ic, int periodCount)
 => ic.Get <ExponentialMovingAverage>(periodCount).Diff(ic.Index).Tick.IsNegative();
コード例 #11
0
 public static bool IsEmaOscBearish(this IIndexedOhlcv ic, int periodCount1, int periodCount2)
 => ic.Get <ExponentialMovingAverageOscillator>(periodCount1, periodCount2).Diff(ic.Index).Tick.IsNegative();
コード例 #12
0
 public static bool IsSmaOscBullish(this IIndexedOhlcv ic, int periodCount1, int periodCount2)
 => ic.Get <SimpleMovingAverageOscillator>(periodCount1, periodCount2).Diff(ic.Index).Tick.IsPositive();
コード例 #13
0
 public static bool IsSmaBullish(this IIndexedOhlcv ic, int periodCount)
 => ic.Get <SimpleMovingAverage>(periodCount).Diff(ic.Index).Tick.IsPositive();
コード例 #14
0
 public static bool IsBelowSma(this IIndexedOhlcv ic, int periodCount = 30)
 => ic.Get <SimpleMovingAverage>(periodCount)[ic.Index].Tick.IsTrue(t => ic.Close < t);
コード例 #15
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBreakingHistoricalHighestHigh(this IIndexedOhlcv ic)
 => ic.Get <HistoricalHighestHigh>().Diff(ic.Index).Tick.IsPositive();
コード例 #16
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsFullStoOscBullish(this IIndexedOhlcv ic, int periodCount, int smaPeriodCountK, int smaPeriodCountD)
 => ic.Get <StochasticsOscillator.Full>(periodCount, smaPeriodCountK, smaPeriodCountD).Diff(ic.Index).Tick.IsPositive();
コード例 #17
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBreakingHistoricalLowestClose(this IIndexedOhlcv ic)
 => ic.Get <HistoricalLowestClose>().Diff(ic.Index).Tick.IsNegative();
コード例 #18
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsSlowStoOscBearish(this IIndexedOhlcv ic, int periodCount, int smaPeriodCountD)
 => ic.Get <StochasticsOscillator.Slow>(periodCount, smaPeriodCountD).Diff(ic.Index).Tick.IsNegative();
コード例 #19
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBreakingLowestClose(this IIndexedOhlcv ic, int periodCount)
 => ic.Get <LowestClose>(periodCount).Diff(ic.Index).Tick.IsNegative();
コード例 #20
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBullish(this IIndexedOhlcv ic)
 => ic.Get <Momentum>(1)[ic.Index].Tick.IsPositive();
コード例 #21
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsObvBearish(this IIndexedOhlcv ic)
 => ic.Get <OnBalanceVolume>().Diff(ic.Index).Tick.IsNegative();
コード例 #22
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsEmaBearishCross(this IIndexedOhlcv ic, int periodCount1, int periodCount2)
 => ic.Get <ExponentialMovingAverageOscillator>(periodCount1, periodCount2).ComputeNeighbour(ic.Index)
 .IsTrue((prev, current, _) => prev.Tick.IsPositive() && current.Tick.IsNegative());
コード例 #23
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsAboveBbUp(this IIndexedOhlcv ic, int periodCount, int sdCount)
 => ic.Get <BollingerBands>(periodCount, sdCount)[ic.Index].Tick.IsTrue((low, mid, up) => ic.Close > up);
コード例 #24
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsMacdBearishCross(this IIndexedOhlcv ic, int emaPeriodCount1, int emaPeriodCount2, int demPeriodCount)
 => ic.Get <MovingAverageConvergenceDivergenceHistogram>(emaPeriodCount1, emaPeriodCount2, demPeriodCount).ComputeNeighbour(ic.Index)
 .IsTrue((prev, current, _) => prev.Tick.IsPositive() && current.Tick.IsNegative());
コード例 #25
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsRsiOversold(this IIndexedOhlcv ic, int periodCount)
 => ic.Get <RelativeStrengthIndex>(periodCount)[ic.Index].Tick.IsTrue(t => t <= 30);
コード例 #26
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsBearish(this IIndexedOhlcv ic)
 => ic.Get <Momentum>(1)[ic.Index].Tick.IsNegative();
コード例 #27
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsSlowStoOversold(this IIndexedOhlcv ic, int periodCount, int smaPeriodCountD)
 => ic.Get <Stochastics.Slow>(periodCount, smaPeriodCountD)[ic.Index].Tick.IsTrue((k, d, j) => k <= 20);
コード例 #28
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static bool IsSlowStoBearishCross(this IIndexedOhlcv ic, int periodCount, int smaPeriodCountD)
 => ic.Get <StochasticsOscillator.Slow>(periodCount, smaPeriodCountD).ComputeNeighbour(ic.Index)
 .IsTrue((prev, current, _) => prev.Tick.IsPositive() && current.Tick.IsNegative());
コード例 #29
0
ファイル: IndexedCandleExtension.cs プロジェクト: zanjs/Trady
 public static decimal?ClosePriceChange(this IIndexedOhlcv ic)
 => ic.Get <Momentum>(1)[ic.Index].Tick;
コード例 #30
0
 public static bool IsOpenAboveSma(this IIndexedOhlcv ic, int periodCount = 50)
 => ic.Get <SimpleMovingAverage>(periodCount)[ic.Index].Tick.IsTrue(t => ic.Open > t);