DGM Bollinger Bands for Mean Reversion or Momentum Trending

DGM Payment - SOLUSDT BB EMA 4H

The Bollinger Bands indicator is a powerful tool used in both mean reversion and momentum trading strategies. By measuring the volatility of the market, it creates a band around a moving average that can indicate overbought or oversold conditions, as well as the strength of a trend.

1. Mean Reversion Strategy:

  • Idea: Prices that deviate far from the moving average (i.e., touch or breach the bands) will revert to the mean (the moving average).
  • Strategy: If the price touches or breaks below the lower Bollinger Band, it’s a potential buy signal (oversold); if it touches or breaks above the upper band, itโ€™s a potential sell signal (overbought).

2. Momentum Strategy:

  • Idea: When prices break out of the Bollinger Bands, it may indicate a strong trend is developing.
  • Strategy: A breakout above the upper band indicates bullish momentum (buy signal), and a breakout below the lower band indicates bearish momentum (sell signal).

Python Implementation of Bollinger Bands for Both Strategies:

Here’s how you can calculate and use Bollinger Bands for both Mean Reversion and Momentum Trading strategies.

import pandas as pd
import numpy as np

1. Bollinger Bands Calculation

def calculate_bollinger_bands(df, period=20, std_dev=2):
df[‘MovingAverage’] = df[‘Close’].rolling(window=period).mean()
df[‘StdDev’] = df[‘Close’].rolling(window=period).std()

df['UpperBand'] = df['MovingAverage'] + (std_dev * df['StdDev'])
df['LowerBand'] = df['MovingAverage'] - (std_dev * df['StdDev'])

return df

2. Mean Reversion Strategy

def mean_reversion_strategy(df):
# Buy when price touches or falls below the lower Bollinger Band
df[‘MeanReversionBuySignal’] = np.where(df[‘Close’] <= df[‘LowerBand’], ‘Buy’, None)

# Sell when price touches or rises above the upper Bollinger Band
df['MeanReversionSellSignal'] = np.where(df['Close'] >= df['UpperBand'], 'Sell', None)

return df

3. Momentum Trading Strategy

def momentum_trading_strategy(df):
# Buy when price breaks above the upper Bollinger Band (momentum breakout)
df[‘MomentumBuySignal’] = np.where(df[‘Close’] > df[‘UpperBand’], ‘Buy’, None)

# Sell when price breaks below the lower Bollinger Band (momentum breakdown)
df['MomentumSellSignal'] = np.where(df['Close'] < df['LowerBand'], 'Sell', None)

return df

Example to save to SQLite (same as before)

import sqlite3

def save_dataframe_to_sqlite(df, db_name=’ZScorePI.db’, table_name=’bollinger_data’):
with sqlite3.connect(db_name) as conn:
df.to_sql(table_name, conn, if_exists=’append’, index=False)

Usage Example:

Assuming df is your price DataFrame with ‘Open’, ‘High’, ‘Low’, ‘Close’ columns

def integrate_bollinger_bands(df):
# Calculate Bollinger Bands
df = calculate_bollinger_bands(df)

# Apply Mean Reversion Strategy
df = mean_reversion_strategy(df)

# Apply Momentum Trading Strategy
df = momentum_trading_strategy(df)

# Save to SQLite (if needed)
save_dataframe_to_sqlite(df)

return df

Fetch your data, then pass the data

Explanation:

  1. Bollinger Bands: Calculated with a moving average and standard deviation over a defined period (usually 20 periods), with UpperBand and LowerBand representing volatility thresholds.
  2. Mean Reversion Strategy: The logic identifies signals where the price touches or moves outside the lower band for a buy signal (indicating oversold conditions) and outside the upper band for a sell signal (indicating overbought conditions).
  3. Momentum Strategy: The logic here captures when the price breaks out of the Bollinger Bandsโ€”above the upper band for a buy signal (indicating bullish momentum) and below the lower band for a sell signal (indicating bearish momentum).
  4. Saving to SQLite: The resulting DataFrame is stored in an SQLite database.

