Perguntas de Iniciantes MQL5 MT5 MetaTrader 5 - página 1321
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
A classe base de todos estes métodos não lhe permite utilizar métodos das suas classes descendentes)))).
A conclusão é óbvia - criar objectos das aulas de que necessita na sua própria aula.
isto provavelmente não é possível de implementar
não dá - no símbolo, deve haver uma posição (se for fechada com lucro e reaberta uma posição) (e quando é aplicado o sinal oposto - não pode abrir na outra direcção
se apenas a partir de um sinal (de um ponto) não houver problema . (e isto não deve estar presente no código (linha acima)))
Hi!
Procurei por toda a rede e não encontrei nenhuma solução para mql5, mas para mql4 encontrei uma EA em mql4, que funciona para ambos os lados: comprar e vender - simultaneamente. Posso tentar tomá-lo como base......... mas tenho de reescrevê-lo de mql4 para MQL5.
Estou a anexar o seu ficheiro para que se possa familiarizar com ele.
Hi!
Procurei por toda a rede e não encontrei nenhuma solução para mql5, mas encontrei um Expert Advisor em mql4, que funciona em ambas as direcções simultaneamente - compra e venda. Posso tentar tomá-lo como base......... mas tenho de reescrevê-lo de mql4 para MQL5.
Estou a anexar o seu ficheiro para que se possa familiarizar com ele.
Esta EA não funciona com o Indicador e pode abrir em qualquer direcção. Tem um indicador e quer que ele se abra enquanto a tendência se move.
-Este Expert Advisor que construímos, também pode abrir em ambas as direcções, mas apenas na direcção em que o Indicador mostra a tendência.
Este Conselheiro Especialista não trabalha com um Indicador e pode abrir em qualquer direcção. Mas tem um indicador e quer que ele se abra em tendência.
-O Expert Advisor que criámos, também pode abrir em ambas as direcções, mas apenas na direcção em que a tendência é mostrada pelo Indicador.
Desculpe-me?
A que lhe enviei abre 2 encomendas simultaneamente (Venda e Compra) e se uma for fechada com lucro, a outra permanece e a fechada é novamente aberta, na direcção em que foi fechada. E a que foi deixada por Martin começa a funcionar. Quando a tendência muda, tudo acontece na direcção oposta.
Se essa EA que construímos pode abrir em ambas as direcções simultaneamente, então porque é que abre apenas numa direcção (como indicado pelo indicador)?
Não percebo!!!!
O que quer dizer?
A que enviei abre 2 encomendas de uma vez (Vender e Comprar) e se uma for fechada com lucro, a outra fica e a fechada abre novamente - na direcção em que foi fechada. E a que foi deixada por Martin começa a funcionar. Quando a tendência muda, tudo acontece na direcção oposta.
Se essa EA que construímos pode abrir em ambas as direcções simultaneamente, então porque é que abre apenas numa direcção (como indicado pelo indicador)?
Não percebo!
Como vê, ele abre a partir do sinal e abre até o lucro disparar.
input bool InpVariant =false; // Opção 1.variante
input bool InpVariant =true; // Opção 2.variante
input bool InpClOp =false; // Fechar em frente
aqui - a partir do sinal aberto e até que o lucro seja desencadeado.
input bool InpVariant =false; // Opção 1.variante
input bool InpVariant =true; // Opção 2.variante
input bool InpClOp =false; // Fechar
Então não funcionou? Pena !!!!
Não acredito que não haja solução - vou continuar a navegar na Internet.
Não funcionou, pois não? Pena !!!!
Não acredito que não haja solução, por isso vou continuar a navegar na rede.
Pode realmente adicionar um objecto para abrir e fechar - então pode funcionar, mas é uma tarefa dolorosa.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
em vez do TP habitual, fazer a partir da linha Horizontal para fechar e abrir
A conclusão é óbvia - criar objectos de aulas de que necessita na sua própria aula.
Fi-lo herdando a minha turma do CTrade, para que pudesse pelo menos utilizar funções comerciais sem objectos)))) Obrigado!
Sprut 185 : Короче не прокатило? А жаль !!!!
Bem, não acredito que não possa haver solução - continuarei navegando na Internet.
Provavelmente como você planejou - parece que acabou.
Hi!
Procurei por toda a rede e não encontrei nenhuma solução para mql5, mas encontrei um Expert Advisor em mql4, que funciona em ambas as direcções simultaneamente - compra e venda. Posso tentar usar......... como base, mas tem de ser reescrita de mql4 para MQL5.
Estou a anexar o ficheiro para que se familiarize com ele.
Descarreguei-o ontem para dar uma vista de olhos... De repente, a Internet foi-me tirada. Depois de uma trovoada, tive alguns trabalhos técnicos durante o resto do dia. Decidi reescrevê-lo na MQL5 por inactividade e publiquei-o aqui.
Assim, cada nuvem tem um lado positivo.........