Qualquer pergunta de novato, de modo a não desorganizar o fórum. Profissionais, não passem por aqui. Em nenhum lugar sem você - 6. - página 1153
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
Olá! em metatrader4 a autorização mql5 não está funcionando para subscrever os sinais...o que fazer!
Escreva um pedido de servicedesk (no perfil à esquerda), com detalhes e screenshots.
As corujas devem arar em vários pares e, de preferência, duas corujas por tabela de compra separadamente dos próprios.
Como está, abre-se ao infinito
int _OrdensTotal=OrdensTotal();
para (int i=_OrdensTotal-1; i>=0; i--) {
se (OrderSelect(i,SELECT_BY_POS)) {
se (OrderMagicNumber() == Magic) {
se (OrderSymbol() == Symbol()) {
se (OrderType() == OP_BUY) {
}}}}}
if(MaPrevious>MaPrevious1)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point, "macd sample",Magic,0,Green);
if(bilhete>0)
{
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))
Imprimir("Pedido aberto : ",OrderOpenPrice());
}
senão
Imprimir("Abertura de erro Pedido de compra : ",GetLastError()));
retornar;
}
ajudar quem pode
Boa tarde a todos!
Eu sei que é possível implementar a saída de sinal no indicador:
a) Quando aparece na barra atual sem esperar que feche. Neste caso, após o fechamento do bar, o sinal pode ser cancelado;
b) Após o fechamento da barra na qual o sinal aparece.
Estou interessado na variante a). Como implementar o alerta em um indicador, sem esperar pelo fechamento da barra?
Tentei implementá-lo como uma escolha de parâmetros na linha 39 do código indicador, mas ele não funcionou. Como fazer isso corretamente?
deslocamento int externo = 0; // em que barra o sinal é considerado: 0 - na barra de corrente; 1 - na barra fechada
Eu ficaria muito grato pela ajuda!
Boa tarde a todos!
Eu sei que é possível implementar a saída de sinal no indicador:
a) Quando aparece na barra atual sem esperar que feche. Neste caso, após o fechamento do bar, o sinal pode ser cancelado;
b) Após o fechamento da barra em que o sinal aparece.
Estou interessado na variante a). Como implementar o alerta em um indicador, sem esperar pelo fechamento da barra?
Tentei implementá-lo como uma escolha de parâmetros na linha 39 do código indicador, mas ele não funcionou. Como fazer isso corretamente?
deslocamento int externo = 0; // em que barra o sinal é considerado: 0 - na barra de corrente; 1 - na barra fechada
Eu ficaria muito grato por sua ajuda!
Eu consegui aproximadamente assim
Eu removi algumas coisas desnecessárias. Eu simplifiquei algumas coisas
Isto é mais ou menos o que eu tenho.
Eu removi algumas coisas desnecessárias. Simplificou algumas coisas.
Muito obrigado. Vou tentar.
Isto é mais ou menos o que eu tenho.
Eu removi algumas coisas desnecessárias. Simplificou algumas coisas.
É uma infelicidade, mas não funciona. Tentei no prazo M5 para verificá-lo mais rapidamente. O sinal só apareceu quando a barra foi fechada e não quando as médias foram cruzadas na barra atual. Testes em armações grandes.
Se descomentarmos as linhas restantes no OnStart() obtemos "newObjArray - conversão de parâmetros não permitida".
Duas perguntas: por que, e como consertá-lo?
É uma infelicidade, mas não funciona. Tentei no prazo M5 para verificar mais rapidamente. O sinal só apareceu depois que a barra foi fechada e não quando as médias foram cruzadas na barra atual. Testei-o em grandes períodos de tempo.
Parece que nós simplesmente não nos entendemos.
Olá amigos.
Como fazer com que os valores de stop loss, tekprofit e trailing sejam exibidos como uma porcentagem ao invés de pips.
Esta fórmula é muito desordenada e não funciona em absoluto
StopLoss=NormalizeDouble(Bid-(Bid-TrailingStop)/100*TRAL_PERCENT,Digits);
Eu gostaria de ter a forma mais simples de porcentagem.
Duplo Stoploss = 0,05;
--------
Lucro=Bid-Stoploss em porcentagem (é um exemplo sujo, mas apenas para maior clareza)
Obrigado.