Method | Description | |
---|---|---|
Add ( double d ) : void |
Add a bar.
|
|
Average ( int idx ) : double |
Average all of the bars.
|
|
AverageGain ( int idx ) : double |
Get the average gain.
|
|
AverageLoss ( int idx ) : double |
Get the average loss.
|
|
BarBuffer ( int thePeriods ) : System |
Construct the object.
|
|
Max ( int idx ) : double |
Get the max for the specified index.
|
|
Min ( int idx ) : double |
Get the min for the specified index.
|
|
Pop ( ) : double[] |
Pop (and remove) the oldest bar in the buffer.
|
public Average ( int idx ) : double | ||
idx | int | The bar index to average. |
return | double |
public AverageGain ( int idx ) : double | ||
idx | int | The field to get the average gain for. |
return | double |
public AverageLoss ( int idx ) : double | ||
idx | int | The index to check for. |
return | double |
public BarBuffer ( int thePeriods ) : System | ||
thePeriods | int | The number of periods. |
return | System |