VPS [auto trading disabled by client]

 

Contratei a VPS e coloquei pra rodar, porém, no momento que era pra dar as entradas aparece a mensagem [auto trading disabled by client]. Rodando no meu PC, funciona normalmente, só na VPS que dá esse problema. O Algotrading está habilitado. Na corretora (XP) também tudo normal. Só quando migro pra VPS que o robô não faz operações.

Se alguém puder ajudar.  Agradeço.

 
Adelício Barros:

Contratei a VPS e coloquei pra rodar, porém, no momento que era pra dar as entradas aparece a mensagem [auto trading disabled by client]. Rodando no meu PC, funciona normalmente, só na VPS que dá esse problema. O Algotrading está habilitado. Na corretora (XP) também tudo normal. Só quando migro pra VPS que o robô não faz operações.

Se alguém puder ajudar.  Agradeço.

Olá,

Quando você faz a sincronização o MT5 deliga o automático no TERMINAL e liga o automático no VPS, sempre é assim quer queira ou não.  A partir daí se você tentar operar no seu TERMINAL  ou se esqueceu de remover o robô da janela gráfica do seu TERMINAL, vai aparecer a msg  [auto trading disabled by client]...  Mas o robô no VPS tá OPERANDO sim.

 
Rogerio Giannetti Torres:

Olá,

Quando você faz a sincronização o MT5 deliga o automático no TERMINAL e liga o automático no VPS, sempre é assim quer queira ou não.  A partir daí se você tentar operar no seu TERMINAL  ou se esqueceu de remover o robô da janela gráfica do seu TERMINAL, vai aparecer a msg  [auto trading disabled by client]...  Mas o robô no VPS tá OPERANDO sim.Ol

olá Rogério, obrigado por comentar.

Exatamente. Ao migrar, o robô fica desativado no terminal, o problema é que a mensagem aparece no momento em que deveria acontecer uma entrada. Aí aparece essa mensagem. Não liguei o robô no terminal. Ele ficou desativado, mas todas as entradas que deveriam acontecer, não aconteceram. 

O extranho é que já usei essa VPS uma vez e funcionou normalmente...

 
Adelício Barros:

olá Rogério, obrigado por comentar.

Exatamente. Ao migrar, o robô fica desativado no terminal, o problema é que a mensagem aparece no momento em que deveria acontecer uma entrada. Aí aparece essa mensagem. Não liguei o robô no terminal. Ele ficou desativado, mas todas as entradas que deveriam acontecer, não aconteceram. 

O extranho é que já usei essa VPS uma vez e funcionou normalmente..

É , de fato é muito estranho...  coloca o log DIÁRIO da data em questão aqui.

 
Rogerio Giannetti Torres:

É , de fato é muito estranho...  coloca o log DIÁRIO da data em questão aqui.