Parameters You Can Adjust:

  • period=20: This is the number of periods over which the moving average and standard deviation are calculated. You can experiment with different values depending on your strategy.
  • std_dev=2: This is the number of standard deviations that defines the width of the Bollinger Bands. Standard practice uses 2 standard deviations, but you may adjust this to increase or decrease the sensitivity.

Integration:

  • You can further customize this strategy to incorporate it into your existing trading algorithms by integrating it with other signals (such as RSI or SuperTrend) to confirm trades.
  • Add filtering or more complex logic to refine your buy/sell conditions.

DGM SuperTrend, Open Interest, RSI

ไบบ็‰ฉๅˆ้›†ใ€ๅไธ‰้‚€็ฌฌไบŒๅญฃ Thirteen Talks Season2ใ€‘
DGM Payment - SOLUSDT SuperTrend 30m

SuperTrend, Open Interest, and RSI. Each of these indicators can provide valuable insights when used in technical analysis for trading. Here’s a brief overview:

  1. SuperTrend:
    • A trend-following indicator that can help identify the general market direction and potential buy or sell signals. It typically consists of a “trend line” overlaid on the price chart and changes direction when a certain threshold is reached.
    • Formula: SuperTrend is usually calculated based on the Average True Range (ATR). The basic idea is to compute a baseline and adjust it with a multiple of the ATR.

def calculate_supertrend(df, period=7, multiplier=3):
df[‘ATR’] = df[‘TrueRange’].rolling(window=period).mean()
df[‘UpperBand’] = ((df[‘High’] + df[‘Low’]) / 2) + (multiplier * df[‘ATR’])
df[‘LowerBand’] = ((df[‘High’] + df[‘Low’]) / 2) – (multiplier * df[‘ATR’])

df['SuperTrend'] = np.where(df['Close'] > df['UpperBand'], df['LowerBand'], df['UpperBand'])
return df

Open Interest:

  • Refers to the total number of open contracts for a particular futures or options market. It can help traders understand the strength of a trend, as increasing open interest can indicate that new money is flowing into the market, while decreasing open interest may indicate profit-taking or trend reversal.

Relative Strength Index (RSI):

  • A momentum oscillator that measures the speed and change of price movements. The RSI oscillates between 0 and 100, typically using 14 periods. Readings above 70 are considered overbought, and readings below 30 are considered oversold.
  • Formula: RSI = 100 – [100 / (1 + RS)], where RS is the average gain of the up periods during the specified time frame divided by the average loss.

def calculate_rsi(df, period=14):
delta = df[‘Close’].diff(1)
gain = np.where(delta > 0, delta, 0)
loss = np.where(delta < 0, -delta, 0)

avg_gain = pd.Series(gain).rolling(window=period).mean()
avg_loss = pd.Series(loss).rolling(window=period).mean()

rs = avg_gain / avg_loss
rsi = 100 - (100 / (1 + rs))
df['RSI'] = rsi
return df

Mean Reversion Strategy Using Z-Score on Premium Index

DGM Payment - SOLUSDT Mean Reversion 30m

Mean Reversion strategies are based on the idea that prices and other financial metrics tend to revert to their historical mean or average level over time. Using the Z-Score in a mean reversion strategy helps identify when the premium index is significantly deviating from its historical mean, signaling potential trading opportunities.

Mean Reversion Strategy Using Z-Score on Premium Index

Hereโ€™s a step-by-step guide to implementing a mean reversion strategy using the Z-Score of the premium index:

1. Fetch and Prepare Historical Data:

Retrieve historical premium index data from your source (API, database, etc.).

2. Calculate Mean and Standard Deviation:

Compute the mean and standard deviation of the historical premium index values.

3. Calculate Z-Score:

Determine the Z-Score for the current premium index value using the historical mean and standard deviation.

