Stock market AI
--- krez (krezisback@aol.com)
anyway, just a story i heard, i dont even know if its true. lol
- jeremiah
http://fakemind.com
Dave Mark
Intrinsic Algorithm Development
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
Are the players going to be involved in buying and selling? If so, how many players? Do you want their transactions to affect the price? Are you going to be creating outside stimuli like economic indicators or company press releases? Those certainly affect the perception of a company''s future and therefore its price. We need more info on what it is you are trying to do.
Dave Mark
Intrinsic Algorithm Development
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
I wonder how closely the game AI should model the real stock market... In the real world, you worry about real money and the consequences of your actions. This does at least two things.
1. You''re probably much more conservative than you would be in a game. (Even if you''re high risk, you''re probably higher risk in the game)
2. You''re willing to read/study a lot more than you would be willing to in a game. Reading press releases is generally fairly boring. Reading fake press releases would be extremely boring (at least for me).
Having said that, perhaps the AI should be much more wild than real economic theory. Perhaps the dynamics of market activity and price would be completely different if you were aiming for fun vs. reality.
Again, just thinking out loud...
quote: Original post by Torn Space
If you just want the price to move up and down, you can do something like this for each stock:
For every day, roll d100:
0-30: stock starts a downward trend (-1% to -5% per day)
31-70: the trend continues
71-99: stock starts upward trend (+1% to +5% per day)
That''s overly simple, but it''s a good start.
Unfortunately, that would not create stock price movement which mimics the way real stock prices move. Your method would have little chance of creating double bottoms and double tops, or trendlines.
A double bottom is where a price bounces off of a particular price level where the index or stock bounced before, say three weeks ago. Such patterns look like a ''W''. The psychology of the markets create these patterns. Investors see that investors were not willing to let the price drop below a certain price before. They believe that price is a ''fair'' price. They refuse to purchase at a higher price so let it drop. It does, and then the crowd rushes in to buy where it bounced before, creating a self fulfilling bounce.
Trendlines are weird but very common. A stock price advances, and then drops about two thirds of its advance and then advances again to a new high. This will repeat for several times. At each time the price dips and advances again, you can connect these dips with a diagonally advancing straight edge. It is really uncanny.
New highs indicate strength in a stock. When a stock breaks an old high, it has destroyed the psychology of what it was previously thought to be its maximum value. Investors often buy stocks making new highs, because they have ''cleared'' the way for advancement.
___________________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
___________________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.