Class CoppockCurve
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
A momentum indicator developed by Edwin “Sedge” Coppock in October 1965. The goal of this indicator is to identify long-term buying opportunities in the S&P500 and Dow Industrials. Source: http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:coppock_curve
public class CoppockCurve : IndicatorBase, IIndicator, IUpdatable
- Inheritance
-
CoppockCurve
- Implements
- Inherited Members
- Extension Methods
Constructors
CoppockCurve()
Initializes a new instance of the CoppockCurve indicator with its default values.
public CoppockCurve()
CoppockCurve(int, int, int)
Initializes a new instance of the CoppockCurve indicator
public CoppockCurve(int shortRocPeriod, int longRocPeriod, int lwmaPeriod)
Parameters
shortRocPeriodintThe period for the short ROC
longRocPeriodintThe period for the long ROC
lwmaPeriodintThe period for the LWMA
CoppockCurve(string, int, int, int)
Initializes a new instance of the CoppockCurve indicator
public CoppockCurve(string name, int shortRocPeriod, int longRocPeriod, int lwmaPeriod)
Parameters
namestringA name for the indicator
shortRocPeriodintThe period for the short ROC
longRocPeriodintThe period for the long ROC
lwmaPeriodintThe period for the LWMA
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public override int WarmUpPeriod { get; }
Property Value
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe input given to the indicator
Returns
- DoubleArray
A new value for this indicator
Reset()
Resets this indicator to its initial state
public override void Reset()