4. Define Trading Signals:

Based on the Z-Score, create rules to generate buy or sell signals:

  • Buy Signal: When the Z-Score is below a certain threshold (e.g., -2), indicating the premium index is significantly below the mean and might revert upwards.
  • Sell Signal: When the Z-Score is above a certain threshold (e.g., 2), indicating the premium index is significantly above the mean and might revert downwards.

Z-Score of Premium Index

ไบบ็‰ฉๅˆ้›†ใ€ๅไธ‰้‚€็ฌฌไบŒๅญฃ Thirteen Talks Season2ใ€‘
DGM Payment - SOLUSDT ZScore Premium Index 30m

The Z-Score of the Premium Index can help measure how far the current premium index value is from its mean in terms of standard deviations. This can be particularly useful in trading to identify extreme values or deviations from the norm, which may signal potential trading opportunities.

Calculating Z-Score of Premium Index

Letโ€™s assume you have historical premium index data and want to calculate the Z-Score for the most recent value.

Moving Average Convergence Divergence (MACD) Histogram

DGM Payment - SOLUSDT MACD 30m

Moving Average Convergence Divergence (MACD) is a popular technical indicator used to gauge price momentum and trends. It consists of three key components:

  1. MACD Line: The difference between the 12-period and 26-period exponential moving averages (EMAs).
  2. Signal Line: A 9-period EMA of the MACD line.
  3. MACD Histogram: The difference between the MACD line and the signal line. It visually shows the momentum of price changes.

Index Price and MACD:

Combining Index Price with the MACD histogram can give you insights into price trends for broader market movement, helping confirm buy/sell decisions.

Mark Price (Implied Volatility – IV)

DGM Payment - SOLUSDT Stochastic 30m

Mark price and implied volatility (IV) are both crucial components in trading, especially for derivatives like options or futures. However, they represent different aspects of the market:

  • Mark Price: The mark price is an estimated fair price used in trading to prevent market manipulation. It typically reflects a more accurate, market-averaged price and is used to calculate liquidation prices in margin trading. Exchanges often calculate it by factoring in the last traded price, index price, and sometimes a time-weighted average price (TWAP).
  • Implied Volatility (IV): Implied volatility is a forward-looking metric that represents the market’s expectations for price fluctuations (volatility) over a certain period. In the context of options, IV is derived from the price of the option itself, reflecting the marketโ€™s view on the likelihood of price swings in the underlying asset. Higher IV indicates more uncertainty or expected movement, while lower IV suggests less expected volatility.

In trading, both mark price and IV play essential roles:

  • Mark price ensures fairness and stability in margin trading.
  • Implied volatility is key for traders assessing risk and potential returns, especially in options trading.

Stochastic Oscillator:

The Stochastic Oscillator ranges from 0 to 100. A reading above 80 typically indicates overbought conditions, while a reading below 20 indicates oversold conditions.

Trading Signals:

  • Buy: When the Stochastic Oscillator shows oversold conditions (i.e., %K < 20) and implied volatility is relatively low (< 30%), suggesting that the market is undervaluing the asset and there may be a bounce. If the close price is below the mark price, it further strengthens the buy signal.
  • Sell: When the Stochastic Oscillator shows overbought conditions (i.e., %K > 80) and implied volatility is high (> 30%), signaling that the market might be overpricing the asset, making it a good time to sell.
  • Hold: When neither condition is met, the strategy holds the position.

Trading Strategy Example:

Weโ€™ll combine the following elements into a strategy:

  1. Mark Price: For ensuring fair liquidation or entry points.
  2. Implied Volatility (IV): To gauge expected volatility and use it in deciding options pricing or futures positioning.
  3. Stochastic Oscillator: To identify overbought/oversold conditions and potential price reversals.

็ฆๅปบ่ˆฐๅฎž็Žฐๅคšไธช้‡ๅคง็ช็ ด ๆปก่ฝฝๆŽ’ๆฐด้‡่พพ80,000ไฝ™ๅจ

