コード例 #1
0
        public IchimokuCloud(Equity equity, int shortPeriodCount, int middlePeriodCount, int longPeriodCount)
            : base(equity, shortPeriodCount, middlePeriodCount, longPeriodCount)
        {
            // Default country set to United States Of America
            _periodInstance = equity.Period.CreateInstance(Country.UnitedStatesOfAmerica);

            var shortHighestHigh = new HighestHigh(equity, shortPeriodCount);

            _shortLowestLow = new LowestLow(equity, shortPeriodCount);
            _conversionLine = i => (shortHighestHigh.ComputeByIndex(i).HighestHigh + _shortLowestLow.ComputeByIndex(i).LowestLow) / 2;

            var middleHighestHigh = new HighestHigh(equity, middlePeriodCount);

            _middleLowestLow = new LowestLow(equity, middlePeriodCount);
            _baseLine        = i => (middleHighestHigh.ComputeByIndex(i).HighestHigh + _middleLowestLow.ComputeByIndex(i).LowestLow) / 2;

            var longHighestHigh = new HighestHigh(equity, longPeriodCount);
            var longLowestLow   = new LowestLow(equity, longPeriodCount);

            _leadingSpanB = i => (longHighestHigh.ComputeByIndex(i).HighestHigh + longLowestLow.ComputeByIndex(i).LowestLow) / 2;
        }
コード例 #2
0
 public ChandelierExit(Equity equity, int periodCount, int atrCount) : base(equity, periodCount, atrCount)
 {
     _highestHigh  = new HighestHigh(equity, periodCount);
     _lowestLow    = new LowestLow(equity, periodCount);
     _atrIndicator = new AverageTrueRange(equity, periodCount);
 }
コード例 #3
0
 public RawStochasticsValue(Equity equity, int periodCount) : base(equity, periodCount)
 {
     _highestHighIndicator = new HighestHigh(equity, periodCount);
     _lowestLowIndicator   = new LowestLow(equity, periodCount);
 }
コード例 #4
0
ファイル: Aroon.cs プロジェクト: yangar/Trady
 public Aroon(Equity equity, int periodCount) : base(equity, periodCount)
 {
     _highestHigh = new HighestHigh(equity, periodCount);
     _lowestLow   = new LowestLow(equity, periodCount);
 }