

I will break down the EXACT framework to build a 24/7 AI trading team with Grok Bot that researches the market, finds strategies, backtests & trades on its own.
我将拆解用 Grok Bot 搭建一支 24/7 AI 交易团队的精确框架:它会自己研究市场、寻找策略、做回测并执行交易。
Let's get straight to it.
我们直接开始。
Bookmark This -
if you're building an AI/tech product, your product is not the problem, your distribution is. At 0x9.fun we make your AI product WIN on X with launches & long-form builds exactly like this one. DM me to launch your next campaign with 0x9 .
And if you’re a CREATOR, get paid to post JOIN HERE.
先收藏 -
如果你在做 AI/科技产品,问题不在产品,而在分发。在 0x9.fun,我们通过像这样的发布和长文拆解,让你的 AI 产品在 X 上胜出。私信我,用 0x9 发起你的下一次推广活动。
如果你是创作者,发帖就能赚钱,在这里加入。
If you are building an AI trading system right now, DM me your setup and i will personally review the first 20. MOVE FAST.
如果你现在正在搭建 AI 交易系统,把你的方案私信给我,前 20 个我会亲自点评。*动作要快。*
Something big is happening on the timeline right now and MOST traders have not noticed it yet.
时间线上正在发生一件大事,而大多数交易者还没注意到。


People are using Grok Bot to automate their entire lives: their inbox, their calendar, their research and their sales.
Founders are running whole companies with it. One person at the top, a team of Bots doing the real work below.
Each Bot gets its own computer in the cloud. It signs into the same tools you use and it never logs off.
人们正在用 Grok Bot 把整个生活自动化:收件箱、日历、研究和销售。
创始人用它运营整家公司。一个人在顶端,下面一支 Bot 团队干真正的活。
每个 Bot 都有自己的云端电脑。它登录你用的同一套工具,而且永不下线。
It remembers your rules, works on a schedule, talks to the other Bots and only comes back when it needs your yes.
它记得你的规则,按计划工作,和其他 Bot 沟通,只在需要你点头时才回来找你。


Now picture that same team pointed at the markets instead of an inbox.
现在想象一下,把同一支团队对准市场,而不是收件箱。
An AI team that researches the market around the clock, spots the mispricing, turns it into a strategy, backtests it on years of data and builds the trading bot that executes it, all while you sleep.
一支 AI 团队全天候研究市场,发现错误定价,把它变成策略,用多年数据回测,再搭建执行它的交易机器人,而这一切都在你睡觉时完成。
That is not a chatbot anymore.
That is a full trading desk plugged straight into your TradingView, reading your charts, running your screener and watching your alerts 24/7.
这已经不是聊天机器人了。
这是一个完整的交易台,直接接入你的 TradingView,读你的图表、跑你的筛选器、24/7 盯着你的警报。
Funds pay MILLIONS for exactly this structure: researchers, analysts, risk managers and execution traders, all on one floor, working in shifts.
基金为这种结构要花数百万:研究员、分析师、风险经理和执行交易员,全在一层楼里轮班工作。
You can build the same structure tonight, for the price of one monthly subscription, without writing a single line of code.
你今晚就能搭出同样的结构,花一份月订阅的钱,不用写一行代码。
This article is the full build, from an empty app to a team that researches, analyzes and trades on its own.
这篇文章是完整的搭建过程:从一个空应用,到一支能自己研究、分析和交易的团队。
By the end of this article you will know:
读完本文你将知道:
- How to hire a complete AI trading team with one Chief of Staff running it如何雇佣一支完整的 AI 交易团队,并由一位幕僚长来管理
- How to plug Grok Bot into your TradingView so it reads your charts, runs your screener and manages your alerts如何把 Grok Bot 接入你的 TradingView,让它读图表、跑筛选器、管理警报
- How to make it build your own premium style TradingView indicators, without paying for a single one如何让它为你打造高级风格的 TradingView 指标,一分钱都不用花
- How to wire in a broker and run the entire desk 24/7, first on paper, then with real money如何接入券商,让整个交易台 24/7 运行:先模拟盘,再上真金白银
- What this setup CAN & CANNOT do, stated clearly enough to hold me to这套方案能做什么、不能做什么,我会说得足够清楚,你可以拿来监督我
Let's get into it.
我们开始吧。
Part 1: What Grok Bot Is and Why It Changes AI Trading
第 1 部分:Grok Bot 是什么,以及它为何改变 AI 交易
Every AI model or LLM before this worked the same way. You type. It answers. It stops.
在此之前,每个 AI 模型或 LLM 的工作方式都一样。你输入,它回答,然后停下。


