View Full Version : Stock market


shadowdani
12-27-2005, 12:43 PM
Well guys the stockmarket is online

To access it you need to have at least one city. Go on the bank page and click on investment, then you can choose to invest either in bonds or in shares.

You can choose between 3 different type of bonds and 10 different shares.

Bonds last 7 days, 14 days and 30 days, at the end of which the amount plus interests are given. You can invest up to 2500 geos (this limit will probably go down).

Then there are shares. They change their price every 5 minutes, and go up and down by 3% each time (the change is calculated randomly).
Warning: Sometimes they can crash and go down really!! On the other hand they can also really go up every now and then.

Important: you can only invest if you have a city, but if you lose all of your cities, you will lose also all of your investments.

That's it, if you find any bug or spelling error (i presume there will be some :p ) please report them. Thanks

If you need to use a script to gather share prices, please link to this file: http://www.gewar.net/war/resources/xml/stockmarket.xml

*edit* The 1000 geos limit is no longer, you need only a city to invest.
*edit* You can now invest only 2500 in shares and 2500 in bonds

araT
12-27-2005, 12:48 PM
Woohoo! It's Live :D I'd like to take a second to thank Dani & Luke for all their hard work on this one, and on the game in general :)

T.

haqmed
12-27-2005, 01:14 PM
if you lose all your cities, you lose all your bonds, too? :(

so much for them being good for our kids' future!

shadowdani
12-27-2005, 01:18 PM
if you lose all your cities, you lose all your bonds, too? :(

so much for them being good for our kids' future!

The idea behind it is too give cities a greater meaning...
Cities had only a simbolic meaning, they only gave you a ranking on the top player list. Now, holding cities means having access to other features of the game (there will come other) and to more geos income.

Luke
12-27-2005, 01:45 PM
And without cities, the bonds would be too easy.
You could just sit back and double it every time.
Now you have to keep an eye on your cities, so you can sell your bonds in time before you lose it all.
Plus think about your enemies...
If you've got a big enemy, then you can plan an attack at them and try to take out all their cities at once, hoping he had a lot of bonds :D

ruskets
12-27-2005, 02:30 PM
Great job guys,

The stock market is fun to watch and it is something to do when I do not have access to Google Earth. The 14 day bond looks risky for only giving you about a third more than the bank though. Perhaps I just need more cities.

~ ruskets

Entropy
12-27-2005, 02:39 PM
Cool, thanks, this is the answer I've been waiting for to end all the mindless mechanical jewel hunting!

GeWallStreet here I come! :D

araT
12-27-2005, 02:49 PM
Glad to hear the members like it! :D I think its a blast, so much fun to watch from this end..

I hope we dont go into a depression any time soon! :cool:

T.

defenestrate
12-27-2005, 02:50 PM
I haven't really been in the forums all that much...but I just want to say, job well done to the GEWar team. You've kept this game very, very interesting and fun.

I think all of us echo these sentiments.

Thanks.

RomulusJ
12-27-2005, 02:59 PM
if you lose all your cities, you lose all your bonds, too? :(

so much for them being good for our kids' future!

Kids future and your marching off to GEWar?!?

We're sending our kids out to kill each other in hopes we get the better outcome!

Whole generations wasted and for what?!?1

So we can keep our citis and take yours too!

RomulusJ
12-27-2005, 03:00 PM
Glad to hear the members like it! :D I think its a blast, so much fun to watch from this end..

I hope we dont go into a depression any time soon! :cool:

T.


War is good for the Economy

Its the peace afterwards that screws up the economy.

RomJ

grimsacre
12-27-2005, 03:36 PM
The stock market is a great idea - but why the lower limit of geos on investments? This seems to me like the big boys (someone with 1,000+ geos) can play but the little guys have to keep on jewel hunting.

Luke
12-27-2005, 03:44 PM
The stock market is a great idea - but why the lower limit of geos on investments? This seems to me like the big boys (someone with 1,000+ geos) can play but the little guys have to keep on jewel hunting.

Because the big boys can't jewelhunt no more ;)
Thats to even it out again.

ruskets
12-27-2005, 03:47 PM
No rest for early investors -
ARX saw my earlier post, realized I had invested my geos, and launched an attack on my only city moments later. The funny part is that my 2000 geo 1-hr bond cashed in on the same refresh that my city turned red. How's that for a little suspense? These bonds could really add excitement to the game if people are willing to risk purchasing them. Luckily I didn't lose the city, so I am going to enjoy the stock market while I can.
~ ruskets

grimsacre
12-27-2005, 03:50 PM
Because the big boys can't jewelhunt no more ;)
Thats to even it out again.

I understand stopping the big boys jewel hunting (do the REALLY big boys still jewel hunt?) - but I don't understand the barring of the little guys from taking a punt on investments.

Mythdraug
12-27-2005, 04:03 PM
When are we going to see something that BENEFITS people without cities?

Yes, I know the idea is to control cities; but nothing yet has changed the fact that the small players without cities will need to gain control and hold a city for a significant period of time. My two attempts so far have been quite unsucessful. Despite having troop numbers in the cities that would have made the big guys laugh at as extreme overkill. :mad:

Timmetie
12-27-2005, 04:05 PM
its easy to get a city mythdraug, just dont try to start with a metropolis..

haqmed
12-27-2005, 04:05 PM
Glad to hear the members like it! :D I think its a blast, so much fun to watch from this end..

I hope we dont go into a depression any time soon! :cool:

T.


Ooh, I want a GEWall Street Journal page with charts - gotta see the random trends :) (also charts about the rise and fall of different alliances would be spiffy)


Kids future and your marching off to GEWar?!?

We're sending our kids out to kill each other in hopes we get the better outcome!

Whole generations wasted and for what?!?1

So we can keep our citis and take yours too!

Ah so much like life ;) Maybe later the bonds can be tied to the hold-length of a city, or improvements made to it, or even how long an alliance has held it - that way, it's more bond-y

yay

speedfreak227
12-27-2005, 05:22 PM
Important: you can only invest if you have a city (and more than 1000 geos on hand or in the bank or the sum of both), but if you loose all of your cities, you will loose also all of your investments.


that seems a bit harsh. i would kind of think that would limit bonds to people with more than 3 or 4 cities.

speedfreak227

Luke
12-27-2005, 05:33 PM
that seems a bit harsh. i would kind of think that would limit bonds to people with more than 3 or 4 cities.

speedfreak227

Thats the point.
Who is going to invest a real lot amount in bonds and shares??? The big guys.
So to make sure the big guys can't always go on and get richer, there is a risk factor in it.
With strategy one might take all cities at once and he'd lose all he invested if he wasn't paying attention.

Also to the question of when something will be done to benefit the small guy... we just did. We cut jewelhunting for the big guys.

haqmed
12-27-2005, 06:07 PM
when we have less than 1k, we can't invest, which is fine... but can the stockmarket page still show the current stocks and their rates? it'd be nice to see what the market's doing, even if we can't participate.

nytransit
12-27-2005, 06:46 PM
AWSOME FEATURE. THANKS TO ALL THAT HELPED !!!!!!!

shadowdani
12-27-2005, 07:16 PM
Some changes:
You can now invest also if you have less than 1000 geos, you just need to have a city

MkhitarSparapet
12-27-2005, 08:22 PM
Very interesting feature!!!

Can I ask a question? How are the prices for the commodities determined? For example, what is the basis for Linux stock or Microhard stock. Is the oil stock actually based on people investing in oil fields or is it all computer generated?

Thanks for the hard work.


Well guys the stockmarket is online

To access it you need to have at least one city. Go on the bank page and click on investment, then you can choose to invest either in bonds or in shares.

You can choose between 6 different type of bonds and 10 different shares.

Bonds last 1 hour, 12 hours, 1 day, 4 days, 7 days or 14 days, at the end of which the amount plus interests are given. You can invest up to 15000 geos (this limit will probably go down).

Shares don't have such a limit. They change their price every 5 minutes, and go up and down by 7.99% each time (the change is calculated randomly). If the price of one share is too high, its next change will be 40-70% down!

Important: you can only invest if you have a city, but if you loose all of your cities, you will loose also all of your investments.

That's it, if you find any bug or spelling error (i presume there will be some :p ) please report them. Thanks

*edit* The 1000 geos limit is no longer, you need only a city to invest.

shadowdani
12-27-2005, 08:27 PM
Very interesting feature!!!

Can I ask a question? How are the prices for the commodities determined? For example, what is the basis for Linux stock or Microhard stock. Is the oil stock actually based on people investing in oil fields or is it all computer generated?

Thanks for the hard work.

Since there are not enough players to generate the price according to demand-supply it is calculated randomly for now. Maybe later one this will change

YamuN
12-27-2005, 08:57 PM
so, is the bond thing like a better version of the bank, except its like fixed deposit? coz i just put in an *amount of money* and in 1 hour i will get apprx 25 geos, which is much better than the bank right?

Timmetie
12-27-2005, 08:58 PM
but, if you lose your city in the meantime, you're screwed.

Luke
12-27-2005, 09:02 PM
If you want a little more risk, but also more and faster money, you go for the shares instead of the bonds.

aravan
12-27-2005, 09:33 PM
Nice work! This is a great feature.

Maybe this belongs in the features section but I have a request. Can each current transaction on the stock page be kept separate?

The reason I ask is this. Say I buy 100 shares of Linux right now at $5.00, then the price goes down to $4.30 per share. To offset any losses I might have at the $5.00 purchase I buy another 100 shares at $4.30. Right now the two transactions are combined and my total gain/loss is reset to 0. If they are on two lines I can see the gain/loss for each one and make better decisions to keep or sell what I have. Not a huge thing - just something to make it a little more dynamic.

Again - great work! Thanks...

aravan

jammo
12-27-2005, 09:55 PM
now we're talking!! this feature is great.

It's good that there is a fair amount of risk involved too. The more risk that can be programmed into this game the better it will become.

YamuN
12-27-2005, 10:07 PM
is it better to keep puttin in money every hour instead of 12 hour ones? coz, 12 hours gives only 4 but u can get 2 2 2 2 2 2 x 2 in (lol sry) in 1 hour packs.

fischi
12-27-2005, 10:10 PM
nice feature. I like it! :)

