Preciso dos inputs abaixo.
input double Volume;
input double NovaOrdem;
input double Lucro;
----------------------------------------------
Regras:
if(não
houver nenhuma ordem, nem Buy nem Sell aberta no gráfico)
{
abrir neste exato momento, uma ordem Buy, com o volume do Input Volume, sem SL, e com o TP baseado no input Lucro + Swap desta ordem.
abrir
neste exato momento, uma ordem Sell, com o volume do Input Volume, sem SL, e com o TP baseado no input Lucro - Swap desta ordem.
}
if(não houver nenhuma ordem Buy aberta no gráfico)
{
abrir neste exato momento, uma ordem Buy, com o volume do Input
Volume, sem SL, e com o TP baseado no input Lucro + Swap desta ordem.
}
if(não houver nenhuma ordem Sell aberta no gráfico)
{
abrir neste exato momento, uma ordem Sell, com o volume do
Input Volume, sem SL, e com o TP baseado no input Lucro - Swap desta ordem.
}
if(qualquer ordem aberta no gráfico, seja ela Buy ou Sell, alcançar o lucro estipulado no input NovaOrdem)
{
feche,
independente de que ordem for. Buy ou Sell.
}
===================================================================================
I
need the inputs below.
input double Volume; input double NovaOrdem; input double Lucro; ---------------------------------------------- Rules: if (there is
no order, neither Buy nor Sell open in the chart) { to open at this moment, a Buy order, with the volume of the Input Volume, without SL, and with
the TP based on the Lucro + Swap input of this order. to open at this moment, a Sell order, with the volume of the Input Volume, without SL, and
with the TP based on the Lucro - Swap input of this order. } if (there is no Buy order open in the chart) { to open at this moment, a Buy order, with
the volume of the Input Volume, without SL, and with the TP based on the Lucro + Swap input of this order. } if (there is no open Sell order in the
chart) { to open at this moment, a Sell order, with the volume of the Input Volume, without SL, and with the TP based on the Lucro - Swap input of
this order. } if (any open order on the chart, be it Buy or Sell, achieve the profit stipulated in the NovaOrdem input) { close, regardless of
what order. Buy or Sell. }
Similar orders
1️ ⃣ Informações Gerais Plataforma: MetaTrader 5 Tipo: Expert Advisor (EA) Operação: Hedge + Grid Dinâmico Indicador base: Average True Range (ATR período 20) 2️ ⃣ LÓGICA OPERACIONAL 🔹 2.1 Abertura Inicial O robô trabalha sempre com ordem de compra e venda ao mesmo tempo (HEDGE) e o fechamento é sempre usando GRID que tem multiplicador de lote e o tamanho (espaçamento) dinâmico com base em um fator de
Já tenho um código MQL5 com uma base do funcionamento. Basicamente o EA traça um canal na virada do dia (penso que utilizar horário seria melhor em razão da diferença entre corretoras), com base em um número x de candles, calcula e posiciona ordens stop com base em % do capital. Caso uma ordem aberta venha a stopar, o EA deve realizar uma virada de mão com base no mesmo canal, contudo recalculando o lote para que
✅ Estrutura original preservada ✅ Painel original ✅ Lógica original ✅ Arquitetura original ✅ Sem parâmetros alterados ✅ TF dinâmico ✅ 3 timeframes : H1 / H4 / D1 Time frame Dinamicos podendo mudar para M1/M30/H1 ou D1/W1/MN Quero que fique como está a imagem abaixo e adicionar extra time frame nas entradas
//+------------------------------------------------------------------+ //| EA Cruzamento de Médias MT5 | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //---- Inputs input int FastMAPeriod = 20; input int SlowMAPeriod = 50; input double LotSize = 0.01; input int StopLoss = 300; input int TakeProfit = 600; //----
TradingView to MT5 Webhook Bridge - Futures to Spot Execution Project Goal I need a developer to build a bridge between my TradingView indicator in the futures market and my existing MetaTrader 5 EA in the spot market. When my TradingView indicator generates a BUY or SELL signal on a futures symbol, for example 6A1!, it must automatically trigger my MT5 EA to open a trade on the corresponding spot symbol, for example
Tenho um indicador e quero fazer um expert dele para rodar automático porem só tenho o arquivo .ex4 e não .mq4 Indicador mostra setas no grafico no momento ideal para comprar e vender
Anexei o vídeo de como é o EA que preciso, abaixo segue a descrição Estratégia de Grid Direcional com Prioridade e Controle Financeiro Descrição Geral Preciso desenvolver um Expert Advisor (EA) em MQL5 para MetaTrader 5, baseado em uma estratégia de operações progressivas por níveis (grid) , com controle financeiro por lucro e perda , prioridade direcional e gestão independente de compras e vendas . O robô NÃO