The Shandong is China’s first domestically built aircraft carrier, and it is a sizable and advanced vessel. Here are its key specifications:
Length: Approximately 315 meters (1,033 feet)
Beam (Width): About 75 meters (246 feet) at its widest point
Displacement: Around 70,000 tons (full load)
The Shandong is designed with a ski-jump ramp to launch aircraft, similar to China’s other carrier, the Liaoning. It primarily operates J-15 fighter jets, helicopters, and other support aircraft. Though smaller than the U.S. Navy’s supercarriers, it is still a significant platform for China’s naval capabilities.
The Fujian is China’s third and most advanced aircraft carrier, representing a significant step forward in the country’s naval capabilities. Here are the key specifications for the Fujian:
Length: Approximately 320 meters (1,050 feet)
Beam (Width): Around 78 meters (256 feet)
Displacement: Estimated at 80,000 to 100,000 tons (full load)
The Fujian is China’s first carrier equipped with electromagnetic catapults (similar to the U.S. Navy’s technology), allowing for faster and more efficient aircraft launches compared to the ski-jump ramps used on earlier carriers. This places it closer in capability to the U.S. Navy’s supercarriers.
In terms of size, the Fujian is roughly comparable to the U.S. Navy’s Gerald R. Ford-class carriers.
DGM Payment - SOLUSDT Stochastic 30m

KDJ Indicator is a technical analysis tool derived from the Stochastic Oscillator, used to determine market trends and potential turning points. It adds an extra dimension (the J line) to the traditional stochastic indicator, making it more sensitive to market movements. Hereโ€™s how it works:

  1. K Line:
    • The primary moving average in the KDJ indicator, similar to the %K line in the Stochastic Oscillator. It represents the relative position of the current price within the high-low range over a specified period.
  2. D Line:
    • The secondary moving average, similar to the %D line in the Stochastic Oscillator. The D line is a smoothed version of the K line and is used as a signal line to identify buy or sell signals. When the K line crosses above the D line, itโ€™s a bullish signal, and when it crosses below, itโ€™s bearish.
  3. J Line:
    • The unique component of KDJ. The J line represents the divergence of the K and D lines, and it can move outside the range of 0 to 100. Itโ€™s more volatile and can sometimes give early buy or sell signals by predicting overbought and oversold conditions more aggressively.

Interpretation:

  • Buy Signal: When the K line crosses above the D line, especially when the J line rises sharply, itโ€™s considered a bullish signal.
  • Sell Signal: When the K line crosses below the D line and the J line drops, itโ€™s considered a bearish signal.
  • Overbought/Oversold: Similar to the Stochastic Oscillator, values above 80 may indicate an overbought market, and values below 20 may indicate an oversold market.

The J line makes the KDJ more responsive to price changes compared to traditional oscillators, but it also increases the likelihood of false signals due to its sensitivity. Traders often combine KDJ with other indicators to confirm trends.

DGM Data Miner Based On The Profit Factor

Z-score (Zscore)

A statistical measurement that describes a value’s relationship to the mean of a group of values. In trading, it’s used to determine how far away a particular price is from the average price, measured in terms of standard deviations. A high Z-score may indicate an overbought condition, while a low Z-score may indicate an oversold condition.

Open Interest (OI)

The total number of outstanding derivative contracts (like futures or options) that have not been settled. Open interest gives a measure of market activity, where an increase suggests new capital entering the market, and a decrease indicates positions are being closed.

Relative Strength Index (RSI)

A momentum oscillator used to measure the speed and change of price movements. RSI ranges from 0 to 100 and is typically used to identify overbought (above 70) or oversold (below 30) conditions.

Simple Moving Average (SMA) and Exponential Moving Average (EMA)

