stock market returns with pyhton
|

Decades of Returns: A Look at the S&P 500, Nasdaq, and Sector Performance with Python

Understanding how different parts of the stock market have performed over the long term can provide valuable perspective for investors. Have tech stocks always outperformed? How have defensive sectors like utilities or consumer staples held up? To explore this, we’ll analyze the historical performance of major US market indices and various S&P 500 sectors using…

Understanding MACD with Python
|

3. Understanding MACD with Python

Welcome back to our series on Python for Technical Indicators! After covering Moving Averages and the Relative Strength Index (RSI), we’ll now explore another popular momentum indicator: Moving Average Convergence Divergence (MACD). Moving Average Convergence Divergence (MACD) is a popular trend-following momentum indicator. It gets its name because it tracks the relationship between a faster and a…

US earnings during recession
|

Understanding US Corporate Earnings During Recessions

Economic recessions stir uncertainty, impacting everything from household budgets to corporate bottom lines. But how exactly do US companies fare when the economy contracts? Understanding the historical relationship between recessions and corporate earnings can provide valuable insights for investors, business leaders, and anyone interested in the economy’s pulse. This article delves into the historical performance…

Understanding the Market Trends of Humanoids
|

Understanding the Market Trends of Humanoids

The world of robotics is entering a fascinating new phase. Humanoid robots – machines designed to mimic human form and movement – are stepping out of science fiction and research labs into the real world. As of early 2025, this market is buzzing with technological breakthroughs, intense competition, and significant financial interest. For anyone following…

RSI with Python
|

2. Mastering the Relative Strength Index (RSI) with Python

In the dynamic world of financial markets, technical indicators are indispensable tools for traders and analysts seeking to understand market sentiment and predict potential price movements. Our ongoing series exploring Python for finance now delves into another cornerstone indicator: the Relative Strength Index (RSI). This powerful momentum oscillator helps gauge the speed and persistence of price…

Isomorphic Labs: Can AI Drug Discovery Help Alphabet's (GOOGL) Next Growth Phase?
|

Isomorphic Labs: Can AI Drug Discovery Help Alphabet’s (GOOGL) Next Growth Phase?

Alphabet (GOOGL), the tech behemoth behind Google, is constantly seeking new frontiers for growth. While search, cloud, and advertising remain core pillars, its “Other Bets” segment holds ventures with potentially transformative impacts such as Waymo. One of the most intriguing is Isomorphic Labs, an AI-first company aiming to revolutionize the world of drug discovery. What…

Beta neutral with Python
|

6. Achieving Beta Neutrality in Your Investment Portfolio with Python

Beta neutrality is a powerful risk management strategy that can help protect your investments from broad market movements. In this article, I’ll walk you through how to analyze and neutralize the beta of a portfolio using Python, complete with code examples you can adapt for your own investments. What is Beta Neutrality?  Beta neutrality is…

Technical indicators Python
|

1. Technical indicators with Python – Moving Averages

In our series on Python for finance, we’ve covered portfolio construction , risk management , backtesting , and optimization . Now, we’ll explore how to use Python to implement technical indicators, starting with moving averages. Disclaimer: This article was drafted with the assistance of artificial intelligence and reviewed by the editor prior to publication to ensure…

5. Python Portfolio Management: Building a Backtesting Framework
|

5. Python Portfolio Management: Building a Backtesting Framework

Welcome to the fifth article in our Python Portfolio Management series! So far, we’ve covered the basics of portfolio management, building efficient frontiers, implementing risk management techniques, and calculating beta and dollar sensitivity. Today, we’ll explore how to build a backtesting framework to evaluate the performance of your investment strategies using Python. Backtesting is a…

Measuring Portfolio Sensitivity with Beta and Dollar Delta using Python
|

4. Measuring Portfolio Sensitivity with Beta and Dollar Delta using Python

Understanding how your portfolio moves with the market—or against it—is key to managing risk and return effectively. In this post, we’ll dive into two powerful metrics using Python: Beta, which measures your portfolio’s sensitivity to market movements, and Dollar Delta, which quantifies the dollar impact of those movements. We’ll also calculate portfolio volatility and market correlation for…