Ir para o conteúdo

Agendar operações de cBot

Este guia mostra-lhe como utilizar um agente de IA para iniciar e parar cBots em horários específicos, em torno de sessões de mercado ou com base em condições — transformando o seu agente num agendador automatizado para os seus algoritmos de negociação.

Nota

O agendamento depende de o cliente de IA permanecer ativo durante a duração. Se fechar o cliente de IA ou desligar, as operações agendadas não serão executadas. Para agendamento permanente, considere executar o seu agente de IA num ambiente persistente.

Iniciar e parar em horários específicos

Horários fixos

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

O agente aguarda até ao horário especificado, inicia o cBot e depois para-o no final da janela.

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

Em torno de sessões de mercado

Pode referenciar sessões de mercado por nome, em vez de memorizar horários exatos.

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.

O agente traduz os nomes das sessões em horários e agenda o início e a paragem em conformidade.

Agendar para dias específicos

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.

Início e paragem condicionais

Parar com base no desempenho

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.

Iniciar com base em condições

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.

Combinar regras de tempo e condição

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.

Encadear vários 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.

O agente executa o primeiro cBot para a sessão asiática, encerra-o e depois inicia o segundo cBot para a sessão de Londres — transferindo automaticamente entre estratégias.

Rever o agendamento

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.