SMA: The average price of a security over a specific period, calculated by summing up closing prices and dividing by the number of periods.
EMA: A type of moving average that gives more weight to recent prices, making it more responsive to new information.

Volume Weighted Average Price (VWAP)

The ratio of the value traded (price multiplied by volume) to the total volume over a particular time frame. VWAP is used to gauge the average price of a security over a period and is often used as a benchmark by institutional investors to trade near the market’s average.

SuperTrend

A trend-following indicator that works well in trending markets. It is plotted above or below the price based on the current trend. The SuperTrend indicator is based on the ATR (Average True Range) and helps identify possible trend reversals.

Market Trend

Refers to the overall direction in which the market or a specific asset is moving. Trends can be upward (bullish), downward (bearish), or sideways (ranging). Market trend indicators help traders identify the direction and strength of trends.

Moving Average Convergence Divergence (MACD) Histogram

A trend-following momentum indicator that shows the relationship between two moving averages of a securityโ€™s price. The histogram represents the difference between the MACD line and the signal line, showing changes in momentum.

Stochastic Oscillator

A momentum indicator that compares the closing price of a security to a range of its prices over a certain period. The stochastic oscillator is plotted as two lines, and it oscillates between 0 and 100, with readings above 80 indicating overbought conditions and below 20 indicating oversold conditions.

Index Price

The weighted average of prices from several different exchanges or sources. This is commonly used to provide a more reliable reference price for derivative contracts (like futures) or a fairer market value.

Mark Price (Implied Volatility – IV)

The mark price is used to prevent unfair liquidations and is calculated based on a combination of the index price and funding rates. Implied volatility (IV) is a critical factor for options pricing and represents the expected volatility of the underlying asset.

Premium Index

The difference between the futures price and the spot price of an asset. It indicates whether the market is in contango (futures price above spot price) or backwardation (futures price below spot price).

Klines (Candlestick Data)

A graphical representation of price movements over time, typically displayed as candlesticks. Each candlestick shows four price points: the open, high, low, and close. Klines are widely used in technical analysis to analyze market trends and patterns.

SMA vs. EMA

In cryptocurrency trading, both the Simple Moving Average (SMA) and the Exponential Moving Average (EMA) are widely used technical analysis tools that help traders analyze price trends and make informed trading decisions. Here’s a breakdown of both indicators, including their differences and use cases in cryptocurrency trading:

Simple Moving Average (SMA)

  1. Definition:
    • The Simple Moving Average (SMA) is the arithmetic average of a cryptocurrency’s price over a specified period. It is calculated by adding the closing prices over a given period and dividing the sum by the number of periods.
    • For example, a 10-day SMA would add the closing prices of the last 10 days and divide by 10.
  2. Characteristics:
    • Lagging Indicator: Since SMA gives equal weight to all data points, it tends to lag behind the current market price, making it slower to react to recent price changes.
    • Simplicity: The calculation is straightforward, making it easy to understand and use.
  3. Use Cases in Crypto:
    • Identifying Trends: SMAs are useful for identifying long-term trends. For example, a 50-day or 200-day SMA is often used to analyze long-term price movements.
    • Support and Resistance: Traders use SMA lines as dynamic support or resistance levels. The price often “bounces” off these lines.
    • Crossover Strategies: A popular strategy is to use two SMAs of different periods (e.g., 50-day and 200-day) and watch for crossovers as buy/sell signals.

Exponential Moving Average (EMA)

  1. Definition:
    • The Exponential Moving Average (EMA) is a type of moving average that gives more weight to recent prices, making it more responsive to recent price changes than the SMA.
  2. Characteristics:
    • More Responsive: The EMA reacts more quickly to price changes, which can be beneficial in volatile markets like cryptocurrencies.
    • Emphasis on Recent Data: Because it gives more weight to recent prices, EMA is more effective in capturing short-term trends.
  3. Use Cases in Crypto:
    • Short-Term Trading: EMA is favored by short-term traders and scalpers who need to quickly adapt to price changes.
    • Trend Reversals: The EMA can provide earlier signals of potential trend reversals compared to the SMA.
    • Crossover Strategies: Similar to SMAs, traders use EMA crossovers (e.g., 12-day and 26-day EMAs) to identify buy/sell opportunities. The Moving Average Convergence Divergence (MACD) indicator is based on this principle.