It could explain a trade. It could never actually watch one.
它能解释一笔交易,却从来没法真正盯住一笔交易。
Grok Bot works like a coworker and four things make the difference.
Grok Bot 像同事一样工作,有四点让它与众不同。
1. Its own computer:
Every Bot runs on a cloud computer. Your laptop can be closed, off or in another country. The Bot keeps working.
*1. 专属电脑:*
每个 Bot 都运行在一台云端电脑上。你的笔记本可以合上、关机或者在另一个国家,Bot 照样工作。
2. Routines:
You give a Bot a job once. It runs that job on a schedule: every morning, every 30 minutes, every Sunday. One Bot can own up to 50 routines.
*2. 例行任务:*
你只需给 Bot 布置一次任务,它就会按计划执行:每天早上、每 30 分钟、每周日。一个 Bot 最多可以拥有 50 个例行任务。
3. Memory:
Bots remember your rules, your preferences and their past work. You never repeat yourself.
*3. 记忆:*
Bot 记得你的规则、你的偏好和它们过去的工作。你永远不用重复自己。
4. Teams:
Bots message each other, share context and coordinate in group chats. A Chief of Staff Bot manages the specialists and only escalates real decisions to you.
*4. 团队:*
Bot 之间互相发消息、共享上下文,并在群聊中协作。一个幕僚长 Bot 管理各位专家,只把真正的决策上报给你。
Now look at what a trading desk actually needs.
现在看看一个交易台真正需要什么。
WHAT A TRADING DESK NEEDS WHAT GROK BOT GIVES YOU
someone watching 24/7 always-on Bots on a cloud computer
a fixed daily process routines on a schedule
rules that never bend memory of your desk rules
specialists, not one genius a team with a Chief of Staff
access to charts and broker plugins and custom MCP servers
eyes on breaking news live X search and monitoring
交易台需要什么 GROK BOT 给你什么
有人 24/7 盯盘 云端电脑上永远在线的 Bot
固定的每日流程 按计划运行的例行任务
永不弯曲的规则 记住你的交易台规则
一群专家,而不是一个天才 一支由幕僚长带领的团队
能访问图表和券商 插件和自定义 MCP 服务器
紧盯突发新闻 实时 X 搜索与监控
That last row matters more than people think. Grok Bot can search, read and monitor X.
最后一行比人们想象的更重要。Grok Bot 可以搜索、阅读和监控 X。
Grok Bot (@bot):
Grok Bot can now search, read, and monitor X.
Grok Bot 现在可以搜索、阅读和监控 X 了。
X is where markets move first. CEOs post. Analysts post. Breaking news lands on X before it hits any headline. Your Bot can now sit on that feed for you, 24 hours a day.
Within days people were sharing ready-made Bot templates: research desks, sales teams, video editors and more.
X 是市场最先动起来的地方。CEO 在这发帖,分析师在这发帖。突发新闻在登上任何头条之前就先出现在 X 上。现在你的 Bot 可以替你 24 小时守着这条信息流。
短短几天内,人们就开始分享现成的 Bot 模板:研究台、销售团队、视频剪辑师等等。
Min Choi (@minchoi):
Grok Bot templates are going crazy viral.
Video editor. PM. Research desk. Sales team + more.
10 wild templates you should try.
Bookmark this.
Grok Bot 模板正在疯狂刷屏。
视频剪辑师。产品经理。研究台。销售团队 + 更多。
10 个你应该试试的疯狂模板。
先收藏。
It cost's $30 a month for a team that never sleeps. A single junior analyst costs more than that per hour.
一支永不睡觉的团队每月只要 30 美元。一个初级分析师每小时的成本都比这高。
Part 2: Hire Your AI Trading Team
第 2 部分:雇佣你的 AI 交易团队


