private bool SatisfiesCriteriaToTakeProfits(DataPoints dataPoints)
 {
     return dataPoints.Close > dataPoints.UpperBollingerBandTwoDeviation;
 }
 private static bool SatisfiesCriteriaToBuy(DataPoints dataPoints)
 {
     return dataPoints.Close <=
            dataPoints.LowerBollingerBandTwoDeviation +
            ((dataPoints.UpperBollingerBandTwoDeviation - dataPoints.LowerBollingerBandTwoDeviation) / 2);
 }
 private static bool SatisfiesCriteriaToShort(DataPoints dataPoints)
 {
     return dataPoints.Close >=
            dataPoints.LowerBollingerBandOneDeviation;
 }
예제 #4
0
 protected bool Equals(DataPoints other)
 {
     return this.Id.Equals(other.Id) && this.Date.Equals(other.Date) && this.Open == other.Open && this.High == other.High && this.Low == other.Low && this.Close == other.Close && this.Volume == other.Volume && string.Equals(this.Symbol, other.Symbol) && this.MovingAverageTwoHundredDay == other.MovingAverageTwoHundredDay && this.MovingAverageFiftyDay == other.MovingAverageFiftyDay && this.MovingAverageTwentyDay == other.MovingAverageTwentyDay && this.MacdTwentyTwoOverTwelveDay == other.MacdTwentyTwoOverTwelveDay && this.MacdTwentyTwoOverTwelveDaySignalLine == other.MacdTwentyTwoOverTwelveDaySignalLine && this.MacdTwentyTwoOverTwelveDayHistogram == other.MacdTwentyTwoOverTwelveDayHistogram && this.UpperBollingerBandTwoDeviation == other.UpperBollingerBandTwoDeviation && this.LowerBollingerBandTwoDeviation == other.LowerBollingerBandTwoDeviation && this.UpperBollingerBandOneDeviation == other.UpperBollingerBandOneDeviation && this.LowerBollingerBandOneDeviation == other.LowerBollingerBandOneDeviation && this.ForceIndexOnePeriod == other.ForceIndexOnePeriod && this.ForceIndexThirteenPeriod == other.ForceIndexThirteenPeriod && this.IsProcessed == other.IsProcessed;
 }