Sunday, April 22, 2007
Unit Tests
Things to remember before writting any tests:
1. It need not contain all the utilities your program have.
2. It should not takes same complexity as your actual program does. It must have lesser complexity.
3. Unit test must contain all the boundary cases.
4.
Friday, April 20, 2007
Know Detail about trading Structure
These flow may not be in order.
1. .snapshot of a company
This contain the company strength and weaknesses. Detail analysis of the company.
Example :
Market Capital | 64.14 Billion |
Industry | Broadcasting and Cable Tv |
Sector | Services |
Recent stock price | $29.50 |
52 wk high and low | high : $36.5 and low: $26.25 |
Beta: | 0.96 |
TickerSymbol | CMCSA |
Market Capitalization or Market cap is a measurement of cooperate or economic size equal to the stock price times the number of share outstanding of a public economy. Capitalization represents the public opinion of a company's net worth and is a determining factor in stock valuation.
Example : If the global market capitalization was $51.225 trillion in march 2007 indication a dominant force in global economy.
Stock valuation : There are several methods used to value companies and their stocks. They attempt to give an estimate of their fair value, by using fundamental enconomic criteria. This theoretical valuation has to be perfect with market criteria as the final purpose is to determine potential market prices. ( discussed later in detail)
Industry : This clearly represents category based on its product.
Sector : This denotes the working creteria of the company ie services, consutancy or product development etc.
Recent Stock price : Shows the current status of the company in the market
1 year history : It is useful for the analyis of its trading future. this is very important for forecast volatility calculation, any model (ARCH(q) or GRACH (1,1) ..) need this
Beta : This is the measure of the volatility, or systematic risk , of a security or a portfolio in comparision to the market as whole. Also called Beta coefficient
2. Current Position :
Let company A is acquiring a spin-off involviment of B stocks and after B stocks purchased by A . Each part of spin-off , each share of B common stock was converted into the right to receive 0.3235 shares of new A common stock. Prior to acquisition, SMIP owned 100 shares of B and ended with 32 shares of A common
3 .Profile :
4 : Current news
6. Industry comparision
7. Strock comparision
8. Trend analysis
9. Common size analysis
10. Stock valuation model
----- After trade has been entered we need to do these ,they need not be in correct order---
1. trade, security & position Historian
2. Financial & statistical data collection and analysis
3. risk managements
4. Reconciliation
5. Profit/Loss
6. Account tracking
7. Inventory management (cash +security)
8. Data viewers
9. Data feeds
10. Compliance
11. Credit