Here is the MISTAKE almost everyone makes. They create one Bot and ask it to trade, "Watch BTC and tell me what to do."
几乎所有人都会犯这个错误:只创建一个 Bot,然后让它去交易,"盯着 BTC,告诉我该怎么做。"
That is not a system. That is a coin flip with extra steps.
那不是系统,那只是多了几步的抛硬币。
Real desks split the work. One person finds ideas. One reads charts. One tests. One says no. One executes.
真正的交易台会分工。一个人找想法,一个人看图表,一个人做测试,一个人负责说不,一个人执行。
So we build exactly that.
所以我们就照这个来搭。
YOU
↓
CHIEF OF STAFF
↓
┌───────┬─────────┼─────────┬────────┐
SCOUT CHART STRATEGIST RISK TRADER
ANALYST OFFICER
你
↓
幕僚长
↓
┌───────┬─────────┼─────────┬────────┐
侦察员 图表 策略师 风控官 交易员
分析师
Six Bots. One job each. You only talk to the top.
六个 Bot,各司其职。你只和最顶端的那个对话。
Every agent has one job. Every decision has to survive the entire route before it becomes a position.
每个智能体只有一项工作。每个决策都必须走完整条路线,才能变成一笔持仓。
That is the principle the whole desk is built on.
这就是整个交易台赖以建立的原则。
Step 1:
Download Grok Bot. Get it at x.ai/bot. It runs on macOS, Windows, Linux, iPhone and Android. Sign in with your X or Cursor account.
*第 1 步:*
下载 Grok Bot。 在 x.ai/bot 获取。支持 macOS、Windows、Linux、iPhone 和 Android。用你的 X 或 Cursor 账号登录。
Step 2:
Write your Desk Rules. Before you hire anyone, write the rulebook.
*第 2 步:*
写下你的交易台规则。 在雇佣任何人之前,先写规则手册。
Every Bot reads this before every decision. It is the one thing that keeps six agents acting like one desk.
每个 Bot 在做每个决策之前都会先读它。这是让六个智能体像一个交易台那样行动的唯一关键。
DESK RULES (every Bot reads this before acting)
MARKETS [US stocks and ETFs / crypto / both]
CAPITAL [$10,000 paper]
RISK max [1%] per trade, max [2%] daily loss, max [5] open positions
STYLE [swing trades, 2 to 10 day holds]
NEVER TRADE [penny stocks, leverage, into earnings, into Fed or CPI days]
EVIDENCE every claim needs a source and a timestamp
HONESTY never invent a price, a number or a result. If data is missing, say so
LOGGING every idea, decision and trade goes to the "Trade Journal" sheet
HANDOFF every message to another Bot uses: TICKER | IDEA | EVIDENCE | NEXT STEP
ESCALATION only message the human for approvals, kill switch events and briefs
交易台规则(每个 Bot 行动前都要读)
市场 [美股和 ETF / 加密货币 / 两者都做]
资金 [$10,000 模拟盘]
风险 每笔最多 [1%],每日最大亏损 [2%],最多 [5] 个持仓
风格 [波段交易,持仓 2 到 10 天]
绝不交易 [仙股、杠杆、财报前、美联储或 CPI 公布日]
证据 每个论断都需要来源和时间戳
诚实 绝不编造价格、数字或结果。数据缺失就直说
记录 每个想法、决策和交易都写入 "Trade Journal"(交易日志)表格
交接 发给其他 Bot 的每条消息都用:代码 | 想法 | 证据 | 下一步
上报 只在需要审批、触发熔断开关和发简报时才找人类
Step 3:
Hire the Chief of Staff, Click the plus button, create a new Bot and paste this:
*第 3 步:*
雇佣幕僚长。 点击加号按钮,新建一个 Bot,然后粘贴以下内容:
You are my trading Chief of Staff. You run my AI trading desk.
Read the DESK RULES below and store them as permanent memory.
[paste your Desk Rules]
Then create 5 Bots and add them to a group chat called "Trading Desk":
Scout, Chart Analyst, Strategist, Risk Officer and Trader.
Give each Bot the DESK RULES and its own job description.
Your job:
- make sure every idea moves Scout → Chart Analyst → Strategist →
Risk Officer → Trader, and nothing skips a step
- resolve disagreements between Bots using the DESK RULES
- send me a morning brief at 7:30 AM ET and a close report at 4:30 PM ET
- run a full desk review every Sunday
Never message me for anything a Bot can decide within the rules.
你是我的交易幕僚长。你负责运营我的 AI 交易台。
阅读下面的交易台规则,并把它们存为永久记忆。
[粘贴你的交易台规则]
然后创建 5 个 Bot,并把它们拉进一个名为 "Trading Desk" 的群聊:
侦察员、图表分析师、策略师、风控官和交易员。
给每个 Bot 交易台规则和它自己的岗位职责。
你的工作:
- 确保每个想法都按 侦察员 → 图表分析师 → 策略师 →
风控官 → 交易员 的顺序流转,任何一步都不能跳过
- 依据交易台规则解决 Bot 之间的分歧
- 美东时间早上 7:30 给我发晨间简报,下午 4:30 发收盘报告
- 每周日做一次完整的交易台复盘
任何 Bot 能在规则内自行决定的事,都不要来找我。
Step 4:
Give each specialist its job.
SCOUT finds what is moving and why.
*第 4 步:给每位专家分配工作。
*侦察员负责发现什么在动、为什么在动。
You are Scout. Your job is to find what is moving and WHY.
Every 30 minutes during market hours:
- scan X, news, earnings and unusual volume for my watchlist and the top movers
- for each finding record: TICKER | WHAT HAPPENED | SOURCE | TIMESTAMP | WHY IT MATTERS
- rank findings by how likely they are to move price in the next 1 to 5 days
- send the top 5 to Chart Analyst using the HANDOFF format
Ignore rumors without a source, paid promotions and pump posts.
If nothing important happened, say "no signal" instead of forcing one.
你是侦察员。你的工作是发现什么在动,以及为什么。
交易时段内每 30 分钟:
- 扫描 X、新闻、财报和异常成交量,覆盖我的自选股和涨跌幅榜前列
- 每条发现记录:代码 | 发生了什么 | 来源 | 时间戳 | 为什么重要
- 按未来 1 到 5 天内影响价格的可能性给发现排序
- 用交接格式把前 5 条发给图表分析师
忽略没有来源的传闻、付费推广和拉盘帖。
如果没有重要的事发生,就说 "无信号",不要硬凑。
CHART ANALYST turns stories into setups.
*图表分析师把故事变成交易机会。*
You are Chart Analyst. You turn stories into setups.
For every ticker Scout sends, read the chart on TradingView:
- trend on the daily and 4 hour timeframes
- key support and resistance levels
- RSI, 50 and 200 day moving averages, volume vs its 20 day average
- the "Desk Signal" indicator on my chart
Score each setup 1 to 10 and explain the score in 3 lines.
Pass only setups scoring 7 or more to Strategist.
A great story on a broken chart is a NO.
你是图表分析师。你把故事变成交易机会。
对侦察员发来的每个代码,在 TradingView 上读图:
- 日线和 4 小时级别的趋势
- 关键支撑位和阻力位
- RSI、50 日和 200 日均线、成交量相对其 20 日均量
- 我图表上的 "Desk Signal" 指标
给每个机会打 1 到 10 分,并用 3 行解释评分。
只把 7 分及以上的机会交给策略师。
图形走坏的好故事一律否决。
STRATEGIST writes the plan and proves it.
*策略师制定计划并证明它可行。*
You are Strategist. You turn setups into tested trade plans.
For every setup:
- write exact entry, stop loss, target and position size from the DESK RULES
- backtest the same rules on at least 3 years of price history,
including fees and slippage, on your own computer
- report: number of trades, win rate, average win vs average loss,
max drawdown, and results for the most recent year on its own
Reject the plan if it has fewer than 30 trades, fails on the most
recent year, or only works with one exact setting.
Send approved plans to Risk Officer. Log rejected ones with the reason.
你是策略师。你把交易机会变成经过测试的交易计划。
对每个机会:
- 依据交易台规则写出精确的入场价、止损、目标价和仓位大小
- 在你自己的电脑上,用至少 3 年的价格历史回测同一套规则,
计入手续费和滑点
- 报告:交易次数、胜率、平均盈利 vs 平均亏损、
最大回撤,以及最近一年单独的结果
如果交易少于 30 笔、在最近一年失效,或只在某个精确参数下有效,
就否决该计划。
把通过的计划发给风控官。被否决的连同原因一起记录。
RISK OFFICER is the only Bot that can say no to everyone.
*风控官是唯一能对所有人说不的 Bot。*
You are Risk Officer. Your veto is final.
Before any plan reaches Trader, check:
- risk per trade and total exposure against the DESK RULES
- today's loss so far against the daily limit
- correlation with open positions, two similar bets count as one
- earnings, Fed, CPI or other major events before the target date
If any rule breaks, reject the plan and name the exact rule.
If everything passes, stamp it APPROVED with the time and send it to Trader.
Once a day at 4:15 PM ET, review every open position against its stop.
你是风控官。你的否决是最终决定。
任何计划到达交易员之前,检查:
- 单笔风险和总敞口是否符合交易台规则
- 今天到目前为止的亏损相对每日上限
- 与现有持仓的相关性,两笔相似的押注算作一笔
- 目标日期前是否有财报、美联储、CPI 或其他重大事件
只要违反任何规则,就否决计划并指出具体是哪条规则。
全部通过,就盖上 APPROVED(已批准)章并注明时间,发给交易员。
每天美东时间下午 4:15,对照止损检查每一个持仓。
TRADER executes. Nothing else.
*交易员只负责执行,别的什么都不做。*
You are Trader. You only execute plans stamped APPROVED by Risk Officer.
- use limit orders at the planned entry, never market orders
- attach the stop loss to every position the moment it fills
- confirm every order and every fill in the Trade Journal
- if the price has moved more than 0.5% past the entry, do not chase,
send the plan back to Strategist
You never change a plan, never increase size and never trade on your own idea.
你是交易员。你只执行由风控官盖了 APPROVED 章的计划。
- 在计划的入场价使用限价单,绝不用市价单
- 每个持仓一成交就立刻挂上止损
- 在交易日志中确认每一笔订单和每一次成交
- 如果价格已经越过入场价超过 0.5%,不要追,
把计划退回给策略师
你绝不修改计划、绝不加仓,也绝不按自己的想法交易。
Step 5:
Lock down permissions. This step is not optional.
第 5 步:
锁定权限。 这一步不是可选项。
Bots are proactive by design. A prompt is a request, not a lock.
Bot 天生就是主动型的。提示词只是请求,不是锁。
Open each plugin's tool list and switch off every action you do not need. Only the Trader should ever reach order tools. Everyone else reads.
打开每个插件的工具列表,关掉你不需要的每一个操作。只有交易员才应该能碰到下单工具,其他所有人只读。
Part 3: Connect TradingView, Build Indicators, Wire the Broker
第 3 部分:连接 TradingView、打造指标、接入券商
A team without tools is just a group chat. Now we give it eyes, hands and a memory you can actually read.
没有工具的团队只是一个群聊。现在我们给它眼睛、双手,以及一份你真正能读到的记忆。


