This is a trading object shared by a member. You can use this object as well as hundreds of others with QuantShare - Trading Software.
Click on the Like button or on one of the share buttons to share this object and spread the word about QuantShare.
QuantShare is an advanced trading software for stock, forex, futures, ETF and options markets. It is the best and the most complete EOD trading software software and it is FREE (beta version).
The list of symbols for the Tunisian Stock Market or bourse de Tunis can be downloaded here: Tunisian Stock Market - Bourse de Tunis.
This item let you download historical end-of-day quotes for the Tunisian market and for all companies listed in the bourse de Tunis. The data is downloaded from the exchange website (www.bvmt.com.tn). You can select the number of months' worth of data to download by typing a value in the "Months back" field. This field appears when you open this item.
You just need to type a number and then hit the Start button to begin the downloading process.
Here is a list of values you can enter:
0: Download all the historical EOD data. For some stocks, the data starts in 1997.
1: Download the last month EOD data.
2: Download the last two months data.
3: Download the last three months data.
The other values are 6, 9, 12, 18, 24, 36 and 60.
In some cases, the open, high, low and close quotes are reported as equal to zero. To solve this issue, I simply created a script to ignore these lines. The script is a Pre-Script; it analyzes the downloaded data and instructs the application to ignore the concerned lines (The lines where the value of the open, high, low or close field is equal to zero).
While the 'Volume' field gets the number of shares traded, the 'Open Interest' field gets the number of transactions for a specific stock and a specific day.
The transactions volume in Dinars (Currency of Tunisia) or 'Capitaux en DT' is the total amount in the local currency of the transactions during a trading day. This data is also retrieved by this downloader. It is stored in a custom database 'capitaux' and it has only one field 'capitaux' (The field and the database names are the same).
You can plot this field time-series using the following formula:
a = GetData("capitaux","capitaux",LastData);
plot(a, "capitaux", colorRed,ChartLine,StyleOwnScale);