Questions tagged [stocks]
313 questions
12
votes
1 answer
correlation error: 'x' must be numeric
I have a XTS dataset that contains many stock closing prices called: dataset. I then wanted to find if their returns have any correlation via cor() , however I get an error message: Error in cor(RETS) : 'x' must be numeric.
Here is what i have…

Jason
- 311
- 1
- 4
- 14
11
votes
3 answers
Building a stock market trading game in RoR, what libraries are available?
I'd like to build a relatively simple online stock trading application (in RoR). It would just be a game so no real trades- just an online simulation based on real market data.
A good example being http://www.wallstreetsurvivor.com/ or…

digitalWestie
- 2,647
- 6
- 28
- 45
11
votes
2 answers
Geometric Brownian Motion simulation in Python
I am trying to simulate Geometric Brownian Motion in Python, to price a European Call Option through Monte-Carlo simulation. I am relatively new to Python, and I am receiving an answer that I believe to be wrong, as it is nowhere near to converging…

tgood
- 129
- 1
- 2
- 7
11
votes
2 answers
Protocols used by stock exchanges
My career goal is to work as a software developer for an online stock broker website or for a stock exchange. I am curious about the protocols used by the stock network. For example, what protocol does an online stock broker website use to send a…

HideYourLoveAway
- 163
- 2
- 6
11
votes
4 answers
Are document databases good for storing large amounts of Stock Tick data?
I was thinking of using a database like mongodb or ravendb to store a lot of stock tick data and wanted to know if this would be viable compared to a standard relational such as Sql Server.
The data would not really be relational and would be a…

dvkwong
- 543
- 2
- 4
- 12
11
votes
8 answers
Where can i find sample alogrithms for analyzing historical stock prices?
Can anyone direct me in the right direction?
Basically, I'm trying to analyze stock prices and see if I can spot any patterns. I'm using PHP and MySQL to do this. Where can I find sample algorithms like the ones used in MetaStock or thinkorswim? I…
user126284
11
votes
3 answers
How to Access Yahoo Finance YQL query with historical data
I'm new to YQL. Perhaps this is very trivial, but I couldn't quite figure this out. I know, for instance, how to query current stock data from Yahoo/YQL using the YQL console:
http://developer.yahoo.com/yql/console/
with the query string:
select *…

user780069
- 431
- 2
- 5
- 6
10
votes
1 answer
Python Finance: How to use macd indicator for signals strategy?
I am trying to get my head around stock data and it's implementation in python. In starting I am using MACD indicator in Python stockstats library.
Thing I want to know, if I have 100 OHLC entries of a certain stock, how can I use MACD output to…

Volatil3
- 14,253
- 38
- 134
- 263
10
votes
3 answers
looking for an intraday stock quote feed
I have an application which needs to get intraday stock quotes on several assets (indices, commodities etc').
I want to be able to query the data in HTTP and get it as CSV/XML format.
Now, I'd like to be able to ask the data provider for example…

Poni
- 11,061
- 25
- 80
- 121
10
votes
2 answers
Calculate RSI(Relative Strength Index) using some programming language (JS/C#..)
I am working to calculate RSI (Relative Strength Index). I have data like this
**Date|Close|Change|Gain|Loss**
The formula for calculating this is
RSI = 100 - 100/(1+RS)
where RS = Average Gain / Average Loss
Source
So I want to calculate via some…

Blu
- 4,036
- 6
- 38
- 65
9
votes
1 answer
Broker that supports both ISA accounts and API access?
I'm looking for a stockbroker but can't seem to find one that 'ticks all the right boxes' - can anyone help please?!
The essential requirements are:
Supports Shares ISA accounts
Access to ETFs on the LSE, especially iShares
Real-time price…

Paul
- 91
- 2
9
votes
3 answers
How can I implement a stock volume chart using core plot on iPhone?
I'm writing a stock charting application on iPhone using core-plot. What kind of chart should I use to plot the volume chart? Since I will also need to overlay the price charts onto the volume chart, how should I go about doing this?
Here's an image…

futureelite7
- 11,462
- 10
- 53
- 87
8
votes
1 answer
Stock Market API - Top Gainers/Losers
I'm looking for a free API which I can use to retrieve the stock market's top gainers and top losers for the current day. I've checked out Google and Yahoo's API's and they don't seem to do this. I can get price quotes on specific stocks, but…

Brandon Montgomery
- 6,924
- 3
- 48
- 71
8
votes
4 answers
Automating Etrade
Hey everyone, I was wondering how would I start programming an interface to trading stocks in Etrade in python. I am attempting to make an automated trading bot, but there is no api publicly available for automated trading with Etrade. Thanks in…

iAlexTsang
- 189
- 2
- 10
8
votes
2 answers
Is there a way to automatically get general info of many stocks like P/E ratio, Yield, and so on?
I know some ways to get daily stock prices and volumes in R or python, but just wondering whether these is a way (using either R or python) to get more info about stocks such as P/E ratio, company website, Yield and so on, preferably not just…

danioyuan
- 1,268
- 2
- 13
- 16