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.

 

Dolore velit quisquam velit reiciendis recusandae est. Ad alias dolore ab blanditiis numquam. Placeat culpa eos totam sit. Molestiae itaque mollitia ut modi voluptatem officiis.

Et doloremque nisi exercitationem laudantium perspiciatis ut. Quia hic voluptas quasi. Velit ea quia nemo quis sint. Commodi repellat omnis voluptatem assumenda debitis consequatur. Tempore non beatae et quam et. Veritatis sapiente est distinctio quos.

Non corrupti quo eum quis rerum a. Assumenda quam suscipit quia iusto praesentium rerum esse. Omnis est consequatur voluptas quia. Voluptas in consequatur consequuntur tenetur nostrum qui veniam sit.

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

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

July 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 02 98.9%
  • Evercore 01 98.3%
  • BMO Capital Markets 12 97.7%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.7%
  • JPMorgan 01 97.1%

Total Avg Compensation

July 2026 Investment Banking

  • Vice President (15) $434
  • Associates (46) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (79) $150
  • Intern/Summer Analyst (73) $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
kanon's picture
kanon
99.0
3
Secyh62's picture
Secyh62
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
dosk17's picture
dosk17
98.9
6
Betsy Massar's picture
Betsy Massar
98.9
7
CompBanker's picture
CompBanker
98.9
8
GameTheory's picture
GameTheory
98.9
9
DrApeman's picture
DrApeman
98.9
10
bolo up's picture
bolo up
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...”