Questions tagged [stocks]
313 questions
2
votes
5 answers
Anyone know how to get historical stock data for free in ASP.NET?
I'm looking for an API that can be accessed via C# implementation where I can get access to free stock market historical information (index and individual companies).

locoboy
- 38,002
- 70
- 184
- 260
2
votes
1 answer
How to pull stock data for every stock on a given exchange
I'm using pandas to pull stock data. For example, the code below, basically lifted from examples found all around the web, works fine.
What I want to do is analyze the price data for every single stock listed on a given exchange. For example, in…

Charlie_M
- 1,281
- 2
- 16
- 20
2
votes
1 answer
How to calculate the EMA of an array of numbers?
I have an array of daily closing prices for a stock (historical data) formatted as such:
var close = [39, 40.133, 38.23, .... , 45.38]
these are in order chronologically by date. I am trying to make an array of EMA (exponential moving average)…

Jonathan Shobrook
- 229
- 2
- 9
2
votes
1 answer
R log-transformation on dataframe
I have a dataframe (df) with the values (V) of different stocks at different dates (t). I would like to get a new df with the profitability for each time period.
Profitability is: ln(Vi_t / Vi_t-1)
where:
ln is the natural logarithm
Vi_t is the…

Simon
- 79
- 1
- 6
2
votes
5 answers
fetch google finance data
can anyone provide me an example on how I can fetch the real-time stocks of google finance

user335160
- 1,364
- 6
- 32
- 67
2
votes
1 answer
Create a Live Streaming StockChart and Live Streaming Stock Tickers
How do I create a Live Streaming Stock Chart and Live Streaming Stock Tickers like on Yahoo Finance, CNBC, Google Finance, Bloomberg etc.? Where do I start?
Web development, language Javascript, I want to build live stock quotes on my website.
user3900117
2
votes
1 answer
More Efficient way to check values of neighboring rows in pandas dataframe for stock backtesting
I have a large dataframe of financial data. I'd like to create a 'buy' signal when the price of the stock is above the upper rolling mean for at least an X number of days and is below the rolling mean for at least an X number of days. I've done a…

user3314418
- 2,903
- 9
- 33
- 55
2
votes
2 answers
How to bind multiple data sets with different number of rows by the first row using R
I am trying to bind multiple stocks by "TimeStamp" which is the 1st column on the dataset. The rest of the columns are Open, High, Low, Close, Volume. One of the problems is that they all contain different rows.The second problem is that the…

Jason
- 311
- 1
- 4
- 14
2
votes
1 answer
Market Information by Company Yahoo RSS Feeds
Yahoo provide feeds in XML format that provide market information.
The following page details news feeds:
http://developer.yahoo.com/finance/company.html
It is proving difficult however to find the market information feeds. Essentially what I want…

Walrus
- 19,801
- 35
- 121
- 199
2
votes
1 answer
In what way is LMAX's distruptor usable for a stock market?
I have done some research with the disruptor patern and there's one thing I can't wrap my head arround.
There are the producers, which provide the entry's for the ring buffer.
There is the ringbuffer, basically a fixed but endless array.
There are…

user3014924
- 153
- 4
2
votes
1 answer
R: Assigning variable to quintile on monthly basis
I am trying in R to indicate in which quintile a value of a variable is for every month of my data frame in this case based on volatility.
For each month I want to know for each stock if it is in the most volatile quintile of if it is in one of the…

user2251017
- 23
- 3
2
votes
2 answers
Stata: how to get observation value 5 minutes ahead with gabbed time data
I got high frequency data from a limit order book in Stata. Time does not have a regular interval, and some observations are at the same time (in milliseconds). For each observation I need to get the midpoint 5 minutes later in a separate column. So…

Starelite
- 43
- 6
2
votes
2 answers
How to identify rectangular price congestion in stock market? (C++)
In the field of stock market technical analysis there is the concept of rectangular price congestion levels, that is: the price goes up and down essentially never breaking the previous high and low price levels for some time, forming the figure of a…

Momergil
- 437
- 1
- 5
- 20
2
votes
2 answers
How to Backtest a Strategy in Python
I need to be able to determine whether a particular "trade" (indicated by "signal") resulted in a profit or loss by indicating a win or loss for each.
I need Python to check the next location ( the signal or entry point or date + 1 ) in the High and…

user1526586
- 93
- 1
- 3
- 10
1
vote
1 answer
CorePlot stipes filling
I'm trying to set a stripes filling for a graph created with CorePlot. I've found an example on internet:
CPColor *firstStripesColor = [CPColor colorWithComponentRed:1.0 green:1.0 blue:1.0 alpha:0.0];
CPColor *secondStripesColor =…

Claus
- 5,662
- 10
- 77
- 118