2021.06.18 13:34:32.150 Trades 'xxxxxxx ': sell limit 1 WINQ21 at 128485 placed for execution (Order received. Sending to OMS.)
2021.06.18 13:34:32.202 Trades 'xxxxxxx ':order #1220590875 sell limit 1 / 1 WINQ21 at 128485 done in 79.385 ms
2021.06.18 13:34:34.831 Trades 'xxxxxxx ':modify order #1220590875 sell limit 1 WINQ21 at 128485 sl: 0 tp: 0 -> 128470, sl: 0 tp: 0
2021.06.18 13:34:34.854 Trades 'xxxxxxx ':accepted modify order #1220590875 sell limit 1 WINQ21 at 128485 sl: 0 tp: 0 -> 128470, sl: 0 tp: 0
2021.06.18 13:34:34.854 Trades 'xxxxxxx ':modify order #1220590875 sell limit 1 WINQ21 at 128485 sl: 0 tp: 0 -> 128470, sl: 0 tp: 0 placed for execution (Replace received. Sending to OM)
2021.06.18 13:34:34.865 Trades 'xxxxxxx ':modify #1220590875 sell limit 1 WINQ21 -> price: 128470, sl: 0, tp: 0) done in 34.138 ms
2021.06.18 13:34:40.721 Trades 'xxxxxxx ':exchange buy 3 WINQ21 at market
2021.06.18 13:34:40.766 Trades 'xxxxxxx ':accepted exchange buy 3 WINQ21 at market
2021.06.18 13:34:40.772 Trades 'xxxxxxx ':exchange buy 3 WINQ21 at market placed for execution (Order received. Sending to OMS.)
2021.06.18 13:34:40.808 Trades 'xxxxxxx ':order #1220591416 buy 3 / 3 WINQ21 at market done in 86.734 ms
2021.06.18 13:34:40.808 Trades 'xxxxxxx ':deal #235419245 buy 3 WINQ21 at 128400 done (based on order #1220591416)
2021.06.18 13:35:17.630 Trades 'xxxxxxx ':modify order #1220590875 sell limit 1 WINQ21 at 128470 sl: 0 tp: 0 -> 128365, sl: 0 tp: 0
2021.06.18 13:35:17.652 Trades 'xxxxxxx ':accepted modify order #1220590875 sell limit 1 WINQ21 at 128470 sl: 0 tp: 0 -> 128365, sl: 0 tp: 0
2021.06.18 13:35:17.652 Trades 'xxxxxxx ':modify order #1220590875 sell limit 1 WINQ21 at 128470 sl: 0 tp: 0 -> 128365, sl: 0 tp: 0 placed for execution (Replace received. Sending to OM)
2021.06.18 13:35:17.663 Trades 'xxxxxxx ':modify #1220590875 sell limit 1 WINQ21 -> price: 128365, sl: 0, tp: 0) done in 33.659 ms
2021.06.18 13:35:18.284 Trades 'xxxxxxx ':deal #235420703 sell 1 WINQ21 at 128365 done (based on order #1220590875)
2021.06.18 13:35:26.073 Trades 'xxxxxxx ':sell limit 1 WINQ21 at 128490
2021.06.18 13:35:26.094 Trades 'xxxxxxx ':accepted sell limit 1 WINQ21 at 128490
2021.06.18 13:35:26.094 Trades 'xxxxxxx ':sell limit 1 WINQ21 at 128490 placed for execution (Order received. Sending to OMS.)
2021.06.18 13:35:26.104 Trades 'xxxxxxx ':order #1220594818 sell limit 1 / 1 WINQ21 at 128490 done in 30.968 ms
2021.06.18 13:35:32.682 Trades 'xxxxxxx ':modify order #1220594818 sell limit 1 WINQ21 at 128490 sl: 0 tp: 0 -> 128355, sl: 0 tp: 0
2021.06.18 13:35:32.700 Trades 'xxxxxxx ':accepted modify order #1220594818 sell limit 1 WINQ21 at 128490 sl: 0 tp: 0 -> 128355, sl: 0 tp: 0
2021.06.18 13:35:32.701 Trades 'xxxxxxx ':modify order #1220594818 sell limit 1 WINQ21 at 128490 sl: 0 tp: 0 -> 128355, sl: 0 tp: 0 placed for execution (Replace received. Sending to OM)
2021.06.18 13:35:32.707 Trades 'xxxxxxx ':modify #1220594818 sell limit 1 WINQ21 -> price: 128355, sl: 0, tp: 0) done in 25.626 ms

2021.06.18 13:35:32.734 Trades 'xxxxxxx ':deal #235421055 sell 1 WINQ21 at 128360 done (based on order #1220594818)



 

Adelício Barros:


2021.06.18 13:34:32.150 Trades 'xxxxxxx ': sell limit 1 WINQ21 at 128485 placed for execution (Order received. Sending to OMS.)
2021.06.18 13:34:32.202 Trades 'xxxxxxx ':order #1220590875 sell limit 1 / 1 WINQ21 at 128485 done in 79.385 ms


Bom dia,

eu queria o log completo, para ver o processo de sincronização. Esse trade foi feito no VPS ou no TERMINAL ?  

 
Esse foi no VPS. 
 
