Currently the program assumes(?) that the prices retrieved from Yahoo are in the local unit of currency. In the case of UK stock prices (using a suffix of .L) the prices are actually in pence rather than pounds resulting in greatly inflated valuations for your holdings!
If we assume that most people just have in-country holdings a simple fix would be:
(1) Add a box to the "settings" dialogue on the stocks page to allow an adjustment factor to be entered - default is 1. (In my case I'd enter 0.01 or 100 depending on (2) below).
(2) Having retrieved and parsed the price from Yahoo, multiply (or divide) it by the adjustment factor before use.
For now I've added the single line: dPrice /= 100.0 into OrderQuoteRefresh() in stockspanel.cpp and rebuilt the application. Works for me.
Log in to post a comment.