Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for traders

Futures Roll Agent

Each expiring position is rolled in a liquid window at a known cost, before the notice or expiry date

Futures Roll Agent: what goes in, what the agent does and what you get

What it does

A futures position needs to move to the next contract before expiry, and rolling too early or too late costs money. Volume migrates to the next contract at different times, and the spread between the two contracts changes the cost. This agent tracks each position's expiry and notice dates. Every day it compares volume and open interest between the front and next contract and watches the calendar spread. It proposes a roll window and size, then estimates the cost using bid and ask depth for both legs and checks that the next contract can absorb the size without a large move. If liquidity changes and the cost rises, it recalculates and adjusts the proposal. It warns before first notice or last trading day. The trader approves every order. Edge case: a physically delivered contract has a notice date earlier than expiry, and the agent uses that date.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueApprovedYes, continueNoNo 1 STARTS WHEN A position is 10 days from its notice date 2 USES A TOOL Pull contract specs, notice and last trading dates 3 USES A TOOL Pull volume, open interest and spread for the frontand next contract 4 DOES Estimate the best roll window from volume migration 5 DOES Calculate the roll cost from spread and depth forthe position size 6 CHECKS THE RESULT Is the estimated cost within the trader's limit? If not: split the roll into parts or move the window andrecalculate. Back to step 3. 7 DOES Write the roll proposal with timing, size and cost 8 YOU APPROVE Trader approves the roll order 9 USES A TOOL Check fills and the new position after the order 10 CHECKS THE RESULT Does the new position match the old size and theintended contract? If not: alert the trader with the difference and proposea correcting order. Back to step 8. 11 RESULT Roll completed and logged
Read the steps as a list
  1. A position is 10 days from its notice date
  2. Pull contract specs, notice and last trading dates
  3. Pull volume, open interest and spread for the front and next contract
  4. Estimate the best roll window from volume migration
  5. Calculate the roll cost from spread and depth for the position size
  6. Is the estimated cost within the trader's limit?If not: split the roll into parts or move the window and recalculate. Back to step 3.
  7. Write the roll proposal with timing, size and cost
  8. Trader approves the roll orderThe agent waits here for your OK.
  9. Check fills and the new position after the order
  10. Does the new position match the old size and the intended contract?If not: alert the trader with the difference and propose a correcting order. Back to step 8.
  11. Roll completed and logged

How it decides

It recommends rolling when next-contract volume exceeds the front or the notice date is near, and it sizes the roll to the displayed depth to keep slippage low.

  • Roll when next-contract volume exceeds the front contract
  • Never hold a physically delivered contract past its notice date
  • Split rolls above 10% of displayed depth
  • Alert 3 days before the notice date

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Cost limit (default 4 cents per barrel or an amount you set)
  • Days before notice to start
  • Contracts tracked
  • Order splitting rule

What keeps you in control

It always asks you first

  • Every roll order

Hard limits

  • Never places orders
  • Warns before any notice date
  • Marks cost estimates as estimates

It stops when

  • Done: position is rolled and matches the target
  • Stop: data is stale or the notice date is passed

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensA trader held 40 crude oil contracts with a notice date of the 20th. On the 12th volume was 62% in the next contract. The agent estimated slippage of $0.06 per barrel on a single order against a limit of $0.04, so the check failed. It split the order into two parts on the 13th and 14th. The cost fell to $0.03. The trader approved both orders.

More agents for traders