speedfreak227
12-27-2005, 10:20 PM
is it better to keep puttin in money every hour instead of 12 hour ones? coz, 12 hours gives only 4 but u can get 2 2 2 2 2 2 x 2 in (lol sry) in 1 hour packs.

that's what i was thinking, but my one hour bond seems to be paying out TOMORROW for some reason.

confusing. this needs to be documented more effectively somewhere.

speedfreak227

EDIT: i take that back, it paid out but 5 minutes late. still a little confused cuz the time was different.

fischi
12-27-2005, 10:29 PM
some charts for the shares would be nice. ;)

speedfreak227
12-27-2005, 10:31 PM
some charts for the shares would be nice. ;)

yes, maybe line graphs for the last 24-48 hours perhaps

speedfreak227

Radeon
12-27-2005, 11:02 PM
Well now that we all know who has at least 1k in geos.... Great job guys!

StrangeBee
12-27-2005, 11:43 PM
that's what i was thinking, but my one hour bond seems to be paying out TOMORROW for some reason.

confusing. this needs to be documented more effectively somewhere.

speedfreak227

EDIT: i take that back, it paid out but 5 minutes late. still a little confused cuz the time was different.
I Put some Goes into a bond, and the release date came out 10/01/2006. I hope that’s not right. I'll be old and gray (In gewar time) by then. I didn't indented it to be a retirement fund.

