Equities analysis school project - need help

I am designing an algorithm for classifying stocks. i have math and CS background, not finance, so I need help defining the problem. I will let you guys know how I am thinking, and which are the points where I need help. Thanks in advance, this is very important stuff. Please don't get bugged in details, I just need some values of X and Y that make certain sense, the project is just an exercise anyway, not to be used in practice(you will see what X and Y are)

GOAL: Given a set of stocks, select winners, i.e. stocks expected to go up.

QUESTIONS: How do I define winners?

DETAILS: Ideally, I would like to select stock expected to go up for at least amount X after Y days, long them today, and sell them after Y days for a profit. The problem is:

  • What value of X should I use? I emphasize, this value is human input in the algorithm as parameter. I just need some threshold of X to overcome transaction costs.

  • Same for Y. Given the nature of stocks, how many days are enough for them to fluctuate for some measurable profit to occur?

Please give me some reasonable values of X and Y that make sense.

 
Best Response

I'm a computer engineer major (mostly CS) so I understand where you're coming from. I've had projects for my internship where I had no idea what was going on in the big picture but could program what was needed based on equations, etc.

As an active equities/options trader, I have a good basic understanding of investing and this is my take...

Firstly, if there was a general algorithm that predicted stocks that are most likely to go up most of the time, investing would be too easy. Instead, there's several ways people often go about picking stocks.

Technical traders look for stocks based on past prices (charts) and use things such as Bollinger Bands, moving averages, momentum, and MACD. These may be sample 'formulas' you could implement. Google "technical trading"

There's also trading on the fundamentals where you could basically create a stock screener to find a stock with low P/E, high growth rate, etc. Many screeners already exist on the internet (google has one) so this will also not easily get you rich. Most fundamental investors dive far deep into a companies balance sheet and so on.

The most algorithmic and technical trading is quantitative finance (quants) and might be a too complex for the scope of your project.

Hope this pointed you in the right direction..

 

Can you please tell me how much a stock price should grow so that buying it and selling it will make a profit, even with transaction costs? Just a rough estimate.

Or perhaps let me know how large are transaction costs and how they are expressed(per lot / per share)?

 

its entirely dependent on the stock price and how many shares you own. if you buy 1 share in citi, with 12.00 transaction costs going in and going out, youll never profit. if you have 1 share of BRK-A, then it will have to go up VERY little in terms of % to make a profit....

come on now, you can make a profit with any stock, depending on how many shares/where its trading. you can't figure out profit????

 

Est vel iusto hic. Qui eos incidunt aut quasi. Est aut amet enim nihil sunt dicta qui. Minima consequuntur perferendis hic provident quibusdam enim et.

I don't accept sacrifices and I don't make them. ... If ever the pleasure of one has to be bought by the pain of the other, there better be no trade at all. A trade by which one gains and the other loses is a fraud.

Career Advancement Opportunities

March 2024 Investment Banking

  • Jefferies & Company 02 99.4%
  • Goldman Sachs 19 98.8%
  • Harris Williams & Co. (++) 98.3%
  • Lazard Freres 02 97.7%
  • JPMorgan Chase 03 97.1%

Overall Employee Satisfaction

March 2024 Investment Banking

  • Harris Williams & Co. 18 99.4%
  • JPMorgan Chase 10 98.8%
  • Lazard Freres 05 98.3%
  • Morgan Stanley 07 97.7%
  • William Blair 03 97.1%

Professional Growth Opportunities

March 2024 Investment Banking

  • Lazard Freres 01 99.4%
  • Jefferies & Company 02 98.8%
  • Goldman Sachs 17 98.3%
  • Moelis & Company 07 97.7%
  • JPMorgan Chase 05 97.1%

Total Avg Compensation

March 2024 Investment Banking

  • Director/MD (5) $648
  • Vice President (19) $385
  • Associates (86) $261
  • 3rd+ Year Analyst (13) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (66) $168
  • 1st Year Analyst (202) $159
  • Intern/Summer Analyst (144) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
BankonBanking's picture
BankonBanking
99.0
3
Betsy Massar's picture
Betsy Massar
99.0
4
Secyh62's picture
Secyh62
99.0
5
GameTheory's picture
GameTheory
98.9
6
dosk17's picture
dosk17
98.9
7
DrApeman's picture
DrApeman
98.9
8
CompBanker's picture
CompBanker
98.9
9
kanon's picture
kanon
98.9
10
numi's picture
numi
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”