Aller au contenu

Planifier les opérations des cBots

Ce guide vous montre comment utiliser un agent IA pour démarrer et arrêter des cBots à des moments précis, autour des sessions de marché ou en fonction de conditions — transformant votre agent en un planificateur automatisé pour vos algorithmes de trading.

Remarque

La planification dépend du maintien actif du client IA pendant toute la durée. Si vous fermez le client IA ou vous déconnectez, les opérations planifiées ne s'exécuteront pas. Pour une planification permanente, envisagez d'exécuter votre agent IA dans un environnement persistant.

Démarrer et arrêter à des moments précis

Heures d'horloge fixes

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

L'agent attend jusqu'à l'heure spécifiée, démarre le cBot, puis l'arrête à la fin de la fenêtre.

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

Autour des sessions de marché

Vous pouvez référencer les sessions de marché par leur nom au lieu de mémoriser les heures exactes.

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.

L'agent traduit les noms de sessions en heures d'horloge et planifie le démarrage et l'arrêt en conséquence.

Planifier pour des jours spécifiques

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.

Démarrage et arrêt conditionnels

Arrêter en fonction des performances

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.

Démarrer en fonction de conditions

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.

Combiner les règles de temps et de condition

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.

Enchaîner plusieurs bots

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.

L'agent exécute le premier cBot pour la session asiatique, l'arrête, puis démarre le deuxième cBot pour la session de Londres — passant automatiquement d'une stratégie à l'autre.

Examiner le planning

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.