Questions tagged [stocks]
313 questions
0
votes
1 answer
How is the Bollinger Oscillator Calculated?
The Upperband is calculated: Middleband + (D + sqrt(((close - Middle band)^2)/n))
And I know how to calculate the lower bollinger band and middle bollinger bands.
But there is an elusive indicator called the bollinger oscillator which I find…

tread
- 10,133
- 17
- 95
- 170
0
votes
1 answer
How do I create the UI of the Stocks application on the iPhone?
I'm not interested in getting the stock data, but I want to create a smilar application that will have the exact same UI as Apple's Stocks application on the iPhone.
Does anybody know of a tutorial or open code repo that can show me how to do this?

Nikhil Goel
- 63
- 1
- 1
- 7
0
votes
2 answers
Update Magento stocks with CSV and PHP script
Just found this great article: http://www.blog.magepsycho.com/updating-product-qty-in-magento-in-an-easier-faster-way/ but something works not very well.
When I have a CSV with the columns "sku" and "is_in_stock", and I use the script, it also sets…
user1681144
0
votes
2 answers
How can one analyze the greatest percentage gain (burst) of numbers in sequence in an array?
There are algorithms for detecting the maximum subarray within an array (both contiguous and non-continguous). Most of them are based around having both negative and positive numbers, though. How is it done with positive numbers only?
I have an…

rcd
- 1,348
- 1
- 14
- 27
0
votes
1 answer
HighStock setup
I am working with HighStock to create a chart for stocks of various companies. In the API, it does not tell me how to retrieve the data about a stock, it is simply retrieving it in a JSON file. I am wondering if a stock parameter (Example: 'AAPL' or…

Cameron
- 632
- 9
- 24
0
votes
2 answers
Welle's Wilder Accumulative Swing Index PHP calculation - Cannot return proper value
I am trying to get the accumulative swing index for an aapl stock chart. I am using this calculation for reference.
http://www.barchart.com/education/std_studies.php?what=int_swing&hideheader=true#study
This is what I have written so far. This…

styks
- 3,193
- 1
- 23
- 36
0
votes
2 answers
Magento - Mass updating of stock levels fails
I am trying to use following code with latest Magento V1.7.1:
http://www.sonassi.com/knowledge-base/magento-kb/mass-update-stock-levels-in-magento-fast/
I updates stock quantities from CSV file.
It works fine with the following…

user1481153
- 169
- 2
- 5
- 13
0
votes
2 answers
Convert list of ticker symbols into list in Python
I need to convert a list of ticker symbols:
T
GOOG
KO
PEP
as examples in a a text file to a python list: ['T','GOOG','KO',PEP']. However, the current code I'm using keeps adding a space after each symbol yielding: ['T ','GOOG ','KO ',PEP '] instead.…

user1526586
- 93
- 1
- 3
- 10
0
votes
2 answers
How do I check lists of numeric data for a certain number using an "if" statement in Python?
Currently, I am attempting to retrieve numeric data from different CSV files. I then place that data in lists in Python. However, I'm struggling to get Python to determine if there is a value in each separate list of data that is greater than a…

user1526586
- 93
- 1
- 3
- 10
0
votes
1 answer
How do I loop through a list of stock tickers in Matlab?
This is the current code I'm attempting to use in order to loop through a "list" of tickers to load the corresponding file. However, Matlab doesn't seem to like to accept separate strings. I'm not quite sure how Matlab functions yet. However, it is…

user1526586
- 93
- 1
- 3
- 10
0
votes
1 answer
Creating a candlestickgraph in android
I was looking at stockcharts - http://code.google.com/p/stock-chart for creating candlestickgraphs in my application. I could not find any good tutorials on it. Does anyone know of some good tutorial for using stock charts.

user1092042
- 1,297
- 5
- 24
- 44
-1
votes
1 answer
Getting historical data for all companies listed in a stock exchange (Hong Kong in my case)
I’m straggling to download historical data for my masters thesis. I need daily prices (only one per day e.g. adjusted close) of all companies listed in a stock exchange, specifically in Hong Kong SE, over 20 years including delisted and new starting…

Andrey
- 11
- 3
-1
votes
1 answer
Is it possible to create a column called ticker with the name of each stock when reading in multiple csv files?
I am fairly new to Python and wanting some assistance with generating a new column called Ticker when reading in multiple csv files. As the Yahoo! Finance API is depreciated, I am reading in csv data from Yahoo! Finance for 'GOOG', 'IBM' and 'AAPL'.…

oceanbeach96
- 604
- 9
- 19
-1
votes
1 answer
Exporting Quantmod stock data to excel
I'm trying to export yahoo stock data imported using the getSymbols function to Excel, anyone know how to do this?

Peter
- 151
- 1
- 11
-1
votes
2 answers
Creating quintile stock portfolios with SQL
I would like to have the SQL code that will allow me to form quintile portfolios for monthly stock data. The formation of the quintile portfolios depend on a ratio (called B/M in my spreadsheet). I would like that the code automatically generates…

Brieuc Feneuil
- 9
- 2