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
Aqui está a minha menos a lógica comercial real.
E minha correção pelo comentário do RaptorUK:
Modifiquei o código Polyline para permitir sobreposições, ...
TLne compatível com versões anteriores:
Para desenhar no sub gráfico basta usar iWin = WindowFind("indicadorNome");
A partir de um post sobre o desenho do indicador tanto no gráfico principal quanto no sub gráfico, o TLine poderia ser usado para ambos com modificações.
Para desenhar na subcarta basta usar iWin = WindowFind("indicadorNome");
Obrigado
Horário de fechamento do mercado.
Eu queria fechar todas as ordens antes do final da semana (o mercado fecha na sexta-feira,) para evitar perdas caso a lacuna do mercado acabasse no final da semana, passando o SL. (Isto não é modelado no testador).
Portanto, a questão é quando o mercado fecha (ou abre.) Todos os lançamentos e buscas na rede estão claramente errados . Da Educação Forex - Introdução ao Forex - O mercado Forex IBFX opera 24 horas por dia, 5,5 dias por semana (18h00 ET no domingo até 16h00 ET na sexta-feira) É ET - horário local de Nova Iorque.
Isto significa que todos os lançamentos dependem de quando foram feitos, pois os limites do DST variam de ano para ano.
Isto significa que é necessário calcular quando o DST de NY começa e termina, para a barra em questão. (Para os testes posteriores, precisamos de valores até 2000, pelo menos.) O problema é que o Windows não fornece rotinas de conversão, exceto entre o TZ atual e o UTC e somente para o ano atual. Se o PC não estiver no ET, não pode ser feito diretamente. Além disso, até que o Windows8 saia, não é possível obter conversões para ET e anos anteriores. E olhando para o Registro no Win7 os valores só cobrem 2005 em (e estes estavam errados se eu os li corretamente.) Portanto, não estou apostando que o Win8 será melhor.
Isto significa que é necessário calcular eu mesmo o DST. Eu atualizei meu código: TimeGmt() e LocalTimeGMT() com argumentos padrão, alguma documentação adicional, e cheques, e escrevi o código para computar a hora de fechamento do mercado. Aproveite.
Estes são bons pontos, há muito mais coisas que são um trabalho de adivinhação mesmo com funções MT4, que nem sempre retornam o valor correto. Por exemplo, broker e serverinfo no servidor e parâmetros de negociação, como spread variável, ECN ou não, SL requerido ou não, resulta apenas do manuseio de erros, informações de símbolos, etc.
Muitos deles são simplesmente coisas básicas que não podem ser (e devem ser) facilmente verificadas. Por exemplo, informações sobre gráficos abertos e dados de histórico, informações de horário (como GMT, fuso horário, DST), informações de mercado aberto, informações de fechamento.
A recuperação de desastres seria realmente boa, começando com o MT4 não desligando e reiniciando como ele quer (atualizar), também o terminal.exe desligamento adequado, que permanece congelado no gerenciador de tarefas mesmo horas depois que o terminal foi fechado (e pensado para ser fechado corretamente com botão de fechamento sem qualquer mensagem de erro).
Algum tipo de suporte local de datacenter também seria bom, facilitaria o trabalho em vez de limitar variáveis globais e abrir arquivos. Para não mencionar o armazenamento de dados de pedido, lance, (spread), tick data que está faltando.
Há muitas coisas simples que faltam e que tornam a vida em conjunto muito mais difícil, e é uma quantidade horrível de trabalho para lidar com elas corretamente, se possível. Muitas dicas e truques externos são necessários até mesmo para uma operação adequada e extensa. Eu não culpo ninguém que publica uma estratégia na base de código e não lida com todos os problemas possíveis (muitos deles específicos do corretor) com o MT4 ou o servidor - especialmente quando a questão é sobre a estratégia e não sobre o tratamento de erros.
Mesmo coisas muito simples estão faltando, não podemos lidar com arquivos de log que podem facilmente crescer centenas de megabytes ou maiores quando algo realmente dá errado. Eles crescem até que o disco esteja cheio e nada pode ser feito, nem mesmo uma opção nas configurações do terminal no manuseio de arquivos de log.