TDF_lib Docs - Windows 32-bit version

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

Module Table of Contents

Go to Function Index

G_WIN_R.C This is the graphics windows subsystem.
QS_WIN_R.C This is the quote screen display window subsystem.
TTYWND_R.C This is the TTY Window subsystem.
IP_PORTS.C This is the main initialization file for the TCP & UDP PORTS subsystem.
TCP_PORT.C This code supports read & write operations for the TCP port subsystem.
UOUTPORT.C This code supports write operations for the UDP port subsystem.
U_INPORT.C This code supports read operations for the UDP port subsystem.
DBM_PORT.C These routines allow a Windows app to send debug messages out transparently to its own operation via LAN UDP broadcasting.
SER_PORT.C This is a quick hack & slash of the serial port code from tdf_tty into a module with circular data buffering and a IP_SOCK interface.
SIG_DATA.C Real-time parse and store routines for Signal data feed.
MV_AVG_R.C Simple and exponential style moving average routines. Plus routines to lag or lead an indicator series.
AMVAVG_R.C Adaptive moving average routines based on Perry Kaufman's 03/93 Futures article.
WMVAVG_R.C Weighted moving average routines.
STDDEV_R.C Standard deviation routines.
LINREG_R.C Least-squares and best-fit linear regression and time series line regression indicator routines.
DFQREG_R.C Dual frequency trigonometric regression routines.
MACD_R.C Moving Average Convergence / Divergence and Moving Average Convergence / Divergence Histogram routines.
BBAND_R.C Bollinger Band indicator routines.
RSI_R.C Relative Strength Index routines.
STOC_R.C Stochastics and Williams' %R routines prototypes and typedefs.
WLDPAR_R.C Welles Wilder's Parabolic Time/Price indicator routines.
RWI_R.C Mike Poulos' Random Walk Index indicator routines.
IND_ENG.C A subsystem to easily run multiple indicators and systems in parallel against a data set and then generate a custom report for the user.
CSTM_IND.C This module contains the indicator routines for Indicator Engine.
FIBPRJ_R.C Routines for calculating Fibonacci price retrace and expansion projections.
DTFL_ACC.C Standardized data file access routines to support Computrac/Metastock, CSI and ASCII data files.
STDBPATH.C The standard database path routines.
WRT_DT_R.C Routines to support creation, writing & updating of CompuTrac & MetaStock datafiles.
MEMCPTDT.C These are a few routines layered on top of the standard datafile access routines to support memory caching of the master file info.
OUTDEV_R.C The standard output_device support routines.
STD_CODE.C This module is the home for all user-interface, standard product routines.
GEN_UTL.C A few utility routines that don't need a whole module.
PRC_CNFG.C A set of routines to read an ASCII configuration file and process it's data and store the info back in the caller's main() module.
GETARGS.C Command line argument processor.
ERR_MSGS.C Error msgs and constants for the file access and cmd line configuration routines.
C_DATE_R.C Convert and validate DATE Routines.
J_DATE_R.C Julian date routines.
MRK_DAYR.C These routines will support hidden holiday tracking providing a way to check a julian date to determine if the market will be open.
DOS_TIME.C A collection of MSDOS time and date routines.
CNVTBOND.C Conversion routines for handling T-Bond data.
UTLSTR_R.C A collection of useful string manipulation routines (they all expect NULL terminated strs).
S_PARSER.C A couple very simple ANSI C parse and identify routines.
MY_DIR.C A few wrapped MSDOS directory functions.
BIN_TREE.C Some simple binary tree routines.
CIRBUF_R.C A collection of routines to build and support a circular byte buffer.
FONTNCLR.C This module's routines will create a HFONT handle for any font installed on your system suitable for used by any of the TDF_lib library defined window classes. It also defines a standard color set of RGB() values.
LCAPPSTR.C A QND to initialize some message strings suitable for use by db_printf for LAN wide msg reporting.
MSBIN2IE.C MicroSoft basic BINary float format 2 IEee float conversion routines.
PERLSUPP.C Just a couple of front-ends to standard library functions to handle copying data back into perl's memory space.
REG_R.C A few simple registry routines (but all you need - read, write & delete).
TDF_DLGS.C A simple dialog prompt box suitable for use from perl.

