|
|
Once defined at least one "File Format", a Web Server or a "DDE" link, it is possible to set the update properties.
It is possible to define any number of updates. Perhaps one or more for each data provider.
To define an update, select the table "Data Update":
The table "Data Update" has two sections:
-
General where it is possible to define the updates
-
Results where it is possible to follow the update once it has been launched. Here are displayed the results, and errors that might occur.
|
New
|
Create a new Data Update.
|
|
Copy
|
Copy the selected Update to a new one.
|
|
Delete
|
Delete Selected Update.
|
|
Save
|
Confirm and apply all modifications done so far. Until this key is not pressed, the modification will not be effective.
|
|
Exit
|
Exit from the window.
|
These are the properties that can be set for a Data Update:
|
Source Type
|
It defines the type of data source. Two types available:
|
|
File ASCII
|
|
The Update data source is a text file (ASCII)
|
|
|
|
|
DDE
|
|
The Update data source has a DDE link with a DDE Server.
|
|
|
|
|
Web Server
|
|
The Update Data source is a link with a Web Server (i.e. Yahoo, QuoteTracker etc.)
|
|
|
DDE Source
|
Is the name of the DDE source defined in the DDE table in the same form.
|
|
Web Server source
|
Is the name of the Web Server source defined in the Web Server table in the same form.
|
|
File ASCII
|
It defines the complete path to the file ASCII containing the data for the update.
|
|
ASCII File Format
|
It is one of the formats which has been defined and created with the dedicated procedure in the table "File Format"
|
|
Delete source file after update
|
If the property is set to "YES", the file ASCII containing the data is deleted after the update. The property is valid only if the property "Source Type" is set to "ASCII File".
|
|
Destination Workgroup
|
It is the workgroup containing the securities to update.
If the same data file is in more than one workgroup, it will be necessary to update it only once. For this reason it is suggested to create a workgroup specifically for the Data Update, which will contain all the securities to update.
|
|
First date to update
|
Is the first date to update. It is suggested to set a very early date.
|
|
Last date to update
|
Is the last date to update. It is suggested to set a very late date.
|
|
Starting Time
|
not used
|
|
Ending Time
|
not used
|
|
Default periodicity
|
it is the periodicity used to update the data if no other data has been specified. If the update data do not have the periodicity, then the default one is taken from this property.
|
|
If the record exists
|
|
|
Overwrite existing record
|
|
If the period that you are updating already exists in the file, it will be replaced.
|
|
|
|
|
Update Record if it exists (no volume)
|
|
If the period you are updating already exists in the data file, then Max, Min, Close (but not Volume), will be updated with the new data. The maximum value will be updated only if the existing data file is lesser than the new one. the maximum value will be updated only if the existing one of the data file is greater than the new one. It is to be used only with an Intraday file format.
|
|
|
|
|
Update Record if it exists (with volume)
|
|
If the period you are updating already exists in the data file, then Max, Min, Close and Volume, will be updated with the new data. The maximum value will be updated only if the one existing in the data file is lesser than the new one. The minimum value will be updated only if the existing one is greater than the new one. The volume will be updated only in the last record of the data file adding the new value to the existing one. It is to be used only with an Intraday file format.
|
|
|
|
|
Leave old record
|
|
The record on the data file will not be substituted nor updated.
|
|
|
Ignore first record
|
We have already seen that often the first record of the file containing the data for the update, have the names of the columns. Only in this case set the property to "YES", to avoid strange messages.
|
|
Accept values lower than zero
|
If the value is set to "YES" the update procedure will accept data with a minimum value of zero.
|
|
Ignore records with errors
|
If the value is set to "YES" the update procedure will ignore the records containing any errors.
|
There are other properties which define the program behavior in case the security to update is not in the destination workgroup. In practice, when the record already exists in the text file, but in the group to update there is no security with the same symbol.
|
Create file if it does not exist.
|
If the value is set to YES and the file is not found in the destination workgroup, then a new data file for the security will be automatically added to the destination group.
|
|
Type
|
It defines the type of security data file (Metastock, Insider data file etc.)
|
|
Path
|
It defines the path where the security data file will possibly be created.
|
|
Periodicity
|
If defines the Security Periodicity. If the security periodicity indicated in the ASCII file is different from the one specified in the update property, then the file will not be created.
|
|
Minutes per bar
|
Only for intraday periodicity it defines the minutes for each period it represents. Zero for Tick by Tick format.
|
To proceed
with an update, it is sufficient select the desired one, and press the button Update Automatically the program will focus on the table "Results". The user can follow the update and its results.
It is also possible to test the update, without writing the archive. This could be done just to check if there could be any errors. This function is available pressing the button Test from the vertical menu on the left. It is very useful to verify a new file format, for a Web Server or DDE.
Let's see now step by step the right sequence to configure a text file update.
-
Open the window "Edit - &Update histories files", accessible from the menu "File" => "Data Files Management"
-
Select the table "File Format" and describe the update record in the ASCII file to import. If the data is coming from Insider web site there is nothing to do. The set up program has already installed the file format compatible with the data provided on the site. Save the changes.
-
Select the table "Update". Create a new Update and set its properties as follows: Source Type => Select "ASCII File" DDE Source => Leave Empty ASCII File => Write the path where the file is ASCII File Format => Select the appropriate format file format Destination Workgroup => Select the Workgroup where are the securities to update. Default Periodicity => Select the periodicity of the data to import. Ignore first record => Select "YES" if the first record of the ASCII file contains the columns descriptions. If record exists => Select only when the Intraday periodicity is "Update Record if it exists (with volume)" or else chose "Overwrite existing record". Ignore records with errors => Select "YES" Create file if it does not exist => Select "YES" if for example, the destination workgroup is empty or it does not already contain the security to update. In this case the securities will be first created then added automatically. Type => for wider compatibility with other applications select "Metastock". Path => Select the folder where to create the archive Periodicity => select the periodicity for the object to import. Minutes per bar => select the number of minutes represented by each bar (Only for intraday periodicity) NB some properties have been omitted. This means that the default value is adequate. Save the changes.
-
Press Update from the vertical menu on the left. The archive update will start. If there are errors they will be displayed in the section "Update errors" from the table "Results".
|
|