Luke
12-27-2005, 11:47 PM
I Put some Goes into a bond, and the release date came out 10/01/2006. I hope that’s not right. I'll be old and gray (In gewar time) by then. I didn't indented it to be a retirement fund.

HAHAHAH i should be pulling my hair out(oh wait, don't have any), but after that post I almost coughed up my drink while laughing :D

p0wderfinger
12-27-2005, 11:51 PM
Just one question:

What kind of company is "microhard"? :D

palau
12-27-2005, 11:52 PM
stocks? amazing feature, thanks a lot !!!

analysis for Linux
rate: strong buy!
current price: 0.46
target price: 2.60
stoploss: 0.36

This stock has lost most of its value in the last days. Investor panic has lead to a clear unvaluation of Linux. We have seen a tendency change in the last hours, generating a strong buy signal. Finally, we expect the company to post revenues ahead of concensus.

Sincerely,
palau and associates.

Note: this analyst house regularly trades with the aforementioned stocks. We assume no liability for any possible capital loss following our recommendations.

cianr
12-27-2005, 11:54 PM
looks like a great addition to the game - thanks for all the hard work guys! :D

jokosr
12-28-2005, 12:21 AM
ok now this is what i was talking about and can give up on the j hunting!!!
thanks to all!!!!!

Raivien
12-28-2005, 04:19 AM
Could this signal the expansion of GEWar into a simulation of international finance? Players raising money from the securities market to launch assaults on other cities. Possibly the arise of well-heeled 'banks' that offer to fund a players attacks in exchange for intrest payments. Hedged portfolios of stocks and bonds, standard deviation of returns, alphas, betas, market risk...

Yay!

Naturally, a universe of under 20 securities that fluctuate randomly could not support wouldn't work. If the GEWar programmers are willing to develop the market into a more complex one, finacial manuvering might begin to compete with urban conquest as the main focus of the game.

Entropy
12-28-2005, 04:23 AM
Could this signal the expansion of GEWar into a simulation of international finance? Players raising money from the securities market to launch assaults on other cities. Possibly the arise of well-heeled 'banks' that offer to fund a players attacks in exchange for intrest payments. Hedged portfolios of stocks and bonds, standard deviation of returns, alphas, betas, market risk...

Yay!

Naturally, a universe of under 20 securities that fluctuate randomly could not support wouldn't work. If the GEWar programmers are willing to develop the market into a more complex one, finacial manuvering might begin to compete with urban conquest as the main focus of the game.

Dude, check my thread in the bugs forum.

If you're more financially inclined, perhaps you might like to suggest a more "workable" stock market engine. Coz it looks like we have a problem at the moment.

AK-7
12-28-2005, 05:11 AM
About the bonds, I think it would make more sense to have the longer bonds have higher yields per day, thus giving an incentive to choose a 4-day bond rather than 8 12-hour bonds, which will return more money (or 96 one-hour bonds, if you never sleep).

That will give incentive to not only use the longer bonds but to hold cities for longer periods of time. It's harder to hold a city for 4 or 7 or 14 days straight than to hold it for stretches of 12 hours, so we should reward that risk.

Currently, if you have a day, you can either use a 1 day bond and get 7%, or 2 12 hour bonds and get over 8%... not feeling in the spirit to do mental compounding right now. That just doesn't make much sense to me, I don't think that's how banks do it. Don't they reward more interest per year the longer you leave the bond in there?

araT
12-28-2005, 05:13 AM
Very good point, I'll have the crew look into it when they surface - I hadnt noticed that, I havent been playing much.

T.

p0wderfinger
12-28-2005, 07:40 AM
Very good point, I'll have the crew look into it when they surface - I hadnt noticed that, I havent been playing much.

T.

Aww damn, I noticed, but I was hoping nobody else would...

KayEss
12-28-2005, 10:07 AM
I'd just done some 'back of a forum post' calculations on this, but the return on one hour bonds is just so much higher than 12 hour bonds it's unreal. Given the additional game advantages of only tying your money up for an hour at a time choosing which bonds to buy is a no-brainer.

shadowdani
12-28-2005, 10:10 AM
I'd just done some 'back of a forum post' calculations on this, but the return on one hour bonds is just so much higher than 12 hour bonds it's unreal. Given the additional game advantages of only tying your money up for an hour at a time choosing which bonds to buy is a no-brainer.

People are complaining about too much geos and interest?
:D

I'll make a poll and let you decide how much the one hour bond should give

p0wderfinger
12-28-2005, 10:26 AM
People are complaining about too much geos and interest?
:D

I'll make a poll and let you decide how much the one hour bond should give

I was crossing my fingers that nobody else would be smart enough to catch on. I guess I can't keep making 48% compounded interest a day now. ;)

jraatz564
12-28-2005, 05:42 PM
The market is a very good addition to the game. However, as a new player, I have no opportunities to make geos other than Jewel hunting, accruing intrest in the bank, and then creating resource collectors. Trying to take a city is taking takes sort of a painfuly long time (yes, I am attacking small cities (cork, etc.), when even many of those are captured by people with large armies. (at least too big for me). I don't think that taking jewel hunting away from the big guys is enough to counter investing. 1.2 per jewel is not worth it, or fun, for that matter. I would like to see some other way for small players to collect geos.

Here are a few ideas:

1. More cities
2. Cities that can only be taken (or held) by small armies. (I don't think 5,000 troops could even fit in Cork, lol.
3. Lowering prices for resource collectecting units for new players
4. An income tax. (big players pay more than small guys)


I know this doesn't belong here, but I have 2 questions.
Will there be a new game someday?
I forgot the other, lol

Great job - Thanks

---------------------------------------
Kommen Sie Wieder Weiter

Luke
12-28-2005, 05:49 PM
The biggest mistake new players make is to attack too soon.

Try getting more then a 1000 geos before coming out of your homebase.
This can be done within a few days. Then you're on the move.

Small players will have to work to become big.
Don't forget we all were 'newbies' once.
The maximum players in a city wouldn't work because people would just put them outside the city(we actually talked about that one before), and higher taxes would be like punishing a player for playing well.

Cities are added every couple of days, and in the last week they've been almost doubled.
Higher prices of resource for big players is again punishing them for playing well.

WILDCAT1976
12-28-2005, 06:11 PM
The market is a very good addition to the game. However, as a new player, I have no opportunities to make geos other than Jewel hunting, accruing intrest in the bank, and then creating resource collectors. Trying to take a city is taking takes sort of a painfuly long time (yes, I am attacking small cities (cork, etc.), when even many of those are captured by people with large armies. (at least too big for me). I don't think that taking jewel hunting away from the big guys is enough to counter investing. 1.2 per jewel is not worth it, or fun, for that matter. I would like to see some other way for small players to collect geos.

Here are a few ideas:

1. More cities
2. Cities that can only be taken (or held) by small armies. (I don't think 5,000 troops could even fit in Cork, lol.
3. Lowering prices for resource collectecting units for new players
4. An income tax. (big players pay more than small guys)


I know this doesn't belong here, but I have 2 questions.
Will there be a new game someday?
I forgot the other, lol

Great job - Thanks

---------------------------------------
Kommen Sie Wieder Weiter

Also, from my experience....you need to pay attention to who owns that small city...I too chose Cork...well....it didn't work for me either; it was owned by a big alliance that had interests there....look at the owner..see if they are part of an alliance...look at the history on the city so you kinda know how many troops it will take to hold...just because it's a small city doesn't mean people don't want it

SqueaL
01-02-2006, 09:35 AM
Shares don't have such a limit. They change their price every 5 minutes, and go up and down by 7.99% each time (the change is calculated randomly). If the price of one share is too high, its next change will be 40-70% down!


Guys, if the stock is supposed to go up/down by random 7.99%, WHY does it only go up / down by 1-2 % every time. If been watching for a while now, and the bigest move Ive seen was 2.86%! Surly there should be some 3,4,5,6,7 % jumps in there??

shadowdani
01-02-2006, 09:51 AM
Guys, if the stock is supposed to go up/down by random 7.99%, WHY does it only go up / down by 1-2 % every time. If been watching for a while now, and the bigest move Ive seen was 2.86%! Surly there should be some 3,4,5,6,7 % jumps in there??

Actually you're right, the 7% jump isn't anymore... The max jump is now 3%. I forgot to edit the change log...
Sorry...

zyrorl
01-02-2006, 12:06 PM
i honestly think that the stock market is a bit too underpowered and that it should include the influences of other people's investments in each one of the stock companies just like IRL. I think what we should do is try to get stock market simulation rather than a very very simple stock market generator... as you really cant get high gains.. only very very little.

Also the stock market isnt risky enough. Its supposed to be high risk, high gain/high loss.

You should be able to be prepared to lose most of your money that you invest but also get a large sum if you invest in the right stocks.


There are plenty of stock market simulators that you can search for online as an example to draw from to improve this one...

Stock markets should play a much bigger role than they do currently in the game. I realise this is only the beginning and a very new feature, but im suggesting for what moves should be taken for it to improve in the future.

I'm not expecting changes right now or right away, these are just the suggestions of what i would like to see it being done in the future.

p0wderfinger
01-02-2006, 12:16 PM
The way I see it is that any stock generator we as GEwar players (and the coders) devise will be fairly easy to figure out after a while. If there were a way to use RL stock updates, maybe rename the company ticker, it would be far more unpredictable. I know there are stock games out there which follow the real stock market but don't require real money to invest, I just don't know how these things work, but it's just a thought.

ronnielim
01-02-2006, 12:48 PM
Well guys, i had the same problems face in the stock market...

But pls give them some time to refine it... they had already refine the stock afew times and i believe they are also new to the stocks feature as not everyone here play stocks in real life...
I can see that some of the Admin and Mod are here most of the time trying to sort things out and i believe they are almost exhausted(u can see Luke banging his head at the keyboard all the while..hehehe :D )...

another suggestion here....
maybe can add another feature to sell 1st then buy... but at a limited time..say 1/2hr

eg.
sell 100 oil stocks for $10...
if within the 1/2hr it went down to $9+... u can buy (make profit)
else the system will force buy for u after 1/2 hr no matters what price it is..so if the price went up... u will make a loss... :growse

SqueaL
01-02-2006, 01:53 PM
another suggestion here....
maybe can add another feature to sell 1st then buy... but at a limited time..say 1/2hr

eg.
sell 100 oil stocks for $10...
if within the 1/2hr it went down to $9+... u can buy (make profit)
else the system will force buy for u after 1/2 hr no matters what price it is..so if the price went up... u will make a loss... :growse

I'm not sure about that... Surly the whole idea behind a stock exchange is to be able to buy and sell stocks the the exact time you think its right...

araT
01-02-2006, 01:55 PM
www.popex.com a great example of a free stock market game based on bands...

T.

ronnielim
01-02-2006, 02:05 PM
I'm not sure about that... Surly the whole idea behind a stock exchange is to be able to buy and sell stocks the the exact time you think its right...


ohh yes...in the real stock exchange market ...u can sell 1st at a higher price if u predict it will drop later... the time limit depend how much yr broker trust u... :evil

V_Oda
01-02-2006, 04:22 PM
This is very dangerous. If I have only 1 city and I invst in pouns, if I loose my city at night (when I am sleeping) I will loose my money? This is not correct. The correct is the money will be deposit in my account.

KayEss
01-02-2006, 04:50 PM
I'm not sure about that... Surly the whole idea behind a stock exchange is to be able to buy and sell stocks the the exact time you think its right...

Ah yes, but then again, no... Welcome to the wonderful world of futures and derivatives markets with short selling etc. If it can be thought of then there's a market doing it!

I might be able to explain if I hadn't just got in from the pub...

fischi
01-05-2006, 10:44 AM
Admins, is it possible to implement some charts, that log the values and the lows and hight of the shares? Or is it intended that we log the lows and highs on our own to find the best time to sell or buy?

Hellman109
01-05-2006, 10:51 AM
Admins, is it possible to implement some charts, that log the values and the lows and hight of the shares? Or is it intended that we log the lows and highs on our own to find the best time to sell or buy?

Thats what I do.

Im sure you could setup a script to poll the page every 5 minutes and log the details... not sure if it's alloud at all but it is possible... Id like to do that myself :/

Yggdrasil
01-05-2006, 05:25 PM
Actually you're right, the 7% jump isn't anymore... The max jump is now 3%. I forgot to edit the change log...
Sorry...

The jumps in stock values are a bit small now... its easier to make more money simply from bank interest than from stocks, especially if some of your stocks lose value.

Also, I invested in stocks, then I lost the one city I owned. I thought I had lost all my stocks too, but when I recaptured another city, the stocks I lost returned. ...Is that supposed to happen? :p

Luke
01-05-2006, 07:46 PM
I'll talk to shadowdani about the small changes.

jraatz564
01-05-2006, 09:48 PM
I know the prices are calculated randomly, but can they crash?

Hellman109
01-06-2006, 12:17 AM
And does other peoples investment into shares affect the prices at all?

bulletcrazy
01-06-2006, 12:59 AM
Peoples investment has no effect at this point, thoug hit is being considered as a feuture to be implemented one day. Also, ya it seems that this 1000 geo grant has come just as the stocks have gotten more balance, usually you could win really easily, but the stocks seem more random now in their ups and downs.

bulletcrazy
01-06-2006, 01:00 AM
Damn, lost 150 now. :mad:

hardcode
01-06-2006, 03:33 PM
Now a security code has been added to the stock page, there goes my hours of perl work done to generate graphs :(

hardcode (not happy)

shadowdani
01-06-2006, 03:42 PM
Now a security code has been added to the stock page, there goes my hours of perl work done to generate graphs :(

hardcode (not happy)

Sorry for your lost work, but we had to put it.
Luke told me about 100 people were getting in this way share prices, and their scripts were hurting the server quite hard...

Dragonwick
01-06-2006, 04:30 PM
That would be fine and all. Some of us aren't afraid of manual processes. But the market doesn't seem to be updating at all now...

Dragonwick
01-06-2006, 05:10 PM
That would be fine and all. Some of us aren't afraid of manual processes. But the market doesn't seem to be updating at all now...
Ok. It's updating now. But why do we need a code to get into the market area where there aren't any prices?

http://www.gewar.net/war/investment.php

hardcode
01-06-2006, 05:25 PM
Are all these pages dynamically generated? A semi-dynamic cron based solution (and a RSS feed *please*) might be a far "lighter" option on the server.

MkhitarSparapet
01-06-2006, 06:58 PM
Sorry for your lost work, but we had to put it.
Luke told me about 100 people were getting in this way share prices, and their scripts were hurting the server quite hard...

100 people every 5 minutes = 500

But this is only a small percentage of users. However, all users using GE hit the army script, cities script and home base script. The army script nlinkarmies.php gets hit every 5 minutes.

Thus, I don't see the 500 hits from the scripters as a large percentage of the total users.. Furthermore, "analysis" of stock prices is quite necessary if you're going to have a stock market feature. Otherwise, it is just another version of the lottery since you have only 5 minutes hindsight on the stock movements.

I have suggested to Luke that the stock prices be provided as a gzipped data file that can be compressed to 200-300 bytes saving CPU resources and bandwidth.

Mkhitar

Blaman
01-06-2006, 07:34 PM
why cant gewar produce graphs of its own and display the data.. it would remove the need for people collecting the data from the site and doing it themselves...?

dillbilly
01-06-2006, 08:39 PM
Posted some ideas for making the stock market better here http://www.gewar.net/forums/showthread.php?t=703

As it stands right now knowing the low price of a stock is important when it comes to making money, since the way it's implemented stocks don't really grow. If you invest when the price it too close to the cap:
its next change will be 40-70% down!
and you're out of luck. That just doesn't make sense, and forces you to check the price fairly often to make sure that you aren't losing money.

aravan
01-06-2006, 08:49 PM
I dont think I've seen a stock price update in a very long time now. Did the update get turned off for a while or is it temporarily broken? Or both. Or neither. Just curious...

Hellman109
01-07-2006, 01:56 AM
Analysis of the stock market is a MUST to make money from it. No tools have been given for this so players made their own.

Otherwise it's a lottery.

Also, have the ranges for stock changed? I see a number have changed by upto 30% off there normal range.

If they have, thanks for screwing a whole heap of people over, as they went lower except for linux. Im down 20% of my money in a night because they do appear to have their ranges changed.

Also, can you make it one security page for both pages as, currently, Im spending half my time typing in codes which is really really boring.

brodie2219
01-07-2006, 02:06 AM
all this hostility...hehe......lets go back to a game that used a very simular system that the stocks use.

Druglord....when you bought cocaine in Los Angeles you had no idea what the price was in NYC....if it was horrible you moved along to London. There was no charts and graphs....after a while of playing you just knew what the high and low prices were of each drug.

Back to this game....after a while of useng the market you will know the price ranges. Just like the real stock market, its all speculation and risk, and it takes years of investing to be able to "read" the market.

Kenage75
01-07-2006, 02:11 AM
Is there something wrong with the stock market? It seems that there is no changes in prices in the past few hours. microhard drop almost 40% over the night.

araT
01-07-2006, 02:15 AM
Sorry - the stockmarket is offline untill the boys wake up again, the game nearly crashed in the last 12 hours due to an overload so they are working on fixing things up - the stockmarket is down so that the rest of the game will work as expected and so nothing bad happens while they are getting some muchneeded rest :)

T.

Kenage75
01-07-2006, 02:30 AM
Thanks Arat, just hope the stock market is up soon cause i prefer to see my geos grow than go to war!!!

aravan
01-07-2006, 03:30 AM
Sorry - the stockmarket is offline untill the boys wake up again, the game nearly crashed in the last 12 hours due to an overload so they are working on fixing things up - the stockmarket is down so that the rest of the game will work as expected and so nothing bad happens while they are getting some muchneeded rest :)

T.

Does that mean that any funds that are sitting in the stocks are covered right now? What if someone loses all their cities while the stock prices are frozen. Will they lose their geos too???

araT
01-07-2006, 03:42 AM
I'm not sure - I shouldnt think so... :)

T.

Hellman109
01-07-2006, 03:57 AM
^^ IF You lose your cities and you have investments, you just need to capture a city and they will still be there.

Although, Im not selling ATM because my stocks have dropped 20% (and I bought low...) so basically if I lose my city Im screwed... I lose hundreds of geo's, or I lose access to thousands of geo's

speedfreak227
01-07-2006, 05:08 AM
Although, Im not selling ATM because my stocks have dropped 20% (and I bought low...) so basically if I lose my city Im screwed... I lose hundreds of geo's, or I lose access to thousands of geo's

that might not be the brightest thing to advertise

speedfreak227

Hellman109
01-07-2006, 05:10 AM
that might not be the brightest thing to advertise

speedfreak227

True but my alliance owns enough cities that someone can simply lend me one permenantly or for 5 minutes to withdraw enough funds to kick the ass of whoever is responsable.

For lone players sure, but for where my alliance stands, not a real problem.

Hellman109
01-07-2006, 06:01 AM
Any ETA on the admins waking up?

From an email Luke sent me he is +1GMT which make it 8am where he is...

Basically the game isnt worth playing until the stock market is working agian.

one other quick quesion:

Will the market go through all of it's 5 minute calculations since it's been down or just start again with the pause lasting overnight and it just starts again like there was never a pause?

birq
01-07-2006, 06:07 AM
Well, the game was worth playing for the first four (or whatever) months of its existence before the stock market came along, so I think it will survive a few more hours with trading on hold. Keep in mind that everybody is volunteering their time (and money) and puts as much work into it as possible -- more than most would consider possible, in most cases.

In other words, CHILL OUT!

Luke
01-07-2006, 12:09 PM
Thanks Birq.


And Hellman, the stockmarket was taken offline on purpose, to make sure you guys would have no troubles with the games speed whatsoever while we were asleep.

zyrorl
01-07-2006, 01:05 PM
Thanks Birq.


And Hellman, the stockmarket was taken offline on purpose, to make sure you guys would have no troubles with the games speed whatsoever while we were asleep.

great speed here:)

SqueaL
01-07-2006, 08:13 PM
Any ETA on the stockmarket coming back online??

Luke
01-07-2006, 08:15 PM
Mine is running again thanks to Shadowdani.
Should all be up.

shadowdani
01-07-2006, 08:48 PM
And for those of you who want to use price gathering tools please use the xml file provided here: http://www.gewar.net/war/resources/xml/stockmarket.xml

speedfreak227
01-07-2006, 08:51 PM
is the 2500 geo limit coming off? the "read this" section says that it only applies to bonds.

thank you for your hard work getting this sorted out.
good job

Steve

MkhitarSparapet
01-07-2006, 09:09 PM
And for those of you who want to use price gathering tools please use the xml file provided here: http://www.gewar.net/war/resources/xml/stockmarket.xml

Awesome work.. Thanks!! May I also ask one more thing please.
Could you please generate a date in there or a "serial number" so we know we're getting a fresh file and not a stale one, if its not too much problem.

zyrorl
01-07-2006, 09:26 PM
And for those of you who want to use price gathering tools please use the xml file provided here: http://www.gewar.net/war/resources/xml/stockmarket.xml

dude thats really neat... i guess it will save you a lot of resources from people otherwise hitting your page a quazillion times and making a POTTYMOUTHload of queries but.... wont it reallly encourage people to hammer your server?

*Edit -- please, people, I hate having to edit posts because of language -- birq*

shadowdani
01-07-2006, 09:26 PM
Awesome work.. Thanks!! May I also ask one more thing please.
Could you please generate a date in there or a "serial number" so we know we're getting a fresh file and not a stale one, if its not too much problem.

Ah well i knew i forgot something
Sure you can have something like that :)

shadowdani
01-07-2006, 09:29 PM
dude thats really neat... i guess it will save you a lot of resources from people otherwise hitting your page a quazillion times and making a ****load of queries but.... wont it reallly encourage people to hammer your server?

its useless to fetch it more than once every 5 minutes, as it is updated togheter with the shares price change.
But we will monitor for scripts that try to access it too often and if we found one it will be banned from this file (and the stock market)
So use your tools well... ;)

MkhitarSparapet
01-07-2006, 09:32 PM
Awesome work.. Thanks!! May I also ask one more thing please.
Could you please generate a date in there or a "serial number" so we know we're getting a fresh file and not a stale one, if its not too much problem.

Wow Shadow,

It didn't even take 5 minutes, and I see "timestamp" added. Super!!!!

MS

fischi
01-07-2006, 09:39 PM
nice work! :cheesy

hardcode
01-08-2006, 12:01 AM
I believe that RSS supports a header that gives modification time, I think it provides JUST the header (as HTTP does) to give clients a chance to not download the data if it hasn't been updated. It might save some more server load.

I'll be recoding bits of my script later tomorrow, it'll only hit ever 5 minutes.

triquito
01-08-2006, 12:39 AM
The xml is a fantastic idea! Thanks!

zyrorl
01-08-2006, 01:58 AM
its useless to fetch it more than once every 5 minutes, as it is updated togheter with the shares price change.
But we will monitor for scripts that try to access it too often and if we found one it will be banned from this file (and the stock market)
So use your tools well... ;)

fair enough, ive written a script thats going to be used by the entire alliance that checks every 7 minutes (based on condition that our users are actually refreshing our own script, if it isnt then it wont, in order to conserve your server's resources), it also has a local cache copy that it keeps to stop it continually refreshing your server's xml.

it also does output in xml mode with a few extra bits of info (mind you this is only a sample, the final thing may have more information).

<?xml version="1.0" encoding="UTF-8"?>
<stock_info>
<updated>
<time>1136688790</time>
<source>server</source>
</updated>
<stock_0>
<id>1</id>
<stock_name>Oil Stoxx</stock_name>
<current_stock_price>11.33</current_stock_price>
<last_stock_price>11.52</last_stock_price>
<stock_variation>-1.65%</stock_variation>
<stock_lowest_price>9.03</stock_lowest_price>
<stock_highest_price>13.67</stock_highest_price>
</stock_0>
<stock_1>
<id>2</id>
<stock_name>Cotton Stoxx</stock_name>
<current_stock_price>10.98</current_stock_price>
<last_stock_price>10.92</last_stock_price>
<stock_variation>0.55%</stock_variation>
<stock_lowest_price>10.39</stock_lowest_price>
<stock_highest_price>13.29</stock_highest_price>
</stock_1>
<stock_2>
<id>3</id>
<stock_name>Diamond Stoxx</stock_name>
<current_stock_price>9.35</current_stock_price>
<last_stock_price>9.50</last_stock_price>
<stock_variation>-1.58%</stock_variation>
<stock_lowest_price>9.35</stock_lowest_price>
<stock_highest_price>12.6</stock_highest_price>
</stock_2>
<stock_3>
<id>4</id>
<stock_name>Guns&amp;Co.</stock_name>
<current_stock_price>28.84</current_stock_price>
<last_stock_price>29.38</last_stock_price>
<stock_variation>-1.84%</stock_variation>
<stock_lowest_price>28.84</stock_lowest_price>
<stock_highest_price>34.63</stock_highest_price>
</stock_3>
.
.
etc.etc etc.
.
.
</stock_info>


<source>server</source> <- this will say cache if its cached

RomulusJ
01-08-2006, 08:14 AM
Okay us morons in the tech field not the code field.. What do I do how do get this to work.

I use Firefox 1.5

RomJ

zyrorl
01-08-2006, 08:38 AM
Okay us morons in the tech field not the code field.. What do I do how do get this to work.

I use Firefox 1.5

RomJ

you really dont... xml is pretty useless for those who dont know what it does and how to use it.

p0wderfinger
01-08-2006, 08:53 AM
is the 2500 geo limit coming off? the "read this" section says that it only applies to bonds.

thank you for your hard work getting this sorted out.
good job

Steve

Just want to restate speedfreak's question about the limit.

So what exactly is going on here? Are you guys working on a script that compiles stock info?

fischi
01-08-2006, 08:54 AM
hmm, I do not have any skills in scripting, but I use excel to log the prices every 5 minutes.

MkhitarSparapet
01-08-2006, 12:47 PM
hmm, I do not have any skills in scripting, but I use excel to log the prices every 5 minutes.

Excel can read XML files.

fischi
01-08-2006, 12:54 PM
Excel can read XML files.
Is this a question?
Yes, excel can import xml-files.

MkhitarSparapet
01-08-2006, 01:14 PM
Is this a question?
Yes, excel can import xml-files.

Sorry, it was a re-affirmation of your statement.

zyrorl
01-15-2006, 06:44 AM
Here's a picture of what our stockmarket information page looks like:

http://www.******.com/images/stockmarket_info_page.png

It uses the XML it downloads from gewar.net, caches it locally for access by all our alliance members and our friendly allies. Reduces load on the gewar server by doing so.
It downloads the XML roughly every 5 minutes, only for as long as a particular user has the page open.
If no one is viewing the page, for server load and bandwidth conservation, it will not download the xml from gewar's server.

In addition to all this, it produces some really neat graphs, with plotted data points for the past hour, while producing a daily graph of the stock market.

To conserve our server resources these graphs are also only generated every time fresh data is downloaded from the server.
The pages are also automatically refreshed at a random interval between 3 to 6 minutes.

Its also got an XML output that includes figures such as the highest ever and lowest ever statistics for a particular stock option.

It features highlighting of particular recommendations of when stock should be bought and sold, as well as when stocks are at their highest known or lowest known prices.

It was programmed using PHP 5 language(but im sure it would be PHP4 compatible as well) and uses mysql to store stock statistics, with an automatic purging of old data
(any data older than 1 day gets deleted at this stage). It uses the GD2 library to generate the graphs.

I would like to also mention that this script has been approved by admins.

I welcome any enquiries on the technical specifics by anyone.

fischi
01-15-2006, 11:18 AM
yeah, nice work :)

armon
01-15-2006, 05:08 PM
Would you be willing to make that code available?

bulletcrazy
01-15-2006, 05:51 PM
Somehow, I doubt they would.

Luke
01-15-2006, 05:54 PM
Somehow I doubt if I would let that happen on the forum :)

