Explore more topics
AI trading walkthrough

I connected ChatGPT to a trading API and tested a dividend strategy

An experiment in using ChatGPT beyond chat. Research dividend growers, test a five-company allocation, and compare both recorded periods with SPY.

As of 2026-10-14

Worked strategy
Five dividend growers
Evidence status
Historical development tests; strategy and SPY curves included
Jump to a section

Follow this worked strategy

I connected ChatGPT to the NexusTrade trading API and had it research S&P 500 dividend growers and test a five-company allocation across two recorded periods. The agent operated this workflow through NexusTrade's MCP server; it did not build the integration. The 2025 test returned 44.80% against SPY at 33.99%, while the long 2014 run trailed SPY 340.90% to 419.23%. These are development tests on examined dates. Judge frozen rules on dates you have not used yet.

Follow the full journey

Step 1 of 6

Connect ChatGPT

https://nexustrade.io/api/mcp

Connect ChatGPT in the intended environment

On ChatGPT web, open Plugins → Add → Add custom MCP server. Name it NexusTrade, enter https://nexustrade.io/api/mcp and choose OAuth. Review the notice, select I understand and want to continue, then Create as a plugin. Finish NexusTrade sign-in. Open the plugin’s details and choose Try in chat.

Documented setup flow for this client
Documented setup flow for this client
What you should see

The result identifies Apple's company filing, filing date and source URL. The connection check makes no account changes.

Inspect the request

Step 2 of 6

Research the dividend-grower universe

Inspect which S&P 500 companies satisfy ten years of annual dividend increases, then rank qualifying companies by market cap. The eligible universe and actual holdings are separate records.

What you should see

A dated brief names the instrument, original sources and assumptions that matter to this strategy.

Inspect the request

The dividend strategy's universe, filter, ranking, equal weights and rebalance trigger in NexusTrade
NexusTrade's strategy display renders the exact saved dividend rules used by this recorded simulation.
Step 3 of 6

Preview the five-company allocation

Filter the S&P 500 universe for ten annual dividend increases, select the five largest qualifying companies by market cap and target equal weights. Review the saved elapsed-time trigger.

Allocation trigger
Review allocations when portfolio value equals its initial value OR at least 30 days have passed since a filled buy. This is not an exact monthly schedule.
Equal weights
Each selected company has the same weight: five qualifying companies would target 20% each before execution effects.
Execution assumptions
Fractional shares and reinvested dividends; the original stock fee was 0.1% per transaction.
What you should see

The DynamicRebalance preview retains the universe, filter, ranking, weights and filled-buy timing trigger.

Inspect the request

Portfolio value (USD)

Five dividend growers and SPY: 2025-01-02 to 2026-10-07$14.7K$8.1KLargest decline in plotted observations: 22.41%, 2025-02-13 to 2025-04-082025-01-022026-10-07
Five dividend growers 2026-10-07
$14,479.88
SPY buy and hold 2026-10-07
$13,399.03

Five dividend growers: 22.41% largest decline in plotted observations. 2025-02-13 ($10,415.39) to 2025-04-08 ($8,081.82).

Five dividend growersSPY buy and holdHistorical simulation
Recorded 2025-01-02 through 2026-10-07 dividend-grower simulation; $10,000 initial capital.
Step 4 of 6

Inspect the completed dividend tests

The recorded January 2, 2025 through October 7, 2026 test uses fractional shares, reinvested dividends and a 0.1% stock fee. Inspect the longer period below before choosing a new test window.

Strategy return
44.80%
SPY return
33.99%
Maximum drawdown
24.33%
Strategy fees
$24.15
What you should see

The shorter simulation returned 44.80% versus SPY 33.99%. The longer period returned 340.90% versus SPY 419.23%.

Inspect the request

Step 5 of 6

Observe Five dividend growers in paper trading

Observe which five companies the unchanged dynamic pipeline selects now. Inspect the actual rebalance and fill history when the initial-value or 30-day-since-filled-buy trigger is satisfied.

Inspect before accepting an order
Eligible universe versus selected holdings, equal-weight targets, fractional fills, dividend reinvestment and actual trigger timing.
What you should see

Your paper portfolio has its own ID, start date, schedule and dated history. These forward observations begin with your own run.

Inspect the request

Step 6 of 6

Review Five dividend growers for live deployment

Review the live target for fractional equity support, universe eligibility and reinvestment settings before accepting the copied dynamic allocation.

Open the live deployment walkthrough
Account and instrument review
Fractional equity support, each selected company, target weights, buying power, dividend policy and elapsed-time trigger.
What you should see

The review identifies the target account, supported instruments, rule changes and approval settings before confirmation.

Inspect the request

Follow the ChatGPT session

This guide runs on NexusTrade's MCP server. ChatGPT operated the trading workflow below, from connection to the live review. The agent's role here is operating the workflow through that server.

