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
double perceptron()
{
double w1 = x1 - 100;
double w2 = x2 - 100;
double w3 = x3 - 100;
double w4 = x4 - 100;
double a1 = iCustom(NULL,0, "CCI Personalizado", 0);
double a2 = iCustom(NULL,0, "CCI Personalizado", 7)
double a3 = iCustom(NULL,0, "CCI Personalizado", 14);//isto é CCI
double a4=iMA(NULL,0,21,0,0,0,0);//isto é Índice de Força
return(w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
}
Olá, alguém me pode dizer se chamei correctamente os indicadores na minha EA?
double perceptron()
{
double w1 = x1 - 100;
double w2 = x2 - 100;
double w3 = x3 - 100;
double w4 = x4 - 100;
double a1 = iCustom(NULL,0, "CCI Personalizado", 0);
double a2 = iCustom(NULL,0, "CCI Personalizado", 7)
double a3 = iCustom(NULL,0, "CCI Personalizado", 14);//isto é CCI
double a4=iMA(NULL,0,21,0,0,0,0);//isto é Índice de Força
return(w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
}
não.
iCustom, como qualquer outra função de chamada de indicador, devolve o manípulo do indicador. Leia a documentação.
Obrigado! Então assim!? double a2 = iCCI(NULL,0,7, 0);
double a4=iForce(NULL,0,21,0,0);
O compilador aceita também a variante anterior.
Ver um exemplo do nosso indicador personalizado de crocodilo https://www.mql5.com/en/code/9
Aí:
Obrigado! Então assim!? double a2 = iCCI(NULL,0,7, 0);
double a4=iForce(NULL,0,21,0,0);
O compilador ficará também satisfeito com a variante anterior.
O compilador está muito bem. Tenho um tal fragmento de código ao portar uma das induções de 4-compiladores:
Parecia assim em 4:
Não consegui traduzir linha a linha, porque o iMAOnArray está ausente em 5, e não quero usar incluir a versão beta. Bem, no início transferi 2*iMa.... não consegui perceber porque é que a saída se revela uma porcaria. Eu estava a ficar furioso. Estava prestes a escrever para o fórum. Depois descobri-o - o meu hábito tomou conta. O compilador aceita-o porque o cabo devolvido em 5 tem o tipo de dados Int (um número, de facto) e pode ser multiplicado por 2. Mas o punho de saída é uma grande questão e não vai funcionar dessa forma
Começo a tentar migrar o sistema para 5 e imediatamente meto-me em problemas
Compilar com 0 erros, mas o guião não funciona :-(Começo a tentar uma transferência do sistema para um cinco e é um engate instantâneo
Compilar com 0 erros, mas o guião não funciona :-(
O que quer dizer com "guião". A julgar pelas funções do código, publicou o código EA. Veja Transição com MQL4
O que quer dizer com o nome "guião". A julgar pelas funções do código, publicou o código EA. Veja a Transição com MQL4
Sim, é uma EA, literalmente, claro. Preciso de obter uma resposta do servidor utilizando wininet.dll
Sim, exactamente um conselheiro, literalmente, claro. Preciso de obter uma resposta do servidor utilizando wininet.dllTente utilizar versões Unicode destas funções. A MQL5 utiliza codificação Unicode.
Tente utilizar versões Unicode destas funções. A MQL5 utiliza Unicode.
A questão é que quando a compilo durante a depuração atira-me de volta para o editor MQL sem sequer dar um erro. E quando se puxa para o gráfico, este nem sequer aparece nele. Ou seja, nem a depuração nem o lançamento da EA dá erros em qualquer lugar