Connection 1: TradingView, the eyes.
*连接 1:TradingView,眼睛。*
TradingView now has an official MCP server in public beta.
TradingView 现在有了官方 MCP 服务器,处于公开测试阶段。
MCP is the open standard that lets an AI plug into real tools. Not talk about your charts. Actually READ them.
MCP 是让 AI 接入真实工具的开放标准。不是谈论你的图表,而是真正读取它们。
Through it, your Bots can:
通过它,你的 Bot 可以:
- pull quotes and price history拉取报价和历史价格
- run the TradingView screener运行 TradingView 筛选器
- read fundamentals, news, filings, earnings transcripts and the economic calendar读取基本面、新闻、公告、财报电话会文字稿和经济日历
- use indicators like RSI and moving averages使用 RSI 和移动平均线等指标
- create and manage your watchlists and alerts, and read your alert log创建和管理你的自选列表和警报,并读取你的警报日志
You need a TradingView Essential plan or higher.
你需要 TradingView Essential 或更高级别的套餐。
In any Grok Bot chat, type:
在任意 Grok Bot 聊天中输入:
Add a custom MCP server called tradingview at
https://mcp.tradingview.com/mcp
添加一个名为 tradingview 的自定义 MCP 服务器,地址为
https://mcp.tradingview.com/mcp
Use the words "custom server", or the Bot may search the plugin catalog instead.
要用 "custom server"(自定义服务器)这个说法,否则 Bot 可能会去搜索插件目录。
The Bot shows you the URL. Check it and click Add it. A connect card appears. Click Authorize, sign in to TradingView and click Allow access.
Bot 会把 URL 显示给你。核对后点击 Add 添加。会出现一张连接卡片。点击 Authorize,登录 TradingView,再点击 Allow access。
Done. Type @ in any chat to attach TradingView to a task.
完成。在任何聊天中输入 @ 就能把 TradingView 附加到任务上。
Test it straight away:
马上测试一下:
Using TradingView, run the screener for US stocks above their 50 day
moving average with volume 2x the 20 day average today. Show the top
10 with price, % change and RSI.
使用 TradingView,运行美股筛选器:今天价格在 50 日均线之上、
成交量是 20 日均量 2 倍的股票。列出前 10 只,
包含价格、涨跌幅 % 和 RSI。
If a table comes back, your desk can see the market.
如果返回了一张表格,你的交易台就能看见市场了。
Connection 2: Your own premium style indicators.
*连接 2:你自己的高级风格指标。*
This is the part people love (my personal favourite)
这是大家最爱的部分(也是我个人最喜欢的)
The TradingView connection reads indicators. It does not write Pine Script.
TradingView 连接可以读取指标,但不会写 Pine Script。
But your Bot has its own computer and its own browser.
不过你的 Bot 有自己的电脑和自己的浏览器。
So the Chart Analyst can write a custom indicator AND add it to your chart.
所以图表分析师可以编写一个自定义指标,并且把它加到你的图表上。
Write a Pine Script v6 indicator called "Desk Signal":
TREND an EMA ribbon of 8, 21, 50 and 200, filled green when all four
are stacked bullish and red when stacked bearish
SIGNALS a BUY label when price closes above the 20 bar high, volume is
1.5x its 20 bar average and RSI(14) is above 50, a SELL label
on the exact opposite
ZONES shaded boxes at the last confirmed swing high and swing low
FILTER no signals when ATR(14) is in its top 10% of the last 100 bars
ALERTS an alertcondition() for every BUY and SELL
Comment every line. Then open TradingView in your browser, open the
Pine Editor, paste it, fix any errors, add it to my chart and save it.
Finally create TradingView alerts on the BUY and SELL conditions for
every ticker on my watchlist.
编写一个名为 "Desk Signal" 的 Pine Script v6 指标:
趋势 由 8、21、50 和 200 EMA 组成的均线带,四条均线多头排列时
填充绿色,空头排列时填充红色
信号 当收盘价突破 20 根 K 线高点、成交量是 20 根 K 线均量的
1.5 倍且 RSI(14) 高于 50 时,显示 BUY 标签;完全相反时
显示 SELL 标签
区域 在最近确认的波段高点和波段低点画阴影框
过滤 当 ATR(14) 处于最近 100 根 K 线的前 10% 时不出信号
警报 为每个 BUY 和 SELL 设置 alertcondition()
给每一行加注释。然后在你的浏览器中打开 TradingView,打开
Pine 编辑器,粘贴代码,修复所有错误,把它加到我的图表上并保存。
最后,为我自选列表中的每个代码,按 BUY 和 SELL 条件
创建 TradingView 警报。
You approve the TradingView sign in once. The Bot does the rest.
你只需批准一次 TradingView 登录,剩下的 Bot 全包了。
Now you have an indicator built around YOUR rules, with a volatility filter most paid indicators do not even have.
现在你拥有一个围绕你的规则打造的指标,还带有大多数付费指标都没有的波动率过滤。
People pay monthly subscriptions for indicators like this. Yours took one prompt.
人们为这样的指标每月付订阅费。你的只用了一个提示词。
Connection 3: The broker, the hands.
*连接 3:券商,双手。*
Alpaca has an official MCP server and a free paper trading account.
Alpaca 有官方 MCP 服务器和免费的模拟交易账户。
Create a free Alpaca account.
Open the paper trading dashboard.
Copy your paper API keys.
注册一个免费的 Alpaca 账户。
打开模拟交易面板。
复制你的模拟盘 API 密钥。
Then type:
然后输入:
Add a custom MCP server called alpaca that runs:
uvx alpaca-mcp-server
Store these environment variables on the server:
ALPACA_API_KEY = [your paper key]
ALPACA_SECRET_KEY = [your paper secret]
ALPACA_PAPER_TRADE = True
添加一个名为 alpaca 的自定义 MCP 服务器,运行:
uvx alpaca-mcp-server
在服务器上保存这些环境变量:
ALPACA_API_KEY = [你的模拟盘 key]
ALPACA_SECRET_KEY = [你的模拟盘 secret]
ALPACA_PAPER_TRADE = True
The Bot runs the server on its own cloud computer & reports the tool count.
Bot 会在它自己的云端电脑上运行这个服务器,并报告工具数量。
Test it:
测试一下:
Using alpaca, show my paper account balance, buying power and open
positions. Do not place any order.
使用 alpaca,显示我的模拟账户余额、购买力和
当前持仓。不要下任何订单。
Keep paper mode ON. Real money comes in Part 4.
保持模拟模式开启。真金白银放在第 4 部分。
Connection 4: The journal, the memory you can read.
*连接 4:交易日志,你能读到的记忆。*
You cannot read a Bot's memory directly. So make every Bot write everything down.
你没法直接读取 Bot 的记忆。所以要让每个 Bot 把一切都写下来。
Add the Google Sheets or Notion plugin and ask the Chief of Staff to create a "Trade Journal" with these columns:
添加 Google Sheets 或 Notion 插件,让幕僚长创建一个 "Trade Journal"(交易日志),包含以下列:
TIME | BOT | TICKER | IDEA | SOURCE | SCORE | ENTRY | STOP | TARGET |
SIZE | RISK CHECK | STATUS | RESULT | LESSON
时间 | BOT | 代码 | 想法 | 来源 | 评分 | 入场 | 止损 | 目标 |
仓位 | 风险检查 | 状态 | 结果 | 教训
This sheet is your audit trail. When something goes wrong, you will know exactly which Bot said what, and why.
这张表就是你的审计轨迹。出问题时,你会确切知道是哪个 Bot 说了什么、为什么。
Connection 5: The 24/7 routines.
*连接 5:24/7 例行任务。*
Now we turn the team into a desk that runs on its own.
现在我们把团队变成一个能自己运转的交易台。
Tell the Chief of Staff:
告诉幕僚长:
Set up these routines and confirm each one back to me:
Scout 6:30 AM ET pre-market sweep, then every 30 minutes until
the close, and monitor X for every watchlist ticker all day
Chart Analyst 8:30 AM ET screener scan, then every hour until the close
Strategist every night at 9:00 PM ET, backtest every new idea from today
Risk Officer before every order, plus a full review at 4:15 PM ET
Trader every 15 minutes during market hours, check the TradingView
alert log for APPROVED setups
Chief of Staff morning brief 7:30 AM ET, close report 4:30 PM ET,
full desk review every Sunday at 6:00 PM ET
设置以下例行任务,并逐一向我确认:
侦察员 美东 6:30 AM 盘前扫市,之后每 30 分钟一次直到收盘,
并全天在 X 上监控自选列表里的每个代码
图表分析师 美东 8:30 AM 筛选器扫描,之后每小时一次直到收盘
策略师 每晚美东 9:00 PM,回测今天的每个新想法
风控官 每笔下单之前检查,外加美东 4:15 PM 的完整复核
交易员 交易时段内每 15 分钟,检查 TradingView
警报日志中已 APPROVED 的机会
幕僚长 美东 7:30 AM 晨间简报,4:30 PM 收盘报告,
每周日美东 6:00 PM 完整的交易台复盘
A day inside your desk.
你的交易台的一天。


