rubensayshi / gw2spidy

GW2Spidy - Guild Wars 2 Tradingpost Graphs
http://www.gw2spidy.com
231 stars 86 forks source link

True moving averages #29

Open ghost opened 12 years ago

ghost commented 12 years ago

This is more of a feature request, but could still be considered an issue.

Could somebody please implement moving averages, that take into account both the selling AND buying prices? I know there's moving averages for the selling and then buying price point individually, but normally, prices are worked out based on the median (mid point) of buying and selling.

So basically: (sell price+buy price)/2. Then do that for five days to work out the five day average, and do it for each day for the past 20 days, and then work out the average etc.

Hope I'm not asking for too much :P

teuneboon commented 12 years ago

So basically if you take the weekly average sell line and buy line, at every point of that line this new line will be exactly in the middle of it?

ghost commented 12 years ago

Correct! :D I'd say have it turned off by default obviously, as many people won't even use it.