WLDPAR_R module routines

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

WLDPAR_R.C

ANSI C routines for Welles Wilder's Parabolic Time/Price indicator.

Function new_par_struct
Include file WLDPAR_R.H
Prototype PAR *new_par_struct( float af_step , float af_max )
Remarks Allocate, initialize and return a virgin Wilder Parabolic Time/Price indicator structure. Now I think most people don't play with the acceleration step factor or the acceleration max so I have front-ended this routine with a macro for a standard initialization without having to pass the parameters.

Function reset_par_struct
Include file WLDPAR_R.H
Prototype void reset_par_struct( PAR *par_ptr )
Remarks Reset a PAR data structure for a new data series.

Function update_par_struct
Include file WLDPAR_R.H
Prototype void update_par_struct( PAR *par_ptr , DATA_REC *data_ptr )
Remarks Update the caller's PAR with the new data. The PAR calcs will turn-on with the second data point and par_ptr->enough_data will be set to TRUE and various PAR fields can be used.

Function new_par_ind_struct
Include file WLDPAR_R.H
Prototype PAR_IND *new_par_ind_struct( int data_cnt )
Remarks Allocate, and return a virgin Wilder Parabolic SAR indicator display structure for data_cnt items.

Function free_par_ind_struct
Include file WLDPAR_R.H
Prototype void free_par_ind_struct( PAR_IND *par_ptr )
Remarks Return the PAR indicator display structure and its sub-structure memory to the system.

Function calc_par_ind
Include file WLDPAR_R.H
Prototype void calc_par_ind( DATA_REC *data_ptr , int data_cnt , PAR_IND *inds , float af_step , float af_max )
Remarks Calculate the Wilder Parabolic Stop and Reverse indicators for the user DATA_REC data series. The indicators will be built in the caller's PAR_IND indicator display structure inds. The long and short stops will each be stored in their own float data array for correct plotting.

Table of Contents Function Index

generated on 08 February 1998 - 14:41:19
© 1998 Tierra del Fuego Ltd.