This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
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);