Custom Symbol RefreshIf you have a disconnect from the eSignal feed, you could use an ESPL script like the following to request a refresh of the intra-day bars to the foundation charts that make up your custom symbols, and then merge the foundation charts into the custom symbol file to refresh the custom symbol chart. This script illustrates doing the refresh for two composite custom symbols, and you can expand on the example to service your custom symbols.To use this script, cut the example from this e-mail, and paste the script into the script editor. Edit the script to service the particulars of your custom symbols, and then save the script under a name of your choosing. To execute the script, click on the #1 button on the script editor, or click the #1 menu item that show on the main menu when the script editor is showing. Each part of the ESPL script is documented so you can follow along with what is happening. Let's assume your composite custom symbol is plotting a day session symbol and an evening session symbol. The objective is to update the chart for the day session symbol, update the chart for the evening session symbol, and then merge both of these data sets into the composite custom symbol to update the custom file. The ESPL procedure called MergeCustom does these three steps. We will pass three parameters to this procedure: SymC will be a variable holding the name of the custom chart. procedure MergeCustom(symC, sym1, sym2: string); {now we open the chart for the 2nd symbol so it gets updated by the DBC server} if Finished(40) then mnuCloseWindow.click; Merge(sym1, symC); Merge(sym2, symC); {the MergeCustom procedure was written in a general way
to take any two foundation } begin MergeCustom('SP1HH.5', 'SP H1.5', 'WP H1.5'); MergeCustom('US1HH.1', 'US H1.1', 'ZB H1.1'); |