# C1.Win.Chart.Finance.MovingAverage

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Chart_Finance_MovingAverage" data-uid="C1.Win.Chart.Finance.MovingAverage" class="text-break">MovingAverage Class
</h1>
  <div class="markdown level0 summary"><p>Represents a moving average trendline for FinancialChart.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="../C1.Win.FlexChart.10/C1.Chart.SeriesBase.html">SeriesBase</a></div>
    <div class="level2"><a class="xref" href="../C1.Win.FlexChart.10/C1.Win.Chart.Series.html">Series</a></div>
    <div class="level3"><a class="xref" href="C1.Win.Chart.Finance.FinancialSeries.html">FinancialSeries</a></div>
    <div class="level4"><span class="xref">MovingAverage</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><span class="xref">ISeries</span></div>
    <div><span class="xref">IStyleProvider</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Chart.Finance.html">C1.Win.Chart.Finance</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FinancialChart.10.dll</h6>
  <h5 id="C1_Win_Chart_Finance_MovingAverage_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MovingAverage : FinancialSeries, IDisposable, ISeries, IStyleProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MovingAverage
    Inherits FinancialSeries
    Implements IDisposable, ISeries, IStyleProvider</code></pre>
  </div>
  <h5 id="C1_Win_Chart_Finance_MovingAverage_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>It is a calculation to analyze data points by creating a series of averages of
different subsets of the full data set. You may define a different type on each
MovingAverage object by setting the type property on the MovingAverage itself.
The MovingAverage class has a period property that allows you to set the number of
periods for computing the average value.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Chart_Finance_MovingAverage__ctor" data-uid="C1.Win.Chart.Finance.MovingAverage.#ctor">
          <a class="xref" href="C1.Win.Chart.Finance.MovingAverage.-ctor.html#C1_Win_Chart_Finance_MovingAverage__ctor">MovingAverage()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of MovingAverage class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Chart_Finance_MovingAverage_ChartType" data-uid="C1.Win.Chart.Finance.MovingAverage.ChartType">
          <a class="xref" href="C1.Win.Chart.Finance.MovingAverage.ChartType.html#C1_Win_Chart_Finance_MovingAverage_ChartType">ChartType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the series type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Finance_MovingAverage_Period" data-uid="C1.Win.Chart.Finance.MovingAverage.Period">
          <a class="xref" href="C1.Win.Chart.Finance.MovingAverage.Period.html#C1_Win_Chart_Finance_MovingAverage_Period">Period</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the period of the moving average series.
It should be set to integer value greater than 1.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Finance_MovingAverage_Type" data-uid="C1.Win.Chart.Finance.MovingAverage.Type">
          <a class="xref" href="C1.Win.Chart.Finance.MovingAverage.Type.html#C1_Win_Chart_Finance_MovingAverage_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the moving average type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Chart_Finance_MovingAverage_GetValues_System_Int32_" data-uid="C1.Win.Chart.Finance.MovingAverage.GetValues(System.Int32)">
          <a class="xref" href="C1.Win.Chart.Finance.MovingAverage.GetValues.html#C1_Win_Chart_Finance_MovingAverage_GetValues_System_Int32_">GetValues(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the array of data values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Finance_MovingAverage_OnDataSourceChanged" data-uid="C1.Win.Chart.Finance.MovingAverage.OnDataSourceChanged">
          <a class="xref" href="C1.Win.Chart.Finance.MovingAverage.OnDataSourceChanged.html#C1_Win_Chart_Finance_MovingAverage_OnDataSourceChanged">OnDataSourceChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when data source was changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
