Questions tagged [stocks]

313 questions
0
votes
1 answer

How to remove the substring after a dot in Amibroker?

I am using Amibroker ver5.97 Suppose I have a stock symbol DAS.G and EFS.XF. I would like to remove the substring after the dot (including dot itself) so that the output becomes DAS and EFS respectively. How can this be done in AFL?
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
0
votes
1 answer

Struct Stock and Data File

Here is what I am suppose to do: Create struct stock - name[20], shares, buyprice,currprice, buycost, currcost, profit. Load from keyboard - name, shares, buyprice, currprice, currcost,profit, buycost. Sort on profit from high to low Find total…
TheEWL2
  • 79
  • 1
  • 6
0
votes
1 answer

Yahoo YQL console not working for finanace table

I am just trying to do some test calls to the API via the yahoo YQL console : https://developer.yahoo.com/yql/console/ But when I even try to do simple calls that should work, I am getting undefined table error When I try: select * from…
Sam Alexander
  • 504
  • 1
  • 6
  • 24
0
votes
3 answers

Where can I get a RSS feed for stock markets?

I am creating a website where people can type in the name of the company and see it's latest stock prices. Where can I get a realtime stock RSS feed? Do I have to pay for it? Thanks for any pointers.
NPXYZ12m
  • 57
  • 1
  • 1
  • 1
0
votes
4 answers

How to create a Javascript object that keeps track of a stock price?

I would like to make a program that can keep track of multiple stock objects and display basic information about them (IE: their price). I have this code which can successfully retrieve the price of the stock: function getStock(symbol,…
Maximilian Sun
  • 147
  • 1
  • 10
0
votes
2 answers

Adding / Removing values for an Email based daily stock value reporter - made inPHP

i'm buidling a very simple email based website that users can, when registering list out all the stocktickers they're intersted in following. The program then on a daily basis goes and fetches that information and sends it out to every user. i have…
Dave
  • 599
  • 4
  • 11
  • 20
0
votes
1 answer

How to tell if stocks are in sync?

In stocks some symbols are closely related. If one goes up, the other goes down, or they rise and fall together. For example, Exxon and BP have similar ups and downs. How can you tell if two stocks have similar trends. Would it involve clustering?…
micah
  • 7,596
  • 10
  • 49
  • 90
0
votes
1 answer

How to pass integers in a loop using MATLAB

I am trying to run the following code: %% Getting Stocks stocks = hist_stock_data('01012013','07112014','GDXJ', 'SPY','GOOGL', 'QQQ', 'AAPL'); %% Loop to get the stocks in order by date while i <= 5 stocks(1,i).Date=datenum(stocks(1,i).Date);…
Rime
  • 912
  • 2
  • 11
  • 39
0
votes
2 answers

using Excel VBA, given the daily price of 50 stocks, choose 10 stocks such that they have the minumum correlation

The high-level goal is to choose 10 stocks that have the lowest correlation among one another, out of a pool of 50, so that I can have a well-diversified portfolio. I have managed to write some VBA macro to download the past 3 years of daily price…
correl
  • 1
  • 2
0
votes
0 answers

How to loop with time in Python

So I'd like to compress some data down into minutes. I was thinking of using a loop with time? To pull data for every minute range (aka 09:30:00-09:30:59) for the time between 09:30:00 and 04:00:00, use it for some math, and then save it in another…
Samuel
  • 65
  • 1
  • 5
0
votes
2 answers

How to get integer/double value from XML

I'm trying to get stock data using YQL from Yahoo. I have tried to use XML to accomplish this, but I have run into trouble getting integer values (I think I need to use double as prices are in decimals). Originally I was able to get string…
adventuresncode
  • 103
  • 1
  • 11
0
votes
1 answer

dbWriteTable in RMySQL error in name pasting

i have many data.frames() that i am trying to send to MySQL database via RMySQL(). # Sends data frame to database without a problem dbWriteTable(con3, name="SPY", value=SPY , append=T) # stock1 contains a character vector of stock names... stock1…
Rime
  • 912
  • 2
  • 11
  • 39
0
votes
3 answers

getSymbols downloading data for multiple symbols and calculate returns

I'm currently downloading stock data using GetSymbols from the Quantmod package and calculating the daily stock returns, and then combining the data into a dataframe. I would like to do this for a very large set of stock symbols. See example below.…
New_code
  • 594
  • 1
  • 5
  • 16
0
votes
3 answers

iPhone Stock/Ticker Search

I'm trying to build a financial iPhone app that has a stock search as one of its features. I noticed that the Bloomberg app (and the default Stock app) query online whenever they're looking for stocks. Does anyone know how they do this? I once…
Kirn
  • 524
  • 1
  • 6
  • 18
0
votes
1 answer

Var_export problems in php

I am writing a program to automatically download data from a url. The data is in csv and I'm trying to convert it to usable information. The downloading part works fine, however, I'm using var_export to then convert the data into an array, then…