Key Differences Between SMA and EMA

FeatureSMAEMA
CalculationSimple arithmetic meanWeighted calculation, emphasizing recent data
Sensitivity to Price ChangesLess sensitive, slower to reactMore sensitive, faster to react
Use in TradingBetter for identifying long-term trendsBetter for capturing short-term movements
LagHigher lag due to equal weight on all dataLower lag due to more weight on recent data
ApplicationsLong-term trend analysis, support/resistanceShort-term trading, trend reversals, crossovers

Choosing Between SMA and EMA in Crypto Trading

  • Market Conditions:
    • In a trending market, both SMA and EMA can be useful, but the EMA might provide earlier signals for entering or exiting trades.
    • In a ranging market, SMA may offer more reliable support and resistance levels due to its smoother line.
  • Trading Strategy:
    • For long-term investing, SMAs are generally more suitable.
    • For short-term trading or day trading, EMAs are often preferred due to their responsiveness to price changes.
  • Volatility:
    • Cryptocurrencies are known for their high volatility. Traders who wish to react quickly to price changes might prefer the EMA over the SMA.

Conclusion

Both SMA and EMA have their unique advantages and are valuable tools in cryptocurrency trading. The choice between them depends on the trader’s strategy, time frame, and market conditions. For a balanced approach, many traders use both indicators together to confirm trends and signals.

Real Estate vs. Stock Market

Python Reveals the Best Investment!

To evaluate the performance of real estate using VNQ (Vanguard Real Estate ETF), we can consider its historical returns over the past 10 years and compare them with a broad stock market index like the S&P 500.

1. What is VNQ (Vanguard Real Estate ETF)?

VNQ is an exchange-traded fund (ETF) that seeks to track the performance of the MSCI US Investable Market Real Estate 25/50 Index. This index includes a diverse range of U.S. real estate investment trusts (REITs) and real estate-related companies.

REITs are companies that own, operate, or finance income-generating real estate across various property sectors, including residential, commercial, and industrial properties. Because VNQ invests in a broad range of REITs, its performance reflects the overall health of the U.S. real estate market, as well as trends in interest rates and economic conditions.

2. VNQ Performance Over the Past 10 Years

To understand how VNQ has performed, let’s look at its approximate returns over the past decade:

  • 10-Year Return: From 2013 to 2023, VNQ has provided an average annual return of around 6% to 8%. This includes both price appreciation and dividend payouts (REITs typically pay higher dividends due to their structure, which requires them to distribute most of their taxable income to shareholders).
  • Total Return: The total return (including reinvested dividends) of VNQ over the past decade has been approximately 80% to 100%, depending on the specific time period and market conditions. This means an initial investment of $10,000 in VNQ in 2013 would have grown to approximately $18,000 to $20,000 by 2023, assuming dividends were reinvested.

3. Comparison with the Stock Market (S&P 500)

When comparing VNQ’s performance with the broader stock market, such as the S&P 500:

  • S&P 500 10-Year Return: Over the same period, the S&P 500 has returned approximately 10% to 12% annually, resulting in a total return of about 200% to 250%. This means a $10,000 investment in the S&P 500 in 2013 would have grown to around $30,000 to $35,000 by 2023, assuming dividends were reinvested.

4. Factors Affecting VNQ Performance

