Tarea técnica
//+------------------------------------------------------------------+ //| DX_Structure_H1.mq5 | //| Copyright 2026, Seu Nome | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link "https://www.mql5.com" #property version "1.00" #property strict // Parâmetros de Entrada input string InpSymbol = "DX.F"; // Nome do Ativo input int InpSwingBars = 5; // Barras para confirmar Topo/Fundo (Swing) input bool InpSendAlert = true; // Enviar Alerta na Tela input bool InpSendPush = false; // Enviar Notificação Push (Celular) // Variáveis Globais datetime lastBarTime; double lastHigh = 0; double lastLow = 0; int marketTrend = 0; // 1 = Alta, -1 = Baixa //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { lastBarTime = 0; lastHigh = 0; lastLow = 0; marketTrend = 0; return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { // Verificar se é uma nova barra de H1 datetime currentBarTime = iTime(InpSymbol, PERIOD_H1, 0); if(currentBarTime == lastBarTime) return; // Se for o mesmo período, sai da função // Atualiza o tempo da última barra processada lastBarTime = currentBarTime; // Precisamos de histórico suficiente if(iBars(InpSymbol, PERIOD_H1) < InpSwingBars * 3) return; // Identificar Topo e Fundo anterior baseado em deslocamento double highCheck = iHigh(InpSymbol, PERIOD_H1, InpSwingBars); double lowCheck = iLow(InpSymbol, PERIOD_H1, InpSwingBars); // Inicializa valores na primeira execução if(lastHigh == 0) lastHigh = highCheck; if(lastLow == 0) lastLow = lowCheck; // Preço de fechamento da barra anterior (vela fechada H1) double closePrice = iClose(InpSymbol, PERIOD_H1, 1); // Lógica de Mudança de Estrutura (BOS / ChoCh) if(closePrice > lastHigh) { if(marketTrend != 1) { TriggerAlert("Mundança de Estrutura de ALTA (BOS/ChoCh) em H1 para " + InpSymbol); marketTrend = 1; } lastHigh = highCheck; // Atualiza novo topo } else if(closePrice < lastLow) { if(marketTrend != -1) { TriggerAlert("Mundança de Estrutura de BAIXA (BOS/ChoCh) em H1 para " + InpSymbol); marketTrend = -1; } lastLow = lowCheck; // Atualiza novo fundo } } //+------------------------------------------------------------------+ //| Função auxiliar para envio de alertas | //+------------------------------------------------------------------+ void TriggerAlert(string message) { Print(message); if(InpSendAlert) Alert(message); if(InpSendPush) SendNotification(message); }
Han respondido
1
Evaluación
Proyectos
179
25%
Arbitraje
24
17%
/
75%
Caducado
16
9%
Libre
2
Evaluación
Proyectos
27
7%
Arbitraje
9
33%
/
33%
Caducado
1
4%
Trabaja
3
Evaluación
Proyectos
13
31%
Arbitraje
3
0%
/
100%
Caducado
0
Libre
Ha publicado: 1 artículo
4
Evaluación
Proyectos
20
15%
Arbitraje
5
40%
/
40%
Caducado
0
Libre
5
Evaluación
Proyectos
5
0%
Arbitraje
5
0%
/
40%
Caducado
0
Libre
6
Evaluación
Proyectos
129
25%
Arbitraje
24
29%
/
54%
Caducado
8
6%
Libre
7
Evaluación
Proyectos
3
33%
Arbitraje
0
Caducado
0
Trabaja
8
Evaluación
Proyectos
6
67%
Arbitraje
1
0%
/
0%
Caducado
0
Trabaja
9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
10
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
11
Evaluación
Proyectos
263
22%
Arbitraje
23
52%
/
17%
Caducado
0
Trabajando
12
Evaluación
Proyectos
34
35%
Arbitraje
0
Caducado
2
6%
Libre
13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
14
Evaluación
Proyectos
6
17%
Arbitraje
3
0%
/
67%
Caducado
0
Libre
15
Evaluación
Proyectos
22
41%
Arbitraje
8
0%
/
50%
Caducado
3
14%
Libre
16
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 5 ejemplos
17
Evaluación
Proyectos
21
14%
Arbitraje
8
38%
/
38%
Caducado
3
14%
Trabajando
18
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
19
Evaluación
Proyectos
4
0%
Arbitraje
1
100%
/
0%
Caducado
1
25%
Libre
20
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
21
Evaluación
Proyectos
502
23%
Arbitraje
60
55%
/
25%
Caducado
59
12%
Trabaja
22
Evaluación
Proyectos
838
61%
Arbitraje
33
27%
/
45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
23
Evaluación
Proyectos
134
66%
Arbitraje
36
25%
/
56%
Caducado
22
16%
Libre
Ha publicado: 10 ejemplos
24
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
Solicitudes similares
Hello, I want this project to be a complete redesign, not just an update. My goal is to build an institutional-grade TradingView indicator that is extremely accurate, stable, fast, and completely non-repainting. You are free to modify, delete, replace, or completely rewrite any part of the code if it improves the final result. I don't care about preserving the current code or appearance—I only care about building the
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
Bollinger and rRSI
30+ USD
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including
Mac200
50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
Iconic Boy
300 - 400 USD
Am looking for a bot to trade .so that I can be able to trade and become very successful and make some profit so that I cannot sleep on a empty stomach
Hello Traders and Investors, I am a professional algorithmic trading developer specialized in building high-quality Expert Advisors (EAs), Indicators, Scripts, and Trade Management Tools for MetaTrader 4 and MetaTrader 5. With extensive experience in financial markets and trading automation, I can transform your trading ideas into reliable and efficient solutions with clean, optimized, and well-structured code. My
Hello, I’m a profitable MT4/MT5 trader specializing in Prop Firm accounts. What makes me different: I actually trade with 3% Daily DD / 5% Overall DD rules, so I know what blows accounts and what passes. Services I offer: 1. EA Backtesting + Detailed Reports - Winrate, Profit Factor, Max DD, Best Pairs/Timeframes 2. Strategy Documentation - I’ll write clear rules for your EA so any coder can build it 3. Prop Firm
Hi MQL5 Community, With over 10 years of live market experience as a Quantitative & Trading System Developer, I specialize in building robust, highly scalable Expert Advisors (EAs), custom indicators, and automated architectures. I’ve recently put together a comprehensive showcase demonstrating my flagship Modular Multi-Engine Architecture , designed to bring institutional-grade logic and real-time telemetry into
Información sobre el proyecto
Presupuesto
30+ USD
IVA (23%):
6.9
USD
Total:
37
USD
Para el ejecutor
27
USD
Cliente
Encargos realizados1
Número de arbitrajes0