Demonstration Programs & Useful Utilities

SNAPSHOT.C A Q & D program to load 1 to 4 charts (and possible indicators) and possibly dump the chart out to disk as a bitmap file (which can be converted to a JPG by cjpeg). This is also a fine example of the G_WIN subsystem.
CSTM_RPT.C A program to easily run multiple indicators and systems in parallel against a data set and then generate a custom report for the user.
DUMP_CDT.C A Q & D to dump CSI & Computrac master and data files to stdout to see what I've got.
ANAL_CYC.C A Q & D program to read a file of ASCII cycles and track where a market is in relation to them.
APP_MON.C A Q & D program to monitor the status of multiple LAN-wide programs.
BLKBOARD.C A nice display program featuring a udp addressable display screen suitable for black-board message display from another app.
QSW_DEMO.C This is simple demo app for the QS_WIN (Quote Screen Windows) routines.
WLOGGER.C A very useful little utility. It will listen to a udp port and log everything seen to a scrolling TTY window.
TDF_TTY.C A useful little utility to real-time snarf a Signal data stream from a serial port, save the quotes and broadcast a data stream out the Ethernet to other clients.
WIN_APP.C A nice shell to use as a hack & slash starting point for building a windows app.
CONS_APP.C A nice shell to use as a hack & slash starting point for building a console app.
GRX_TEST.C This is a simple testbed that I used to first develop the graphic window routines. It is included as a sample program since it shows examples of a number of low level calls into the G_WIN subsystem and direct window handling.

Function Index

Go to Table of Contents

