Características da linguagem mql5, subtilezas e técnicas - página 103
Você está perdendo oportunidades de negociação:
- Aplicativos de negociação gratuitos
- 8 000+ sinais para cópia
- Notícias econômicas para análise dos mercados financeiros
Registro
Login
Você concorda com a política do site e com os termos de uso
Se você não tem uma conta, por favor registre-se
Só queria dizer que talvez usar o user32.dll em vez do kernel32.dll possa ser mais rápido em ligar dois terminais usando o WinAPI, porque todas as implementações que eu vi usam o kernel32.dll.
Bem, não vejo nenhuma razão para ser mais rápido importar de uma biblioteca do que de outra.
Talvez não seja relevante nas versões atuais do MQL, mas até onde me lembro do antigo MQL4, esses custos eram bastante significativos e às vezes até comparáveis com a velocidade de execução das funções.
Sim.
Ahh... bem, pensem nisso como um capricho meu.
Eu só gosto de velocidade, porque quem é mais rápido vem primeiro, e também há menos carga na CPU, o que significa mais recursos e tempo para tomar uma decisão.
Implementação rápida do OnTick com múltiplos símbolos
Ao executar um Expert Advisor vazio utilizando um espião em 50 símbolos, as mensagens começam a acumular-se no registo:
Se eu adicionar um filtro ao indicador para a frequência de envio de eventos castum de 500ms, os erros tornam-se menos frequentes, mas eles não desaparecem.
É só eu?
Código EA:
OProfiler mostra 95% de tempo iCustom, o OnChartEvent não leva quase nada. O processador (i5-3570) está carregado a 75%.
Ao executar um EA vazio usando um espião em 50 instrumentos, as mensagens começam a derramar no registro:
É impressão minha?
Eu apanhei vários destes erros no início. Eu não os levei mais longe.
O profiler mostra 95% do tempo do iCustom, OnChartEvent não leva quase nada. A carga da CPU (i5-3570) é de 75%.
Em CPU Release-version é de ~3%.
Apanhei alguns destes erros no início. Não há mais colisões.
A versão de liberação tem CPU ~3%.
Eu construí indicador e Expert Advisor com "Optimize=1", ainda ocorrem erros.
Acrescentei uma segunda pausa ao indicador:
Os erros permanecem.
Indicador
EA
Aumentar a pausa não ajuda muito. Começa a desmoronar mesmo aos 3 segundos.
Por razões desconhecidas, em certo momento, o EventChartCustom deixa de funcionar. Empata por cerca de 3 segundos e gera erro 4001.
Indicador
EA
Aumentar a pausa não ajuda muito. Começou a desmoronar mesmo aos 3 segundos.
Por alguma razão desconhecida, em algum momento, o EventChartCustom deixa de funcionar. Empata por cerca de 3 segundos e dá erro 4001.
Sim, parece ser esse o problema.
Alguém mais o tem a tocar?
Ainda está a tocar?
Não é.
Uma hora de trabalho - o voo é normal.
Sem reprodução
Uma hora de trabalho - voo normal.
Quantos instrumentos na análise do mercado?