Adelício Barros:
Esse foi no VPS. 

Adelício,  você escreveu - "mas todas as entradas que deveriam acontecer, não aconteceram.", então não é verdadeiro o LOG mostra que as operações foram feitas. 

 
Rogerio Giannetti Torres:

Adelício,  você escreveu - "mas todas as entradas que deveriam acontecer, não aconteceram.", então não é verdadeiro o LOG mostra que as operações foram feitas. Pois

Então, isto que é estranho, pois na aba Experts aparece "[auto trading disabled by client]" e no home broker da corretora realmente não foi disparada as ordens. Somente quando eu paro a VPS e ligo o augotrading é que as ordens são emitidas. Já liguei na corretora e eles também não sabem dizer o que acontece...



Fórum MQL5
Fórum MQL5
  • www.mql5.com
MQL5: Fórum sobre sistemas de negociação automatizados e testes de estratégia
 
2021.06.18 12:45:05.584 Terminal MetaTrader 5 Terminal x64 build 2940 started for XP Investimentos CCTVM S/A
2021.06.18 12:45:05.585 Terminal Windows 10 build 19042, Intel Core i7-4770  @ 3.40GHz, 19 / 31 Gb memory, 36 / 118 Gb disk, IE 11, UAC, GMT-3
2021.06.18 12:45:05.585 Terminal C:\Users\as-ba\AppData\Roaming\MetaQuotes\Terminal\FB9A56D617EDDDFE29EE54EBEFFE96C1
2021.06.18 12:45:05.798 TickCenter delete old files from C:\Users\as-ba\AppData\Roaming\MetaQuotes\Terminal\FB9A56D617EDDDFE29EE54EBEFFE96C1\bases\XPMT5-PRD\ticks\WINM21, last access time 2021.04.19 13:29
2021.06.18 12:45:06.411 Indicators custom indicator clock (WINQ21,M2) loaded succesfully
2021.06.18 12:45:06.419 Indicators custom indicator macd_histogram (WINQ21,M2) loaded succesfully
2021.06.18 12:45:06.437 Experts expert Funcionario3E(HLC) (WINQ21,M2) loaded successfully
2021.06.18 12:45:06.523 Network xxxxxxxxx authorized on XPMT5-PRD through MT5 PRD Access Server SP2 01 (ping: 16.54 ms, build 2530)
2021.06.18 12:45:06.523 Network xxxxxxxxx previous successful authorization performed from 177.195.130.22 on 2021.06.18 08:05:49
2021.06.18 12:45:06.559 Network xxxxxxxxx terminal synchronized with XP Investimentos CCTVM S/A: 0 positions, 0 orders, 29928 symbols, 0 spreads
2021.06.18 12:45:06.559 Network xxxxxxxxx trading has been enabled - netting mode
2021.06.18 12:45:06.661 MQL5.community activated for 'as-barros', balance: 0.00
2021.06.18 12:45:10.996 MQL5.chats activated for 'as-barros'
2021.06.18 12:45:32.402 Virtual Hosting 6263057: prepare to transfer experts, indicators
2021.06.18 12:45:32.402 Virtual Hosting 6263057: migrate 2 symbols (40 bytes)
2021.06.18 12:45:32.405 Virtual Hosting 6263057: prepare charts to synchronize...
2021.06.18 12:45:32.408 Virtual Hosting 6263057: migrate chart "WINQ21,M2" (123.02 Kb archived to 9.87 Kb)
2021.06.18 12:45:32.415 Virtual Hosting 6263057: transferred chart size 10.05 Kb
2021.06.18 12:45:32.415 Virtual Hosting 6263057: 1 chart prepared to synchronize
2021.06.18 12:45:32.416 Virtual Hosting 6263057: prepare expert files to synchronize...
2021.06.18 12:45:32.416 Virtual Hosting 6263057: check for load "Experts\Funcionario3E(HLC).ex5"
2021.06.18 12:45:32.416 Virtual Hosting 6263057: check for load "Indicators\Downloads\clock.ex5"
2021.06.18 12:45:32.416 Virtual Hosting 6263057: check for load "Indicators\Downloads\macd_histogram.ex5"
2021.06.18 12:45:32.417 Virtual Hosting 6263057: 3 files prepared to synchronize
2021.06.18 12:45:32.417 Virtual Hosting 6263057: prepare start.ini to synchronize...
2021.06.18 12:45:32.417 Virtual Hosting 6263057: migrate start.ini (1.54 Kb)
2021.06.18 12:45:32.417 Virtual Hosting 6263057: transfer 1.54 Kb to server 'MQL5 Brazil 02'
2021.06.18 12:45:32.769 Virtual Hosting 6263057: automated trading disabled after migration and enabled on virtual hosting
2021.06.18 12:45:32.770 Virtual Hosting 6263057: migration processed
2021.06.18 12:45:35.438 Virtual Hosting 6263057: status is 'started'
2021.06.18 12:45:36.935 Virtual Hosting 6263057: 2 Kb of expert logs received
2021.06.18 12:45:37.121 Virtual Hosting 6263057: 2 Kb of terminal logs received
2021.06.18 12:45:50.072 Virtual Hosting 6263057: 2 Kb of terminal logs received
2021.06.18 12:46:25.480 Virtual Hosting 6263057: 0 Kb of expert logs received
2021.06.18 13:33:41.924 Virtual Hosting 6263057: stop command
2021.06.18 13:33:55.346 Virtual Hosting 6263057: status is 'stopped'
2021.06.18 13:34:20.229 Experts automated trading is enabled
2021.06.18 13:34:29.586 Trades xxxxxxxxx exchange buy 1 WINQ21 at market
2021.06.18 13:34:29.607 Trades xxxxxxxxx accepted exchange buy 1 WINQ21 at market
2021.06.18 13:34:29.607 Trades xxxxxxxxx exchange buy 1 WINQ21 at market placed for execution (Order received. Sending to OMS.)
2021.06.18 13:34:29.616 Trades xxxxxxxxx order #1220590757 buy 1 / 1 WINQ21 at market done in 29.933 ms
2021.06.18 13:34:29.634 Trades xxxxxxxxx deal #235418851 buy 1 WINQ21 at 128450 done (based on order #1220590757)
2021.06.18 13:34:32.122 Trades xxxxxxxxx sell limit 1 WINQ21 at 128485
2021.06.18 13:34:32.150 Trades xxxxxxxxx accepted sell limit 1 WINQ21 at 128485
2021.06.18 13:34:32.150 Trades xxxxxxxxx sell limit 1 WINQ21 at 128485 placed for execution (Order received. Sending to OMS.)
2021.06.18 13:34:32.202 Trades xxxxxxxxx order #1220590875 sell limit 1 / 1 WINQ21 at 128485 done in 79.385 ms
2021.06.18 13:34:34.831 Trades xxxxxxxxx modify order #1220590875 sell limit 1 WINQ21 at 128485 sl: 0 tp: 0 -> 128470, sl: 0 tp: 0
2021.06.18 13:34:34.854 Trades xxxxxxxxx accepted modify order #1220590875 sell limit 1 WINQ21 at 128485 sl: 0 tp: 0 -> 128470, sl: 0 tp: 0
2021.06.18 13:34:34.854 Trades xxxxxxxxx modify order #1220590875 sell limit 1 WINQ21 at 128485 sl: 0 tp: 0 -> 128470, sl: 0 tp: 0 placed for execution (Replace received. Sending to OM)
2021.06.18 13:34:34.865 Trades xxxxxxxxx modify #1220590875 sell limit 1 WINQ21 -> price: 128470, sl: 0, tp: 0) done in 34.138 ms
2021.06.18 13:34:40.721 Trades xxxxxxxxx exchange buy 3 WINQ21 at market
2021.06.18 13:34:40.766 Trades xxxxxxxxx accepted exchange buy 3 WINQ21 at market
2021.06.18 13:34:40.772 Trades xxxxxxxxx exchange buy 3 WINQ21 at market placed for execution (Order received. Sending to OMS.)
2021.06.18 13:34:40.808 Trades xxxxxxxxx order #1220591416 buy 3 / 3 WINQ21 at market done in 86.734 ms
2021.06.18 13:34:40.808 Trades xxxxxxxxx deal #235419245 buy 3 WINQ21 at 128400 done (based on order #1220591416)
2021.06.18 13:35:17.630 Trades xxxxxxxxx modify order #1220590875 sell limit 1 WINQ21 at 128470 sl: 0 tp: 0 -> 128365, sl: 0 tp: 0
2021.06.18 13:35:17.652 Trades xxxxxxxxx accepted modify order #1220590875 sell limit 1 WINQ21 at 128470 sl: 0 tp: 0 -> 128365, sl: 0 tp: 0
2021.06.18 13:35:17.652 Trades xxxxxxxxx modify order #1220590875 sell limit 1 WINQ21 at 128470 sl: 0 tp: 0 -> 128365, sl: 0 tp: 0 placed for execution (Replace received. Sending to OM)
2021.06.18 13:35:17.663 Trades xxxxxxxxx modify #1220590875 sell limit 1 WINQ21 -> price: 128365, sl: 0, tp: 0) done in 33.659 ms

