BBAND_R.C - Bollinger BAND Routines
ANSI C Bollinger Band indicator routines.
Function
|
new_bband_struct
|
Include file
|
BBAND_R.H
|
Prototype
|
BBAND * new_bband_struct( int ma_length , float num_of_stddevs )
|
Remarks
|
Allocate, initialize and return a virgin Bollinger Band structure.
|
Function
|
reset_bband_struct
|
Include file
|
BBAND_R.H
|
Prototype
|
void reset_bband_struct( BBAND *bband_ptr )
|
Remarks
|
Reset a BBAND data structure for a new data series.
|
Function
|
update_bband_struct
|
Include file
|
BBAND_R.H
|
Prototype
|
void update_bband_struct( BBAND *bband_ptr , float data )
|
Remarks
|
Update the caller's BBAND with the new data. Once we have collected enough
data to calc the BBANDs, bband_ptr->enough_data will be set to TRUE and
the Bollinger band fields can be used.
|
Function
|
free_bband_struct
|
Include file
|
BBAND_R.H
|
Prototype
|
void free_bband_struct( BBAND *bband_ptr )
|
Remarks
|
Return the BBAND and its sub-structure memory to the system.
|
Function
|
new_bband_ind_struct
|
Include file
|
BBAND_R.H
|
Prototype
|
BBAND_IND * new_bband_ind_struct( int data_cnt )
|
Remarks
|
Allocate, and return a virgin Bollinger Band indicator display structure
for data_cnt items.
|
Function
|
free_bband_ind_struct
|
Include file
|
BBAND_R.H
|
Prototype
|
void free_bband_ind_struct( BBAND_IND *bband_ptr )
|
Remarks
|
Return the BBAND indicator display structure and its sub-structure
memory to the system.
|
Function
|
calc_bband_ind
|
Include file
|
BBAND_R.H
|
Prototype
|
void calc_bband_ind( DATA_REC *data_ptr , int data_cnt ,
int which_field , BBAND_IND *inds , int ma_length , float num_of_stddevs )
|
Remarks
|
Calculate a set of Bollinger Band indicators for the requested field for
the DATA_REC data series. The indicators will be built in the caller's
BBAND_IND indicator display structure inds.
|
Table of Contents
Function Index
generated on 22 September 1998 - 12:54:30
© 1998 Tierra del Fuego Ltd.
|