Esempio n. 1
0
 void Window1_Checked9(object sender, RoutedEventArgs e)
 {
     if (reset.IsEnabled == false)
     {
         reset.IsEnabled = true;
     }
     ChartTechnicalIndicator indicator = new ChartTechnicalIndicator();
     indicator.IndicatorType = IndicatorTypes.SimpleAverage;
     ser1.Indicators.Items.Add(indicator);
     ChartSimpleAverage.SetSignalLineInterior(ser1.Indicators.Items[ser1.Indicators.Items.Count - 1], new SolidColorBrush(Color.FromRgb(0xDD,0x00,0x00)));
 }
Esempio n. 2
0
        public void Indicator1_Checked(object sender, RoutedEventArgs e)
        {
            ChartTechnicalIndicator indicator = new ChartTechnicalIndicator();

            layer1.LayerIndicatorName = "Simple Average";
            indicator.IndicatorType   = IndicatorTypes.SimpleAverage;
            ChartSimpleAverage.SetMovingAverage(indicator, 10);
            ser1.Indicators.Items.Add(indicator);
            ChartSimpleAverage.SetSignalLineInterior(ser1.Indicators.Items[ser1.Indicators.Items.Count - 1], Brushes.Maroon);
            AddNotes(ser1.Indicators.Items[ser1.Indicators.Items.Count - 1].Series, layer1,
                     ChartSimpleAverage.GetMovingAverage(indicator), 11);
        }