Sunday, April 22, 2007

Unit Tests

This page gives you an idea to write a simple unit test for perl and junit. This will tell you simple procedure to wite simple tests. Some people thinks design of test cases shows the strength and weekness of the software. So they must be given a special importance. They also believes that unit test must be desing before writting any shot of coding. Here i want to tell you that my experiences, actually i am not belongs to QA. But I believe that a designer could write a best unit tests. I did for my project. I develop many codes but without test. I awalys gets some bugs and resolving it was not so easy. It is because enhancement in one code affect other project module. So i planned to write my tests for each code.

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

This page is created to for the beginner, to understand the actual flow of trading. This page will give you a brief idea ,how trading are done, right from begining of the snapshot of the company to its Profit and loss implementation & risk calculation. It will give you the idea, about pre-open ,day trading and close day. But before that, let me tell you something about myself, I am not a financial analyst. but i develop a system which do something like that, there i faced a lots of problem to understand the actual flow. Any comment on this page are deeply appreciated.

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

5. Financial statement

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

12. Tax Management