输入/搜索内容
欢迎使用优宽量化交易平台
编程语言
JavaScript
TypeScript
Python
C++
My语言(麦语言)
PINE语言
Blockly可视化
Workflow工作流
支持的协议
密钥安全性
实盘
策略库
托管者
部署托管者
一键租用托管者
手动部署托管者
托管者操作注意事项
全局指定IP地址
命令行版本托管者程序的参数
实盘数据迁移
托管者监控
交易所
策略编辑器
回测系统
策略入口函数
策略框架与API函数
模板类库
策略参数
交互控件
商品期货
期权交易
股票证券
C++策略编写说明
JavaScript策略编写说明
内置库
扩展API接口
MCP 服务
交易终端
数据探索
Alpha因子分析工具
调试工具
远程编辑
完整策略的导入与导出
多语言支持
实盘、策略分组
实盘展示
策略分享与出租
实盘消息推送
实盘报错、异常退出的常见原因
交易所特殊说明、兼容记录

策略名称、策略参数的描述都可以使用中文|英文的格式编写,让网页自动识别并显示相应语言。在其他使用位置,例如:策略描述使用说明Markdown格式的文本中,使用[trans]中文|英文[/trans][trans]中文||英文[/trans]也可以实现自动语言识别效果。切换语言后,需要刷新网页才能生效。

在策略代码中,支持字符串输出的函数也支持语言切换功能,例如Log()函数、LogStatus()函数等。

javascript
function main() { Log("[trans]日志|log[/trans]") var table = { type: "table", title: "[trans]操作|option[/trans]", cols: ["[trans]列1|col1[/trans]", "[trans]列2|col2[/trans]", "[trans]操作|option[/trans]"], rows: [ ["[trans]甲醇|MA[/trans]", "[trans]螺纹钢|rb[/trans]", {"type": "button", "cmd": "coverAll", "name": "平仓|cover", "description": "描述|description"}] // 注意:按钮中不需要添加[trans]标签 ] } LogStatus("[trans]信息|message[/trans]", "\n`" + JSON.stringify(table) + "`") throw "[trans]错误|error[/trans]" }
python
import json def main(): Log("[trans]日志|log[/trans]") table = { "type": "table", "title": "[trans]操作|option[/trans]", "cols": ["[trans]列1|col1[/trans]", "[trans]列2|col2[/trans]", "[trans]操作|option[/trans]"], "rows": [ ["[trans]甲醇|MA[/trans]", "[trans]螺纹钢|rb[/trans]", {"type": "button", "cmd": "coverAll", "name": "平仓|cover", "description": "描述|description"}] ] } LogStatus("[trans]信息|message[/trans]", "\n`" + json.dumps(table) + "`") raise Exception("[trans]错误|error[/trans]")
c++
void main() { Log("[trans]日志|log[/trans]"); json table = R"({ "type": "table", "title": "[trans]操作|option[/trans]", "cols": ["[trans]列1|col1[/trans]", "[trans]列2|col2[/trans]", "[trans]操作|option[/trans]"], "rows": [ ["[trans]甲醇|MA[/trans]", "[trans]螺纹钢|rb[/trans]", {"type": "button", "cmd": "coverAll", "name": "平仓|cover", "description": "描述|description"}] ] })"_json; LogStatus("[trans]信息|message[/trans]", "\n`" + table.dump() + "`"); Panic("[trans]错误|error[/trans]"); }