Here is what this looks like when it runs.
它运行起来是这个样子。
6:30 AM Scout finds a company that beat earnings and is up 6% pre-market
7:30 AM Your morning brief lands on your phone with it ranked #1
8:30 AM Chart Analyst scores it 8/10: above the 50 day, volume 3x normal
9:00 AM Strategist writes the plan and the backtest shows 47 trades,
positive on the most recent year
9:05 AM Risk Officer approves: 0.8% risk, no correlated positions
10:15 AM Desk Signal prints BUY, the TradingView alert fires
10:30 AM Trader places the limit order, attaches the stop, logs the fill
4:30 PM Close report: 1 trade taken, 4 ideas rejected, and why
6:30 AM 侦察员发现一家公司财报超预期,盘前上涨 6%
7:30 AM 你的晨间简报推送到手机,它排在第 1 位
8:30 AM 图表分析师打出 8/10:站上 50 日均线,成交量是平时 3 倍
9:00 AM 策略师写好计划,回测显示 47 笔交易,
最近一年为正收益
9:05 AM 风控官批准:0.8% 风险,无相关持仓
10:15 AM Desk Signal 打出 BUY,TradingView 警报触发
10:30 AM 交易员挂出限价单,附上止损,记录成交
4:30 PM 收盘报告:成交 1 笔,否决 4 个想法,并说明原因
You did not open a chart once. You read two messages and the desk did the rest.
你一次图表都没打开。你只读了两条消息,剩下的交易台都做完了。
Part 4: Paper to Real Money, Safely
第 4 部分:从模拟盘到真金白银,安全过渡
Most AI trading bots die in the same place. The jump from paper to real money.
大多数 AI 交易机器人都死在同一个地方:从模拟盘跳到真钱的那一步。


