跳转至

安排 cBot 操作

本指南向您展示如何使用 AI 代理在特定时间、市场时段前后或基于条件启动和停止 cBot——将您的代理变成交易算法的自动调度程序。

注意

调度取决于 AI 客户端在整个持续时间内保持活动状态。 如果您关闭 AI 客户端或断开连接,计划的操作将不会执行。 对于始终在线的调度,请考虑在持久环境中运行您的 AI 代理。

在特定时间启动和停止

固定时钟时间

Start C:\test\day-trader.algo on account 1234567, EURUSD M15 at 
9:00 AM and stop it at 4:00 PM.

代理等待到指定时间,启动 cBot,然后在时间窗口结束时停止它。

Start my scalper bot on GBPUSD M5 at 8:30 AM London time and keep 
it running until 5:00 PM.

围绕市场时段

您可以按名称引用市场时段,而无需记住确切时间。

Start C:\test\london-session.algo on account 1234567, EURUSD M15 
35 minutes after the London market opens and stop it 1 hour before 
the London market closes.
Run my cBot during the New York session only, every trading 
day.

代理将时段名称转换为时钟时间,并相应地安排启动和停止。

为特定日期安排计划

Run C:\test\news-trader.algo on EURUSD M5 on Tuesday and Thursday 
only, from 1:00 PM to 3:00 PM.
Start the cBot on Monday morning at 8:00 AM and stop it on Friday 
at 4:00 PM. Let it run continuously in between.

有条件的启动和停止

基于表现停止

Start C:\test\scalper.algo on account 1234567, EURUSD M15. If the 
total loss exceeds $500, stop the bot immediately and notify me.
Run the cBot and monitor it. If it makes 3 consecutive losing 
trades, stop it and tell me what happened.

基于条件启动

Monitor EURUSD. When volatility picks up — say, the range of the 
last 4 hourly candles exceeds 80 pips — start 
C:\test\breakout-bot.algo on account 1234567, EURUSD H1.

结合时间和条件规则

Start the cBot at 9:00 AM on EURUSD M15. If it has not made any 
profit by 12:00 PM, stop it. Otherwise, let it run until 4:00 PM.
Run the cBot during the London session. If it hits a drawdown of 
more than 3%, stop it immediately regardless of the time.

链接多个机器人

Start C:\test\asian-session.algo on USDJPY at 12:00 AM and stop it 
at 8:00 AM. Then start C:\test\london-session.algo on EURUSD at 
8:30 AM and stop it at 4:30 PM.

代理在亚洲时段运行第一个 cBot,将其关闭,然后在伦敦时段启动第二个 cBot——自动在策略之间切换。

查看计划

Show me all the cBot operations you have scheduled and their 
current status.
Cancel the 4:00 PM stop I scheduled earlier. Let the bot keep running until I say otherwise.