zyrorl
01-15-2006, 06:31 PM
I wont make the script public.. but i will make available the changes i made to the PHP GDgraph library as its GPL'd. (Message me if you want them.. )

http://www.makko.com.mx/gdgraph/ - is the link for the library.

Of course thats useless to you... unless you can actually program using it

Let me just mention its not EXACTLY hard to do..any php programmer worth his salt will basically just gloss over it in 30 minutes to an hour, maybe a bit longer.

Its also not that hard for a php noob with a bit of programming skills...

All it takes is basic php, the awesome GD modules in php and mysql.. its a no brainer.

It would be a loss of strategic advantage if i gave out the scripts to everyone... and i dont want to have to support anyone either with bugs/problems/installations etc.

SqueaL
01-16-2006, 06:05 AM
Did you guys make any changes to the stock market. I see Linux is @ 2.11 ! Very unusual.

fischi
01-16-2006, 07:01 PM
:eek:
now it's @ 3.16!! what's going on?

palau
01-16-2006, 09:23 PM
and now at 3.62 :love Cmon don't tell me you are not in yet... :nana

jokosr
01-18-2006, 02:41 AM
7.12 today

mitsubishievo_6
01-18-2006, 02:59 AM
Hmmmm....

I've invested in Linux too...but i have a bad feeling a crash in the price may occur soon.

