Stock market optimization fantasy

  • Context: Graduate 
  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
  • Tags Tags
    Fantasy Optimization
Click For Summary
SUMMARY

The discussion centers on optimizing stock trading strategies using historical data provided by a time traveler. The goal is to maximize returns by trading stocks over a year without incurring commissions. A proposed strategy involves investing in the stock with the steepest price slope at any given time, while also considering the classic "buy low, sell high" approach. The complexity of determining the optimal strategy is acknowledged, with suggestions to formalize profit generation formulas and explore both specific and generic trading strategies.

PREREQUISITES
  • Understanding of stock market mechanics and trading principles
  • Familiarity with differentiable functions and their applications in finance
  • Knowledge of basic investment strategies, including "buy low, sell high"
  • Concept of continuous trading and its implications in stock trading
NEXT STEPS
  • Research mathematical modeling of stock price movements using calculus
  • Explore algorithmic trading strategies and their implementation
  • Learn about optimization techniques in financial trading
  • Investigate the use of simulation tools for testing trading strategies
USEFUL FOR

Investors, quantitative analysts, and anyone interested in developing or refining stock trading strategies using historical data and mathematical optimization techniques.

Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,602
Would the optimal trading strategy for this stockmarket optimization fantasy be trivial or nearly impossible to compute? -or something in between?

You have an initial amount of money A_o and your goal is to maximize the amount of money you will have at the end of a year by trading stocks. (So you must sell all your stocks by the end of the year.) You have the advantage of knowing a time traveller who gave you data for the entire history of the next year's stock market. Say the market has a fixed number of stocks N and their trading prices are differentiable functions of time. You can buy and sell without paying commission. You can buy in any real number amounts. You can just hold an amount of money that is not invested in stocks, for any time you wish. For simplicity, we''ll say you can't borrow money, can't sell short, or make any money beside that which you make trading.

One idea: At each time t, you put all your money in the stock whose price graph has the steepest slope. If none have a positive slope, you keep your money out of the market. I suppose this would be implemented by a nearly "continuous" trading activity. Perhaps it can only be described as a limit of discrete trades as the time interval between the trades approaches zero.

However, I don't know if that strategy is optimal. The classic stock market strategy is "buy low, sell high". If the stock that currently has the steepest upward slope is expensive, it might be better to take the opportunity to buy a lot of a cheap stock that will eventually go up.
 
Last edited:
Physics news on Phys.org
Why not write down the formula that says how fast you're generating profit?
 
Hurkyl said:
Why not write down the formula that says how fast you're generating profit?

I suppose that could be done if you had a particular strategy. But a strategy might not generate as much profit as another initially and then it might catch up and surpass the other strategies - at least this seems possible in my limited ability to grasp the situation.
 
You have a particular strategy. Try it with that. :smile:


Also, try it with the completely generic strategy -- one that has a variable for every particular choice you could make.
 

Similar threads

  • · Replies 46 ·
2
Replies
46
Views
5K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 24 ·
Replies
24
Views
33K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 45 ·
2
Replies
45
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 34 ·
2
Replies
34
Views
3K