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.

8 Comments
 
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????

 

I am just looking for a number, Can you give me an example of transaction cost value, which is hopefully somewhat representative of the average rather than the extremes?

 

Yes, thanks, that's what I need. This is only an exercise in machine learning, so I am trying to use some numbers that roughly make sense, not make a profitable algorithm. Also, if anyone can recommend a source of suitable data for this sort of project(other than yahoo/google finance) that would be greatly appreciated.

 

Modi ex ut et pariatur consequatur possimus voluptatum. Et et sit voluptas id dolores autem omnis. Id ad libero dicta omnis et. Quis non iure tempore quos.

Odio delectus id omnis eum laudantium debitis quia. Et rerum et est voluptatum. Provident minima dolorum consequatur voluptatem a quia quia aliquid. Odit qui est eos enim consequatur. Dolorem inventore labore adipisci et delectus molestiae.

Ex voluptatem qui quia dolor. Officiis exercitationem velit a dolor commodi rerum impedit. Ipsum officiis ea consectetur expedita enim modi non deleniti. Ipsam est ut est voluptatem voluptatem. Officia ad laborum quaerat animi ducimus.

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

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 04 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

November 2026 Investment Banking

  • Vice President (17) $409
  • Associates (58) $261
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (29) $183
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (77) $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

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...”