PyInvesting allows you to backtest your investment strategy without writing a single line of code.
Simply fill in a form specifying your backtest details
Create signals using both technical and fundamental data
Backtest your prefered investment strategy (Relative Strength, Fundamentals, Moving Average and Strategic Allocation)
Performance analysis is a ...
let's work through an example.
Daimler equity has isin DE0007100000
Going to https://bsym.bloomberg.com/ , we find German ticker symbol DAI. (there is also an API, I believe free)
We can find on Yahoo Finance https://finance.yahoo.com/quote/DAI.DE
Just use the symbol (in the CSV files, this is in the "Mnemonic" column) and attach an .F suffix for Frankfurt Boerse.
Note: Since scraping the API is expensive (although quotes can be retrieved in large batches of up to 500 symbols), you typically want to restrict the lookups to the symbols which you can trade with your broker, ...
Yes, I have a database that covers all 70,000 stocks worldwide. You can download the European portion from the original table hosted on this Public Domain. The tickers comply to Yahoo Finance's version.
Hi you can use Alphavantage and inquire a student offer, that gives you more calls per minute and more calls per month. You only have to have a student mail account and confirm the purposes of your endeavour.
Sniffing (or stalking) algo indeed detects other algorithms. How does that work in practice?
Imagine the order book for a particular equity is: Bid 1 = 99 (size 10,000), Bid 2 = 98 (size 25,000), Bid 3 = 97 (size 30,000), Offer 1 = 101 (size 10,000), Offer 2 = 102 (size 25,000), Offer 3 = 103 (size 30,000).
So in the example above, the bids and offers are ...
Since 2008, we have the longest bull market ever on the record due to the adoption of Quantitative Easing, low-interest rates, and easy monetary policy by most countries of the world. The utility sector is a defensive sector mainly because of predictable growth and cash flow. During this long bull market, the utility sector had struggled to keep pace with ...
I think I understand your issue. Your weights are not uniformly distributed over the desired space. Instead you weights are bunched together, there are fewer extreme weights (weights close to 1) than there should be.
For example let's consider how often the 1st weight (or any other weight for that matter) should be between 0.8 and 1.0. Since the length of ...
It's normal that it takes very long to come close to
the efficient frontier with random portfolios.
How close you come how fast will be strongly influenced
by how you sample the portfolios. In your code, you
sample uniformly. You may want to look at the weight
distributions of the portfolios on the frontier, and
then consider how likely it is that you arrive ...
Not sure why you would seek to hit this via trial-and-error sampling in the first place.
By definition, the MinVar portfolio is the tangency / MaxSharpe portfolio if all the returns are assumed to be constant/equal. See pp.7-10 in e.g. https://faculty.washington.edu/ezivot/econ424/portfolioTheoryMatrix.pdf
Why did you expect to hit the minimum variance portfolio in your simulations?
There are infinitely many vectors of size Nx1, such that the sum of its elements adds up to 1. Even with 1 million simulations, it is very difficult to hit the exact minimum variance allocation vector.
Moreover, your simulations might have hit some allocation vector "very near&...
It's a momentum strategy. I would implement it as a staged pipeline:
Initialize an instrument watch list prior to trading session. It can be a black/white list based on risk parameters and/or reference data. For example, only US common stocks (no ADRs, ETFs, etc.) with a market cap of over $1B.
Load all-time-high (ATH) prices and ATH dates for the ...
I really suggest buying the data (from the vendors listed on the megathread What data sources are available online?, or mine https://tendollardata.com/product/historical-minute-data-historical-intraday-data-dataset-all-us-equities-etfs-sp-500-tech-stocks/). I wasted years of my life extracting data. It's not worth the upkeep.
If you really are allergic to ...
There are many (hundreds?) of ways to get historical equity data online, both free and paid.
Check out the "What data sources are available online?" megathread: What data sources are available online?
I have my own data service I just started, https://tendollardata.com, that I really do think is worth checking. I write out why in that thread (https:...
What works for me is choosing each sector for a specific country manually, through the Excel add-in of Eikon (Datasteam -> Series requests -> Time series request). A window pops-up, that asks for the Series/list and what datatype you want. You click the orange box find series. Then you have to find through the search bar each sector in China. For ...
DCF analysis: future values of dividends discounted to today's dollars
Comparable company analysis: relative value based on peer group ratios: P/E, P/sales, P/active_user, P/EV, P/TAM for SPACs or ventures
Terminal value: total value of assets sold minus liabilities paid
For more details, see Company Valuation Methods by Pablo Fernandez
The building blocks of this BRC are (assuming the most common specification, there is always variations but it's impossible to tell the details without any termsheet provided):
long a zero-coupon bond
short a down-and-in rainbow put on the min (worst-of), with barrier below strike usually, and either European or American exercise style
The discount of the ...