All Questions
9
questions
1
vote
0
answers
77
views
quant. code. to calculate trend, momentum, correlation and volatility in Pandas(Python)
I am new to quant. finance and trying to calculate trend, momentum, correlation and ...
4
votes
0
answers
58
views
Analyze Stock Market Bottom Timing without Looping over Data Frame Rows
I am replicating this blog post in Python.
The blog post shows that even if you know future stock market bottoms, only buying stocks when the stock market is below future stock market bottoms provides ...
4
votes
0
answers
53
views
Get Asset Returns for multiple Tickers and Holding Periods
I've written some code that will take multiple stock tickers and calculate their returns over yearly, monthly, bi-weekly, and weekly holding periods. The results are written to an xlsx file.
I'm ...
4
votes
2
answers
2k
views
Pulling financial data via IEX Cloud API
I am pulling some financial data from the IEX Cloud API. Since it is a paid API w/ rate limits, I would like to do this as efficiently as possible (i.e., as few calls as possible). Given that the <...
3
votes
1
answer
517
views
Tracking stock prices using Python and Google Sheets
The purpose of this program is to keep track of some stocks that we bought in a game and every week we must list the closing prices of each stock in a Google Sheet. I thought since I had a lot of ...
6
votes
1
answer
2k
views
Bank saving account class in Python (pandas)
I am setting up a kids bank account class to teach them how to save, and myself how to write a class in Python. The original idea was to create a pandas DataFrame that will show how the money gains ...
2
votes
0
answers
82
views
Back-testing algorithm for equity
I've written a code on python which back tests on equities data, to compare result of strategy against a benchmark.
I want someone to review to assure that program works as desired, and any changes ...
8
votes
2
answers
154
views
Developing an investment strategy based on stock movements
Below is my code
...
3
votes
0
answers
2k
views
Pandas calculation speed of stock beta on many dataframes
I have many (4000+) CSVs of stock data (Date, Open, High, Low, Close) which I import into individual Pandas dataframes to perform analysis. I am new to Python and want to calculate a rolling 12month ...