Пример #1
0
        public bool Equals(IndicatorMap imap)
        {
            bool result = true;

            if ((object)imap == null)
            {
                return(false);
            }

            if (indicators.Count != imap.indicators.Count)
            {
                result = false;
            }
            else
            {
                foreach (string key in indicators.Keys)
                {
                    if (!imap.indicators.ContainsKey(key) || indicators[key] != imap.indicators[key])
                    {
                        result = false;
                        break;
                    }
                }
            }

            return(result);
        }
        public ChartIndicatorsBottom()
        {
            Indicators = new IndicatorMap();

            Indicators.Add(new ChaikinOscillator("Chaikin Oscillator"));
            Indicators.Add(new AccumulationDistribution("Accumulation Distribution"));
            Indicators.Add(new AverageTrueRange("Average True Range"));
            Indicators.Add(new CommodityChannelIndex("Commodity Channel Index"));
            Indicators.Add(new DetrendedPriceOscillator("Detrended Price Oscillator"));
            Indicators.Add(new EaseOfMovement("Ease Of Movement"));
            Indicators.Add(new MassIndex("Mass Index"));
            Indicators.Add(new MoneyFlow("Money Flow"));
            Indicators.Add(new MACD("MACD"));
            Indicators.Add(new NegativeVolumeIndex("Negative Volume Index"));
            Indicators.Add(new PositiveVolumeIndex("Positive Volume Index"));
            Indicators.Add(new OnBalanceVolume("On Balance Volume"));
            Indicators.Add(new Performance("Performance"));
            Indicators.Add(new PriceVolumeTrend("Price Volume Trend"));
            Indicators.Add(new RateOfChange("Rate of Change"));
            Indicators.Add(new VolumeRateOfChange("Volume Rate of Change"));
            Indicators.Add(new RelativeStrengthIndex("Relative Strength Index"));
            Indicators.Add(new StandardDeviation("Standard Deviation"));
            Indicators.Add(new StochasticIndicator("Stochastic Indicator"));
            Indicators.Add(new VolatilityChaikins("Volatility Chaikins"));
            Indicators.Add(new VolumeOscillator("Volume Oscillator"));
            Indicators.Add(new WilliamsR("Williams %R"));
            trendLine = new TrendLine("Trend Line");
            Indicators.Add(trendLine);
            trendLine.SlopeChanged += trendLine_SlopeChanged;
        }
Пример #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            IndicatorMap imap = obj as IndicatorMap;

            if ((System.Object)imap == null)
            {
                return(false);
            }

            return(Equals(imap));
        }
Пример #4
0
        /// <summary>
        /// Define the available indicators and store them in a dictionary with the indicator name as the key.
        /// </summary>
        public ChartIndicatorsMain()
        {
            Indicators = new IndicatorMap();

            Indicators.Add(new KeltnerChannels("Keltner Channel"));
            Indicators.Add(new MovingAverage("Moving Average"));
            Indicators.Add(new ExponentialMovingAverage("Exponential Moving Average"));
            Indicators.Add(new TriangularMovingAverage("Triangular Moving Average"));
            Indicators.Add(new WeightedMovingAverage("Weighted Moving Average"));
            Indicators.Add(new TripleExponentialMovingAverage("Triple Exponential Moving Average"));
            Indicators.Add(new BollingerBands("Bollinger Bands"));
            Indicators.Add(new Envelopes("Envelopes"));
            Indicators.Add(new MedianPrice("Median Price"));
            Indicators.Add(new TypicalPrice("Typical Price"));
            Indicators.Add(new WeightedClose("Weighted Close"));
            //Indicators.Add(new Forecasting("Forecasting"));
        }
Пример #5
0
 protected ChartIndicatorList()
 {
     Indicators = new IndicatorMap();
 }