Questions tagged [stocks]
313 questions
3
votes
1 answer
Java Calendar TimeZone for US Stock Market
I am doing Android programming related to US NYSE & NASDAQ stock market. So far I know that they are using Eastern Time (ET). Stock market opens at 9.30AM ET, closes at 4pm ET.
In order to check stock market is currently open / close, I want to…

Shuwn Yuan Tee
- 5,578
- 6
- 28
- 42
3
votes
0 answers
Building a stock screener : a web app similar to FinViz.com
I want to build my own stock screener for a specific exchange (that trades only stocks), but I am wondering what technologies would best fit my project ?
My requirements are :
a friendly user-interface (maps, graphs, vizualisations, etc)
a very…

devio
- 1,147
- 5
- 15
- 41
3
votes
6 answers
Programmatically compare two lines (stock pattern matching)
What I want to do is take a certain stock pattern (defined as a series of x and y coordinates) and compare it against historical stock prices. If I find anything in the historical prices similar to that pattern I defined, I would like to return it…

Neil
- 737
- 1
- 8
- 23
3
votes
1 answer
R calculating a stock's beta (using PerformanceAnalytics CAPM.beta() function or lm() function producing unexpected results)
I am trying to quantify a stock's beta (bench marked vs. SPY) in R using the PerformanceAnalytics CAPM.beta() function and the results aren't even close to the values I am seeing online at Yahoo/Google Finance. The…

trock2000
- 302
- 4
- 13
3
votes
3 answers
Getting Tokyo stock price data to appear on Google spreadsheet
I have no problem retrieving price data of US stocks. For example, to retrieve Apple price data, this formula =GOOGLEFINANCE("AAPL","changepct")/100 works fine. When I tried to retrieve Tokyo stocks price data, this formula…

guagay_wk
- 26,337
- 54
- 186
- 295
3
votes
2 answers
What are some javascript charting libraries that allow plotting stock prices?
I need to be able to represent high and lows using a javascript charting libraries. All the libraries I have seen only allow defining the "high" value and the low value is always defaulted to zero.
Thanks!

Tom
- 31
- 2
3
votes
1 answer
Python ggplot issues plotting >8 stocks and legend is cutoff
First let me say ggplot for Python is the beginning of something great and kudos to the developers for putting in the work. Currently I'm having two major issues with the same plot. If I plot 8 stocks or less the image looks good except that the…

BCR
- 960
- 11
- 27
3
votes
1 answer
Not able to find an API for getting BSE stock quote for my Android app
I searched 2days in google but still i am not able to get a proper API which i can use to get data.
I found one API
https://finance.google.com/finance/info?client=w&q=BSE:YESBANK
which i am getting resonse data, but the data is not correct.
am i…

kumar
- 708
- 4
- 15
- 39
3
votes
1 answer
Merging stock symbols with their EPS rating
I am currently using scrapy to pull the 52 week highs list off of barcharts.org. I then take that data, remove all the extra stuff, and then save it to a txt file. I then take the txt file and use it to pull EPS rating data off of investors.com…

Alcaeus
- 145
- 3
- 13
3
votes
2 answers
How to query Open-high-low-close (OHLC) data from SQL Server
I'm trying to retrieve data for a Open-high-low-close (OHLC) chart directly from the database, it's the kind of chart you see of stocks. Is this possible, and if, how?
I have a table like this (simplified):
Date | Price | PriceType
A record is…

Gabriël
- 1,323
- 2
- 22
- 34
3
votes
5 answers
Is there a good and reliable open source Java package to get free stock info?
I used to use my Java programs to get free stock data (historical prices, charts, current prices ...) from Yahoo, but recently it stopped working, because Yahoo doesn't seem to welcome people systematically getting data that way. So I wonder if…

Frank
- 30,590
- 58
- 161
- 244
2
votes
1 answer
Nested Key-Value lookups in php
I am trying to make a "stock" website for a class at school, and it's my first dive into php. Basically, the script pulls down a CSV file form a google docs spreadsheet, and (attempts) to put the values into an array for use later. I'd like to show…

nlowe
- 999
- 4
- 11
- 26
2
votes
6 answers
Calculating IRR in ruby
Can anyone help me with a method that calculates the IRR of a series of stock trades?
Let's say the scenario is:
$10,000 of stock #1 purchased 1/1 and sold 1/7 for $11,000 (+10%)
$20,000 of stock #2 purchased 1/1 and sold 1/20 for $21,000…

Keith Schacht
- 1,998
- 15
- 23
2
votes
1 answer
How to create an ordered list in Perl from a set of inequality comparisons?
I'm playing around with historical stock market analysis in Perl. One aspect deals with analyzing the accuracy of research firms past stock ratings. The most rudimentary rating scale would be Buy, Hold, Sell. However many of these firms use…

calyeung
- 133
- 7
2
votes
2 answers
Where to get free detailed historic data e.g. with interval <1 minute
I am looking for a free source of detailed stock data (bid and ask prices) with an interval of <1m. This is for testing out trading theories - therefore does not have to be live nor up to date. I would ideally like a source that could supply this…

James
- 30,496
- 19
- 86
- 113