Vai al contenuto

Programma le operazioni dei cBot

Questa guida ti mostra come utilizzare un agente IA per avviare e interrompere i cBot in orari specifici, in base alle sessioni di mercato o a determinate condizioni, trasformando il tuo agente in un programmatore automatizzato per i tuoi algoritmi di trading.

Nota

La programmazione dipende dal fatto che il client IA rimanga attivo per tutta la durata. Se chiudi il client IA o ti disconnetti, le operazioni programmate non verranno eseguite. Per una programmazione sempre attiva, valuta di eseguire il tuo agente IA in un ambiente persistente.

Avvia e interrompi a orari specifici

Orari fissi

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

L'agente attende fino all'orario specificato, avvia il cBot, quindi lo interrompe alla fine della finestra.

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

In base alle sessioni di mercato

Puoi fare riferimento alle sessioni di mercato per nome invece di ricordare gli orari esatti.

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'agente traduce i nomi delle sessioni in orari e programma l'avvio e l'interruzione di conseguenza.

Programma per giorni specifici

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.

Avvio e interruzione condizionali

Interrompi in base alle prestazioni

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.

Avvia in base alle condizioni

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.

Combina regole di orario e condizioni

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.

Concatena più 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.

L'agente esegue il primo cBot per la sessione asiatica, lo arresta, quindi avvia il secondo cBot per la sessione di Londra, passando automaticamente da una strategia all'altra.

Rivedi la programmazione

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.