The table names the tool call, the approval checkpoint, and the artifact to keep at each stage. Placeholders such as a returned draft ID stand for values your own run returns. This page records no IDs from anyone else's run.

The recorded anchor is the two recorded periods below. The long 2014 run returned 340.90% against SPY at 419.23%.

Show the table · 6 rows, 4 columns

Scroll sideways to compare all columns. Select a heading to sort.

Connect ChatGPTsec_edgar list_filings for AAPL with limit 1Public read only. No portfolios, ingested filings, or changes.Filing company, form, date, and source URL
Research the universeS&P 500 dividend-growth coverage and market-cap rankingEligible companies stay separate from the selected five.Dated universe brief
Draft the rulesbuild_portfolio preview, then one create_portfolioApprove the rules before saving. Stop before paid tests.Returned draft ID with a readback
Test historyHistorical test from 2025-01-02 to 2026-10-07 at $10,000 with an SPY baselineShow the request and estimated cost before submission.Holdings after each filled rebalance
Trade on paperSeparate paper-only deployment at $10,000Show the plan. Verify the portfolio is paper.Running paper ID and dated history
Review liveLive deployment review against the actual accountLive trading stays unchanged until explicit confirmation.Reviewed plan, or a stop report when unsupported

Where ChatGPT stops for approval

Each consequential action in this guide waits at an approval gate. The agent previews first and acts only after explicit approval.

The rules preview returns valid and issues before anything is saved. The agent resolves problems and re-previews instead of saving a candidate with open problems.

  1. Approve the rules before the agent saves them

    The agent previews the configuration with build_portfolio and shows entry, sizing, exits, valid, and issues. It saves with create_portfolio only after approval and reads the returned draft back.

  2. Approve the test cost before the agent submits once

    Historical tests are paid runs. The agent shows the exact request and estimated cost for approval before submitting once, then polls the same returned test ID until complete.

  3. Approve the paper plan and verify it is paper

    The paper deployment is a separate portfolio with its own ID. The agent shows the plan for approval, verifies the deployment type, and leaves brokerage accounts unchanged.

  4. Confirm the live move explicitly, or nothing moves

    The agent reads the actual account and broker capabilities first and keeps live trading unchanged until explicit confirmation. It reports an unsupported instrument or action and stops.

Inspect the longer recorded period

Portfolio value (USD)

Five dividend growers and SPY: 2014-01-02 to 2026-10-07$51.9K$8.2KLargest decline in plotted observations: 22.80%, 2014-11-21 to 2015-08-252014-01-022026-10-07
Five dividend growers 2026-10-07
$44,089.69
SPY buy and hold 2026-10-07
$51,922.83

Five dividend growers: 22.80% largest decline in plotted observations. 2014-11-21 ($10,674.15) to 2015-08-25 ($8,240.24).

Five dividend growersSPY buy and holdHistorical simulation
Inspect the 2014 through 2026 curve
Strategy return
340.90%
SPY return
419.23%
Maximum drawdown
24.16%
Strategy fees
$331.98

Recorded historical simulation: Jan 02, 2014 to Oct 07, 2026. Initial capital was $10,000.

These examined periods are development evidence. Historical S&P 500 membership at each date is not established by this receipt; the 2014 run is a retrospective simulation rather than proof of an investable selection.

The long-period chart pairs the allocation with SPY buy and hold on the same $10,000 starting basis. Historical S&P 500 membership at each date remains an open scope limit in the recorded receipt.

Compare the other recorded periods

Scale: 0 to 340.9 % · zero baseline

Strategy return

  • 2025-01-0244.80%
  • 2022-01-03134.94%
  • 2014-01-02340.90%

Scale: 0 to 419.23 % · zero baseline

SPY baseline

  • 2025-01-0233.99%
  • 2022-01-0373.13%
  • 2014-01-02419.23%

Scale: 0 to 24.33 % · zero baseline

Native max drawdown

  • 2025-01-0224.33%
  • 2022-01-0324.16%
  • 2014-01-0224.16%

Scale: 0 to 422 · zero baseline

Closed trades

  • 2025-01-0249
  • 2022-01-03153
  • 2014-01-02422

Scale: 0 to 331.98 USD · zero baseline

Strategy fees

  • 2025-01-02$24.15
  • 2022-01-03$103.47
  • 2014-01-02$331.98
Show the table · 3 rows, 6 columns

Scroll sideways to compare all columns. Select a heading to sort.

2025-01-0244.80%33.99%24.33%49$24.15
2022-01-03134.94%73.13%24.16%153$103.47
2014-01-02340.90%419.23%24.16%422$331.98

The same rules also have completed runs starting in 2022 and 2014. Compare the full period table before selecting a variant; the long 2014 run returned less than SPY.

Continue exploring

Discussion

Sign in or create a free account to join the discussion.

No comments yet.

Aurora · AI research assistant

Try this in Aurora

Edit the request, then open it in Aurora. You choose when to send it.