Quaisquer perguntas de recém-chegados sobre MQL4 e MQL5, ajuda e discussão sobre algoritmos e códigos - página 1498
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
Pessoal, ajudem-me a fechar um alerta para o indicador.
para os indicadores em que:
int start()
int init()
int deinit()
aparafusar algo não é respeitar a si mesmo ou aos outros...
ter o trabalho de redesenhar interfaces modernas
Se você mudar uma variável global em uma função, ela irá mudar. Mas esta é uma forma perigosa de programação, pois no código, à medida que ele cresce, haverá atribuições não óbvias em diferentes funções do programa.
Há uma função principal no programa, que é onde você faz a atribuição global de variáveis. E em outras funções, faça-o desta maneira:
Ou assim:
Concordo que em código volumoso, é fácil perder o ponto de uma mudança variável indesejada (X). Deste ponto de vista, chamar a função principal cada vez que você precisa descobrir o que está errado com X é correto. Mas aqui está a questão. Se a função principal calcula e produz vários valores diferentes (X, Y, Z) e é bastante grande, enquanto X é usado repetidamente no decorrer do programa, esta abordagem não consumirá excessivamente a potência computacional? Isto é, para conseguirmos X, executamos repetidamente um bloco inteiro onde também recalculamos Y e Z, além de X , que, digamos, foi necessário apenas uma vez. Portanto, se o algoritmo contiver mudança seqüencial e sobrescrita de X de uma função para outra, pode ser mais complicado para um programador (requer mais atenção e verificação de erros), mas então é mais fácil para a máquina.
para os indicadores em que:
int start()
int init()
int deinit()
aparafusar algo não é respeitar a si mesmo ou aos outros...
Dê-se ao trabalho de redesenhar as interfaces modernas
Portanto, mostre-me como deve ser nas interfaces modernas. O homem aparentemente nunca codificou (caso contrário ele teria descoberto o Alerta sem nós). Ele acabou de encontrar o código em algum lugar, trouxe-o para cá e quer um alerta.
Mas aqui está a questão. Se a função principal calcula e produz vários valores diferentes (X, Y, Z) e é bastante grande, e X é usado muitas vezes ao longo do caminho
Mostre-nos como deve ser em interfaces modernas. Parece que o homem nunca programou (caso contrário, ele teria descoberto o alerta sem nós). Ele acabou de encontrar o código em algum lugar, trouxe-o para cá e quer um alerta.
De onde você tira esses "indicadores" e "conselheiros"? mas se você derreter, a fonte não vai se esgotar...
não existe tal coisa no site por muito tempo.
Se o fabricante desses indicadores não teve sucesso, o mercado mudou para a nova MQL5(4). Eles ajudarão e explicarão as coisas lá, e isso será útil para todos.
ou ir para freelancer
mas se o melaço
Da palavra melaço, não é?
Pessoal, ajudem-me a anexar um alerta ao indicador.
Rapazes. ajudar a fixar o alerta ao indicador.
ferrado - não me lembro do código da base de código e do autor - a quem preciso agradecer! - se ele reconhece seu código - eu agradeço a ele!
e aqui está o seu indicador - eu fiz isso - apenas no MT5 com Alerta.
Como foi sugado? Assim?