STOC_R module routines - WIN32

Company Information Software Products TDF Market Reports Download Area take me Home

STOC _R.C - STOChastic Routines

ANSI C stochastics and Williams' %R routines prototypes and typedefs.

Function new_stoc_struct
Include file STOC_R.H
Prototype STOC * new_stoc_struct( int stoc_length )
Remarks Allocate, initialize and return a virgin stochastics structure.

Function reset_stoc_struct
Include file STOC_R.H
Prototype void reset_stoc_struct( STOC *stoc_ptr )
Remarks Reset a STOC data structure for a new data series.

Function update_stoc_struct
Include file STOC_R.H
Prototype void update_stoc_struct( STOC *stoc_ptr , DATA_REC *data_ptr )
Remarks Update the caller's STOC with the new data. Once we have collected enough data to calc the STOC vars, stoc_ptr->enough_data will be set to TRUE and the %K & %D and the Williams' %R fields can be used.

Function free_stoc_struct
Include file STOC_R.H
Prototype void free_stoc_struct( STOC *stoc_ptr )
Remarks Return the STOC and its sub-structure memory to the system.

Function new_stoc_ind_struct
Include file STOC_R.H
Prototype STOC_IND * new_stoc_ind_struct( int data_cnt )
Remarks Allocate, and return a virgin stochastics indicator display structure for data_cnt items.

Function free_stoc_ind_struct
Include file STOC_R.H
Prototype void free_stoc_ind_struct( STOC_IND *stoc_ptr )
Remarks Return the STOC indicator display structure and its sub-structure memory to the system.

Function calc_stoc_ind
Include file STOC_R.H
Prototype void calc_stoc_ind( DATA_REC *data_ptr , int data_cnt , STOC_IND *inds , int stoc_length )
Remarks Calculate a set of stochastics indicators for the requested field for the DATA_REC data series. The indicators will be built in the caller's STOC_IND indicator display structure inds.

Table of Contents Function Index

generated on 22 September 1998 - 12:55:41
© 1998 Tierra del Fuego Ltd.