jkisolo.com

Experimenting with ChatGPT-Generated Trading Portfolios: Insights

Written on

Chapter 1: Introduction to the Experiment

A couple of weeks ago, I initiated a groundbreaking experiment focused on designing, refining, and implementing automated trading strategies created by ChatGPT. The approach was straightforward: instruct OpenAI to develop a potentially profitable trading strategy, then enhance these strategies using genetic algorithms. In this update, we will analyze the performance of these portfolios over time.

For the initial report on these AI-Generated portfolios, refer to the article: I launched 5 different AI-Generated Portfolios into the market. Here's what transpired over the last week.

Section 1.1: Portfolio Performance Overview

So, how have our portfolios fared?

Buy and Hold SPY Strategy

The stock market has seen considerable volatility in recent weeks, with the S&P 500 dropping by 3%.

Experiment: Buy and Hold SPY

Surprisingly, the unrefined ChatGPT portfolio delivered the best results by a significant margin. The strategies employed were leveraged bullish approaches, and given the current bearish market conditions, the portfolio that didn’t initiate any trades outperformed the others.

Experiment: GPT-Generated Portfolio

While it might be tempting to conclude that ChatGPT possesses exceptional trading acumen, this is not the case. The foundational strategy produced by ChatGPT contains parameters that are highly improbable to succeed under normal circumstances. Nonetheless, it’s amusing to note that the untouched GPT-Generated Portfolio achieved the best outcome.

Backtest Performance of GPT-Generated Portfolio Over 5 Years

Next, we have the "One and Done Optimized Portfolio," which was optimized only once at the experiment's inception. This portfolio performed reasonably well, with a loss of about 6% in the past two weeks.

Experiment: One and Done Optimization

Moving on to the Sliding Window Optimized Portfolio, which undergoes weekly re-optimizations. For each new iteration, we adjust the start and end dates. Unfortunately, this portfolio did not perform well, resulting in a loss exceeding $1,000 in the last two weeks.

Experiment: Sliding Window Optimization

This outcome is notably worse than simply holding TQQQ, the asset this portfolio trades.

Buy and Hold TQQQ Performance

Finally, we have the Expanding Window Optimized Portfolio, which operates similarly to the sliding window version. The key difference is that the expanding window portfolio maintains a constant start date while incrementing the end date with each optimization. This portfolio performed the poorest, incurring even greater losses than the sliding window approach.

Experiment: Expanding Window Optimization

These early results provide us with some intriguing insights.

Psst! This portfolio was initially shared on Aurora's Insights. Subscribe if you’re keen on AI, Finance, and their intersection.

Section 1.2: Key Lessons Learned

Risk Management Considerations

A critical factor I overlooked while selecting the new optimized portfolio was risk management. The optimization process produces a variety of high-performing portfolios. Some may yield higher returns but with increased risk, while others might offer lower returns with reduced drawdowns. Initially, my focus was on raw gains, leading to the selection of portfolios that heavily invested in TQQQ—a highly volatile triple-leveraged stock. This strategy works well in a bullish market but fails catastrophically in bearish conditions, as evidenced by our results.

In retrospect, a more balanced portfolio akin to the One and Done Optimization Portfolio would have provided better options during both bullish and bearish market phases.

Choosing the Right Fitness Function

During the optimization, I emphasized the Sharpe ratio, Sortino ratio, and overall percentage change. Although this approach is valid, it caused me to overlook the potential drawdown of certain portfolios. In hindsight, evaluating both maximum and average drawdown could have led us to select a less risky option. In the next round of optimization, I considered drawdowns more carefully and intentionally chose portfolios with lower risk profiles.

Replacing the Sliding Window Portfolio

Updates to the Optimization Engine

We’ve also made improvements to the optimization process by resetting the initial positions in the portfolio. NexusTrade aims for maximum configurability, so we’ve enhanced the process by including various options for initial positions, ranging from random placements to retaining current positions.

Bug Fixes 🐛

Initially, there was a bug affecting the optimization of compound indicators, which prevented correct crossover and mutation operations. This issue has now been resolved.

NexusTrade Referral Program

Our optimization engine is a standout feature of NexusTrade but requires substantial computational resources. Therefore, we’re gradually rolling it out to a select group of power users on the platform.

Want early access? Follow these steps:

  1. Confirm your email on the profile page.
  2. Invite friends using your unique referral code.
  3. Ensure your friends confirm their email addresses.
  4. Email us at [email protected] to request early access.

What rewards can you expect? They are remarkable!

  • Invite 2 friends for 1 week of access 😲
  • Invite 5 friends for 1 month of access 😱
  • Invite 15 friends for 6 months of access 💀
  • Invite more than 15 for a special invitation from Austin Starks, the creator of NexusTrade 🥳

Referring friends is the sole method to gain access to these premium features for FREE.

Go to your NexusTrade Profile

Chapter 2: Conclusion and Future Directions

While it's premature to draw definitive conclusions from these findings, we have gleaned valuable insights regarding the effectiveness of ChatGPT-generated portfolios. Key lessons around risk management and fitness function selection will inform our next experimental phase.

Thank you for reading! Stay tuned for further updates on these portfolios. If you're interested in leveraging AI for financial applications, visit NexusTrade today!

Exploring the potential of ChatGPT in generating trading strategies for maximum profit.

A comprehensive guide on how to utilize ChatGPT for instructional design and strategic planning.

Share the page:

Twitter Facebook Reddit LinkIn

-----------------------

Recent Post:

The Unbelievable Story of a Teen's Backyard Nuclear Reactor

A teenager's obsession leads to a backyard nuclear reactor, raising concerns about safety and oversight.

Embracing Failures: How I Learned to Appreciate My Mistakes

Discover how embracing failures can lead to personal growth and understanding in life and relationships.

Fascination with UFOs: America's Cultural Craze in the 1950s

Explore how UFO sightings in the 1950s captivated America, fueling a cultural obsession that persists today.

# Exploring the Intricacies of Ketamine and Its Impact on the Brain

An in-depth look at ketamine's effects on the brain, its therapeutic potential, and the science behind its use in mental health treatment.

Secrets to Staying Young: Andy Wilkinson's Six Principles

Discover how Andy Wilkinson, a 60-year-old grandfather, maintains his youthful vitality through six key principles.

Understanding the Clathrate Gun Hypothesis: Methane's Risks

Explore the Clathrate Gun Hypothesis and the implications of methane release on climate change.

# Reflecting on Normality: The Shared Human Experience

A reflection on the fragility of human ego and the shared experiences that connect us all, despite our differences.

Mastering the 3-Day Fast: Insights and Experiences

Explore the benefits and process of a 3-day fast, inspired by Tim Ferriss, with insights and personal experiences.