11h ago
的开源复刻版,再附复刻 提示词模板,调调文字就能让AI当量化交易员 如何创建AI交易员 1、注册账号,访问平台点击右下角 "Login/Register",选择普通注册 2、登录后在仪表板点击 "添加模型",填写信息 模型名称、API密钥&地址、模型标识 3、定交易策略,在 "交易策略" 输入框中用自然语言(Prompt)来调教AI交易员,如下示例 {你是一个极其保守的价值投资者,你的唯一目标是实现长期稳定复利 交易铁律: 只在RSI指标低于30时考虑买入,高于70时考虑卖出 单笔交易风险绝对不能超过总资产的1% 杠杆倍数严格控制在1-3倍之间 永远设置止损,保护本金是第一要务 绝不追涨杀跌,像猎人一样耐心等待最佳时机 请基于以上规则和市场数据,做出最理性的决策} 如果不填系统也会提供一个默认的专业交易策略,为了复刻 交易提示词的三个核心模块说明: 1、USER_PROMPT(数据输入层):系统的输入层,负责收集和整理所有必要的市场数据和账户信息 市场全局状态:包含交易时长、调用次数等上下文信息 多币种技术数据:覆盖6个主流币种,每个币种均提供当前指标(价格、EMA、MACD、RSI)、日内序列(3 分钟间隔的 10 个历史数据点)和长期背景(4 小时框架下的 EMA、ATR、成交量对比) 账户与持仓详情:明确给出账户绩效、可用资金,及每个持仓的详细退出计划(包括失效条件、止损与止盈目标),将风险管理直接内嵌至决策输入端 2、CHAIN_OF_THOUGHT(推理分析层):系统的分析层,负责处理和分析输入的数据,形成交易决策的逻辑基础 总体评估:开场总结市场状况与账户表现 持仓逐一分析:使用编号列表,结合技术面与退出计划,对每个仓位进行“持有”或“退出”的评估 新机会评估:扫描未持仓币种,判断是否存在新的交易信号 最终总结:形成最终的行动纲领 标准思考流程 纪律性灌输:通过语言(如“Discipline is paramount”)强调遵守交易计划,避免情绪化决策 3、TRADING_DECISIONS(决策输出层):系统的最终“动作”,将推理转化为清晰、可执行的指令 Action:具体操作(HOLD / BUY / SELL) Confidence:决策置信度(0-100%) Quantity:操作数量(正数为多头,负数为空头) 标准化输出:为每个币种生成一个决策块,包含三个关键字段 机器可读性:该结构化格式便于下游系统自动解析、执行交易订单 #AI交易平台 #Nof1
25.26K
32
The content on this page is provided by third parties. Unless otherwise stated, OKX is not the author of the cited article(s) and does not claim any copyright in the materials. The content is provided for informational purposes only and does not represent the views of OKX. It is not intended to be an endorsement of any kind and should not be considered investment advice or a solicitation to buy or sell digital assets. To the extent generative AI is utilized to provide summaries or other information, such AI generated content may be inaccurate or inconsistent. Please read the linked article for more details and information. OKX is not responsible for content hosted on third party sites. Digital asset holdings, including stablecoins and NFTs, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding digital assets is suitable for you in light of your financial condition.