Questions tagged [stocks]

313 questions
1
vote
1 answer

pandas_datareader.data not returning all stock values from start to end date

I am trying to get stock data from yahoo using pandas_datareader.data and i keep getting missing sections of data. here is what i have coded. all i want to do right now is return all the data for the dates between the start and end dates import…
jsell
  • 13
  • 5
1
vote
3 answers

Displaying Volume profile on a javascript chart

Is there any javascript charting library that supports volume profile. I'd like to display a stock chart and a corresponding volume profile chart, either integrated with the chart or on a panel to the side of the chart. e.g…
patrick-fitzgerald
  • 2,561
  • 3
  • 35
  • 49
1
vote
1 answer

xtsible object, looping in quantmod

I would like to loop through a list of stock symbols and print them with chartSeries. It would be easier than always changing the argument. Unfortunatly I always get an error, when I want to loop or subset: Error in try.xts(x, error = "chartSeries…
Christian
  • 11
  • 1
  • 2
1
vote
1 answer

Limit of multiple Quote in a finance google API call

I have thousands of stock symbol and for real time prices requesting finance google API, as an example http://finance.google.com/finance/info?client=ig&q=AAPL in the above I am getting price of AAPL, so I am considering it like single HTTP request…
user001
  • 53
  • 11
1
vote
1 answer

SQL calculating stock per month

I have specific task, and don't know how to realize it. I hope someone can help me =) I have stock_move table: product_id |location_id |location_dest_id |product_qty |date_expected …
1
vote
1 answer

historical index performance in Bloomberg / VBA

I am making a tool which plots the historical (12800 dates, 1980-today) stock performance of subsets of 3500 companies based on a set of sustainability rating criteria chosen by the user. For example, one could pick "worker health and safety" and…
S Stephens
  • 21
  • 4
1
vote
1 answer

Multiple OHLC datasets in one image

How can I chart multiple datasets in one image using JFreeChart ? Essentially I want to chart a stock's price and it's moving average line in one image. I've tried getting the XYPlot and adding the second dataset, but it does not…
Lydon Ch
  • 8,637
  • 20
  • 79
  • 132
1
vote
1 answer

How to use HighStock's tickPositioner to set tick at end of month?

This highcharts admin response explains this is not natively possible: There's no option for using the last date of the month, but you can create your own tickPositioner callback I've followed the advice, however nothing seems to change…
Shwaydogg
  • 2,499
  • 27
  • 28
1
vote
2 answers

Query to find and average weighted price for day trades

I found this old question which brings a nice approach for calculating weighted average prices. It basically consists in grouping by the stock name and then fetching the sum(quantity*price)/sum(quantity) But in day trades you buy and sell the asset…
Pedro Braz
  • 2,261
  • 3
  • 25
  • 48
1
vote
1 answer

Pandas Yahoo Datareader RemoteDataError when start date or end date is current date

I am running the below program to extract the stock information: import datetime import pandas as pd from pandas import DataFrame from pandas.io.data import DataReader symbols_list = ['AAPL', 'TSLA', 'YHOO','GOOG',…
user3198755
  • 477
  • 2
  • 10
  • 21
1
vote
0 answers

Can you change the stock quote provider (yahoo) in OSX (Yosemite)?

I'd like to use the Notifications center to display some Canadian stocks. Yahoo does not support these listings, but other providers like Google do. Is there a way to change/hack OSXs default provider of stock quote information to something other…
1
vote
2 answers

"non-numeric argument to binary operator" error from getReturns

For some reason, a code I usually run in Rstudios is no longer working. I'm hoping that someone has had a similar experience and understands what's going on. getReturns(c('C','BAC'), start='2004-01-01', end='2008-12-31') This results in: Error in…
Trexion Kameha
  • 3,362
  • 10
  • 34
  • 60
1
vote
2 answers

Python pandas finding the middle 50%

I'm using python with pandas to deal with stock tick data and I would like to compress it down to the total volume for the day, the high, the low, the average, 25% of trade volume, 75% of trade volume. I am unsure of how to find where the 25% and…
1
vote
1 answer

ystockquote historic data wrong order?

So I've been using ystockquote quite successfully, however I've ran into a small problem. When I pull historic data for any stock it produces a dictionary with the correct information, however the order of the dictionary dates are wrong? Here's my…
LaptopJunkie
  • 13
  • 1
  • 2
1
vote
1 answer

How to compress a data frame within a range?

For each cent, I want to add together the volumes. So in this data set, all trades at prices between 188.415-188.42 would get their volumes added together, all 188.43 trades added together, etc. I'm currently using pandas to manage the data, and I'm…
Samuel
  • 65
  • 1
  • 5