Several factors have influenced VNQ’s performance over the past decade:

  • Interest Rates: REITs are sensitive to changes in interest rates. Rising interest rates can lead to higher borrowing costs for REITs and can make their dividend yields less attractive relative to safer bonds, potentially leading to price declines. Conversely, lower interest rates generally benefit REITs by reducing borrowing costs and making their dividends more attractive.
  • Economic Conditions: The performance of VNQ is closely tied to the overall health of the real estate market and the broader economy. Economic growth tends to support demand for commercial and residential properties, while recessions can negatively impact occupancy rates and rental income.
  • Dividend Yield: VNQ typically offers a higher dividend yield compared to the S&P 500, providing a steady income stream, which can be attractive to income-focused investors.

5. Conclusion: VNQ vs. Stock Market

  • VNQ (Real Estate): Provided moderate returns over the past decade, with a focus on income through dividends. Performance has been solid but generally lower than the S&P 500. REITs and VNQ can provide portfolio diversification and an income stream, which can be beneficial during periods of low stock market returns or economic uncertainty.
  • S&P 500 (Stock Market): Outperformed VNQ in terms of total return, driven by the strong performance of technology and growth stocks, especially from 2013 to 2021. However, stocks tend to be more volatile, and their performance can vary significantly based on market conditions.

Both VNQ and the S&P 500 have their unique advantages and risks, and their performance can vary significantly based on market conditions, interest rates, and economic factors. For a balanced portfolio, some investors may choose to allocate assets to both real estate (through VNQ or other REITs) and stocks to diversify and manage risk.

To compare the profitability of real estate and the stock market over the past 10 years, let’s consider a few key points:

1. Stock Market Performance

The stock market’s performance can be measured using major indices like the S&P 500, NASDAQ, or Dow Jones Industrial Average (DJIA). Over the last decade, the stock market, particularly in the U.S., has generally experienced significant growth, driven by technology stocks and a strong post-2008 recovery period.

  • S&P 500: From 2013 to 2023, the S&P 500 has grown approximately 150% to 200%, depending on the specific time period considered.
  • NASDAQ: The NASDAQ index, heavily weighted by technology stocks, has seen even more substantial gains, potentially doubling or more over the same period.

2. Real Estate Performance

Real estate returns are generally measured through home price indices like the Case-Shiller Home Price Index in the U.S. Real estate also benefits from rental income, which can add to the total return on investment.

  • Over the past 10 years, U.S. real estate prices have also seen significant appreciation, with some markets experiencing growth rates of 50% to 100% or more.
  • The national average annual home price appreciation has typically ranged between 3% and 5%, though some high-demand areas have seen much higher rates.

3. Key Factors in Comparing Returns

  • Leverage: Real estate investments often involve leverage (mortgages), which can amplify returns on equity. For example, if an investor puts 20% down on a property and it appreciates 5% annually, the return on their cash investment can be much higher due to leverage.
  • Volatility: The stock market is generally more volatile than real estate. While stocks can experience rapid gains, they can also face sharp downturns (e.g., the COVID-19 crash in early 2020). In contrast, real estate tends to be less volatile but is also less liquid, meaning it can take longer to sell properties during downturns.
  • Liquidity: Stocks are highly liquid and can be sold quickly, whereas real estate transactions can take months to complete.
  • Costs and Taxes: Real estate involves transaction costs (closing costs, commissions, etc.) and ongoing costs (property taxes, maintenance, etc.). Stock market investments may involve brokerage fees and capital gains taxes, but these are generally lower.

4. Conclusion: Which Made More Money?

  • Stock Market: Likely outperformed real estate in terms of pure price appreciation over the last 10 years, especially considering the bull run from 2010 to 2020 and the post-COVID recovery.
  • Real Estate: While likely growing at a slower pace compared to the stock market, real estate investments with leveraged financing may have generated competitive returns, especially in high-growth urban areas or through rental income.

Ultimately, which asset class has “made more money” depends on several factors, including location, the timing of investments, leverage used, and investor strategy (e.g., buy-and-hold, value-add renovations, etc.). Both real estate and stocks have unique advantages and risks, and their performance can vary significantly based on these and other market conditions.