Questions tagged [stocks]

313 questions
1
vote
1 answer

Correlating arrays and nested for loop in Pandas (stock portfolio analysis)

I'm trying to create a program in Python, in which the user inputs a number of stock tickers and a desired date range; the output would be a graph of daily cumulative returns of the portfolio in that date range assuming the stocks have equal…
user2373506
  • 45
  • 2
  • 4
1
vote
3 answers

Python: Excel is being fed real-time stock prices. How to append prices every 10 min to csv?

Here is my python script: from xlrd import open_workbook from xlrd import xldate_as_tuple book = open_workbook('C:/Users/.......Constantquotes.xlsx') sheet0 = book.sheet_by_index(0) #Initializes the first row print sheet0.row(0) …
1
vote
2 answers

Creating a simple stock inventory program - 2nd attempt

I have asked this question before and followed the feedback as best as I could but I am still having one problem with storing the info that the user enters into the array. Here is the first attempt: OOP Java: Creating a stock inventory program So I…
ScoutBlade
  • 125
  • 1
  • 6
  • 13
1
vote
3 answers

Python: Determining Profit and Loss

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. I need Python to check the next location in the High and Low lists for an increase in value equal to or…
user1526586
  • 93
  • 1
  • 3
  • 10
1
vote
2 answers

Display stock portolio in android with clojure

Would writing an Android stock portfolio display app in Clojure be a good learning exercise? I'm totally new to Clojure. My impression is that the functional programming style of Clojure might be better suited for other applications and platforms.…
jlim
  • 181
  • 1
  • 1
  • 12
1
vote
1 answer

Get the finance stocks key development links from Reuters

I am developing an android application which gives stock information using YQL. In the Yahoo interactive charts there are key developments as shown in the link: …
iPhoneCoder
  • 237
  • 1
  • 3
  • 11
0
votes
1 answer

creat stock data from cvs file, list, dictionary

My stock programs input is as follow 'Sqin.txt' data read in and is a cvs…
tsquare21
  • 53
  • 4
0
votes
1 answer

Google Docs Spreadsheet Info for Finance stocks

Im trying to have dividend payable dates, or ex-dividend dates populate in the cell next to a ticker. Anyone ever done this? Does not seem I can find this one.
user827304
  • 881
  • 2
  • 7
  • 13
0
votes
1 answer

retrieve stock numbers via some data feed

Is there any data feed, xml or api that will allow you to retrieve all the stocks (maybe limited to USA) and their current prices (not realtime). I know I can hit google or yahoo to get the price of one stock but I would like to get all of…
iwek
  • 1,608
  • 5
  • 16
  • 31
0
votes
2 answers

How to get data using Google finance API

http://www.google.com/finance?q=nse%3Areliance Is it possible to get real-time data (price and volume) using Google API ? Any sample code (C++/C#) would be very helpful.
Martin
  • 3,396
  • 5
  • 41
  • 67
0
votes
1 answer

gchartphp addDataSet() max limit?

I'm trying to create a PHP script that graphs some historical stock data. I have the data in an array and am trying to graph it with gchartphp using this code: require_once("../gchart/gChart.php"); $lineChart = new gLineChart(1000,…
nighthawk454
  • 943
  • 12
  • 20
0
votes
1 answer

Library for stock options calculations

I am writing some financial analysis software and need to do some calculations concerning stock options. I need to calculate the current value of a short position if it were closed by selling, by getting exercised, or by expiration. However, I do…
User1
  • 39,458
  • 69
  • 187
  • 265
0
votes
1 answer

Help getting started with SQL database on Android?

I have zero experience with databases, and am looking for some direction in getting started. I am making an Android app that needs to read in a large amount of data quickly... Eventually this will be a stock market app that accesses real-time stock…
Kalina
  • 5,504
  • 16
  • 64
  • 101
0
votes
2 answers

Trading API's with a mock account

Are any of you aware of any brokers that provide API's for trading (that I could hook up to my .net application) AS WELL AS provide a mock money account I have searched around on sites for this question but surprisingly havent gotten an answer to…
user715489
  • 150
  • 1
  • 7
0
votes
1 answer

Reinforcement Learning Using Multiple Stock Ticker’s Datasets?

Here’s a general question that maybe someone could point me in the right direction. I’m getting into Reinforcement Learning with Python 3.6/Tensorflow and I have found/tweaked my own model to train on historical data from a particular stock. My…