AboutDlgProc CloseConnection CommWatchProc
CreateTTYInfo DestroyTTYInfo EzCreateFont
FillComboBox GRX_box GRX_grid
GoModalDialogBoxParam GrfxWndProc InitApplication
InitInstance KillTTYFocus MoveTTYCursor
OpenConnection PaintTTY PlayResource
Portions ProcessTTYCharacter QSWndProc
ReadCommBlock ResetTTYScreen ScrollTTYHorz
ScrollTTYVert SelectTTYFont SetTTYFocus
SettingsDlgInit SettingsDlgProc SettingsDlgTerm
SetupConnection SizeTTY TTYWndPaint
TTYWndProc TTYWndProcOld WinMain
WndProc WriteCommBlock WriteTTYBlock
_strdate _strtime accept_connection
add_2_binary_tree add_2_compress_data_struct add_btree_node
add_ptr_2_binary_tree add_time_convert alloc_G_WIN
alloc_IP_SOCK alloc_QS_WIN alloc_circular_buff
alloc_ema alloc_macd alloc_sma
alloc_stddev alloc_stoc alloc_ttywin
alloc_wld_ma alloc_wuo allocate_ad
allocate_ama allocate_bb allocate_cci
allocate_chaikin allocate_change allocate_data_structures
allocate_daytype allocate_dmac allocate_dmi
allocate_ema allocate_hhigh allocate_llow
allocate_macd allocate_macdh allocate_mathop
allocate_max allocate_min allocate_mom
allocate_nvi allocate_obv allocate_par
allocate_pchange allocate_pivot_pts allocate_pvi
allocate_range allocate_recnum allocate_roc
allocate_rsi allocate_rwi allocate_shift_data
allocate_sma allocate_srat allocate_stddev
allocate_stoc allocate_sum allocate_sum_n
allocate_thigh allocate_tlow allocate_trange
allocate_trd_signal_routine allocate_trix allocate_tslr
allocate_wclose allocate_wma allocate_wr
allocate_wuo allocate_x1 app_exit_cleanup
append_cpt_dt_file attach_data_rec_series auto_select_a_scr
bars_needed_by_secondary_srcs blank_pad_2_length bld_ind_label_str
build_app_db_msg_prefixes build_axis_incs build_multi_charts_in_a_frame
build_quote_scr build_special_data calc_2_freq_trig_reg
calc_ad calc_all_cycle_positions calc_ama
calc_ama_ind calc_avg calc_bb
calc_bband_ind calc_best_fit_linreg calc_blended_cycles
calc_cci calc_chaikin calc_change
calc_cycle_position calc_day_of_week_index calc_days_needed
calc_daytype calc_dmac calc_dmi
calc_dt_n_axis_scale_factors calc_dt_range calc_ema
calc_ema_coeff calc_ema_ind calc_emacd
calc_fibonacci_expansions calc_fibonacci_retraces calc_hhigh
calc_linreg calc_llow calc_macd
calc_macd_ind calc_macdh calc_mathop
calc_mom calc_mth_idx calc_new_price_with_linreg
calc_next_trading_date calc_nvi calc_ob_os_signal_state
calc_obv calc_one_cycle_position calc_output_places
calc_par calc_par_ind calc_pchange
calc_percentage calc_pivot_pts calc_pvi
calc_range calc_recnum calc_rev_ob_os_signal_state
calc_roc calc_rsi calc_rsi_ind
calc_rwi calc_rwi_ind calc_shift_data
calc_sma calc_sma_ind calc_smacd
calc_srat calc_stddev calc_stoc
calc_stoc_ind calc_sum calc_sum_n
calc_thigh calc_tlow calc_trange
calc_trix calc_tslr calc_tslr_ind
calc_ultimate_osc_value calc_wclose calc_wma
calc_wma_ind calc_wr calc_wuo
calc_x1 check_gdds_data_range chk_4_ascii_data_file
chk_4_file chk_4_label_update_with_defaults chk_4_ma_tests
chk_4_post_proc_requests chk_4_special_output_format chk_4_user_requested_trd_sig
chk_cmd_verb_table chk_config_args chk_data_tables
chk_for_null_token chk_for_reload_from_checkpoint chk_if_1st_arg_is_a_db_path
chk_if_help_was_requested chk_if_holiday chk_if_numeric_str
chk_if_token_too_long chk_if_tokens_same_len chk_if_valid_data_source
chk_if_we_are_superuser chk_ma_lengths chk_rpt_tun_port
chk_the_ports chk_this_csi_master_rec chk_time_event_queue
chk_token_size cht_with_bband cht_with_bband_n_kotd
cht_with_par clear_data_rec clear_g_window
clear_the_out_array clear_the_prc_array clear_tm_struct
clone_cur_prc_rec close_data_file close_output_device
cmd_ln_args_2_str cnvt_2_seconds_past_midnight cnvt_DATA_REC_2_MINI
cnvt_DATA_REC_2_cpt_dt_format cnvt_DD_MM_YY_2_flt cnvt_MM_DD_YY_2_YYMMDD_str
cnvt_MM_DD_YY_2_YYYYMMDD cnvt_MM_DD_YY_2_flt cnvt_YYMMDD_flt_2_DD_MM_YY
cnvt_YYMMDD_flt_2_MM_DD_YY cnvt_YYMMDD_flt_2_YYMMDD_str cnvt_YYMMDD_flt_2_YYYYMMDD
cnvt_YYMMDD_str_2_MM_DD_YY cnvt_YYMMDD_str_2_flt cnvt_YYYYMMDD_2_YYMMDD_flt
cnvt_YYYYMMDD_2_YYMMDD_str cnvt_bond_data_into_decimal cnvt_commas_2_white_space
cnvt_cpt_data_rec cnvt_csi_data_rec cnvt_cur_idx_2_last
cnvt_julian_date_2_MM_DD_YY cnvt_julian_date_2_YYMMDD cnvt_julian_date_2_YYMMDD_flt
cnvt_julian_date_2_str cnvt_line_to_lowercase cnvt_line_to_uppercase
cnvt_nl_2_null cnvt_null_bytes_2_spaces cnvt_tbond_2_decimal
cnvt_tbond_2_int cnvt_tbond_data_rec_2_decimal cnvt_tbond_data_rec_dec_to_32
cnvt_tbond_decimal_2_normal cnvt_tbond_int_2_float cnvt_tbond_vars_if_necessary
cnvt_tm_struct_2_dostime cnvt_to_system_time compare_dates
compress_a_daily_quote compress_cmd_ln compress_daily_data_file
compress_day_to_week_or_month connect_to_winsock constant_length_date
control_c_handler convert_tbond_quote copy_str_n_blank_pad
copy_ticker_str correct_CSI_ticker_error create_cpt_data_file
create_cpt_dop_file create_empty_cpt_master create_empty_data_file
create_g_window create_gdds_data_rec create_gdds_horz_line
create_gdds_ind csi_2byte_convert csi_3byte_convert
csi_points_2_dollars day_of_the_week db_printf
dec_cur_prc_rec define_database delete_key_from_registry
delete_str_from_registry detrend_data_series display_last_W32_error
display_multi_chart_quad display_multi_chart_rsi display_multi_chart_rwi
display_multi_charts do_fibonacci_crossref do_special_processing_b4_output
dostime_2_str draw_empty_chart dspy_compile_version
dspy_debug_hook_vars dspy_dtfl_acc_prc_globals dspy_stdbpath_prc_globals
dspy_video_buffered_data dump_TS_cmd_ln_2_output_device dump_banner_2_output_device
dump_cmd_ln_2_output_device dump_copyright_notices dump_cpt_data_file_header
dump_csi_data_file_header dump_prc_master_if_debug_flag dump_ref_str_if_debug_flag
dump_the_data_file_header dump_the_master_file dump_ticker_array
dump_ticker_str dump_token_ptrs eat_EQUIS_flag_char
eat_commas_except_in_dquotes eat_trailing_white_space eat_white_space_in_str
echo_2_stdout_if_necessary empty_cpt_data_file enough_data_yet
expand_tabs_in_str_2_spaces fake_for_missing_dop_file fake_num_data
farrealloc fe_calc_ob_os_signal_state fe_set_ind_signal_state
fetch_data_field fetch_far_data_rec fetch_str_from_registry
fieeetomsbin final_day_type_analyze final_exit_cleanup
find_btree_node find_data_rec_by_date_fsearch find_data_record_by_date
find_data_source find_date_offset find_last_record
find_rec_by_date find_rec_by_date2 find_ticker_with_wildcard_supp
find_ttywin_ptr findarg finish_regression_calcs
float_to_sda_buff fmsbintoieee frameWndProc
free_IP_SOCK free_ama_ind_struct free_ama_struct
free_bband_ind_struct free_bband_struct free_circular_buff
free_cpt_master_file_rec free_data_structures free_debug_port
free_freq2_reg_struct free_g_window free_gdds_rec
free_global_vars free_grfx_subsystem free_macd_ind_struct
free_macd_struct free_par_ind_struct free_process_vars
free_rsi_struct free_rwi_ind_struct free_rwi_struct
free_sma_struct free_stddev_struct free_stoc_ind_struct
free_stoc_struct free_the_snarf_code free_tslr_ind_struct
free_tslr_struct free_wma_struct general_data_store
get_circular_index get_config_file get_cur_cpt_master_rec
get_data_record_n get_data_value get_date_substr
get_drive_num_from_str get_edit_field_with_prompt get_field_dlg_proc
get_field_from_YYMMDD_flt get_first_int_arg get_first_unused_arg
get_first_unused_arg_n_mark_used get_first_unused_int_arg get_format_str
get_free_window_slot get_highs_and_lows get_jdate_from_user
get_label_str get_label_str_secondary get_last_output_value_4_cur_prc
get_lines_in_file get_new_cpt_master_rec get_next_data_record
get_next_from_circular_buff get_system_time get_time_in_DOS_format
get_trade_signal get_unused_label_str get_y_plot
getargs getchar_from_UDP_packet ie_calc_emacd
ie_calc_linreg ie_calc_range ie_calc_smacd
ie_get_format_str inc_cur_prc_rec increment_secondary_data_ptrs
init_1_broadcast_port init_ad init_ama
init_app_recs_channels init_bb init_broadcast_ports
init_cci init_chaikin init_circular_buff
init_collection_tree init_compress_data_struct init_data_file_temps
init_daytype init_debug_port_subsystem init_dmi
init_ema init_ema_ptr init_forward_data
init_global_vars init_grfx_subsystem init_hhigh
init_ind_eng_vars init_llow init_macd
init_mathop init_mom init_nvi
init_obv init_out_array init_par
init_process_vars init_pvi init_ran
init_roc init_rsi init_rwi
init_sdev init_secondary_data_ptrs init_shift_data
init_sig_data_vars init_sma init_sma_ptr
init_stddev init_stoc init_sum
init_sum_n init_the_snarf_code init_time_event_queue
init_to_broadcast_on_port init_to_receive_on_port init_to_receive_on_serial_port
init_to_receive_tcp_on_port init_to_send_to_host init_trix
init_tslr init_wld_ma_ptr init_wma
init_wuo init_x1 insert_gdds_item
insert_sda_item insert_str_into_str int_to_sda_buff
is_mrk_day is_this_a_number_str julian_date
lc_add_2_binary_tree lc_add_btree_node lc_find_btree_node
lc_find_btree_node_with_chk lc_local_exit lc_print_btree_node
lc_process_config_file lc_walk_binary_tree ld_ascii_data_file
ld_cpt_master_file_into_memory ld_holiday_file ld_ind_from_DATA_REC_series
line ln_to_upper_except_in_dquotes loadTTYWin
load_cycle_data_file load_datagram load_dialog_data
load_last_n_data_records load_one_intraday_day load_secondary_data
load_the_data_array localGWndProc localGrfxWndProc
localQSWndProc localTTYWndProc local_exit
log_msg_to_scr lookup_ascii_data_file lookup_config_index
lookup_cpt_data_file_num lookup_csi_data_file_num lookup_data_file_num
main main_dialog_func make_connection
make_data_file_name make_dop_file_name make_secondary_label_str
match_str_with_wildcard_support matrix_gaussian_elimination mem_lookup_data_file_num
mins_past_midnight_to_HH_MM my_calloc my_chdir
my_farcalloc my_fprintf my_mkdir
my_rmdir my_tmpnam my_unlink
new_ama_ind_struct new_ama_struct new_bband_ind_struct
new_bband_struct new_ema_struct new_fibprj_struct
new_linreg_struct new_macd_ind_struct new_macd_struct
new_par_ind_struct new_par_struct new_rsi_struct
new_rwi_ind_struct new_rwi_struct new_sma_struct
new_stddev_struct new_stoc_ind_struct new_stoc_struct
new_tslr_ind_struct new_tslr_struct new_wma_struct
normal_cnf_table_store olm_a_file open_data_file
open_data_file_4_update open_debug_port open_n_load_ascii_data_file
output_a_timestamp_msg output_ascii_dt_file output_blend_structs
output_btree_node output_btree_node_future output_btree_node_index
output_btree_node_m_fund output_btree_node_stock output_cpt_dt_file
output_cur_prc_rec output_daily_data output_data_4_metastock
output_one_blend_struct output_pending_cycles output_sig_data
output_str_2_log_file output_the_out_array pack
paint_quote_scr pr_usage pre_exit_cleanup
print_btree_node print_cpt_master_rec print_csi_1st_recs
print_data_struct print_data_struct_compact print_tm_struct
print_usage print_usage_blkboard print_usage_cstm_rpt
process_1_ascii_line process_1_template_line process_1_ticker
process_active_msg process_blend_dt_rec process_cmd_line_4_arguments
process_config_file process_cycle_data_rec process_cycle_dt_rec
process_data_msg process_fib_rpt_line process_holiday_rec
process_one_config_entry process_one_data_file process_paren_assignment
process_template_file process_the_data_array process_ticker_dt_rec
process_ticker_list_file process_udp_msg ps_load_last_n_data_records
random_int read_dop_file receive_datagram
receive_serial_datagram regGWINClass regQSWINClass
regTTYWinClass register_frame_window register_frame_window_old
reload_a_quote render_gdds_chain render_gdds_data_rec
render_gdds_horz_line render_gdds_ind report_error_n_exit
report_fatal_error report_unused_tokens reset_ama_struct
reset_app_recs reset_bband_struct reset_ema_struct
reset_fibprj_struct reset_macd_struct reset_page_1
reset_par_struct reset_read_circular_buff reset_rsi_struct
reset_rwi_struct reset_sma_struct reset_stddev_struct
reset_stoc_struct reset_tslr_struct reset_wma_struct
restore_trend_2_data_series return_next_token_str roll_2_tomorrow
round_as_int rpt_current_state rpt_debug_msg
rpt_memory_left_if_debug_flag rpt_msg_n_status rpt_template_error
run_modal_loop_on_window safe_strcpy save_cycle_rec
save_output_value save_trade_signal_value scale_data_rec
send_datagram send_string set_cmd_line_flags
set_config_table set_cpt_output_places set_data_labels_complex
set_data_source_complex set_data_source_n_labels set_database_flags
set_database_vars set_database_vars_from_registry set_display_data_rec_ptr
set_display_inds_ptr set_f_scaler set_favorite_g_win_config
set_favorite_ttywin_config set_file_rec_numbers set_g_win_defaults
set_high_lows set_ind_signal_state set_lines_array
set_ob_os_ind_signal_state set_output_formats set_output_params
set_pen_defaults set_plot_range set_ptrs_2_next_day
set_system_time set_token_flags set_token_ptrs
set_trade_signal_state set_ttywin_defaults set_type_4_virgin_btree_node
set_x_inc set_y_inc setarg
shift_moving_average snarf_the_bytes special_token_saves
stoi store_a_fib_node store_a_fib_projection
store_a_quote_line store_bars_needed store_csi_1st_rec_data
store_current_btree_node store_current_node_future store_current_node_index
store_current_node_m_fund store_current_node_mrk_msg store_current_node_stock
store_data_field store_gwin_size store_holiday_rec
store_in_circular_buff store_ind_in_DATA_REC_series store_input_data
store_scale_factor store_stoc_data str_2_buffer
str_to_sda_buff str_to_sda_buff_with_pad string_copy
strncpy_n_blank_pad strncpy_n_uppercase_it super_ez_create_font
test_cht_2_windows test_cht_sine test_find_rec_by_date
test_hook test_routine1 tick_x_axis
time_stamp timer_test_routine timer_tick
tm_2_MM_DD_YY trim_trailing_white_space_2_cnt udp_thread
updateTTYWin update_ama_struct update_bband_struct
update_clone_nyse_volume update_cpt_data_record update_cpt_dt_file_reccnt
update_cpt_master_file update_cpt_master_file_cnts update_db_module_vars
update_dt_rec_with_nyse_volume update_ema update_ema_struct
update_gdds_client_area update_library_global_vars update_macd_struct
update_par_struct update_rsi_struct update_rwi_struct
update_sma update_sma_struct update_stddev
update_stddev_struct update_stoc_struct update_trade_signal_state
update_tslr_struct update_wld_ma_ptr update_wma_struct
validate_MM_DD_YY validate_boolean_answer validate_data_path_str
validate_data_type validate_date_field validate_primary_verb
validate_with_str_array validate_with_str_array_stricmp walk_binary_tree
write_snarfed_data write_str_to_registry

Table of Contents Function Index

generated on 22 September 1998 - 12:54:23
© 1998 Tierra del Fuego Ltd.