RSI_R module routines - WIN32

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

RSI_R.C - Relative Strength Index Routines

ANSI C Relative Strength Index routines.

Function new_rsi_struct
Include file RSI_R.H
Prototype RSI * new_rsi_struct( int rsi_length )
Remarks Allocate, initialize and return a virgin relative strength index structure.

Function reset_rsi_struct
Include file RSI_R.H
Prototype void reset_rsi_struct( RSI *rsi_ptr )
Remarks Reset a RSI data structure for a new data series.

Function update_rsi_struct
Include file RSI_R.H
Prototype void update_rsi_struct( RSI *rsi_ptr , float new_data )
Remarks Update the caller's RSI with the new data. Once we have collected enough data to calc the RSI, rsi_ptr->enough_data will be set to TRUE and rsi_ptr->rsi can be used.

Function free_rsi_struct
Include file RSI_R.H
Prototype void free_rsi_struct( RSI *rsi_ptr )
Remarks Return the RSI memory to the system.

Function calc_rsi_ind
Include file RSI_R.H
Prototype void calc_rsi_ind( DATA_REC *data_ptr , int data_cnt , int which_field , float *inds , int rsi_length )
Remarks Calculate a RSI indicator of rsi_length for the requested field for the DATA_REC data series. The indicator will be built in the caller's float inds[].

Table of Contents Function Index

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