PvUtrix
02-12-2006, 01:10 AM
if the change is trylly random, how come 9 out of 10 shares hit a 7 day low today? It's not right, they should be independent of each other, IMHO

p0wderfinger
02-12-2006, 01:18 AM
if the change is trylly random, how come 9 out of 10 shares hit a 7 day low today? It's not right, they should be independent of each other, IMHO
Usually when the economy is faltering, stock prices in general drop because of recession. Still I don't think crashes should be this sudden. There should be gradual decline so that you may still make money off peaks and troughs in the mean time, or attempt to recover some of your losses. It's completely unrealistic for the stock market to stay at one level, then have a huge change every 1-2 weeks. Maybe the occaisional crash, or boom could be programmed for rare occurances, other wise the economy should work in gradual changes.

jokosr
02-12-2006, 01:31 AM
its at 1.86 and still falling .............i dont think this is all random..last weekend they fell also but not this bad......somebody is making all of them fall for some reason....maybe somebody was getting too rich.....

Lenin
02-12-2006, 01:34 AM
Yeah..i noticed the pattern.. and figured it out..
as soon as you invest the stocks start going down.
atleast thats what i have noticed.

AK-7
02-12-2006, 02:00 AM
Wait... maybe this is the signal that the server will switch soon!

First then make us sad when we lose all our geos :( then happy when we get them back tomorrow (or whenever) ;woop

KingEmperor24
02-12-2006, 02:16 AM
Wait... maybe this is the signal that the server will switch soon!

First then make us sad when we lose all our geos :( then happy when we get them back tomorrow (or whenever) ;woop
...Interesting theory. :(

ronnielim
02-12-2006, 09:56 AM
its a market crash... the economy crash....oh no..~~!!!

maybe there are too many pple earning too much from the stock market so the market is taking some back... hehe ;punch

akin
03-13-2006, 10:56 PM
Well I hope its back soon I just want my Geos back well whatever is lsft of them I had MH shares which were not doing that flash anyways..

bigstar
05-12-2006, 03:55 AM
Can someone please explain the date format used for timestamp in the XML
i.e. 1147405800.6853

Also on the website how is the stock variation calculated? I'm not a math wiz :'( but I have some programming skills and I'd like to display the variation from the XML.

Thanks

creamdust
05-26-2006, 05:21 PM
hi,
how can i add the feed to ie7?
is it compatible with it?

apollosmith
05-26-2006, 05:46 PM
The data feed has to be parsed by some program to be useful. It's just raw XML data. So no, it won't just work with IE. You'd have to have something that parses through the XML and creates a more useful representation, <shamelessplug> something like my stock charts (http://smithplanet.com/gewar/) </shamelessplug>.

And bigstar, the timestamp is in PHP Timestamp (http://us3.php.net/time) format, so to be useful, you'll need something that can convert it to a readable time.

creamdust
05-27-2006, 03:48 PM
oh i c,
I tried using the following to convert xml to html:

<XML ID="stockmarket" SRC="stockmarket.xml"></XML>

<TABLE DATASRC="#stockmarket" CELLSPACING=10 >

<THEAD>
<TR>
<TH> id </TH>
<TH> name </TH>
<TH> price </TH>
<TH> last price </TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD> <B><SPAN DATAFLD="id"> </SPAN> </B> </TD>
<TD> <B><SPAN DATAFLD="name"> </SPAN> </B> </TD>
<TD> <B><SPAN DATAFLD="price"> </SPAN> </B> </TD>
<TD> <B><SPAN DATAFLD="lastprice"> </SPAN></B> </TD>
</TR>
</TBODY>
</TABLE>

but i can't see any output unless i delete <timestamp></timestamp>
so what can i do to see the output without deleting timestamp?
i want to make html from stockmarket.xml that's on gewar server