コンテンツにスキップ

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.

複数のBotを連鎖させる

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を実行し、それをシャットダウンしてから、ロンドンセッション用に2番目の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.