CSTM3RPT module routines

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

CSTM3RPT.C

A program to easily run multiple indicators and systems in parallel

Function get_trade_signal
Include file CSTM3RPT.H
Prototype char *get_trade_signal( int signal )
Remarks Use the signal value to index into an array of char strs of trade signals and market state messages.

Function set_trade_signal_state
Include file CSTM3RPT.H
Prototype void set_trade_signal_state( int idx , int opinion )
Remarks Set and update the trade signal state for output number - idx according to the opinion.

Function update_trade_signal_state
Include file CSTM3RPT.H
Prototype void update_trade_signal_state( int idx )
Remarks Update the current trade signal for state changes (exp. old state GO_LONG, new state at exit - LONG).

Function set_ind_signal_state
Include file CSTM3RPT.H
Prototype void set_ind_signal_state( int idx , float cur_value , float last_value )
Remarks Calculate an indicator trade signal state using as a basis the current and last indicator values.

Function calc_ob_os_signal_state
Include file CSTM3RPT.H
Prototype void calc_ob_os_signal_state( int idx , float overbought_threshold , float oversold_threshold )
Remarks Calculate an indicator trade signal state by evaluating the current indicator value in relation to overbought and oversold thresholds.

Function calc_rev_ob_os_signal_state
Include file CSTM3RPT.H
Prototype void calc_rev_ob_os_signal_state( int idx , float overbought_threshold , float oversold_threshold )
Remarks This is the same as the last routine except this one has reversed threshold logic to handle flakey thresholds like original Williams' %R.

Function set_ob_os_ind_signal_state
Include file CSTM3RPT.H
Prototype void set_ob_os_ind_signal_state( int idx , int opinion )
Remarks Set and update the indicator trade signal state using as a basis the indicator value in relation to overbought and oversold thresholds.

Function allocate_trd_signal_routine
Include file CSTM3RPT.H
Prototype void allocate_trd_signal_routine( void )
Remarks Allocate and initialize a user requested trade signal process routine structure and hook it on to the cur_prc_rec.

Function chk_4_user_requested_trd_sig
Include file CSTM3RPT.H
Prototype int chk_4_user_requested_trd_sig( float cur_ind , float src_data )
Remarks Check the cur_prc_rec's trd_sig_ptr, if a user requested special trade signal routine is found, run it.

Function fe_calc_ob_os_signal_state
Include file CSTM3RPT.H
Prototype void fe_calc_ob_os_signal_state( void )
Remarks Front end calc_ob_os_signal_state() since function ptrs don't have prototypes the float arguments get pushed as ints

Function fe_set_ind_signal_state
Include file CSTM3RPT.H
Prototype void fe_set_ind_signal_state( void )
Remarks Front end set_ind_signal_state() since function ptrs don't have prototypes the float arguments get pushed as ints

Function validate_with_str_array_stricmp
Include file CSTM3RPT.H
Prototype int validate_with_str_array_stricmp( char *validate_strs[] , char *target , int cnt )
Remarks Normal validate_with_str_array except use stricmp for a case-insensitive compare between target and validate_strs.

Table of Contents Function Index

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