We can then update the prompt to add more rules, remove ambiguities, and add more examples. The end result is a robust system that rarely fails and is highly reliable.
With this being said, the number one thing I've learned from this isn't the fact that prompt engineering is important. It's also not that AI agents are surprisingly very expensive…
It’s that AI agents, when built correctly, are extremely useful for helping you accomplish complex tasks.
🔧 The system prompts in NexusTrade allow you to query for fundamentals, technical indicators, and price data at the same time. See for yourself for free.
3) AI Agents Isn’t Just For Coding. They Work For All Types of Complex Tasks (Including Trading)
When I first thought about building out agentic functionality, I didn't realize how useful it would actually be.
While I naturally knew how amazing tools like Claude Code and Cursor were for coding, I hadn't made the connection in my brain that these tools are useful for other task like trading.
Press enter or click to view image in full size An example of a complex agentic task; discussing this in the next sectionFor example, in my last agent run, I gave the AI the following task.
Look up BTC’s, ETH’s and TQQQ average price return and standard deviation of price returns and create a strategy to take advantage of their volatility. Optimize the best portfolio using percent return and sortino ratio as the objective functions. Form the analysis from data from 2021 to 2024, optimize during that period, and we’ll test it to see how it performed this year YTD
Just think about how long this would've taken you back in the day.
At the very least, if you already had a system built, this type of research plan would take you hours if not days.
- Get historical data
- Compute the metrics
- Create strategies
- Backtest them to see which are promising
- Optimize them on historical data and see which are strong out of sample
And if you didn't know how to code, you would have never been able to research this.
Now, with a single prompt, the AI does all of the work.
The process is extremely transparent. You can turn on semi-automated mode to guide the AI more directly, or let it run loose in the fully autonomous mode.
The end result is an extremely detailed report of all of the best strategies it generated.
Press enter or click to view image in full size Part of the detailed report generated by the AIYou can also see what happens in every single step, read through the thought process, and even see exactly when signals were generated, what orders were produced, and WHY.
Press enter or click to view image in full size Detailed event logging shows which conditions were triggered in a backtest and why⚡ Try it yourself: “Create a mean-reversion strategy for NVDA”
Run This Example Free — See results in ~2 minutes
This level of transparency is truly unseen in a traditional trading platform. Combined with the autonomous AI Agent, you can “vibe-build” a trading strategy within seconds, test it out on historical data, and paper-trade it to see if it truly holds up in the real world.
If it does, you can connect with Alpaca or TradeStation and execute REAL trades.
For real-trading, each trade has to be manually confirmed, allowing you to sleep at night because the AI will never execute a thousand trades without your consent.
How cool is that?
Concluding Thoughts
Building my AI stock trading agent has given me a newfound respect for companies like Cursor.
Building an agent that's actually useful is hard. Not only is it extremely expensive, but agentic systems are inherently brittle with the modern day language models.
But the rewards of a successful execution are unquantifiable.
Using my fully autonomous AI agent, I've built more successful trading strategies in a week than I've done in the past three months. I genuinely have more successful ideas than I have capital to deploy them.
Of course, deploying such an agent requires weeks of paper-trading and robustness testing, but in the short-time I’ve used it, I’ve built strategies like this which are highly profitable in backtests, robust in the validation tests, and even survived Friday’s pullback which was the market’s worst day since April.
Don’t believe me? Check out the live-trading performance yourself.
The future is so exciting that I can hardly contain myself. My first iteration of the AI Agent works and surprisingly works very well. It’ll only get more powerful as I tackle edge cases, add tools, and use better models that come out in due time.
If you're not using AI to trade, then you might be too late before long. NexusTrade is a free app with in-built tutorials, a comprehensive onboarding, and working AI agents.
The market is moving. Your competition is already using AI agents.
You have two choices:
❌ Spend weeks manually backtesting strategies like it’s 2020
✅ Use AI to research, test, and deploy in minutes
- → I’m spending $60/day on agent costs because it’s worth it
- → 270 traders created agents in just 5 days
- → The best strategies are being discovered right now
Your move: Build Your First Strategy Free or keep reading about AI while others use it.
The choice is up to you.