监控和调整实盘 cBot¶
本指南向您展示如何启动 cBot,通过读取其日志和交易结果实时监控其性能,然后停止它,进行调整并重新启动——所有这些都通过与 AI 代理的对话完成。
1. 启动 cBot ¶
在您的账户上启动 cBot。
Run C:\test\scalper.algo on account 1234567, EURUSD M15 with
Quantity set to 0.1 and MaxSpread set to 2.
代理启动 cBot。 它现在独立运行并开始生成日志和交易活动。
2. 检查日志 ¶
让 cBot 运行一段时间后,请代理查看其表现。
Show me the logs for the running scalper cBot. What trades has it
made so far?
代理读取日志文件并为您提供交易入场、出场以及 cBot 产生的任何错误或警告的摘要。
How many trades has it executed? How many were winners and how
many were losers?
3. 评估性能 ¶
要求代理更深入地分析结果。
Based on the logs so far, what is the cBot's win rate, average
profit per winning trade, average loss per losing trade, and
total P&L?
Are there any patterns? Is it losing more during specific times
or market conditions?
代理分析日志数据并突出显示趋势或问题。 例如,它可能会注意到 cBot 在低波动期间持续亏损,或者止损被触发得太频繁。
4. 决定调整 ¶
根据您了解到的信息,决定 cBot 是否需要调整。
The stop loss is getting hit too often. Stop the cBot.
代理停止正在运行的实例。 不再执行交易。
5. 审查并计划更改 ¶
在重新启动之前,与代理讨论调整方案。
The cBot had a 40% win rate with an average loss that was twice
the average win. What parameter changes would you suggest to
improve this? The available parameters are StopLoss, TakeProfit,
Quantity and MaxSpread.
代理根据数据建议具体更改。 例如,它可能建议扩大止损并收紧止盈,或减少仓位大小。
6. 通过快速回测进行验证 ¶
在再次上线之前,确认新参数在历史上是否合理。
Backtest the scalper cBot on EURUSD M15 over the last 3 months
with StopLoss set to 25 and TakeProfit set to 15. Compare the
results to the default parameters.
如果回测显示有改进,则继续。 如果没有,则进一步迭代。
7. 使用新参数重新启动 ¶
Run C:\test\scalper.algo on account 1234567, EURUSD M15 with
Quantity 0.1, MaxSpread 2, StopLoss 25 and TakeProfit 15.
8. 继续监控 ¶
重复该循环。 定期检查并不断改进。
The cBot has been running for 3 hours now. Check the logs again
and compare performance to the previous run. Is the new
configuration doing better?
Give me a side-by-side comparison of the old run and the new run:
number of trades, win rate, average P&L per trade and total profit.
提示
这种监控-调整-重启循环在使用 AI 代理时特别强大,因为您永远不必自己阅读原始日志文件。 代理解释数据,识别问题并建议修复方案——您只需决定是否应用它们。