コンテンツにスキップ

ライブ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エージェントを使用する場合に特に強力です。お客様自身が生のログファイルを読む必要がないからです。 エージェントがデータを解釈し、問題を特定して修正を提案します。お客様は、それを適用するかどうかを決定するだけです。