2021.06.18 13:35:18.284 Trades xxxxxxxxx deal #235420703 sell 1 WINQ21 at 128365 done (based on order #1220590875)

2021.06.18 13:35:26.073 Trades xxxxxxxxx sell limit 1 WINQ21 at 128490

2021.06.18 13:35:26.094 Trades xxxxxxxxx accepted sell limit 1 WINQ21 at 128490

2021.06.18 13:35:26.094 Trades xxxxxxxxx sell limit 1 WINQ21 at 128490 placed for execution (Order received. Sending to OMS.)

2021.06.18 13:35:26.104 Trades xxxxxxxxx order #1220594818 sell limit 1 / 1 WINQ21 at 128490 done in 30.968 ms

2021.06.18 13:35:32.682 Trades xxxxxxxxx modify order #1220594818 sell limit 1 WINQ21 at 128490 sl: 0 tp: 0 -> 128355, sl: 0 tp: 0

2021.06.18 13:35:32.700 Trades xxxxxxxxx accepted modify order #1220594818 sell limit 1 WINQ21 at 128490 sl: 0 tp: 0 -> 128355, sl: 0 tp: 0

2021.06.18 13:35:32.701 Trades xxxxxxxxx modify order #1220594818 sell limit 1 WINQ21 at 128490 sl: 0 tp: 0 -> 128355, sl: 0 tp: 0 placed for execution (Replace received. Sending to OM)

2021.06.18 13:35:32.707 Trades xxxxxxxxx modify #1220594818 sell limit 1 WINQ21 -> price: 128355, sl: 0, tp: 0) done in 25.626 ms

2021.06.18 13:35:32.734 Trades xxxxxxxxx deal #235421055 sell 1 WINQ21 at 128360 done (based on order #1220594818)

2021.06.18 13:36:06.798 Virtual Hosting 6263057: 1 Kb of expert logs received

2021.06.18 13:36:07.025 Virtual Hosting 6263057: 0 Kb of terminal logs received

após isso finalizei a VPS e habilitei o Algotrading no meu PC

.

 
Adelício Barros:

Adelício,

após a sincronização, você deve fechar  janela preços onde o robô está plugado ou remover  o robô  da janela de preços, isso não está sendo feito.  

Não é bem assim como você tá falando. Os trades do log que você exibiu foram feitos pelo TERMINAL MT5

2021.06.18 13:33:41.924 Virtual Hosting 6263057: stop command
2021.06.18 13:33:55.346 Virtual Hosting 6263057: status is 'stopped'
2021.06.18 13:34:20.229 Experts automated trading is enabled
2021.06.18 13:34:29.586 Trades xxxxxxxxx exchange buy 1 WINQ21 at market