So we do not jump. We climb.
所以我们不跳,我们一步步往上爬。
RUNG 1 PAPER, 2 WEEKS every rule tested, every trade logged
RUNG 2 PAPER MATCHES BACKTEST results inside the expected range
RUNG 3 LIVE, TINY SIZE real keys, 10% of planned size
RUNG 4 LIVE, APPROVAL GATE the Bot proposes, you tap yes
RUNG 5 LIVE, FULL RULES only after weeks of clean logs
第 1 级 模拟盘,2 周 每条规则都经过测试,每笔交易都有记录
第 2 级 模拟盘与回测一致 结果落在预期范围内
第 3 级 实盘,极小仓位 真实密钥,计划仓位的 10%
第 4 级 实盘,审批关卡 Bot 提议,你点确认
第 5 级 实盘,完整规则 只有在数周干净的日志之后
Moving to live.
转入实盘。
Create live API keys in Alpaca. Ask the Bot to update the alpaca server with the new keys and set ALPACA_PAPER_TRADE to False.
在 Alpaca 中创建实盘 API 密钥。让 Bot 用新密钥更新 alpaca 服务器,并把 ALPACA_PAPER_TRADE 设为 False。
Then add one rule to the Trader:
然后给交易员加一条规则:
Every live order needs my approval in chat before you send it.
Show me: TICKER | SIDE | ENTRY | STOP | TARGET | SIZE | RISK % | WHY
I reply YES or NO. No reply means NO.
每一笔实盘订单在发送前都需要我在聊天中批准。
给我看:代码 | 方向 | 入场 | 止损 | 目标 | 仓位 | 风险 % | 理由
我回复 YES 或 NO。没有回复就是 NO。
Grok Bot is built for this. It comes back to you only when something needs your approval.
Grok Bot 正是为此而生。只有当某件事需要你批准时,它才会回来找你。
The kill switch.
*熔断开关。*
Tell the Risk Officer:
告诉风控官:
Trigger the KILL SWITCH if any of these happen:
- the daily loss hits 2%
- 3 losing trades in a row
- prices stop updating or data looks stale
- any order fills more than 0.5% away from the planned price
- any Bot tries to trade outside the DESK RULES
When it triggers: cancel all open orders, close all positions,
pause the Trader and message me immediately with what happened.
出现以下任一情况时触发熔断开关:
- 当日亏损达到 2%
- 连续 3 笔亏损交易
- 价格停止更新或数据看起来过期
- 任何订单的成交价偏离计划价超过 0.5%
- 任何 Bot 试图在交易台规则之外交易
触发时:撤销所有未成交订单,平掉所有持仓,
暂停交易员,并立即给我发消息说明发生了什么。
Then set the same limits inside your Alpaca account.
A prompt is a rule. A broker setting is a wall.
然后在你的 Alpaca 账户里设置同样的限额。
提示词是一条规则,券商设置是一堵墙。
The weekly review.
每周复盘。
Every Sunday the Chief of Staff compares paper or live results against the backtest.
每周日,幕僚长会把模拟盘或实盘结果与回测进行对比。
Strategies drifting below expectations get paused. Failed ideas get logged so no Bot ever retests them by accident.
表现低于预期的策略会被暂停。失败的想法会被记录下来,这样任何 Bot 都不会意外地重新测试它们。
The desk gets sharper every single week. That is the real compounding.
交易台每周都变得更锋利。这才是真正的复利。
The 5 mistakes that blow up AI trading desks:
让 AI 交易台爆仓的 5 个错误:
1. ONE BOT DOES EVERYTHING split the jobs, one Bot per role
2. RULES LIVE IN PROMPTS ONLY lock tools and set broker limits too
3. NO JOURNAL if it is not logged, it did not happen
4. LIVE ON DAY ONE two weeks of paper, minimum
5. TRUSTING THE BACKTEST paper results must match it first
1. 一个 BOT 包办一切 拆分工作,一个角色一个 Bot
2. 规则只写在提示词里 同时锁定工具并设置券商限额
3. 没有交易日志 没记录,就等于没发生
4. 第一天就上实盘 至少两周模拟盘
5. 迷信回测 模拟盘结果必须先与回测一致
The Honest Contract. Screenshot This.
诚实契约。截图保存。
This setup CAN:
这套方案能做到:
- research markets 24/7 with your laptop closed合上笔记本也能 24/7 研究市场
- monitor X live for every ticker on your watchlist实时在 X 上监控你自选列表里的每个代码
- read TradingView quotes, screener, fundamentals, news, filings, watchlists and alerts读取 TradingView 的报价、筛选器、基本面、新闻、公告、自选列表和警报
- write custom indicators and add them to your TradingView charts编写自定义指标并添加到你的 TradingView 图表上
- backtest ideas on its own cloud computer在它自己的云端电脑上回测想法
- place paper trades, and live trades with your approval, through Alpaca通过 Alpaca 下模拟单,以及经你批准的实盘单
- run a full team with a Chief of Staff and log every single decision由幕僚长带领一整支团队运转,并记录每一个决策
This setup CANNOT:
这套方案做不到:
- trade at high frequency speed. Routines run minutes apart, not milliseconds以高频交易的速度交易。例行任务间隔以分钟计,而不是毫秒
- connect to TradingView without an Essential plan or higher没有 Essential 或更高级别套餐就连接 TradingView
- let you choose the model. Grok Bot routes models automatically让你选择模型。Grok Bot 会自动分配模型
- show you its memory. That is why the journal exists向你展示它的记忆。这正是交易日志存在的原因
- run unlimited. Usage is a weekly pool, and Bot to Bot messages count无限制运行。用量是每周的额度池,Bot 之间的消息也算在内
- guarantee profit or turn a weak idea into an edge保证盈利,或把一个弱想法变成优势
That second list is not hedging. It is the reason the first list is believable.
第二个清单不是在留后路。正是它让第一个清单变得可信。
Closing
结语
For years we asked AI to trade from a chat box. It was never the right shape.
多年来,我们一直让 AI 在聊天框里交易。那从来都不是正确的形态。
A trading desk is not one genius. It is a team, a process and a schedule that never breaks.
交易台不是一个天才。它是一支团队、一套流程和一张永不中断的时间表。
Grok Bot finally gives you all three.
Grok Bot 终于把这三样全给了你。
One Chief of Staff. Five specialists. TradingView for eyes. Alpaca for hands. A journal for memory. Routines that never sleep.
一位幕僚长。五位专家。TradingView 当眼睛,Alpaca 当双手,交易日志当记忆。永不睡觉的例行任务。
Build it once on paper. Let it prove itself. Then let it work.
先在模拟盘上搭一次。让它证明自己。然后放手让它工作。
In my previous article i broke down how to build a millisecond speed 24/7 HFT system with Jev. This one gives you team that runs everything around it.
在我上一篇文章里,我拆解了如何用 Jev 搭建一个毫秒级速度的 24/7 高频交易系统。这一篇则给你一支运转它周边一切的团队。
Roan (@RohOnChain):
Jev is the FASTEST AI model ever built for trading
It makes calibrated buy/sell decisions in under 100 ms
That is one real decision on every single block, 24/7
In this article I've shown EXACTLY how to build HFT trading system with Jev (from scratch) https://x.com/i/article/2100887343809110016
Jev 是有史以来为交易打造的最快 AI 模型
它能在 100 毫秒内做出经过校准的买入/卖出决策
也就是说,每一个区块都有一次真实决策,24/7 不间断
在这篇文章中,我精确地展示了如何(从零开始)用 Jev 搭建高频交易系统 https://x.com/i/article/2100887343809110016
So here is the question.
那么问题来了。
Is your AI still waiting for you to open a chat window or is it already running a desk while you sleep?
你的 AI 还在等你打开聊天窗口,还是已经在你睡觉时运营一个交易台了?
There is no wrong answer. But there are very revealing ones.
没有错误答案。但有些答案非常说明问题。